@import 'tokens/colors.css';
@import 'tokens/typography.css';
@import 'tokens/spacing.css';
@import 'tokens/effects.css';
@import 'tokens/motion.css';

/* Self-hosted fonts (DSGVO: kein Drittanbieter-Request mehr an fonts.googleapis.com/gstatic.com).
   Dateien in assets/fonts/, Latin + Latin-Extended Subsets (deckt Deutsch inkl. Umlaute ab).
   @font-face muss NACH den @import-Regeln stehen — @import ist sonst laut CSS-Spec ungültig. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/bricolage-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/bricolage-500-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/bricolage-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/bricolage-600-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/bricolage-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/bricolage-700-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/quicksand-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/quicksand-500-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/quicksand-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/quicksand-600-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/quicksand-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/quicksand-700-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/nunito-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/nunito-400-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/nunito-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/nunito-600-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/nunito-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/nunito-700-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-800-latinext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body{background:var(--surface-page);color:var(--text-primary);font-family:var(--font-body);margin:0;}
a{color:var(--brand-primary-hover);text-decoration:none;}
a:hover{color:var(--brand-primary-active);text-decoration:underline;}

/* === Malsch/Rheinstetten site chrome (Phase 1) === */
/* .site-header, .site-nav, .footer-nav, .location-switcher, .site-footer superseded by the
   Phase 3 chrome block below (header/footer rebuilt to match the approved prototype) */
.breadcrumb ol { display: flex; list-style: none; gap: var(--space-2); padding: 0; margin: 0 0 var(--space-4); font-size: 0.875rem; color: var(--green-800); }
.faq-block { margin-top: var(--space-8); }
.faq-item { border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); padding: var(--space-4); margin-bottom: var(--space-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.gallery-item { overflow: hidden; border-radius: var(--radius-xl); }
.gallery-item img { width: 100%; border-radius: var(--radius-xl); }
.gallery-item:focus-visible { outline: 3px solid var(--green-600, #2f6b4f); outline-offset: 2px; }

/* Bento-style featured gallery (homepage "Einblicke") */
.home-gallery .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
.home-gallery .gallery-item { position: relative; margin: 0; }
.home-gallery .gallery-item img { height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-standard, ease); }
.home-gallery .gallery-item:hover img { transform: scale(1.05); }
.home-gallery .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.home-gallery .gallery-item:nth-child(6) { grid-column: span 4; }
@media (max-width: 760px) {
  .home-gallery .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .home-gallery .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .home-gallery .gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
}

/* === Typography & content layout (closes the gap: chrome was styled, main content wasn't) === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--fw-h2); color: var(--text-primary); margin: 0 0 var(--space-4); }
main h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-top: var(--space-8); }
.eyebrow + h2 { margin-top: 0; }
main h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
p { font-size: var(--fs-body); line-height: var(--lh-body); margin: 0 0 var(--space-4); }
main { max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--content-pad); }
.lead { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--text-secondary); }
main section { margin-bottom: var(--space-8); }
.topic-list { margin: 0 0 var(--space-5); padding-left: 1.3em; }
.topic-list li { margin-bottom: 8px; line-height: var(--lh-body); }
.source-note { font-size: var(--fs-small); color: var(--text-muted); font-style: italic; margin-top: var(--space-5); }
.area-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-4) 0; }
.joint-compare { margin: var(--space-6) 0; }
.joint-compare img { width: 100%; display: block; border-radius: var(--radius-lg); background: var(--cream-50); }
.joint-compare figcaption { display: flex; justify-content: space-around; margin-top: 12px; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-small); }
.joint-compare figcaption .healthy { color: var(--brand-primary-hover); }
.joint-compare figcaption .arthritis { color: var(--brick-600); }
.cluster-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cluster-links li { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); min-width: 0; overflow-wrap: break-word; } /* Silbentrennung nur auf schmalen Handys, siehe Ende der Datei */
.cluster-links a { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); }
a.button, button.button, button[type="submit"] {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body);
  padding: 12px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  background: var(--brand-primary); color: var(--text-on-brand); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard);
}
a.button:hover, button.button:hover, button[type="submit"]:hover { background: var(--brand-primary-hover); color: var(--text-on-brand); text-decoration: none; }
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 480px; }
.contact-form label { display: flex; flex-direction: column; gap: var(--space-1); font-weight: 600; color: var(--text-secondary); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: var(--fs-body); padding: var(--space-3);
  border: var(--border-w) solid var(--border-default); border-radius: var(--radius-md);
  background: var(--surface-card); color: var(--text-primary);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; box-shadow: var(--shadow-focus); border-color: var(--brand-primary); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* === Phase 3: hero band, rebuilt header/footer, buttons, icons === */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253,251,246,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-subtle); padding: 0; }
