/* ==========================================================================
   GLAESS Software & Automation GmbH – Übergangs-Homepage
   Design abgeleitet aus dem KI-Kompass Designsystem
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-accent: #2563eb;
    --color-accent-dark: #1d4ed8;
    --color-success: #059669;
    --color-surface: #f9fafb;
    --color-dark: #111827;
    --color-warning: #d97706;
    --radius: 6px;
    --max-width: 960px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

ul {
    list-style: none;
    padding: 0;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
}

.section-surface {
    background: var(--color-surface);
}

/* --- Header --- */
.site-header {
    background: var(--color-dark);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.logo-link:hover {
    text-decoration: none;
    color: #fff;
}

.logo {
    height: 56px;
    width: auto;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.header-nav a:hover {
    color: #fff;
    text-decoration: none;
}

/* --- Hero --- */
.hero {
    background: var(--color-dark);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 1rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* --- Notice Block (Übergangshinweis) --- */
.notice-block {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--color-warning);
    border-radius: var(--radius);
    padding: 24px 28px;
    max-width: 720px;
    margin: 0 auto;
}

.notice-block h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.notice-block p {
    color: #78350f;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.notice-block p:last-child {
    margin-bottom: 0;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2rem;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.15s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.service-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.service-card ul {
    margin-top: 0.75rem;
}

.service-card li {
    color: var(--color-muted);
    font-size: 0.9rem;
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.5;
}

.service-card li::before {
    content: "\2013";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* --- Detail Sections --- */
.detail-section {
    max-width: 720px;
    margin: 0 auto;
}

.detail-section h2 {
    margin-bottom: 1.25rem;
}

.detail-section p {
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.detail-section ul {
    margin-bottom: 1rem;
}

.detail-section li {
    color: var(--color-muted);
    font-size: 0.95rem;
    padding: 5px 0 5px 20px;
    position: relative;
    line-height: 1.55;
}

.detail-section li::before {
    content: "\2013";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* --- KI-Kompass Block --- */
.kompass-block {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px 32px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    text-align: center;
}

.kompass-block h2 {
    margin-bottom: 0.75rem;
}

.kompass-block p {
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #f3f4f6;
    color: var(--color-text);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 720px;
    margin: 2rem auto 0;
}

.contact-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-card .btn {
    margin-top: 1rem;
}

.contact-address {
    font-style: normal;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 24px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer-company {
    line-height: 1.7;
}

.footer-company strong {
    color: #fff;
}

.footer-company a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-company a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-copy {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Content Pages (Impressum, Datenschutz) --- */
.content-page {
    max-width: 700px;
}

.content-page h1 {
    margin-bottom: 1.5rem;
}

.content-page h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.content-page p {
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

.content-page ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.content-page li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
}

.content-page a {
    color: var(--color-accent);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* --- Section Titles --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-header p {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .notice-block {
        padding: 20px;
    }

    .kompass-block {
        padding: 28px 20px;
    }

    .logo {
        height: 42px;
    }

    .logo-text {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 16px;
    }

    h2 {
        font-size: 1.35rem;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .contact-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
}
