/* --- CSS Variablen (Farbkonzept) --- */
:root {
    --bg-color: #f4f1ea;
    --text-color: #3b403d;
    --text-muted: #59615c;
    --surface: #ffffff;
    --surface-soft: #fcfbf8;
    --border-color: #8b918d;
    --accent-terracotta: #985036;
    --accent-terracotta-dark: #783c27;
    --accent-sand: #dfcdb8;
    --accent-sage: #9eb098;
    --accent-sage-dark: #586953;
    --focus-color: #7b3f2a;
    --shadow-soft: 0 12px 34px rgba(72, 60, 49, 0.08);
    --shadow-raised: 0 18px 42px rgba(72, 60, 49, 0.13);
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --transition: all 0.3s var(--ease-out);
}

/* --- Base Styles --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-tap-highlight-color: transparent;
}
html { 
    scroll-behavior: smooth; 
    -webkit-text-size-adjust: 100%; 
}
body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: var(--font-body); 
    line-height: 1.7; 
    font-size: 16px; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { 
    font-family: var(--font-heading); 
    font-weight: 600; 
    color: var(--text-color); 
    margin-bottom: 1rem; 
    text-wrap: balance;
    letter-spacing: -0.02em;
}
p { 
    margin-bottom: 1rem; 
    text-wrap: pretty;
    max-width: 68ch;
}
a { color: var(--accent-terracotta-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-terracotta); text-decoration: underline; }
.logo-link:hover,
.nav-links a:hover,
.back-btn:hover,
.card:hover,
.site-footer a:hover,
.btn:hover,
.btn-small:hover,
.btn-outline:hover,
.whatsapp-float:hover {
    text-decoration: none;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background-color: rgba(181, 108, 77, 0.22); color: var(--text-color); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 3000;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: var(--text-color);
    color: var(--surface);
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--surface); }

section[id] { scroll-margin-top: 88px; }

/* --- Layout Utility --- */
.container { width: min(92%, 1160px); margin: 0 auto; }
.section-padding { padding: clamp(4.5rem, 7vw, 7rem) 0; }
.page-padding { 
    background-color: #fff; 
    border-radius: 16px; 
    box-shadow: 0 10px 40px rgba(59, 64, 61, 0.05); 
    margin: 3rem auto; 
    padding: 4rem; 
    max-width: 800px;
}

/* --- Buttons --- */
.btn, .btn-small { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    background-color: var(--accent-terracotta-dark); 
    color: #fff; 
    padding: 12px 28px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 30px; 
    font-family: var(--font-body); 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.9rem; 
    box-shadow: 0 4px 6px rgba(181, 108, 77, 0.2); 
    border: none; 
    cursor: pointer; 
    transition: transform 0.15s var(--ease-out), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; 
}
.btn:hover, .btn-small:hover { 
    background-color: #713b27;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(113, 59, 39, 0.24);
}
.btn:active, .btn-small:active { 
    transform: translateY(0) scale(0.98); 
}
.btn:disabled, .btn-small:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: 0.8rem; }

/* --- Navigation --- */
.navbar { background-color: var(--bg-color); padding: 10px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(111, 99, 84, 0.08); box-shadow: 0 4px 18px rgba(59, 64, 61, 0.045); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 12px; color: var(--text-color); font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; transition: transform 0.15s var(--ease-out), color 0.2s ease; }
.logo-link:hover { color: var(--accent-terracotta); }
.logo-link:active { transform: scale(0.97); }
.logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; mix-blend-mode: multiply; }
.logo-text { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.nav-links { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); }
.nav-links a:not(.btn-small) { color: var(--text-color); font-weight: 500; font-size: 1rem; padding: 10px 0; position: relative; }
.nav-links a:not(.btn-small)::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-terracotta);
    transform-origin: bottom right;
    transition: transform 0.25s var(--ease-out);
}
.nav-links a:not(.btn-small):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.nav-links a:not(.btn-small):hover { color: var(--accent-terracotta); }
.nav-links a:not(.btn-small).active {
    color: var(--accent-terracotta-dark);
    text-decoration: underline;
    text-decoration-color: var(--accent-terracotta);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

/* --- Language Switch Toggle --- */
.lang-switch-item {
    list-style: none;
    display: inline-flex;
    align-items: center;
}
.lang-switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0;
    cursor: pointer;
}
.lang-label {
    cursor: pointer;
    transition: color 0.25s ease;
    user-select: none;
}
.lang-label:hover {
    color: var(--accent-terracotta-dark);
}
html[lang="de"] .de-label, .lang-de .de-label {
    color: var(--accent-terracotta);
}
html[lang="en"] .de-label, .lang-en .de-label {
    color: #737a76;
}
html[lang="en"] .en-label, .lang-en .en-label {
    color: var(--accent-terracotta);
}
html[lang="de"] .en-label, .lang-de .en-label {
    color: #737a76;
}
.lang-switch-toggle {
    background-color: transparent;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    width: 48px;
    height: 44px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.15s var(--ease-out);
    display: inline-flex;
    align-items: center;
}
.lang-switch-toggle::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 10px;
    width: 44px;
    height: 24px;
    border-radius: 20px;
    background-color: var(--accent-sand);
    transition: background-color 0.25s ease;
}
.lang-switch-toggle:active {
    transform: scale(0.97);
}
.lang-switch-thumb {
    background-color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 12px;
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 4px rgba(59, 64, 61, 0.15);
}
html[lang="en"] .lang-switch-thumb, .lang-en .lang-switch-thumb {
    transform: translateX(20px);
}
html[lang="en"] .lang-switch-toggle, .lang-en .lang-switch-toggle {
    background-color: transparent;
}
html[lang="en"] .lang-switch-toggle::before, .lang-en .lang-switch-toggle::before { background-color: var(--accent-sage); }