.site-header__inner { max-width: var(--content-max); margin: 0 auto; padding: 14px var(--content-pad); display: flex; align-items: center; gap: var(--space-4); flex-wrap: nowrap; }
.site-header__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; flex-shrink: 0; }
.site-header__logo-img { height: 42px; width: auto; display: block; }
.site-header__wordmark { font-family: var(--font-display); line-height: 1.1; }
.site-header__wordmark .line1 { display: block; font-weight: 700; font-size: 16px; color: var(--text-primary); }
.site-header__wordmark .line2 { display: block; font-weight: 600; font-size: 14px; color: var(--brand-primary); }
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav ul { display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.site-nav li { position: relative; display: flex; align-items: center; }
.site-nav a { padding: 9px 10px; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-small); color: var(--text-secondary); white-space: nowrap; }
.site-nav a[aria-current="page"] { background: var(--green-100); color: var(--brand-primary-hover); text-decoration: none; }

.site-nav .nav-caret-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -8px; border: none; background: none; color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-pill); }
.site-nav .nav-caret-btn:hover { background: var(--green-100); color: var(--brand-primary-hover); }
.site-nav .nav-caret { width: 14px; height: 14px; transition: transform var(--dur-fast, .18s) var(--ease-standard, ease); pointer-events: none; }
.site-nav li.nav-has-children:hover .nav-caret,
.site-nav li.nav-has-children.is-open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 280px; z-index: 60;
  background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; margin-top: -4px; opacity: 0; visibility: hidden;
  transition: opacity .18s var(--ease-standard, ease), margin-top .18s var(--ease-standard, ease), visibility .18s;
}
.nav-dropdown--wide { min-width: 520px; }
.nav-dropdown__eyebrow { font-family: var(--font-body); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; font-weight: 800; color: var(--brand-primary-hover); padding: 0 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border-subtle); }
.nav-dropdown ul { display: block; list-style: none; margin: 0; padding: 0; } /* sonst greift .site-nav ul (flex/wrap/zentriert) auch hier */
.nav-dropdown__columns { display: flex; gap: 28px; }
.nav-dropdown__columns .nav-dropdown__col { flex: 1; min-width: 0; }
.nav-dropdown__columns + .nav-dropdown__all { margin-top: 14px; }
.nav-dropdown__group-label { font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--text-muted); padding: 0 10px 4px; }
.nav-dropdown li { position: static; display: block; }
.nav-dropdown a { display: block; padding: 8px 10px; border-radius: var(--radius-md); font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; color: var(--text-secondary); white-space: normal; line-height: 1.3; transition: background var(--dur-fast, .15s) var(--ease-standard, ease), padding-left var(--dur-fast, .15s) var(--ease-standard, ease), color var(--dur-fast, .15s) var(--ease-standard, ease); }
.nav-dropdown a:hover { background: var(--green-100); color: var(--brand-primary-hover); text-decoration: none; padding-left: 16px; }
.nav-dropdown__all { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 10px 0; border-top: 1px solid var(--border-subtle); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-small); color: var(--brand-primary-hover); }
.nav-dropdown__all i { width: 14px; height: 14px; transition: transform var(--dur-fast, .15s) var(--ease-standard, ease); }
.nav-dropdown__all:hover i { transform: translateX(3px); }
@media (hover: hover) {
  .site-nav li.nav-has-children:hover .nav-dropdown,
  .site-nav li.nav-has-children:focus-within .nav-dropdown { opacity: 1; visibility: visible; margin-top: 10px; }
}
.site-nav li.nav-has-children.is-open .nav-dropdown { opacity: 1; visibility: visible; margin-top: 10px; }

