/* ==========================================================================
   physiozeit – Kathrin Wiesmüller
   ========================================================================== */

/* Fonts (self-hosted, no third-party requests) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Pompiere";
  src: url("../fonts/pompiere.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pompiere";
  src: url("../fonts/amatic-cyrillic.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens */
:root {
  --sand: #F4EFE7;
  --sand-deep: #EAE3D7;
  --paper: #FBF8F3;
  --ink: #1C2723;
  --ink-soft: #3A4641;
  --muted: #56615C;
  --line: #DCD3C5;
  --line-strong: #C9BFB0;
  --primary: #2E4B40;
  --primary-2: #3E5D51;
  --primary-soft: #DCE4DA;
  --clay: #9E5760;
  --rose: #B56E77;
  --sage: #5E7F70;
  --sage-soft: #E4EAE1;
  --rose-soft: #F5E6E7;
  --clay-soft: #F2DEDF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: clamp(28px, 3vw, 40px);
  --shadow: 0 24px 48px -24px rgba(28, 39, 35, 0.35);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: var(--primary); }
a:hover { color: var(--ink); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--paper); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Layout */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--sand-deep { background: var(--sand-deep); }

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay);
}
.eyebrow--rule::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.display {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(46px, 7vw, 88px);
}
.display em { font-style: italic; color: var(--primary); }
/* Startseiten-Überschrift in der Schrift des Logos */
.display--logo {
  font-family: "Pompiere", var(--font-display); font-weight: 400; letter-spacing: 0.03em; line-height: 1.02;
  font-size: clamp(48px, 6.8vw, 92px); color: var(--primary); text-transform: uppercase;
}
.display--logo em { font-style: normal; color: var(--rose); }
.h2 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(34px, 4.4vw, 56px);
}
.h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head--split > p { max-width: 420px; font-size: 18px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--lg { min-height: 60px; padding: 0 32px; }
.btn--primary { background: var(--primary); color: var(--paper); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--clay-soft); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--primary); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; color: var(--primary); text-decoration: none;
}
.link-arrow span { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Utility bar */
.topbar { background: var(--primary); color: var(--sand); font-size: 14px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
.topbar__group { display: flex; align-items: center; gap: 28px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); text-decoration: none; }
.topbar a.topbar__item:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 16px; height: 16px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 231, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand svg { width: 40px; height: 40px; color: var(--primary); flex-shrink: 0; }
.brand__logo { display: block; height: 150px; width: auto; margin-block: 8px; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.brand__sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-weight: 500; }
.nav__link { color: var(--ink); text-decoration: none; padding-block: 8px; position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--primary); }
.nav .btn { min-height: 48px; padding: 0 24px; font-size: 16px; }
.nav .btn svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero (home) */
.hero { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: 32px; }
.hero__content .lead { max-width: 560px; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--font-display); font-size: 36px; line-height: 1; }
.stat__label { font-size: 14px; color: var(--muted); }