/* --- Hamburger Menu --- */
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 44px; 
    height: 44px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    z-index: 1001; 
    padding: 11px 7px;
}
.menu-toggle .bar { height: 3px; width: 100%; background-color: var(--text-color); border-radius: 3px; transition: all 0.3s var(--ease-out); }

/* --- Hero Section (Index) --- */
.hero { background: radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.48), transparent 38%), linear-gradient(135deg, var(--bg-color) 0%, var(--accent-sand) 100%); min-height: calc(100dvh - 69px); padding: clamp(3rem, 6vh, 4.5rem) 0; text-align: center; display: grid; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 4.2vw, 3.55rem); line-height: 1.1; margin-bottom: 1.4rem; color: var(--text-color); max-width: 24ch; margin-left: auto; margin-right: auto; }
.hero .subtitle { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.75; max-width: 58ch; margin: 0 auto 2.25rem auto; color: var(--text-muted); }
.hero-logo { width: clamp(150px, 17vw, 210px); margin: 0 auto 1.75rem auto; border-radius: 50%; box-shadow: 0 18px 42px rgba(91, 75, 61, 0.11); animation: float 7s ease-in-out infinite, fadeIn 0.9s ease-out forwards; }

/* --- Subpage Hero --- */
.subpage-hero { padding: clamp(4rem, 7vw, 5.5rem) 0; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.38), transparent 48%), linear-gradient(135deg, var(--bg-color) 0%, var(--accent-sand) 100%); animation: fadeIn 0.7s ease-out; }
.subpage-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.15; color: var(--text-color); margin-bottom: 0; }

/* --- Animations --- */
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content { animation: fadeIn 0.75s ease-out forwards; }
.animate-on-scroll { opacity: 1; transform: none; transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
html.js-reveal .animate-on-scroll { opacity: 0; transform: translateY(24px); }
html.js-reveal .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
.grid-cards .card:nth-child(1) { transition-delay: 0.04s; } .grid-cards .card:nth-child(2) { transition-delay: 0.08s; } .grid-cards .card:nth-child(3) { transition-delay: 0.12s; } .grid-cards .card:nth-child(4) { transition-delay: 0.16s; } .grid-cards .card:nth-child(5) { transition-delay: 0.2s; } .grid-cards .card:nth-child(6) { transition-delay: 0.24s; }
.service-content-wrapper .animate-on-scroll { opacity: 1; transform: none; transition: none; }

/* --- Angebot Section (Index) --- */
.section-title { text-align: center; margin: 0 auto clamp(2.75rem, 5vw, 4rem); max-width: 680px; }
.section-title h2 { font-size: clamp(2.1rem, 3vw, 2.7rem); color: var(--accent-terracotta); }
.section-title p { color: var(--text-muted); margin-left: auto; margin-right: auto; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 2.5vw, 30px); }
.card { background-color: var(--surface); padding: clamp(2rem, 3vw, 2.5rem) 2rem; border-radius: 15px; border-top: 2px solid var(--accent-sage); box-shadow: var(--shadow-soft); transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, border-top-color 0.25s ease; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text-color); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); border-top-color: var(--accent-terracotta); color: var(--text-color); }
.card:active { transform: translateY(-1px) scale(0.99); }
.card h3 { font-size: 1.3rem; color: var(--text-color); margin-bottom: 1rem; text-align: center; }
.card p { font-size: 0.95rem; margin: 0; color: var(--text-muted); }
.card-link { margin: auto auto 0; padding-top: 1.5rem; font-weight: 600; color: var(--accent-terracotta-dark); font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: max-content; transition: color 0.2s ease; }
.card-link span { transition: transform 0.3s var(--ease-out); }
.card:hover .card-link { color: var(--accent-terracotta-dark); }
.card:hover .card-link span { transform: translateX(5px); }