.site-header__panel { display: contents; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: auto; border: none; background: none;
  color: var(--text-primary); cursor: pointer; border-radius: var(--radius-pill); flex-shrink: 0;
}
.nav-toggle:hover { background: var(--green-100); }
.nav-toggle i { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }

.site-header__scrim { display: none; }

@media (max-width: 1400px) {
  .site-header__inner { flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 75; }
  .site-header.is-nav-open .nav-toggle .icon-menu { display: none; }
  .site-header.is-nav-open .nav-toggle .icon-close { display: block; }

  .site-header__panel {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-6);
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 360px);
    background: var(--surface-card, #fff); box-shadow: var(--shadow-lg);
    padding: 96px var(--content-pad) var(--space-8); margin: 0; overflow-y: auto;
    box-sizing: border-box;
    transform: translateX(100%); transition: transform .3s var(--ease-standard, ease);
    z-index: 65;
  }
  .site-header.is-nav-open .site-header__panel { transform: translateX(0); }
  /* backdrop-filter am Header macht ihn zum Containing Block für das "fixed" Panel — das zugeklappte,
     nach rechts verschobene Panel würde sonst die Seite seitlich scrollbar machen. */
  .site-header { overflow-x: clip; }

  .site-header__scrim {
    display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
    background: rgba(31,51,39,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 60;
  }
  .site-header.is-nav-open .site-header__scrim { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }

  .site-nav ul { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .site-nav li { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .site-nav a { display: block; flex: 1; }
  .nav-dropdown { position: static; left: auto; box-shadow: none; transform: none !important; margin-top: 0 !important; padding: 2px 0 6px 18px; display: none; min-width: 0; flex: 1 0 100%; }
  .nav-dropdown--wide { min-width: 0; }
  .nav-dropdown__columns { flex-direction: column; gap: 14px; }
  .nav-dropdown__eyebrow { display: none; }
  .site-nav li.nav-has-children.is-open .nav-dropdown { display: block; opacity: 1; visibility: visible; }

  .location-switcher { width: 100%; justify-content: center; box-sizing: border-box; }
  .site-header__cta { width: 100%; justify-content: center; box-sizing: border-box; }
}
.location-switcher { display: inline-flex; align-items: center; gap: var(--space-2); padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: none; color: var(--text-secondary); font-weight: 700; font-size: var(--fs-small); flex-shrink: 0; white-space: nowrap; }
.location-switcher i { width: 14px; height: 14px; }
.site-header__cta { white-space: nowrap; flex-shrink: 0; }

.hero-band { position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.hero-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-band__overlay { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(31,51,39,0) 30%, rgba(31,51,39,.62) 78%, rgba(31,51,39,.82) 100%); }
.hero-band__content { position: relative; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--space-9) var(--content-pad) var(--space-8); color: #fff; }
.hero-band__content h1 { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 600; margin: 0 0 16px; color: #fff; max-width: 760px; overflow-wrap: break-word; }
.hero-band__text { font-family: var(--font-body); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--cream-100); margin: 0 0 28px; max-width: 560px; }
.hero-band__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; font-weight: 800; color: var(--brand-primary-hover); margin-bottom: 14px; }
.eyebrow--light { color: var(--green-200); }

a.button.secondary, button.button.secondary { background: var(--surface-card); color: var(--brand-primary-hover); border: 1px solid var(--brand-primary); }
a.button.secondary:hover, button.button.secondary:hover { background: var(--green-50); color: var(--brand-primary-hover); }
a.button.ghost, button.button.ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
a.button.ghost:hover, button.button.ghost:hover { background: var(--surface-alt); color: var(--text-secondary); }

.site-footer { background: var(--brand-primary); color: var(--green-100); margin-top: var(--space-9); padding: 0; text-align: left; }
.site-footer__grid { max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--content-pad); display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--space-6); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer__logo { height: 34px; filter: brightness(0) invert(1); }
.site-footer__logo--image { height: 38px; width: auto; }
.site-footer__brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.site-footer__blurb { font-family: var(--font-body); font-size: var(--fs-small); line-height: 2; color: var(--green-100); max-width: 300px; margin: 0; }
.site-footer__h { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: #fff; margin-bottom: 10px; }
.site-footer__links { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); font-size: var(--fs-small); line-height: 2; color: var(--green-100); }
.site-footer__links a { color: var(--green-100); }
.site-footer__links span { display: flex; align-items: center; gap: 8px; }
.site-footer__links i { width: 15px; height: 15px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.18); padding: 16px var(--content-pad); display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); font-family: var(--font-body); color: var(--green-100); }
.site-footer__legal .sep { opacity: .5; }
.site-footer__agency-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-100); }
.site-footer__agency-link:hover { color: var(--green-100); }
.site-footer__agency-logo { height: 15px; display: block; }
.site-footer__agency-strip { background: var(--surface-alt); border-top: 1px solid var(--border-subtle); padding: 24px var(--content-pad); max-width: var(--content-max); margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.site-footer__agency-strip > a { display: flex; }
.site-footer__agency-strip-logo { height: 30px; display: block; }
.site-footer__agency-address { text-align: right; font-family: var(--font-body); font-size: var(--fs-small); color: #000; font-weight: 600; line-height: 1.9; }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--green-900); color: var(--green-100);
  padding: 18px var(--content-pad); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; gap: var(--space-5); flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
body.nav-open .cookie-banner { display: none; }
.cookie-banner__text { margin: 0; font-family: var(--font-body); font-size: var(--fs-small); max-width: 640px; }
.cookie-banner__text a { color: #fff; text-decoration: underline; }
.cookie-banner__ok { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; text-align: center; } }

/* === Phase 3: content components === */
.service-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.service-card { display: block; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-6); font-family: var(--font-body); transition: all var(--dur-base) var(--ease-standard); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }
.service-card__icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--sc-bg); color: var(--sc-fg); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.service-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin: 0 0 8px; color: var(--text-primary); overflow-wrap: break-word; }
.service-card p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-secondary); margin: 0; }
.service-card__more { margin-top: var(--space-4); display: inline-flex; align-items: center; gap: 6px; color: var(--sc-fg); font-weight: 700; font-size: var(--fs-small); }
.service-card__more i { width: 15px; height: 15px; }

