:root {
    --color-primary: #1B2A4D;
    --color-primary-dark: #12203D;
    --color-accent: #3B7DD8;
    --color-secondary: #5A6A85;
    --color-text: #1B2A4D;
    --color-text-light: #5A6A85;
    --color-background: #ffffff;
    --color-background-alt: #EFF2F7;
    --color-background-alt2: #DEE4EF;
    --color-background-tint: #F5F7FA;
    --color-border: #C5D0DC;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo-ai {
    text-decoration: overline;
    text-decoration-thickness: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
    margin: 0 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-login {
    margin-left: 1rem;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
}

.nav-login:hover {
    background: #2b6bc4;
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: auto;
    background: var(--color-background-alt);
    border-radius: var(--radius);
    padding: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition);
    line-height: 1;
}

.lang-btn:hover {
    color: var(--color-text);
}

.lang-btn.active {
    background: var(--color-background);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Six nav items: tighten spacing just above the burger breakpoint */
@media (min-width: 1025px) and (max-width: 1280px) {
    .nav-links {
        gap: 1.1rem;
        margin: 0 1rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .nav-login {
        margin-left: 0.75rem;
    }

    .nav-cta {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========================================
   Nav Dropdown (Für Verwalter)
   ======================================== */
.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1025px) {
    /* keep all labels on one line: without this the 70px dropdown li
       stretches its siblings and their text sticks to the top */
    .nav-links {
        align-items: center;
    }

    .nav-dropdown {
        position: relative;
        height: 70px;
        display: flex;
        align-items: center;
    }

    .nav-dropdown > a::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-left: 0.45rem;
        margin-bottom: 2px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        vertical-align: middle;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 210px;
        background: var(--color-background);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 0.4rem;
        display: none;
        z-index: 1001;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        display: block;
        padding: 0.6rem 0.9rem;
        border-radius: 6px;
        font-size: 0.95rem;
    }

    .nav-dropdown-menu a:hover {
        background: var(--color-background-alt);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
}

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

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

.btn-secondary:hover {
    background: var(--color-background-alt);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-outline-sm {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-outline-sm:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--color-primary);
}

/* ========================================
   Section Labels
   ======================================== */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 10rem 0 6rem;
    background: var(--color-background);
}

.hero-content {
    max-width: 620px;
}

.hero-media {
    margin-top: 3.5rem;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.hero-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Warum KAZAI Section
   ======================================== */
.section-warum {
    padding: 5rem 0;
    background: var(--color-background-tint);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.warum-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.warum-intro h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.warum-intro h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.warum-intro p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.warum-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.warum-card {
    padding: 0;
}

.warum-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-border);
    margin-bottom: 1rem;
    line-height: 1;
}

.warum-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.warum-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.warum-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

/* ========================================
   Für Wen Section
   ======================================== */
.section-fuerwen {
    padding: 5rem 0;
    background: var(--color-background);
}

.fuerwen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.fuerwen-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-background);
}

.fuerwen-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.fuerwen-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.fuerwen-card > p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.fuerwen-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.fuerwen-link {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition);
    flex: 1;
    min-width: 140px;
}

.fuerwen-link:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.fuerwen-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