/* --- Subpage Content Wrappers --- */
.service-content-wrapper { max-width: 800px; margin: -2rem auto 5rem; background: var(--surface); padding: clamp(3rem, 6vw, 4.5rem); border-radius: 16px; box-shadow: var(--shadow-soft); position: relative; z-index: 10; }
.service-content-wrapper p { font-size: 1.05rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 1.5rem; }
.service-content-wrapper h3,
.service-content-wrapper > h2,
.service-content-wrapper > .info-box h2 { color: var(--accent-terracotta); margin-top: 2.5rem; font-size: 1.4rem; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-sage-dark); font-weight: 600; margin-bottom: 2.5rem; font-size: 0.95rem; padding: 10px 0; transition: transform 0.15s var(--ease-out), color 0.25s ease; }
.back-btn:hover { color: var(--accent-terracotta); }
.back-btn:active { transform: translateX(-5px) scale(0.97); }
.info-box { background-color: rgba(181, 108, 77, 0.05); padding: 1.5rem 2rem; border: 1px solid var(--accent-terracotta); border-radius: 12px; margin: 2rem 0; }
.info-box p { color: var(--text-color); margin-bottom: 0; }
.info-box h3 { margin-top: 0; }
.custom-list { list-style: none; margin-bottom: 1.5rem; }
.custom-list li { position: relative; padding-left: 20px; margin-bottom: 0.8rem; color: var(--text-muted); font-size: 1.05rem; }
.custom-list li::before { content: '•'; color: var(--accent-terracotta); position: absolute; left: 0; top: 0; font-size: 1.2rem; }

