:root {
    --bg: #fbfaff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #7c3aed;
    --secondary: #ec4899;
    --card: #ffffff;
    --soft: #f3e8ff;
    --border: #eadcfb;
    --success: #047857;
    --danger: #b91c1c;
    --shadow: 0 24px 60px rgba(31, 41, 55, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% 0%, #f3e8ff 0%, transparent 34%), var(--bg);
    line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(234, 220, 251, .8);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img {
    width: 380px;
    max-width: 38vw;
    height: auto;
    display: block;
}
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.nav-links a { text-decoration: none; color: #374151; font-weight: 600; }
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31,41,55,.08);
    color: var(--primary);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button, button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 12px 28px rgba(124,58,237,.25);
}
.button.secondary { background: #fff; color: var(--primary); border: 1px solid var(--border); box-shadow: none; }
.hero { padding: 82px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 38px; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.03; margin: 12px 0 20px; letter-spacing: -0.055em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.04em; }
h3 { font-size: 21px; margin: 0 0 8px; }
.lead { font-size: 20px; color: #4b5563; max-width: 700px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.pulse {
    width: 100%; aspect-ratio: 1/1; border-radius: 32px;
    background: radial-gradient(circle at center, rgba(236,72,153,.18), rgba(124,58,237,.10) 40%, rgba(255,255,255,.9) 70%);
    display: grid; place-items: center; position: relative; overflow: hidden;
}
.pulse::before, .pulse::after {
    content: ""; position: absolute; width: 58%; height: 58%; border: 2px solid rgba(124,58,237,.22); border-radius: 50%;
    animation: pulse 3.2s infinite ease-out;
}
.pulse::after { animation-delay: 1.2s; }
.pulse span { width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: var(--shadow); }
@keyframes pulse { from { transform: scale(.82); opacity: 1; } to { transform: scale(1.75); opacity: 0; } }
.section { padding: 74px 0; }
.section.soft { background: rgba(255,255,255,.62); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start; }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(31,41,55,.07);
}
.card p { color: var(--muted); margin: 0; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; color: #374151; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 900; }
.notice { background: #fffbeb; border: 1px solid #fde68a; padding: 18px; border-radius: 20px; color: #78350f; }
.booking-box { background: #fff; border-radius: 28px; border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); }
.booking-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.booking-controls input, .booking-form input, .booking-form textarea {
    width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; font: inherit; background: #fff;
}
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 18px 0; }
.slot { border: 1px solid var(--border); background: #fff; color: var(--primary); box-shadow: none; border-radius: 16px; }
.slot[disabled] { opacity: .42; color: #9ca3af; cursor: not-allowed; background: #f9fafb; }
.slot.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.booking-form { display: grid; gap: 12px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.message { padding: 14px 16px; border-radius: 16px; display: none; }
.message.ok { display: block; background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
.message.error { display: block; background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.footer { padding: 36px 0; color: var(--muted); border-top: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-login { max-width: 420px; margin: 80px auto; }
@media (max-width: 860px) {
    .hero-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }

    .nav {
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }

    .logo img {
        width: 310px;
        max-width: calc(100vw - 92px);
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav > .button {
        display: none;
    }

    .nav-links {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        margin-top: 4px;
        background: rgba(255,255,255,.96);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: 0 16px 38px rgba(31,41,55,.10);
        font-size: 15px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid rgba(234,220,251,.85);
        text-align: center;
    }

    .form-row { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
}

@media (max-width: 430px) {
    .container { width: min(1120px, calc(100% - 24px)); }

    .logo img {
        width: 270px;
        max-width: calc(100vw - 86px);
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}


/* Terminart-Auswahl */
.appointment-type {
    display: grid;
    gap: 10px;
    margin: 4px 0 2px;
}

.appointment-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.appointment-option:hover {
    border-color: rgba(124,58,237,.45);
    box-shadow: 0 10px 22px rgba(31,41,55,.06);
    transform: translateY(-1px);
}

.appointment-option input {
    width: auto;
    margin-top: 5px;
    accent-color: var(--primary);
}

.appointment-option span {
    display: grid;
    gap: 2px;
}

.appointment-option small {
    color: var(--muted);
    line-height: 1.35;
}


/* Unterseiten */
.subpage-hero {
    padding: 82px 0 54px;
    background: radial-gradient(circle at 10% 0%, rgba(236,72,153,.12), transparent 34%),
                radial-gradient(circle at 80% 10%, rgba(124,58,237,.13), transparent 34%);
}

.prose {
    max-width: 820px;
}

.prose p {
    color: #4b5563;
    margin: 0 0 16px;
}

.prose h2 {
    margin-top: 0;
}

.quote-card {
    background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(236,72,153,.10));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.quote-card p {
    color: #374151;
    font-size: 18px;
    margin: 0;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.cta-panel p {
    color: var(--muted);
    margin: 0;
}

.source-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding-left: 20px;
    color: #4b5563;
}

@media (max-width: 860px) {
    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Rechtliche Bestätigung im Terminformular */
.legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.legal-consent input {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.legal-consent a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.legal-consent a:hover {
    text-decoration: underline;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #4b5563;
    font-weight: 700;
    text-decoration: none;
}
.footer-links a:hover { color: var(--primary); }
.legal-page { max-width: 920px; }
.legal-card { display: grid; gap: 8px; }
.legal-card h2 {
    font-size: 24px;
    margin: 18px 0 0;
    letter-spacing: -0.02em;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: #4b5563; margin: 0 0 8px; }
.legal-card a, .legal-consent a { color: var(--primary); font-weight: 800; }
.legal-consent input {
    width: auto;
    margin-top: 3px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

/* Hero-Portrait auf der Startseite */
.hero-image-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.hero-image-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(236,72,153,.13));
    pointer-events: none;
    z-index: 1;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 860px) {
    .hero-image-card {
        max-width: 520px;
        margin: 0 auto;
    }
}