.hero__media { position: relative; }
/* Punkte wie im Logo */
.hero__media::before, .hero__media::after,
.page-hero__media::before, .page-hero__media::after {
  content: ""; position: absolute; z-index: 1; border-radius: 50%; pointer-events: none;
}
.hero__media::before, .page-hero__media::before {
  width: clamp(18px, 2.4vw, 28px); aspect-ratio: 1; left: 4%; top: 7%;
  background: var(--rose); box-shadow: inset 0 0 0 clamp(5px, .6vw, 7px) #E8C3C6;
}
.hero__media::after, .page-hero__media::after {
  width: clamp(40px, 5vw, 60px); aspect-ratio: 1; right: 2%; top: 64%;
  background: #A9BEA3; box-shadow: inset 0 0 0 clamp(10px, 1.2vw, 15px) #5E7F70, 0 0 0 5px var(--sand);
}
.hero__media img {
  width: 100%; height: auto; aspect-ratio: 1 / 1.12; object-fit: cover; object-position: 50% 30%;
  border-radius: 58% 42% 50% 50% / 48% 55% 45% 52%;
}
.float-card {
  position: absolute; left: -48px; bottom: 48px;
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
}
.float-card:hover { color: var(--ink); }
.float-card__icon {
  width: 44px; height: 44px; border-radius: 999px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.float-card__icon svg { width: 20px; height: 20px; }
.float-card strong { display: block; font-weight: 600; }
.float-card span { font-size: 14px; color: var(--muted); }

/* Quote */
.quote { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.quote svg { width: 40px; height: 32px; color: var(--primary); }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25; letter-spacing: -0.01em; max-width: 1000px;
}
.quote figcaption { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.service-card {
  display: flex; flex-direction: column; gap: 16px; padding: 36px; min-height: 300px;
  border-radius: 28px; background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card__num { font-size: 14px; letter-spacing: 0.12em; color: var(--clay); }
.service-card p { font-size: 16px; color: var(--muted); }
.service-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.icon-circle {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary);
  transition: background-color .2s ease, color .2s ease;
}
.icon-circle svg { width: 18px; height: 18px; }
.service-card:hover .icon-circle { background: var(--primary); color: var(--paper); }

.service-card--feature { grid-row: span 2; padding: 0; overflow: hidden; background: var(--primary); border-color: var(--primary); color: var(--paper); }
.service-card--feature:hover { color: var(--paper); }
.service-card--feature img { width: 100%; height: 340px; object-fit: cover; }
.service-card--feature .service-card__body { flex-grow: 1; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.service-card--feature .service-card__num { color: var(--clay-soft); }
.service-card--feature h3 { font-size: clamp(28px, 2.6vw, 34px); }
.service-card--feature p { color: rgba(251, 248, 243, 0.88); font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(251, 248, 243, 0.4); }
.tag--soft { border: 0; background: var(--primary-soft); color: var(--ink); padding: 8px 14px; }
.service-card--feature .link-row { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.service-card--feature .link-row svg { width: 18px; height: 18px; transition: transform .2s ease; }
.service-card--feature:hover .link-row svg { transform: translateX(4px); }

.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 24px; padding: 28px 36px; border-radius: 28px; background: var(--clay-soft);
}
.cta-strip p { font-family: var(--font-display); font-size: clamp(21px, 2vw, 26px); line-height: 1.3; }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.about__media { display: flex; flex-direction: column; gap: 24px; }
.about__media img { width: 100%; height: auto; aspect-ratio: 5 / 5.6; object-fit: cover; object-position: 52% 50%; border-radius: 24px 160px 24px 24px; }
.note {
  display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: 20px;
  background: var(--primary-soft); font-size: 16px; line-height: 1.5;
}
.note svg { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.note--clay { background: var(--clay-soft); align-items: flex-start; }
.note--clay svg { width: 20px; height: 20px; color: var(--ink); margin-top: 2px; }
.about__content { display: flex; flex-direction: column; gap: 28px; }
.role { font-size: 16px; font-weight: 600; color: var(--primary); }
.about__content > p:not([class]) { font-size: 19px; line-height: 1.65; color: var(--ink-soft); }

.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 0;
  border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45;
}
.check-list svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.check-list--single { grid-template-columns: 1fr; }
/* Farbkonzept Altrosa & Salbei (Über mich + Therapie-Seiten) */
.section--sage { background: var(--sage-soft); }
:is(.page-about, .page-therapy, .page-heads) .display, :is(.page-about, .page-therapy, .page-heads) .h2 { font-family: "Pompiere", var(--font-display); font-weight: 400; letter-spacing: 0.03em; color: var(--primary); text-transform: uppercase; }
:is(.page-about, .page-therapy, .page-heads) .display { font-size: clamp(48px, 6.8vw, 92px); line-height: 1.02; }
:is(.page-about, .page-therapy, .page-heads) .h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; }
:is(.page-about, .page-therapy, .page-heads) .prose-grid .h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; }
:is(.page-about, .page-therapy, .page-heads) .cta-panel .h2 { color: var(--paper); font-size: clamp(36px, 4vw, 54px); }
:is(.page-about, .page-therapy, .page-heads) .display em, :is(.page-about, .page-therapy, .page-heads) .h2 em { font-style: normal; color: var(--rose); }
:is(.page-about, .page-therapy) .role { color: var(--sage); }
:is(.page-about, .page-therapy) .check-list svg { color: var(--sage); }
:is(.page-about, .page-therapy) .edu-group:nth-child(odd), :is(.page-about, .page-therapy) .edu-col > .edu-group:nth-child(odd) { background: var(--sage-soft); border-color: #D2DCCF; }
:is(.page-about, .page-therapy) .edu-col > .edu-group:nth-child(even) { background: var(--rose-soft); border-color: #EBD3D5; }
:is(.page-about, .page-therapy) .edu-col:last-child > .edu-group:nth-child(odd) { background: var(--rose-soft); border-color: #EBD3D5; }
:is(.page-about, .page-therapy) .edu-col:last-child > .edu-group:nth-child(even) { background: var(--sage-soft); border-color: #D2DCCF; }
:is(.page-about, .page-therapy) .edu-group--wide { background: var(--paper); border-color: var(--line); }
:is(.page-about, .page-therapy) .edu-group .check-list, :is(.page-about, .page-therapy) .edu-group .check-list li { border-color: rgba(46, 75, 64, 0.14); }
:is(.page-about, .page-therapy) .panel { background: var(--sage); position: relative; overflow: hidden; }
:is(.page-about, .page-therapy) .panel::after { content: ""; position: absolute; right: -50px; top: -50px; width: 190px; aspect-ratio: 1; border-radius: 50%; background: var(--rose); box-shadow: inset 0 0 0 34px #D7A3A9, 0 0 0 10px rgba(251, 248, 243, .14); pointer-events: none; }
:is(.page-about, .page-therapy) .panel > * { position: relative; z-index: 1; }
.section--rose { background: var(--rose-soft); }
.page-therapy .page-hero__media { --hero-pos: 50% 45%; }
.page-therapy .page-hero__media img { aspect-ratio: 1.12 / 1; }
:is(.page-therapy, .page-heads) .h2--small { font-size: clamp(30px, 3vw, 42px); }
.page-therapy .btn--outline { border-color: var(--sage); color: var(--sage); }
.page-therapy .btn--outline:hover { background: var(--sage); color: var(--paper); }
.page-therapy .tile:nth-child(odd) { background: var(--sage-soft); border-color: #D2DCCF; }
.page-therapy .tile:nth-child(even) { background: var(--rose-soft); border-color: #EBD3D5; }
.page-therapy .tile .icon-circle { background: var(--paper); color: var(--sage); }
.page-therapy .tile:nth-child(even) .icon-circle { color: var(--rose); }
.page-therapy .tile--accent, .page-therapy .tile--accent:nth-child(n) { background: var(--sage); border-color: var(--sage); color: var(--paper); }
.page-therapy .tile--accent .icon-circle, .page-therapy .tile--accent:nth-child(n) .icon-circle { background: rgba(251, 248, 243, 0.2); color: var(--paper); }
:is(.page-therapy, .page-heads) .motto > p { font-family: "Pompiere", var(--font-display); font-style: normal; font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; color: var(--rose); font-size: clamp(34px, 4vw, 54px); line-height: 1.1; }
.motto__media { margin: 0; flex: 0 0 min(46%, 560px); }
.motto__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px 24px 24px 160px; }
.page-therapy .related a:nth-child(odd) { background: var(--sage-soft); border-color: #D2DCCF; }
.page-therapy .related a:nth-child(even) { background: var(--rose-soft); border-color: #EBD3D5; }
.page-therapy .related a:hover { background: var(--paper); }
.page-therapy .related svg { color: var(--rose); }
/* Bilderpaar (Über mich) */
.photo-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 2.5vw, 32px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.photo-pair__item { margin: 0; }
.photo-pair__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pair__item:first-child img { border-radius: 24px 160px 24px 24px; }
.photo-pair__item:last-child { margin-top: clamp(40px, 6vw, 96px); }
.photo-pair__item:last-child img { border-radius: 24px 24px 24px 160px; }
.photo-banner { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 8vw, 120px); }
.photo-banner__item { grid-column: 2; }
.photo-banner__item { margin: 0; }
.photo-banner__item img { display: block; width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; border-radius: 24px 140px 24px 24px; }
/* Bereiche nach Themen (Therapie-Seiten) */
.area-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; align-items: stretch; }
.area-group { border-radius: 24px; padding: 28px 28px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--sage-soft); border: 1px solid #D2DCCF; }
.area-group:nth-child(2) { background: var(--rose-soft); border-color: #EBD3D5; }
.area-group .check-list { margin-top: 6px; border-color: rgba(46, 75, 64, 0.14); }
.area-group .check-list li { border-color: rgba(46, 75, 64, 0.14); font-weight: 600; }
.area-group .check-list li:last-child { border-bottom: 0; }
.area-group .check-list svg { color: var(--sage); }
.area-group:nth-child(2) .check-list svg { color: var(--rose); }
/* Ausbildungen nach Themen */
.edu { display: flex; flex-direction: column; gap: 40px; }
.edu-groups { display: flex; flex-direction: column; gap: 24px; }
.edu-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.edu-col { display: flex; flex-direction: column; gap: 24px; }
.edu-group { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px 28px 12px; display: flex; flex-direction: column; gap: 10px; }
.edu-group--wide .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edu-group__num { font-size: 14px; letter-spacing: 0.12em; color: var(--clay); }
.edu-group__note { font-size: 15px; color: var(--muted); margin: -4px 0 4px; }
.edu-group .check-list { margin-top: 6px; }
.edu-group .check-list li:last-child { border-bottom: 0; }
@media (min-width: 901px) { .edu-group--wide .check-list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--primary); }
.step__num { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--primary); }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 16px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 8vw, 120px); margin-top: clamp(64px, 8vw, 104px); }
.faq__intro { display: flex; flex-direction: column; gap: 16px; }
.faq__intro h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 36px); line-height: 1.15; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 600px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Contact panel */
.panel {
  width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto;
  border-radius: var(--radius-lg); background: var(--primary); color: var(--paper);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px);
}
.panel a:not(.btn) { color: var(--paper); }
.panel a:not(.btn):hover { color: var(--clay-soft); }
.contact { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.contact__info .eyebrow { color: var(--clay-soft); }
.contact__info .h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; }
.contact__info > p { font-size: 18px; opacity: 0.88; max-width: 480px; }
.contact__info .btn { min-height: 64px; font-size: 20px; }
.contact__details { align-self: stretch; display: flex; flex-direction: column; gap: 20px; padding-top: 32px; border-top: 1px solid rgba(251, 248, 243, 0.25); font-size: 17px; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; }
.contact__row svg { width: 22px; height: 22px; color: var(--clay-soft); flex-shrink: 0; margin-top: 2px; }
.contact__row strong { font-weight: 600; display: block; }
.contact__row span { opacity: 0.88; }

.map {
  position: relative; min-height: 460px; border-radius: 28px; overflow: hidden;
  background: var(--primary-2); border: 1px dashed rgba(240, 220, 207, 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 32px; text-align: center; color: var(--clay-soft);
}
.map > svg { width: 40px; height: 40px; }
.map p { font-size: 14px; opacity: 0.85; max-width: 320px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded { border-style: solid; }

/* Footer */
.footer { padding-block: 72px 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand .brand__name { font-size: 28px; }
.footer__logo { display: block; width: min(380px, 100%); height: auto; margin-bottom: 8px; }
.footer__brand span:last-child { font-size: 15px; color: var(--muted); }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 72px); flex-wrap: wrap; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer__col a { color: var(--ink); text-decoration: none; }
.footer__col a:hover { color: var(--primary); text-decoration: underline; }
.footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted);
}
.footer__bottom nav { display: flex; gap: 28px; }
.footer__bottom a { color: var(--muted); }

/* Mobile call bar */
.callbar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60;
  gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(28, 39, 35, 0.94); box-shadow: 0 16px 40px -12px rgba(28, 39, 35, 0.5);
}
.callbar .btn { flex-grow: 1; min-height: 52px; font-size: 16px; }
.callbar__route {
  width: 52px; height: 52px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--primary-2); color: var(--paper);
}
.callbar__route:hover { color: var(--paper); background: var(--primary); }
.callbar__route svg { width: 20px; height: 20px; }