/* --- Über Mich Section --- */
.bg-accent { background-color: var(--accent-sand); }
.flex-layout { display: flex; align-items: flex-start; gap: clamp(3rem, 6vw, 5rem); }
.image-wrapper { flex: 1; position: relative; max-width: 400px; margin: 0 auto; }
.image-wrapper::before { content: ''; position: absolute; top: -16px; left: -16px; width: 100%; height: 100%; border: 2px solid rgba(181, 108, 77, 0.78); border-radius: 50%; z-index: 1; }
.portrait { border-radius: 50%; aspect-ratio: 1 / 1; position: relative; z-index: 2; object-fit: cover; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.text-wrapper { flex: 1.2; }
.text-wrapper h2 { font-size: clamp(2.1rem, 3vw, 2.65rem); color: var(--accent-terracotta); }
.text-wrapper h3 { margin-top: 2rem; font-size: 1.4rem; color: var(--text-color); }
.text-wrapper p { max-width: 68ch; color: var(--text-muted); }

/* --- Praxis Section --- */
.text-center-layout { max-width: 860px; text-align: center; background-color: var(--surface); padding: clamp(2.75rem, 6vw, 4.5rem); border-radius: 16px; box-shadow: var(--shadow-soft); margin: 0 auto; }
.text-center-layout h2 { font-size: 2.5rem; color: var(--accent-sage-dark); }
.text-center-layout p { max-width: 72ch; margin-left: auto; margin-right: auto; }
.praxis-img { width: 100%; height: 360px; object-fit: cover; border-radius: 15px; margin-bottom: 2.5rem; box-shadow: var(--shadow-soft); }
.lead { font-size: 1.2rem; font-weight: 500; color: var(--accent-terracotta); margin-bottom: 2rem; }

/* --- Kontakt Formular Section --- */
.form-container { background-color: var(--surface); padding: clamp(2rem, 5vw, 3.75rem); border-radius: 16px; box-shadow: var(--shadow-soft); max-width: 860px; margin: 0 auto; }
.form-row { display: flex; gap: 20px; margin-bottom: 1.5rem; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group.full-width { margin-bottom: 1.5rem; }
.form-group label { font-weight: 500; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-color); }
.form-group input, .form-group textarea { width: 100%; min-height: 48px; font-family: var(--font-body); color: var(--text-color); padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; background-color: var(--surface-soft); transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; -webkit-appearance: none; appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #68706b; opacity: 1; }
.form-group input:hover, .form-group textarea:hover { border-color: #aaa197; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--focus-color); background-color: #fff; box-shadow: 0 0 0 3px rgba(123, 63, 42, 0.16); }
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group fieldset, fieldset.form-group { min-width: 0; border: 0; }
.form-group legend, fieldset.form-group > legend { font-weight: 500; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-color); }

/* --- 404 Spezifisches Styling --- */
main { flex-grow: 1; }
.error-container { text-align: center; background-color: #fff; padding: 5rem 3rem; border-radius: 16px; box-shadow: 0 10px 40px rgba(59, 64, 61, 0.05); max-width: 600px; width: 90%; margin: 4rem auto; border-top: 2px solid var(--accent-terracotta); }
.error-code { font-size: 6rem; font-family: var(--font-heading); color: var(--accent-sand); line-height: 1; margin-bottom: 0.5rem; }
.error-title { font-size: 2.2rem; color: var(--accent-terracotta); margin-bottom: 1.5rem; }
.error-text { font-size: 1.1rem; color: #5a625e; margin-bottom: 2.5rem; }

/* --- Pop-Up Modal --- */
.modal-overlay { display: none; position: fixed; z-index: 2000; inset: 0; width: 100%; height: 100%; padding: 1rem; background-color: rgba(44, 49, 46, 0.76); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s ease; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { background-color: var(--surface); padding: 3rem 2rem; border-radius: 16px; text-align: center; max-width: 450px; width: 100%; box-shadow: 0 24px 60px rgba(20, 25, 22, 0.24); position: relative; transform: translateY(12px) scale(0.98); opacity: 0; transition: transform 0.3s var(--ease-out), opacity 0.25s ease; border-top: 2px solid var(--accent-sage); }
.modal-overlay.show .modal-content { transform: scale(1); opacity: 1; }
.modal-content h3 { color: var(--accent-terracotta); margin-bottom: 1rem; font-size: 1.8rem; }
.modal-content p { margin-bottom: 2rem; color: var(--text-color); }
.close-modal-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    color: #a0a0a0;
    cursor: pointer;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
    margin-right: -10px;
    padding: 0;
    background: transparent;
    border: 0;
    font-family: var(--font-body);
}
.close-modal-icon:hover { color: var(--accent-terracotta); }

/* --- Footer --- */
.site-footer { background-color: var(--text-color); color: var(--bg-color); padding: 4.5rem 0 2rem; margin-top: auto; }
.site-footer h4 { color: var(--accent-sand); margin-bottom: 1.5rem; }
.site-footer p, .site-footer a { color: #ece8e1; font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent-terracotta); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 3rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(223, 205, 184, 0.2); padding-top: 2rem; font-size: 0.85rem; color: #a0a0a0; margin-top: 3rem;}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    right: 30px;
    background-color: var(--accent-sage-dark);
    border-radius: 50px;
    box-shadow: 0px 4px 15px rgba(59, 64, 61, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s var(--ease-out), background-color 0.25s ease, box-shadow 0.25s ease;
    animation: none;
}
.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: var(--accent-terracotta);
    box-shadow: 0px 6px 20px rgba(181, 108, 77, 0.4);
}
.whatsapp-float:active {
    transform: translateY(-5px) scale(0.97);
}
.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #fff;
    transform: translateZ(0);
}
@keyframes pulse-sage {
    0% { box-shadow: 0 0 0 0 rgba(158, 176, 152, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(158, 176, 152, 0); }
    100% { box-shadow: 0 0 0 0 rgba(158, 176, 152, 0); }
}

/* --- Multi-language Translation --- */
html[lang="de"] [lang="en"], .lang-de [lang="en"] { display: none !important; }
html[lang="en"] [lang="de"], .lang-en [lang="de"] { display: none !important; }

/* --- Reduced Motion Support --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html.js-reveal .animate-on-scroll,
    .animate-on-scroll { opacity: 1 !important; transform: none !important; }
    .hero-logo, .whatsapp-float, .teaser-icon, .capacity-node.highlighted .capacity-node-circle { animation: none !important; }
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .flex-layout { flex-direction: column; align-items: center; }
    .subpage-hero h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
    .menu-toggle { display: flex; }
    body.menu-open { overflow: hidden; }
    body.menu-open::before { content: ''; position: fixed; inset: 0; z-index: 998; background-color: rgba(43, 48, 45, 0.38); }
    .nav-links { position: fixed; top: 0; right: 0; width: min(86vw, 340px); height: 100vh; height: 100dvh; padding: 96px 28px 32px; background-color: var(--bg-color); flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0.4rem; overflow-y: auto; box-shadow: -12px 0 34px rgba(38, 42, 39, 0.15); transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform 0.35s var(--ease-out), visibility 0s linear 0.35s; z-index: 1000; }
    .nav-links.active { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
    .nav-links li {
        opacity: 0;
        transform: translateX(12px);
        transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    }
    .nav-links a:not(.btn-small) { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; }
    .nav-links .btn-small { width: 100%; margin-top: 0.75rem; }
    .nav-links .lang-switch-wrapper { justify-content: center; min-height: 52px; }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.04s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.07s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.13s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.16s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.19s; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .text-center-layout, .form-container, .service-content-wrapper { padding: 2.5rem 1.5rem; }
    .service-content-wrapper { margin-top: -1rem; }
    .image-wrapper { width: 100%; max-width: 350px; margin-bottom: 2rem; }
}

/* --- Responsive Design (Desktop Protection) --- */
@media (min-width: 901px) and (max-width: 1100px) {
    .nav-links { gap: 15px; }
    .logo { width: 40px; height: 40px; flex-basis: 40px; }
    .logo-text { font-size: 1.25rem; }
    .logo-link { gap: 10px; }
}
@media (max-width: 768px) {
    .page-padding { padding: 2rem; }
    .error-code { font-size: 4rem; } 
    .error-title { font-size: 1.8rem; } 
    .error-container { padding: 3rem 2rem; }
    .whatsapp-float { width: 55px; height: 55px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 20px; }
    .whatsapp-icon { width: 28px; height: 28px; }
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 1.5rem; }
    .praxis-img { height: 200px; margin-bottom: 1.5rem; }
    .hero { min-height: calc(100dvh - 69px); }
    .hero-logo { margin-bottom: 1.5rem; }
    .logo { width: 44px; height: 44px; flex-basis: 44px; }
    .logo-text { font-size: 1.22rem; }
    .section-padding { padding: 4rem 0; }
}
@media (max-width: 400px) {
    .subpage-hero h1 { font-size: 1.7rem; }
}

/* --- Cookie Consent Banner (GDPR Compliance) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -10px 30px rgba(59, 64, 61, 0.1);
    z-index: 2000;
    padding: 1.5rem 0;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--accent-sand);
    transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    animation: slideUp 0.5s var(--ease-out);
}
.cookie-banner.hide {
    transform: translateY(100%);
    opacity: 0;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.cookie-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 70ch;
}
.cookie-content a {
    text-decoration: underline;
    font-weight: 500;
}
.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-terracotta);
    color: var(--accent-terracotta);
    box-shadow: none;
}
.btn-outline:hover {
    background-color: var(--accent-terracotta);
    color: #fff;
    box-shadow: 0 4px 6px rgba(181, 108, 77, 0.15);
}
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
    .cookie-buttons {
        justify-content: center;
    }
}

/* --- FAQ Accordion Section --- */
.faq-section {
    margin-top: 4rem;
    border-top: 1px solid var(--accent-sand);
    padding-top: 3rem;
}
.faq-section h2 {
    font-size: 2rem;
    color: var(--accent-terracotta);
    margin-bottom: 2rem;
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
.faq-item {
    background-color: #fcfbfa;
    border: 1px solid #e0dcd5;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: var(--accent-sage);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.25s ease;
}
.faq-question:hover {
    background-color: rgba(158, 176, 152, 0.05);
}
.faq-question::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--accent-terracotta);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    pointer-events: none;
    transition: grid-template-rows 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.faq-answer-content {
    overflow: hidden;
    min-height: 0;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Sleek Capacity Horizontal Strip --- */
.capacity-strip {
    background-color: #fcfbfa; /* Slightly off-white light beige */
    border-top: 1px solid rgba(223, 205, 184, 0.4);
    border-bottom: 1px solid rgba(223, 205, 184, 0.4);
    padding: 1.5rem 0;
}
.capacity-strip-inner {
    max-width: 850px;
    width: 90%;
    margin: 0 auto;
}
.capacity-strip-nested {
    border-top: 1px solid rgba(223, 205, 184, 0.3);
    border-bottom: 1px solid rgba(223, 205, 184, 0.3);
    padding: 1.5rem 0;
    max-width: 850px;
    width: 100%;
    margin: 2.5rem auto;
}
.capacity-strip-header {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
}
.capacity-strip-title {
    font-family: var(--font-heading);
    font-size: 1.2rem; /* Sleeker, smaller title */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-align: center;
}
.capacity-strip-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #5a625e;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.booked { background-color: var(--accent-terracotta); }
.legend-dot.limited { background-color: #c2ae99; }
.legend-dot.free { background-color: var(--accent-sage); }

/* Swipeable wrapper for horizontal timeline on mobile */
.capacity-timeline-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbars but keep swipe functional */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.capacity-timeline-wrapper:focus-visible { outline-offset: 4px; border-radius: 10px; }
.capacity-timeline-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.capacity-timeline-container {
    min-width: 760px; /* Preserves flat horizontal timeline alignment */
    padding: 1.5rem 0;
    margin: 0 auto;
}

.capacity-timeline-nodes {
    display: flex;
    justify-content: space-between;
    padding: 0 4%;
}

/* Node Element */
.capacity-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    transition: transform 0.25s var(--ease-out);
    cursor: default;
}
.capacity-node:hover {
    transform: translateY(-3px);
}

.capacity-node-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(59, 64, 61, 0.2);
    margin: 8px 0;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.capacity-node:hover .capacity-node-circle {
    transform: scale(1.25);
    box-shadow: 0 4px 8px rgba(59, 64, 61, 0.35);
}

/* Node statuses coloring circles */
.capacity-node.booked .capacity-node-circle { background-color: var(--accent-terracotta); }
.capacity-node.limited .capacity-node-circle { background-color: #c2ae99; }
.capacity-node.free .capacity-node-circle { background-color: var(--accent-sage); }
.capacity-node.loading .capacity-node-circle,
.capacity-node.unknown .capacity-node-circle { background-color: #737a76; }
.capacity-node.error .capacity-node-circle { background-color: #8d4a3a; }

/* Node Text Details */
.capacity-node-month {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}
.capacity-node-year {
    font-size: 0.7rem;
    color: #7b837f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.capacity-node-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    white-space: nowrap;
}

.capacity-node.booked .capacity-node-status {
    background-color: rgba(181, 108, 77, 0.1);
    color: var(--accent-terracotta);
}
.capacity-node.limited .capacity-node-status {
    background-color: rgba(194, 174, 153, 0.2);
    color: #8c765c;
}
.capacity-node.free .capacity-node-status {
    background-color: rgba(158, 176, 152, 0.15);
    color: #465641;
}
.capacity-node.loading .capacity-node-status,
.capacity-node.unknown .capacity-node-status { background-color: #eceae5; color: #4f5652; }
.capacity-node.error .capacity-node-status { background-color: #f1dfda; color: #71382c; }

/* Drag/Swipe hint shown only on touch screens */
.capacity-swipe-hint {
    display: none;
    text-align: center;
    font-size: 0.75rem;
    color: #a0a5a2;
    margin-top: 0.5rem;
}

/* --- Pregnancy Calculator Section --- */
.calculator-section {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(223, 205, 184, 0.3);
}
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 950px;
    margin: 2rem auto 0 auto;
}
.calculator-input-grid { max-width: none; margin: 1.75rem 0 1.5rem; gap: 1.5rem; }
.calculator-card, .milestones-card {
    background-color: #fcfbfa;
    border: 1px solid #e0dcd5;
    border-radius: 16px;
    padding: 2rem;
}
.calc-date-input {
    width: 100%;
    padding: 0.8rem;
    border: 1.5px solid #d2cbc0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-color);
    transition: border-color 0.25s ease;
}
.calc-date-input:focus {
    outline: none;
    border-color: var(--focus-color);
    box-shadow: 0 0 0 3px rgba(123, 63, 42, 0.16);
}
#calc-result-edd { color: var(--accent-sage-dark) !important; }
.calc-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1.5px dashed #d2cbc0;
    animation: fadeIn 0.4s var(--ease-out);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-box {
    margin-bottom: 1rem;
}
.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7b837f;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}
.result-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-terracotta);
    font-weight: 600;
}
.result-value-sub {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 500;
}
.calc-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}
.calc-actions button {
    flex: 1;
    justify-content: center;
}

/* Milestones Timeline inside Calculator */
.milestones-card h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.milestones-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}
.milestones-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: rgba(223, 205, 184, 0.5);
}
.milestone-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
}
.milestone-bullet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid var(--accent-sand);
    flex-shrink: 0;
    margin-top: 4px;
    z-index: 2;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.milestone-item.active .milestone-bullet {
    background-color: var(--accent-sage);
    border-color: var(--accent-sage);
}
.milestone-text {
    flex-grow: 1;
}
.milestone-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}
.milestone-desc {
    font-size: 0.8rem;
    color: #6a716c;
    margin-top: 2px;
}
.milestone-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-terracotta);
    margin-top: 3px;
    transition: opacity 0.3s ease;
}