.stats-band { background: var(--green-800); border-radius: var(--radius-xl); padding: var(--space-7) var(--space-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-5); }
.stats__cell { text-align: center; }
.stats__value { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; color: var(--cream-100); }
.stats__label { font-family: var(--font-body); font-size: var(--fs-small); color: var(--green-300); font-weight: 700; margin-top: 6px; }

.info-row { display: flex; gap: 14px; align-items: flex-start; font-family: var(--font-body); }
.info-row__icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--green-100); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row__label { font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.info-row__content { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-primary); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--badge-bg); color: var(--badge-fg); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; }

.accordion { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion-item { background: var(--surface-card); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); overflow: hidden; }
.accordion-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; color: var(--text-primary); }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary i { width: 18px; height: 18px; color: var(--brand-primary); transition: transform var(--dur-base) var(--ease-soft); }
.accordion-item[open] summary i { transform: rotate(180deg); }
.accordion-item__content { padding: 0 20px 18px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-secondary); }

.quote-card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6); font-family: var(--font-body); }
.quote-card__mark { color: var(--gold-500); font-size: 34px; font-family: var(--font-display); line-height: 1; margin-bottom: 10px; }
.quote-card p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-primary); margin: 0 0 16px; }
.quote-card__who { font-size: var(--fs-small); font-weight: 800; color: var(--brand-primary-hover); }

/* === Phase 3: lightbox === */
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(31,51,39,.93); align-items: center; justify-content: center; padding: 40px; }
.lightbox-overlay.is-open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lightbox-btn { position: absolute; width: 52px; height: 52px; border-radius: var(--radius-pill); border: none; background: rgba(255,255,255,.15); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); }
.lightbox-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox-btn--close { top: 24px; right: 24px; width: 44px; height: 44px; }
.lightbox-btn--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-btn--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 26px; color: #fff; font-family: var(--font-body); font-size: var(--fs-small); letter-spacing: .06em; font-weight: 700; }