/* ---------- Detail pages ---------- */
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "/"; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }

.page-hero { padding-block: 40px clamp(64px, 8vw, 112px); }
.page-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 64px); align-items: end; margin-top: 48px; }
.page-hero__content { display: flex; flex-direction: column; gap: 28px; padding-bottom: 24px; }
.page-hero__content .display { hyphens: manual; overflow-wrap: break-word; }
.page-hero__content .lead { color: var(--ink-soft); max-width: 600px; }
.page-hero__media { position: relative; }
.page-hero__media img {
  width: 100%; height: auto; aspect-ratio: 1 / 1.12; object-fit: cover; object-position: var(--hero-pos, 50% 30%);
  border-radius: 58% 42% 50% 50% / 48% 55% 45% 52%;
}

.prose-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 8vw, 120px); }
.prose-grid .h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; hyphens: manual; }
.prose { display: flex; flex-direction: column; gap: 24px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.tile {
  display: flex; flex-direction: column; gap: 20px; padding: 28px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  font-size: 19px; font-weight: 600; line-height: 1.35;
}
.tile .icon-circle svg { width: 20px; height: 20px; }
.tile--accent { grid-column: span 2; background: var(--primary); border-color: var(--primary); color: var(--paper); }
.tile--accent .icon-circle { background: rgba(251, 248, 243, 0.15); color: var(--paper); }

.motto { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.motto > p {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; max-width: 820px;
}
.facts { min-width: 320px; font-size: 16px; color: var(--ink-soft); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.facts dt, .facts dd { margin: 0; }
.facts dd { font-weight: 600; text-align: right; }

.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px;
  padding: 20px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--ink); text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.related a:hover { background: var(--paper); border-color: var(--line-strong); }
.related svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-panel .h2 { font-size: clamp(34px, 3.6vw, 48px); }
.cta-panel p { font-size: 18px; opacity: 0.88; margin-top: 12px; }
.cta-panel .btn { min-height: 64px; font-size: 20px; }

.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin-top: 16px; }
.placeholder {
  padding: 16px 20px; border-radius: var(--radius-sm); background: var(--clay-soft);
  font-size: 16px; color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--feature { grid-row: auto; grid-column: span 2; flex-direction: row; }
  .service-card--feature img { width: 45%; height: auto; min-height: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card { left: 16px; bottom: 16px; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .header .container { min-height: 72px; }
  .brand__logo { height: 96px; margin-block: 4px; }
  .brand svg { width: 34px; height: 34px; }
  .brand__name { font-size: 23px; }
  .brand__sub { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--sand); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(28, 39, 35, 0.3);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 16px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 20px; min-height: 56px; }

  .hero__grid, .page-hero__grid, .about, .contact, .faq, .prose-grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 1 / 1.05; max-height: 520px; }
  .page-hero__media img { aspect-ratio: 1 / 1; }
  .page-hero__content { padding-bottom: 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .motto { flex-direction: column; align-items: stretch; }
  .facts { min-width: 0; }
  .map { min-height: 320px; }
  .callbar { display: flex; }
  body { padding-bottom: 88px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .stats { gap: 20px 28px; }
  .stat__value { font-size: 30px; }
  .float-card { padding: 10px 14px; border-radius: 14px; }
  .float-card__icon { display: none; }
  .services { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .service-card--feature { grid-column: auto; flex-direction: column; }
  .service-card--feature img { width: 100%; height: 200px; min-height: 0; }
  .service-card--feature .service-card__body, .service-card { padding: 24px; }
  .service-card:not(.service-card--feature) { min-height: 0; }
  .service-card:not(.service-card--feature) p { display: none; }
  .cta-strip { flex-direction: column; align-items: stretch; padding: 24px; }
  .check-list { grid-template-columns: 1fr; }
  .edu-cols { grid-template-columns: 1fr; }
  .area-groups { grid-template-columns: 1fr; }
  .photo-pair { grid-template-columns: 1fr; }
  .motto__media { flex-basis: auto; width: 100%; }
  .motto__media img { border-radius: 20px 20px 20px 96px; }
  .photo-banner { grid-template-columns: 1fr; }
  .photo-banner__item { grid-column: 1; }
  .photo-banner__item img { aspect-ratio: 16 / 10; border-radius: 20px 96px 20px 20px; }
  .page-about .panel::after { width: 110px; right: -45px; top: -45px; box-shadow: inset 0 0 0 20px #D7A3A9, 0 0 0 8px rgba(251, 248, 243, .14); }
  .photo-pair__item:last-child { margin-top: 0; }
  .photo-pair__item:first-child img { border-radius: 20px 96px 20px 20px; }
  .photo-pair__item:last-child img { border-radius: 20px 20px 20px 96px; }
  .edu-group--wide .check-list { grid-template-columns: 1fr; }
  .edu-group { padding: 24px 22px 8px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .step { flex-direction: row; flex-wrap: wrap; column-gap: 18px; row-gap: 6px; padding: 20px 0; border-top-width: 1px; }
  .step:first-child { border-top-color: var(--line); }
  .step__num { font-size: 32px; width: 28px; }
  .step h3 { flex: 1; align-self: center; }
  .step p { flex-basis: 100%; padding-left: 46px; font-size: 15px; }
  .contact__info .btn { width: 100%; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { flex-direction: row; align-items: center; padding: 18px 20px; font-size: 17px; }
  .tile--accent { grid-column: auto; }
  .related { grid-template-columns: 1fr; gap: 12px; }
  .cta-panel .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}

/* Kleine Überschriften im Stil der Dachzeilen (z. B. „Schwerpunkte“) */
.h3, .faq__intro h3, .legal h2 {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: clamp(16px, 1.3vw, 18px); line-height: 1.35; color: var(--primary);
}
.faq__intro h3 { font-size: clamp(18px, 1.6vw, 22px); }
.legal h2 { font-size: 18px; margin-top: 24px; }
.related a { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: var(--primary); }
.service-card--feature .h3, .tile--accent .h3 { color: var(--paper); }

/* Startseite – Überschriften im Stil der Hauptüberschrift */
.page-home .h2 { font-family: "Pompiere", var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; color: var(--primary); font-size: clamp(36px, 4vw, 54px); line-height: 1.05; }
.page-home .h2 em { font-style: normal; color: var(--rose); }
.page-home .panel .h2 { color: var(--paper); }
.page-home .panel .h2 em { color: #F2C9CD; }
.page-home .cta-strip p { font-family: "Pompiere", var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(24px, 2.4vw, 32px); color: var(--primary); }

/* Vier Kästen: alle in einer Reihe */
.tiles:has(> .tile:nth-child(4):last-child) .tile--accent { grid-column: span 1; }
/* Fünf Kästen: 3 + 2 (grüner Kasten doppelt breit) */
@media (min-width: 1081px) { .tiles:has(> .tile:nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Zitat auf der Startseite: Pompiere schräg, Großbuchstaben, „Kraft“ in Altrosa */
.page-home .quote p { font-family: "Pompiere", var(--font-display); font-style: italic; font-synthesis: style; font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; color: var(--primary); max-width: 1000px; }
.page-home .quote p em { font-style: italic; color: var(--rose); }

/* Zweiter Kontakt-Button (WhatsApp) im dunklen Kontaktbereich */
.btn--ghost-light { border: 1px solid rgba(251, 248, 243, 0.55); color: var(--paper); background: transparent; }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.panel a.btn--ghost-light:hover { color: var(--ink); }

/* Language switcher */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); background: transparent;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--primary); color: var(--primary); }
.lang summary svg { width: 17px; height: 17px; }
.lang summary .lang__chev { width: 14px; height: 14px; transition: transform .2s ease; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; margin: 0; padding: 8px; list-style: none;
  min-width: 200px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(28, 39, 35, 0.35);
}
.lang__list a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 400; font-size: 15px;
}
.lang__list a:hover { background: var(--sage-soft); }
.lang__list a[aria-current="true"] { background: var(--rose-soft); color: var(--clay); font-weight: 600; }
.lang__code { width: 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--muted); }
.lang__list a[aria-current="true"] .lang__code { color: var(--clay); }
@media (max-width: 900px) {
  .lang { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .lang summary { font-size: 15px; }
  .lang__list { position: static; margin-top: 12px; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 0; }
}

/* Noch zu ergänzende Angaben (vor Veröffentlichung ausfüllen) */
.todo { background: #FFF1A8; color: var(--ink); padding: 0 4px; border-radius: 4px; }