/* --- ZIP Code Checker Widget --- */
/* --- Deine Schwangerschaft Page Styles --- */

/* Calculator Disclaimer */
.calc-disclaimer {
    font-size: 0.75rem;
    color: #6a716c;
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.4;
    text-align: left;
}

/* --- Geburtstermin-Rechner Page Styles --- */

/* Unified Vertical Timeline Container */
.timeline-container {
    position: relative;
    max-width: 850px;
    margin: 3.5rem auto 0 auto;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

/* Timeline Vertical Line Track */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #f3efe9;
    transform: translateX(-50%);
    border-radius: 2px;
    overflow: hidden;
    z-index: 1;
}

/* Timeline Interactive Progress Filling Bar */
.timeline-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-sage), var(--accent-terracotta));
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.8s var(--ease-out);
}

/* Timeline Milestone Item */
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Alternating Alignment on Desktop */
.timeline-item:nth-child(even) {
    align-self: flex-start;
    padding-right: 2.5rem;
}
.timeline-item:nth-child(odd) {
    align-self: flex-end;
    padding-left: 2.5rem;
}

/* Bullet Emojis Centered */
.timeline-bullet {
    position: absolute;
    top: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 3px 8px rgba(143, 133, 119, 0.12);
    transition: transform 0.4s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease;
    z-index: 3;
}
.baby-milestone .timeline-bullet {
    border: 3px solid rgba(143, 168, 155, 0.4);
}
.mama-milestone .timeline-bullet {
    border: 3px solid rgba(181, 108, 77, 0.35);
}
.timeline-item:nth-child(even) .timeline-bullet {
    right: -22px;
}
.timeline-item:nth-child(odd) .timeline-bullet {
    left: -22px;
}