/* === Phase 3: homepage-style section helpers === */
.intro-band { text-align: center; max-width: 720px; margin: 0 auto; }
.intro-band h2 { text-align: center; }
.trust-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-8); align-items: center; background: none; }
.trust-split__media { position: relative; }
.trust-split__img { width: 100%; height: 440px; object-fit: cover; object-position: center 18%; border-radius: 58% 42% 55% 45% / 52% 48% 55% 48%; box-shadow: var(--shadow-md); }
.trust-split__caption { position: absolute; left: 8px; bottom: 14px; background: rgba(253,251,246,.95); border-radius: var(--radius-pill); padding: 12px 22px; box-shadow: var(--shadow-md); white-space: nowrap; }
.trust-split__caption .name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: var(--text-primary); }
.trust-split__caption .role { font-family: var(--font-body); font-size: var(--fs-small); color: var(--brand-primary-hover); font-weight: 700; margin-left: 10px; }
.info-row-stack { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.trust-split--reverse { grid-template-columns: 1.15fr 1fr; }
.trust-split + .trust-split, .trust-split + .trust-split--reverse, .trust-split--reverse + .trust-split { margin-top: var(--space-8); }
@media (max-width: 760px) { .trust-split, .trust-split--reverse { grid-template-columns: 1fr; } }

.cta-band { background: var(--cream-200); border-radius: var(--radius-xl); padding: var(--space-8); text-align: center; }
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { font-size: var(--fs-body-lg); color: var(--text-secondary); margin: 0 0 26px; }

/* === Phase 3: pillar page layout === */
.pillar-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.pillar-sidebar-col { display: flex; flex-direction: column; gap: var(--space-5); position: sticky; top: calc(var(--header-h, 90px) + 20px); }
.pillar-sidebar-img { width: 100%; height: 260px; object-fit: cover; border-radius: 45% 55% 48% 52% / 55% 45% 52% 48%; box-shadow: var(--shadow-md); }
.pillar-sidebar { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-6); display: flex; flex-direction: column; gap: 18px; }
.pillar-sidebar h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin: 0 0 4px; }
@media (max-width: 760px) { .pillar-layout { grid-template-columns: 1fr; } .pillar-sidebar-col { position: static; } }

/* === Scroll-reveal motion (tools/motion-client.js) === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-standard, ease), transform .6s var(--ease-standard, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-standard, ease), transform .5s var(--ease-standard, ease); }
.reveal.is-visible > * { opacity: 1; transform: none; }
.reveal.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal.is-visible > *:nth-child(n+6) { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal > * { transition: none !important; opacity: 1 !important; transform: none !important; }
}

.team-note { font-family: var(--font-body); font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-6); font-style: italic; }

/* === Phase 3: Kontakt page layout === */
.kontakt-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: start; }
.kontakt-form-card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-6); }
.form-note { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--text-muted); }
.kontakt-info-stack { display: flex; flex-direction: column; gap: 22px; }
.kontakt-photo { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (max-width: 760px) { .kontakt-layout { grid-template-columns: 1fr; } }

.kontakt-anfahrt { margin-top: var(--space-8); }
.map-embed { margin-top: var(--space-5); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-alt); }
.map-embed__placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: var(--space-7) var(--space-5); }
.map-embed__placeholder i { width: 32px; height: 32px; color: var(--brand-primary); }
.map-embed__placeholder p { margin: 0; font-family: var(--font-body); font-weight: 700; color: var(--text-primary); }
.map-embed__hint { font-weight: 400 !important; font-size: var(--fs-caption); color: var(--text-muted); max-width: 480px; }
.map-embed__hint a { color: var(--brand-primary-hover); text-decoration: underline; }
.map-embed__frame { display: block; width: 100%; height: 420px; border: 0; }

