﻿/* ========================================
   psy-lab.spelltext.academy – Stylesheet
   Organisationspsychologische Beratung
   Design: analytical · refined · authoritative
   ======================================== */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* === CSS Variables === */
:root {
    /* Primary – deep slate-blue */
    --color-primary:       #1E5F74;
    --color-primary-dark:  #164A5B;
    --color-primary-light: #2A7A93;
    --color-primary-pale:  #D6EAF0;
    --color-primary-muted: #85B4C4;

    /* Accent – cool slate (second tone, not orange) */
    --color-accent:        #4A7C8F;
    --color-accent-dark:   #365D6B;
    --color-accent-light:  #6BA3B5;

    /* CTA – contrasting teal-green */
    --color-cta:           #1E5F74;
    --color-cta-dark:      #164A5B;
    --color-cta-light:     #2A7A93;

    /* Neutrals – cool, no warm beige */
    --color-white:         #ffffff;
    --color-off-white:     #F2F6F8;
    --color-surface:       #E8EFF4;
    --color-surface-mid:   #D4DEE6;
    --color-border:        #C2CDD6;
    --color-border-light:  #DDE5EB;
    --color-text-muted:    #6B7F8C;
    --color-text:          #2C3D47;
    --color-text-dark:     #1A2830;

    /* Typography */
    --font-display: 'DM Serif Display', 'Source Serif Pro', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;

    /* Layout */
    --container-max:  1100px;
    --container-wide: 1320px;
    --header-height:  76px;

    /* Radius */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;

    /* Shadows */
    --shadow-sm:   0 1px 4px rgba(30,95,116,0.08);
    --shadow-md:   0 4px 16px rgba(30,95,116,0.12);
    --shadow-lg:   0 8px 32px rgba(30,95,116,0.16);
    --shadow-card: 0 2px 8px rgba(30,95,116,0.08), 0 1px 2px rgba(0,0,0,0.04);

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-base: 0.28s ease;
}

/* === Dark Mode === */
body.dark-mode {
    --color-primary:       #3DA8C4;
    --color-primary-dark:  #1E5F74;
    --color-primary-light: #5EC0D8;
    --color-primary-pale:  #0D2530;
    --color-primary-muted: #2A5F70;

    --color-accent:        #5B8FA0;
    --color-accent-dark:   #3A6070;
    --color-accent-light:  #7AAFC0;

    --color-cta:           #3DA8C4;
    --color-cta-dark:      #1E5F74;
    --color-cta-light:     #5EC0D8;

    --color-white:         #070E14;
    --color-off-white:     #0D1820;
    --color-surface:       #111F2A;
    --color-surface-mid:   #192836;
    --color-border:        #243544;
    --color-border-light:  #1C2D3C;
    --color-text-muted:    #7090A0;
    --color-text:          #B0C8D4;
    --color-text-dark:     #D8E8EE;

    --shadow-sm:   0 1px 4px rgba(0,0,0,0.3);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* === Container === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: block;
    height: 56px;
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    padding: var(--space-xs) 0;
    position: relative;
    display: block;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text-dark);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    background: linear-gradient(155deg, var(--color-off-white) 0%, var(--color-primary-pale) 60%, var(--color-surface) 100%);
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30,95,116,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-with-image {
    padding: 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-with-image .container {
    position: relative;
    z-index: 1;
    margin-top: var(--header-height);
}

.hero-with-image .hero-content > .hero-subtitle:first-child {
    margin-bottom: 1.2rem;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.73);
    backdrop-filter: blur(8px);
    padding: 2rem 3rem;
    border-radius: 0;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    transition: background-color 0.3s ease;
    text-align: center;
}

body.dark-mode .hero-with-image .hero-content > .hero-subtitle:first-child {
    margin-bottom: 1.2rem;
}

body.dark-mode .hero-with-image .hero-content {
    background-color: rgba(7, 14, 20, 0.73);
}

body.dark-mode .hero {
    background: linear-gradient(155deg, var(--color-off-white) 0%, var(--color-primary-pale) 60%, var(--color-surface) 100%);
}