.fuerwen-link small {
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ========================================
   Leistungen / Pricing Section
   ======================================== */
.section-leistungen {
    padding: 5rem 0;
    background: var(--color-background-tint);
    border-top: 1px solid var(--color-border);
}

.section-leistungen h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pricing-table {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pricing-row {
    display: grid;
    grid-template-columns: 200px 1fr 180px 160px;
    gap: 0;
    align-items: center;
    padding: 2rem;
    background: var(--color-background);
}

.pricing-row--highlight {
    background: var(--color-background-tint);
}

.pricing-tier {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pricing-step {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-details p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
}

.pricing-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: var(--color-background-alt);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.pricing-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.pricing-unit {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.pricing-action {
    text-align: center;
}

/* ========================================
   Stats Section
   ======================================== */
.section-stats {
    padding: 5rem 0;
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.stat-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ========================================
   CTA Block
   ======================================== */
.section-cta-block {
    padding: 5rem 0;
    background: var(--color-primary);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.cta-inner h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* ========================================
   About Section
   ======================================== */
.section-about {
    padding: 5rem 0;
    background: var(--color-background-alt2);
}

.section-about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.about-box {
    background: var(--color-background-tint);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.about-founders {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 2rem;
    background: var(--color-background-alt);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.contact-person strong {
    font-size: 1.1rem;
}

.contact-person span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.founder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--color-border);
    margin-bottom: 0.75rem;
    object-fit: cover;
}

.founder-title {
    color: var(--color-accent);
}

.about-email {
    text-align: center;
    margin-top: 2rem;
}

.about-email a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.about-email a:hover {
    color: var(--color-accent);
}

/* ========================================
   Contact Form Section
   ======================================== */
.contact-form-section {
    padding: 5rem 0;
    background: var(--color-background);
}

.contact-form-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--color-background);
    color: var(--color-text);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ========================================
   Anfrage Page
   ======================================== */
.anfrage-section {
    padding: 9rem 0 5rem;
    background: var(--color-background);
}

.anfrage-section .section-label {
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

.anfrage-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.15;
    margin: 0 auto 1rem;
    max-width: 720px;
    text-align: center;
}

.anfrage-subtitle {
    max-width: 620px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
}

.contact-form .btn {
    width: 100%;
}

.contact-phone-note {
    max-width: 600px;
    margin: 1.5rem auto 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1rem;
}

.contact-phone-note a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

.contact-phone-note a:hover,
.contact-phone-note a:focus-visible {
    color: var(--color-accent);
    outline: none;
}

/* ========================================
   STWEG Landing Page (Anfrage + Info)
   ======================================== */
.stweg-section {
    padding: 8rem 0 5rem;
    background: var(--color-background);
}

.stweg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.stweg-info {
    position: sticky;
    top: 90px;
}

.stweg-info h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.stweg-info h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.stweg-info-lead {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.stweg-block {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.stweg-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.stweg-block-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.stweg-block-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.stweg-models {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stweg-model {
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-background-tint);
}

.stweg-model-name {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 0.6rem;
}

.stweg-model-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: var(--color-background-alt);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    vertical-align: 1px;
}

.stweg-model p {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.stweg-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stweg-bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.stweg-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.stweg-bullets strong {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.stweg-form-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 20px 40px -15px rgba(27, 42, 77, 0.25), 0 8px 16px -8px rgba(27, 42, 77, 0.15);
    overflow: hidden;
}

.stweg-form-card-header {
    background: var(--color-primary);
    color: #ffffff;
    padding: 2rem 2.25rem 1.75rem;
    border-bottom: 4px solid var(--color-accent);
}

.stweg-form-card-header .section-label {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.6rem;
}

.stweg-form-card-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.stweg-form-card-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

.stweg-form-card-body {
    padding: 2rem 2.25rem 2.25rem;
}

.stweg-video-card {
    margin-bottom: 1.5rem;
}

.stweg-video-card .video-frame {
    box-shadow: var(--shadow-md);
}

.stweg-video-card .video-caption {
    margin-top: 0.5rem;
}

.stweg-form {
    max-width: none;
    margin: 0;
}

.stweg-form .btn-primary {
    background: var(--color-accent);
    padding: 0.95rem 1.5rem;
    font-size: 1.02rem;
    margin-top: 0.5rem;
}

.stweg-form .btn-primary:hover {
    background: #2b6bc4;
}

.stweg-phone-card {
    margin-top: 1.5rem;
}

.stweg-phone-card-body {
    padding: 1.5rem 2.25rem;
    text-align: center;
}

.stweg-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.stweg-phone-link::before {
    content: '\260E';
    font-size: 1.15rem;
    color: var(--color-accent);
}

.stweg-phone-link:hover,
.stweg-phone-link:focus-visible {
    color: var(--color-accent);
    outline: none;
}

.stweg-mobile-cta {
    display: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 3rem 0 1.5rem;
    background: var(--color-text);
    color: white;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    color: white;
}

.footer-brand .logo-ai {
    color: white;
}

.footer-tagline {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social {
    display: inline-flex;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-social:hover {
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-addresses p {
    margin-bottom: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* ========================================
   Legal Pages (Datenschutz, Impressum)
   ======================================== */
.legal-section {
    padding: 9rem 0 5rem;
    background: var(--color-background);
}

.legal-section .container {
    max-width: 760px;
}

.legal-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 0.75rem;
    line-height: 1.3;
}

.legal-section h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
    line-height: 1.3;
}

.legal-section p {
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-meta {
    margin-top: 3rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.legal-section ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.legal-section li {
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.legal-section .table-scroll {
    overflow-x: auto;
    margin: 0 0 1rem;
}

.legal-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-background-alt2);
    line-height: 1.5;
}

.legal-table th {
    font-weight: 600;
    white-space: nowrap;
    background: var(--color-background-tint);
}

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-login,
    .nav-cta {
        display: none;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 0.75rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        margin: 0;
        background: var(--color-background);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Für-Verwalter submenu: always expanded inside the burger menu */
    .nav-dropdown-menu {
        margin-top: 0.75rem;
    }

    .nav-links .nav-dropdown-menu li {
        padding: 0.5rem 0 0.5rem 1.25rem;
        border-bottom: none;
    }

    .nav-links .nav-dropdown-menu a {
        color: var(--color-text-light);
        font-size: 0.95rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content {
        max-width: none;
    }

    .hero-media {
        margin-top: 2.5rem;
    }

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

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

    .warum-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .warum-intro h2 {
        font-size: 1.75rem;
    }

    .warum-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .fuerwen-grid {
        grid-template-columns: 1fr;
    }

    .section-leistungen h2,
    .section-about h2,
    .contact-form-section h2 {
        font-size: 1.5rem;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .pricing-price {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.75rem;
    }

    .pricing-action {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-inner h2 {
        font-size: 1.5rem;
    }

    .about-founders {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .stweg-section {
        padding: 7rem 0 4rem;
    }

    .stweg-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stweg-info {
        position: static;
        order: 1;
    }

    .stweg-form-col {
        order: 2;
    }

    .stweg-info h1 {
        font-size: 1.6rem;
    }

    .stweg-form-card-header {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .stweg-form-card-header h1 {
        font-size: 1.55rem;
    }

    .stweg-form-card-body {
        padding: 1.5rem 1.5rem 1.75rem;
    }

    .stweg-mobile-cta {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .warum-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .fuerwen-links {
        flex-direction: column;
    }
}

/* --- Partners marquee (Trusted by) --- */

.partners {
    padding: 4rem 0;
    background: var(--color-background-tint);
    overflow: hidden;
}

.partners-label {
    text-align: center;
    margin-bottom: 2rem;
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__row {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    flex: 0 0 auto;
}

.marquee__logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
    transition: filter var(--transition), opacity var(--transition);
}

.marquee__logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Static mode: show logos once, centered, no animation. Toggle via .partners--static. */
.partners--static .marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
}
.partners--static .marquee__track {
    width: 100%;
    animation: none;
    justify-content: center;
}
.partners--static .marquee__row {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
}

@media (max-width: 1024px) {
    .marquee__row {
        gap: 2rem;
        padding-right: 2rem;
    }
    .marquee__logo {
        height: 38px;
        max-width: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .marquee__track {
        animation: none;
    }
    .marquee__logo {
        filter: none;
        opacity: 1;
    }
}

/* --- Video frame (used in the homepage video section) --- */

.video-frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-primary);
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
}

.stweg-block .video-frame {
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.video-play-overlay:hover,
.video-play-overlay:focus-visible {
    background: rgba(0, 0, 0, 0.15);
    outline: none;
}

.video-play-icon {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid var(--color-primary);
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    margin-left: 6px;
}

.video-play-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: video-pulse 2.2s ease-out infinite;
}

.video-play-overlay:hover .video-play-icon {
    transform: scale(1.06);
    background: #fff;
}

.video-frame.is-playing .video-play-overlay {
    display: none;
}

@keyframes video-pulse {
    0%   { transform: scale(1);   opacity: 0.85; }
    100% { transform: scale(1.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .video-play-icon::after {
        animation: none;
    }
}

.video-caption {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.875rem;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s ease;
}

.video-caption:hover,
.video-caption:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
    outline: none;
}