/* === Phase 3: praxisbilder hero + jobs layout === */
.jobs-list { display: flex; flex-direction: column; gap: var(--space-4); }
.job-card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5) var(--space-6); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.job-card__main { flex: 1; min-width: 220px; }
.job-card h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin: 0 0 8px; }
.job-card__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.jobs-cta-box { margin-top: var(--space-7); background: var(--cream-200); border-radius: var(--radius-lg); padding: var(--space-6); }
.jobs-cta-box h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin: 0 0 6px; }
.jobs-cta-box p { color: var(--text-secondary); margin: 0 0 16px; font-size: var(--fs-body); }

.jobs-detail { margin-top: var(--space-7); background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6); }
.jobs-detail h2 { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0 0 var(--space-2); }
.jobs-detail h3 { font-family: var(--font-display); font-size: var(--fs-h5, 1.1rem); margin: var(--space-4) 0 8px; }
.jobs-detail .button { margin-top: var(--space-5); }

/* === Online-Bewerbungsformular === */
html { scroll-behavior: smooth; }

.application-form-section { margin-top: var(--space-8); scroll-margin-top: 24px; }
.application-form-card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-7); }
.application-form-card h2 { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0 0 var(--space-2); }
.application-form { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-5); }

.position-select { border: none; padding: 0; margin: 0; }
.position-select legend { font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-2); padding: 0; }
.position-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.position-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 20px; border-radius: var(--radius-pill); background: var(--surface-alt);
  border: 2px solid transparent; font-weight: 600; color: var(--text-secondary);
  transition: border-color .15s, background .15s;
}
.position-pill:has(input:checked) { border-color: var(--brand-primary); background: var(--green-100); color: var(--green-800); }
.position-pill input { accent-color: var(--brand-primary); }

.application-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.application-grid label { display: flex; flex-direction: column; gap: var(--space-1); font-weight: 600; color: var(--text-secondary); }
@media (max-width: 640px) { .application-grid { grid-template-columns: 1fr; } }

.application-grid input {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--cream-300);
  background: var(--surface-page);
}
.application-grid input:focus { outline: none; box-shadow: var(--shadow-focus); border-color: var(--brand-primary); }

.upload-dropzone {
  border: 2px dashed var(--cream-400); border-radius: var(--radius-lg); padding: var(--space-5);
  text-align: center; transition: border-color .15s, background .15s;
}
.upload-dropzone.is-dragover { border-color: var(--brand-primary); background: var(--green-50); }
.upload-dropzone__label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: var(--text-secondary); }
.upload-dropzone__label i { width: 28px; height: 28px; color: var(--brand-primary); }
.upload-dropzone__label strong { color: var(--text-primary, var(--green-900)); }
.upload-dropzone__label span { font-size: var(--fs-caption); color: var(--text-muted); }
.upload-dropzone__files { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.upload-dropzone__file {
  display: flex; align-items: center; gap: 10px; background: var(--surface-alt);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: var(--fs-caption);
}
.upload-dropzone__file i { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand-primary); }
.upload-dropzone__file span:first-of-type { flex: 1; word-break: break-all; }
.upload-dropzone__file-size { color: var(--text-muted); }
.upload-dropzone__remove {
  border: none; background: none; cursor: pointer; color: var(--text-muted); display: flex;
  align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-pill);
}
.upload-dropzone__remove:hover, .upload-dropzone__remove:focus-visible { color: var(--state-error); background: var(--state-error-bg); }
.upload-dropzone__remove i { width: 16px; height: 16px; }

.upload-error { color: var(--state-error); background: var(--state-error-bg); border-radius: var(--radius-sm); padding: 10px 14px; font-size: var(--fs-caption); margin: 0; }

.application-consent { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-caption); color: var(--text-secondary); }
.application-consent input { margin-top: 3px; accent-color: var(--brand-primary); }
.application-consent a { color: var(--brand-primary-hover); text-decoration: underline; }

/* Silbentrennung (Bindestriche in langen Komposita wie "Sprachentwicklungsstörungen") nur auf schmalen Handys; sonst ganze Wörter */
@media (max-width: 480px) { .cluster-links li, .service-card h3, .hero-band__content h1 { hyphens: auto; } }
.site-footer__legal a { color: var(--green-100); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal a:hover { color: #fff; }