.hero-content > .hero-subtitle:first-child {
    margin-bottom: 1.2rem;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Psi character – DM Serif Display, consistent with site typography */
.hero-psi {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.05em;
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.6;
}

body.dark-mode .hero-title {
    color: var(--color-primary);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.9rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    background-color: var(--color-cta-dark);
    border-color: var(--color-cta-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .btn-primary {
    background-color: var(--color-cta);
    color: var(--color-text-dark);
}

body.dark-mode .btn-primary:hover {
    background-color: var(--color-cta-light);
}

/* =============================================
   SECTIONS – base
   ============================================= */
.section {
    padding: var(--space-2xl) 0;
}

.section-alt {
    background-color: var(--color-off-white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
}

/* =============================================
   EINORDNUNG
   ============================================= */
.section-einordnung {
    background-color: var(--color-white);
}

.einordnung-content {
    max-width: 820px;
}

.einordnung-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.einordnung-content p:last-child { margin-bottom: 0; }

/* =============================================
   ABLAUF STEPS
   ============================================= */
.section-ablauf {
    background-color: var(--color-off-white);
}

.ablauf-steps {
    display: grid;
    gap: var(--space-lg);
}

.step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-primary-muted);
    line-height: 1;
    min-width: 64px;
}

.step-content { flex: 1; padding-top: 0.4rem; }

.step-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.step-text {
    color: var(--color-text);
    line-height: 1.7;
}

/* =============================================
   CARDS (Zielgruppe / Angebote)
   ============================================= */
.section-zielgruppe { background-color: var(--color-white); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.card {
    padding: var(--space-lg);
    background-color: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--color-primary-muted);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

/* Buttons inside simple cards – always at the bottom */
.card > .btn {
    margin-top: var(--space-md);
    display: block;
    text-align: center;
}

/* =============================================
   HINWEIS
   ============================================= */
.section-hinweis {
    background-color: var(--color-off-white);
    padding: var(--space-xl) 0;
}

.hinweis-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.hinweis-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.hinweis-content p {
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.hinweis-content p:last-child { margin-bottom: 0; }
.hinweis-content strong { color: var(--color-text-dark); }

/* =============================================
   PREISE
   ============================================= */
.section-preise { background-color: var(--color-white); }

.preise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.preis-card {
    padding: var(--space-lg);
    background-color: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.preis-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.preis-card-highlight {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.preis-card-highlight .preis-name { color: #fff; }
.preis-card-highlight .preis-beschreibung { color: rgba(255,255,255,0.85); }
.preis-card-highlight .preis-betrag { color: rgba(255,255,255,0.95); }

.preis-card-highlight .btn-outline {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.preis-card-highlight .btn-outline:hover {
    background-color: #fff;
    color: var(--color-primary);
}
.preis-card-highlight .btn-primary {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.preis-card-highlight .btn-primary:hover {
    background-color: rgba(255,255,255,0.25);
}

body.dark-mode .preis-card-highlight {
    background-color: var(--color-surface-mid);
    border-color: var(--color-primary);
}
body.dark-mode .preis-card-highlight .preis-name,
body.dark-mode .preis-card-highlight .preis-betrag { color: var(--color-primary); }
body.dark-mode .preis-card-highlight .preis-beschreibung { color: var(--color-text); }

.preis-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.preis-beschreibung {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.preis-betrag {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.preise-hinweis {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

/* =============================================
   KONTAKT
   ============================================= */
.section-kontakt { background-color: var(--color-off-white); }

.kontakt-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-xl);
    align-items: start;
}

.kontakt-info p {
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.kontakt-email { margin-top: var(--space-lg); }

.kontakt-email a {
    color: var(--color-primary);
    font-weight: 600;
}

.kontakt-form {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: var(--space-md); }

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30,95,116,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-privacy { margin-bottom: var(--space-md); }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: 0.88rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.checkbox-label input { margin-top: 0.25rem; }
.checkbox-label a { text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-muted);
    padding: var(--space-xl) 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .footer {
    background-color: var(--color-off-white);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-copyright {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
}

body.dark-mode .footer-copyright { color: var(--color-text-muted); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

body.dark-mode .footer-links a { color: var(--color-text-muted); }
body.dark-mode .footer-links a:hover { color: var(--color-text-dark); }

.social-icons {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.social-link {
    display: block;
    width: 40px; height: 40px;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.social-link:hover { color: var(--color-primary-light); }

.social-icon { width: 100%; height: 100%; }

.footer-backlink { text-align: right; }

.footer-backlink a {
    color: var(--color-primary-light);
    font-size: 0.88rem;
}

.footer-backlink a:hover { color: var(--color-primary); }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 0.85;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg { width: 22px; height: 22px; color: white; }

/* =============================================
   DARK MODE TOGGLE
   ============================================= */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.theme-toggle:hover { background-color: var(--color-surface); }

.theme-toggle svg {
    width: 22px; height: 22px;
    fill: var(--color-text-muted);
    stroke: var(--color-text-muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all var(--transition-fast);
}

.theme-toggle:hover svg { fill: var(--color-primary); stroke: var(--color-primary); }

body.dark-mode .theme-toggle svg { fill: var(--color-text-muted); stroke: var(--color-text-muted); }
body.dark-mode .theme-toggle:hover svg { fill: var(--color-primary); stroke: var(--color-primary); }

/* =============================================
   COOKIE CONSENT
   ============================================= */
.cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: rgba(26, 40, 48, 0.97);
    color: #fff;
    padding: var(--space-lg) 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(4px);
}

body.dark-mode .cookie-consent {
    background-color: rgba(7, 14, 20, 0.97);
    border-top: 1px solid var(--color-border);
}

.cookie-consent.show { transform: translateY(0); }

.cookie-consent-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-consent-text {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

.cookie-consent-text a { color: var(--color-primary-light); text-decoration: underline; }

.cookie-consent-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--color-cta);
    color: #fff;
    border-color: var(--color-cta);
}

.cookie-btn-accept:hover {
    background-color: var(--color-cta-dark);
    border-color: var(--color-cta-dark);
}

.cookie-btn-decline {
    background-color: transparent;
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover { border-color: rgba(255,255,255,0.6); }

/* =============================================
   LEGAL
   ============================================= */
.section-legal { background-color: var(--color-off-white); }

.legal-content { max-width: 900px; }

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--color-text);
}

.legal-content ul,
.legal-content ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.legal-content li { margin-bottom: var(--space-xs); line-height: 1.7; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-content a:hover { color: var(--color-cta); }
.legal-content hr { border: none; border-top: 1px solid var(--color-border); margin: var(--space-xl) 0; }

/* =============================================
   FAQ
   ============================================= */
.section-faq {
    background-color: var(--color-white);
    padding-top: var(--space-xl);
}

.faq-list { max-width: 900px; }

.faq-item {
    background-color: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--color-primary-muted);
    box-shadow: var(--shadow-sm);
}

details[open].faq-item {
    background-color: var(--color-white);
    border-color: var(--color-primary-muted);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 1.1rem var(--space-lg);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color var(--transition-fast);
}

.faq-question::marker { content: ''; }
.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

details[open] .faq-question { color: var(--color-primary); }
details[open] .faq-question::after { content: '−'; }

.faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 0.97rem;
}

.faq-answer ul { margin-left: var(--space-md); }
.faq-answer li { margin-bottom: var(--space-xs); }

/* =============================================
   LEITFADEN
   ============================================= */
.section-leitfaden { background-color: var(--color-off-white); }

.leitfaden-content { max-width: 900px; }

.leitfaden-block { margin-bottom: var(--space-2xl); }
.leitfaden-block:last-child { margin-bottom: 0; }

.leitfaden-block h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.leitfaden-block p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--color-text);
}

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

.leitfaden-block ul {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.leitfaden-block li { margin-bottom: var(--space-xs); line-height: 1.7; }

/* =============================================
   ANCHOR NAV
   ============================================= */
.anchor-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background-color: rgba(242, 246, 248, 0.96);
    border-bottom: 1px solid var(--color-border-light);
    backdrop-filter: blur(8px);
    z-index: 90;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.dark-mode .anchor-nav {
    background-color: rgba(13, 24, 32, 0.96);
    border-color: var(--color-border);
}

.anchor-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.anchor-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: 0.6rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.anchor-nav-inner::-webkit-scrollbar { display: none; }

.anchor-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.anchor-link:hover,
.anchor-link.active {
    color: var(--color-primary);
    background-color: var(--color-surface);
}

/* =============================================
   HERO SIMPLE / COMPACT
   ============================================= */
.hero-simple {
    background: linear-gradient(155deg, var(--color-off-white) 0%, var(--color-primary-pale) 100%);
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
    text-align: left;
}

.hero-simple .hero-title { font-size: 2.6rem; margin-bottom: var(--space-sm); }
.hero-simple .hero-subtitle { font-size: 1.1rem; }

.hero-compact {
    background: linear-gradient(155deg, var(--color-off-white) 0%, var(--color-surface) 100%);
    padding: calc(var(--header-height) + var(--space-md)) 0 var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.hero-compact .hero-content > .hero-subtitle:first-child {
    margin-bottom: 1.2rem;
}

.hero-content { max-width: 700px; }
.hero-compact .hero-title { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-compact .hero-subtitle { font-size: 1.15rem; font-weight: 300; color: var(--color-text); }

/* =============================================
   TEXT / CONTENT BLOCKS
   ============================================= */
.intro-text { max-width: 820px; }

.intro-text p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.03rem;
}

.content-block { max-width: 860px; }
.content-block p { margin-bottom: var(--space-md); color: var(--color-text); line-height: 1.7; }

.content-block-centered { max-width: 760px; margin: 0 auto; }
.content-block-centered p { margin-bottom: var(--space-md); color: var(--color-text); line-height: 1.7; }

.text-accent {
    color: var(--color-primary);
    font-style: italic;
}

/* =============================================
   LEARNING POINTS
   ============================================= */
.learning-points {
    background-color: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    border-left: 3px solid var(--color-primary-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--space-md) 0;
}

body.dark-mode .learning-points {
    background-color: var(--color-surface);
}

.learning-points p { color: var(--color-text-dark); margin-bottom: var(--space-xs); font-weight: 500; }

.learning-points ul { list-style: none; padding: 0; }

.learning-points li {
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    position: relative;
    color: var(--color-text);
    line-height: 1.65;
    font-size: 0.95rem;
}

.learning-points li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-primary-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* =============================================
   GRADE CARDS (Programme)
   ============================================= */
.grade-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.card-grade {
    padding: 0;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-grade:hover {
    border-color: var(--color-primary-muted);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-grade.card-highlight {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(30,95,116,0.15), 0 1px 4px rgba(30,95,116,0.08);
}

.card-header {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-off-white) 100%);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-grade.card-highlight .card-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-bottom-color: var(--color-primary-dark);
}

.card-header .card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.card-grade.card-highlight .card-header .card-title { color: #fff; }

.card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.card-grade.card-highlight .card-subtitle { color: rgba(255,255,255,0.75); }

.card-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content p {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* learning-points grows to fill space – keeps card-details+btn at the bottom */
.card-content .learning-points {
    flex: 1;
    margin-bottom: 0;
}

.card-details {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-md);
}

.card-details p {
    margin-bottom: var(--space-xs);
    font-size: 0.93rem;
    color: var(--color-text);
}

/* Fix: Format line may wrap in middle card – ensure consistent height */
.card-details > p:first-child {
    min-height: 3em;
}

.card-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-md);
}

.card-content .btn {
    margin-top: 0;
    width: 100%;
    display: block;
    text-align: center;
}

/* Dark mode grade cards */
body.dark-mode .card-grade {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

body.dark-mode .card-header {
    background: linear-gradient(135deg, var(--color-surface-mid) 0%, var(--color-surface) 100%);
    border-color: var(--color-border);
}

body.dark-mode .card-grade.card-highlight .card-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

/* =============================================
   SECTION-INITIATION / MEISTER / MISC
   ============================================= */
.section-initiation {
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-off-white) 100%);
}

body.dark-mode .section-initiation {
    background: linear-gradient(135deg, var(--color-surface-mid) 0%, var(--color-surface) 100%);
}

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

.meister-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.meister-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.meister-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.meister-image:hover img { transform: scale(1.04); }

.meister-text p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    line-height: 1.7;
}

.meister-qualities {
    background-color: var(--color-off-white);
    padding: var(--space-md);
    border-left: 3px solid var(--color-primary-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--space-md) 0;
}

.meister-qualities p { margin-bottom: var(--space-xs); }
.meister-qualities strong { color: var(--color-primary); }

.meister-qualities ul { list-style: none; padding: 0; margin-top: var(--space-xs); }

.meister-qualities li {
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    position: relative;
    color: var(--color-text);
}

.meister-qualities li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-primary-muted);
}

.centered-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) auto;
    max-width: 600px;
}

.centered-list li {
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    position: relative;
    color: var(--color-text);
    line-height: 1.7;
}

.centered-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-primary-muted);
}

.section-einladung { background-color: var(--color-off-white); }

.einladung-content {
    max-width: 720px;
    margin: 0 auto;
}

.einladung-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.einladung-content p.text-accent { text-align: center; }

.cta-button-wrapper {
    margin-top: var(--space-xl);
    text-align: center;
}

.section-legal-note {
    background-color: var(--color-surface);
    padding: var(--space-lg) 0;
}

.legal-note-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-note-content p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.legal-note-content strong { color: var(--color-text); }

.section-compact { padding: var(--space-sm) 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .grade-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 4rem;
        --header-height: 68px;
    }

    .nav {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }

    .nav-list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0; right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border-light);
        gap: var(--space-sm);
        box-shadow: var(--shadow-md);
    }

    .nav-list.active { display: flex; }
    .nav-toggle { display: flex; }
    .theme-toggle { margin-left: 0; order: 2; }
    .nav-toggle { order: 3; }

    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-with-image { min-height: 400px; }
    .hero-with-image .hero-content > .hero-subtitle:first-child {
    margin-bottom: 1.2rem;
}

.hero-content { padding: var(--space-lg); }
    .section-title { font-size: 1.75rem; }

    .kontakt-content { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-section { align-items: center; }
    .footer-links { justify-content: center; }
    .footer-backlink { text-align: center; }

    .step { flex-direction: column; gap: var(--space-xs); }
    .step-number { font-size: 2rem; }

    .back-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
    .back-to-top svg { width: 20px; height: 20px; }

    .cookie-consent-inner { flex-direction: column; text-align: center; gap: var(--space-md); }
    .cookie-consent-buttons { width: 100%; flex-direction: column; }
    .cookie-btn { width: 100%; }

    .anchor-nav-inner { justify-content: flex-start; padding: var(--space-xs) var(--space-md); }

    .hero-simple .hero-title,
    .hero-compact .hero-title { font-size: 1.9rem; }
    .hero-simple .hero-subtitle,
    .hero-compact .hero-subtitle { font-size: 1rem; }

    .meister-content { grid-template-columns: 1fr; gap: var(--space-lg); }
    .meister-image { max-width: 260px; margin: 0 auto; }

    .grade-cards { grid-template-columns: 1fr; }
    .kontakt-form { padding: var(--space-lg); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-with-image { min-height: 350px; }
    .preise-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .logo-link { height: 48px; }
    .anchor-link { font-size: 0.82rem; padding: 0.3rem 0.6rem; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    .header, .nav-toggle, .btn, .back-to-top,
    .cookie-consent, .theme-toggle, .anchor-nav { display: none; }
    .hero { padding-top: var(--space-lg); }
    .section { padding: var(--space-lg) 0; }
}