/* Timeline Content Card */
.timeline-content {
    background-color: #ffffff;
    border: 1.5px solid #e0dcd5;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(143, 133, 119, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    transform: none;
}
.timeline-item:hover .timeline-content {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(143, 133, 119, 0.06);
}

/* Active Highlighted States */
.timeline-item.active .timeline-content {
    opacity: 1;
    transform: scale(1);
    background-color: #fcfbfa;
}

/* Color Coding Accents: Baby (Sage Green) vs Mama (Terracotta) */
.baby-milestone.active .timeline-content {
    border-color: var(--accent-sage);
    box-shadow: 0 4px 15px rgba(143, 168, 155, 0.15);
}
.baby-milestone.active .timeline-bullet {
    border-color: var(--accent-sage);
    background-color: rgba(143, 168, 155, 0.05);
    transform: scale(1.1);
}
.baby-milestone.active .timeline-content h3 {
    color: #4a5c53;
}

.mama-milestone.active .timeline-content {
    border-color: var(--accent-terracotta);
    box-shadow: 0 4px 15px rgba(181, 108, 77, 0.12);
}
.mama-milestone.active .timeline-bullet {
    border-color: var(--accent-terracotta);
    background-color: rgba(181, 108, 77, 0.05);
    transform: scale(1.1);
}
.mama-milestone.active .timeline-content h3 {
    color: var(--accent-terracotta);
}

/* Timeline Badges */
.timeline-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}
.baby-milestone .timeline-badge {
    background-color: rgba(143, 168, 155, 0.15);
    color: #4a5c53;
}
.baby-milestone.active .timeline-badge {
    background-color: var(--accent-sage);
    color: #2f3d2c;
}
.mama-milestone .timeline-badge {
    background-color: rgba(181, 108, 77, 0.12);
    color: #7d3d23;
}
.mama-milestone.active .timeline-badge {
    background-color: var(--accent-terracotta);
    color: #ffffff;
}

/* Week label & dates */
.timeline-week {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6a716c;
    margin-bottom: 0.25rem;
    display: block;
}
.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.timeline-content p {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5a625e;
    margin-bottom: 0.75rem;
}
.milestone-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-terracotta);
    background-color: #f3efe9;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .timeline-line {
        left: 2rem !important;
        transform: none !important;
    }
    .timeline-item {
        width: 100% !important;
        align-self: flex-start !important;
        padding-left: 4.5rem !important;
        padding-right: 0 !important;
        margin-bottom: 2.5rem !important;
    }
    .timeline-item:nth-child(even) .timeline-bullet,
    .timeline-item:nth-child(odd) .timeline-bullet {
        left: 0.5rem !important;
        right: auto !important;
    }
    .timeline-content {
        padding: 1.25rem;
    }
}

/* FAQ Accordion System */
.faq-section {
    background-color: #fcfbfa;
    border-bottom: 1px solid rgba(223, 205, 184, 0.3);
}
.faq-container {
    max-width: 800px;
    margin: 2.5rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background-color: #ffffff;
    border: 1px solid #e0dcd5;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: #c2ae99;
    box-shadow: 0 4px 12px rgba(143, 133, 119, 0.02);
}
/* Personal Support CTA */
.pregnancy-cta-card {
    background-color: rgba(181, 108, 77, 0.04);
    border: 1.5px solid rgba(181, 108, 77, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 750px;
    margin: 4rem auto 0 auto;
    box-shadow: 0 4px 15px rgba(181, 108, 77, 0.02);
}
.pregnancy-cta-card h3 {
    font-size: 1.5rem;
    color: var(--accent-terracotta);
    margin-bottom: 0.75rem;
}
.pregnancy-cta-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    max-width: 580px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}

/* --- Custom Pill Selector System --- */
.selector-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #f3efe9;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 4px;
    width: fit-content;
    margin-top: 6px;
}
.selector-pill {
    background: none;
    border: none;
    min-height: 44px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #6a716c;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.2s ease;
    box-shadow: none;
}
.selector-pill:hover {
    color: var(--text-color);
}
.selector-pill.active,
.selector-option input:checked + .selector-pill {
    background-color: var(--accent-terracotta);
    color: #fff;
    box-shadow: 0 2px 5px rgba(192, 108, 92, 0.2);
}
.selector-option { position: relative; display: flex; flex: 1; cursor: pointer; }
.selector-option input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.selector-option .selector-pill { width: 100%; }
.selector-option input:focus-visible + .selector-pill { outline: 3px solid var(--focus-color); outline-offset: 3px; }

/* --- Custom Select Dropdowns --- */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 6px;
}
.custom-select-wrapper select {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: #fff;
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.2s ease;
}
.custom-select-wrapper select:focus {
    outline: none;
    border-color: var(--focus-color);
    box-shadow: 0 0 0 3px rgba(123, 63, 42, 0.16);
}
/* Terracotta custom arrow */
.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23c06c5c' d='M6 7.4L0.6 2l1.4-1.4L6 4.6l4-4L11.4 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    transition: transform 0.25s ease;
}
.custom-select-wrapper:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

/* --- Smart Intake Form Radio Cards --- */
.intake-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.intake-radio-card {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}
.intake-radio-card:hover {
    border-color: #c2ae99;
    transform: translateY(-1px);
}
.intake-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.intake-radio-card:has(input[type="radio"]:focus-visible) {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}
.radio-custom-circle {
    width: 18px;
    height: 18px;
    border: 2.5px solid #d2cbc0;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    background-color: #fff;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
.intake-radio-card:hover .radio-custom-circle {
    border-color: #c2ae99;
}
/* Selected state check */
.intake-radio-card input[type="radio"]:checked + .radio-custom-circle {
    border-color: var(--accent-terracotta);
}
.intake-radio-card input[type="radio"]:checked + .radio-custom-circle::after {
    content: '';
    position: absolute;
    left: 2.5px;
    top: 2.5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-terracotta);
    animation: scaleIn 0.2s var(--ease-out);
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.intake-radio-card:has(input[type="radio"]:checked) {
    border-color: var(--accent-terracotta);
    background-color: rgba(192, 108, 92, 0.03);
}
.radio-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.radio-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}
.radio-card-desc {
    font-size: 0.75rem;
    color: #6a716c;
    line-height: 1.3;
}

/* Pulse animation on highlight in calendar */
@keyframes pulseHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.capacity-node.highlighted {
    transform: translateY(-3px);
}
.capacity-node.highlighted .capacity-node-circle {
    animation: pulseHighlight 1.5s infinite ease-in-out;
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 14px rgba(192, 108, 92, 0.7);
}

@media (max-width: 768px) {
    .capacity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .capacity-swipe-hint {
        display: block;
    }
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .calc-actions {
        flex-direction: column;
        gap: 8px;
    }
    .selector-group {
        width: 100%;
        justify-content: space-between;
    }
    .selector-pill {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
    }
}

/* --- Calculator Teaser Homepage Section --- */
.calculator-teaser-section {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(223, 205, 184, 0.3);
}
.teaser-card {
    background: linear-gradient(135deg, rgba(181, 108, 77, 0.04) 0%, rgba(223, 205, 184, 0.12) 100%);
    border: 1.5px solid rgba(181, 108, 77, 0.15);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(181, 108, 77, 0.03);
    transition: box-shadow 0.3s ease;
}
.teaser-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}
.teaser-card h2 {
    font-size: 2.2rem;
    color: var(--accent-terracotta);
    margin-bottom: 0.75rem;
}
.teaser-desc {
    font-size: 1.05rem;
    color: #5a625e;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}
.teaser-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 1.25rem;
    align-items: flex-end;
    max-width: 750px;
    margin: 0 auto;
}
.teaser-form-grid .form-group {
    text-align: left;
}
.teaser-form-grid label {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6a716c;
    margin-bottom: 8px;
}
.teaser-submit-btn {
    padding: 0 32px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .teaser-card {
        padding: 2.5rem 1.5rem;
    }
    .teaser-card h2 {
        font-size: 1.8rem;
    }
    .teaser-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .teaser-submit-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    .calc-results-wrapper .btn {
        width: 100%;
        padding-inline: 1rem;
        font-size: 0.82rem;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }
}

/* --- Calculator Results Animation --- */
.calc-results-wrapper {
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(15px);
}
.calc-results-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Reading Progress Bar --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-terracotta);
    z-index: 2001;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

@supports (animation-timeline: scroll()) {
    .scroll-progress-bar {
        animation: scrollProgress auto linear;
        animation-timeline: scroll(root block);
    }
}

@keyframes scrollProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress-bar { display: none; }
}
