/* Psychologische Praxis Robert Brandstetter
   Designsystem: ruhige Salbei/Petrol-Palette, organische Kieselformen */

/* Lokal eingebundene Schriften (SIL Open Font License), keine Verbindung zu Google */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F3F5F2;
  --surface: #FFFFFF;
  --mist: #DCE6E1;
  --mist-deep: #C6D6CF;
  --ink: #1C2A2D;
  --muted: #55676A;
  --teal: #2B5859;
  --teal-deep: #1C3E3F;
  --ochre: #D7A548;
  --line: #D2DCD7;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --pebble: 58% 42% 46% 54% / 48% 56% 44% 52%;
  --pebble-2: 44% 56% 60% 40% / 55% 45% 55% 45%;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 68ch; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.94rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.draft-bar {
  background: var(--ochre); color: var(--ink); text-align: center;
  font-size: 0.86rem; font-weight: 600; line-height: 1.4;
  padding: 7px max(16px, env(safe-area-inset-right, 0px)) 7px max(16px, env(safe-area-inset-left, 0px));
}

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(243, 245, 242, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 999px;
  font: 500 0.97rem/1 var(--sans); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a.nav-link:hover, .nav button.nav-link:hover { background: var(--mist); color: var(--ink); }
.nav a.nav-link[aria-current="page"], .nav .has-sub.is-active > .nav-link { color: var(--teal); background: var(--mist); }
.nav .chev { width: 14px; height: 14px; transition: transform .2s ease; }

.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 300px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(28, 42, 45, 0.35);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
.submenu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.submenu a strong { display: block; font-weight: 600; font-size: 0.97rem; }
.submenu a span { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--paper); }
.submenu a[aria-current="page"] strong { color: var(--teal); }

.header-cta { margin-left: 10px; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--teal); background: var(--teal); color: #fff;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--teal-deep); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--teal-deep); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn--sm { padding: 0.62rem 1.05rem; font-size: 0.93rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--mist { background: var(--mist); }
.section--white { background: var(--surface); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.section-head h2 { margin: 0; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); position: relative; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { margin-bottom: 1.8em; }
.hero-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--teal); }

.portrait { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait::before {
  content: ""; position: absolute; inset: 6% -7% -6% 8%;
  background: var(--mist-deep); border-radius: var(--pebble-2);
}
.portrait img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
  border-radius: var(--pebble); background: var(--mist);
}
.portrait figcaption {
  position: absolute; left: -6%; bottom: 7%;
  background: var(--surface); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 16px 34px -18px rgba(28,42,45,.45);
  font-size: 0.9rem; line-height: 1.35; max-width: 230px;
}
.portrait figcaption strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.08rem; }

/* ---------- Situations ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.situations li { padding: 16px 0 16px 34px; border-top: 1px solid var(--line); position: relative; }
.situations li::before {
  content: ""; position: absolute; left: 4px; top: 24px; width: 14px; height: 12px;
  background: var(--teal); border-radius: var(--pebble);
}

.analogy {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.38;
  color: var(--teal-deep); max-width: 30ch; margin: 0;
}
.analogy-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.analogy-wrap p.muted { margin: 0; }

/* ---------- Service rows ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.3fr 48px; gap: 24px; align-items: center;
  padding: 28px 12px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background .18s ease;
}
.service-row:hover { background: var(--surface); color: var(--ink); }
.service-row h3 { margin: 0; }
.service-row p { margin: 0; color: var(--muted); }
.service-row .go {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--teal); transition: background .18s, border-color .18s, color .18s;
}
.service-row:hover .go { background: var(--teal); border-color: var(--teal); color: #fff; }
.service-row .go svg { width: 18px; height: 18px; }
.service-row .tag { display: inline-block; margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: var(--teal); background: var(--mist); padding: 3px 10px; border-radius: 999px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--teal); }
.steps li::before {
  content: counter(step); display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--teal); margin-bottom: 14px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- About teaser ---------- */
.about-teaser { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo-pebble { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--pebble-2); background: var(--mist); }
.quals { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.quals li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.93rem; }
.section--mist .quals li { border-color: var(--mist-deep); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 52px 22px 4px; position: relative;
  font-family: var(--serif); font-size: clamp(1.18rem, 1.8vw, 1.38rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; border: 1.5px solid var(--line);
  background:
    linear-gradient(var(--teal), var(--teal)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 1.5px 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal); }
.faq .answer { padding: 0 52px 24px 4px; color: var(--muted); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--teal-deep); color: #fff; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 460px; height: 420px;
  background: var(--teal); border-radius: var(--pebble); opacity: .55;
}
.cta-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 52ch; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-contact { display: grid; gap: 12px; justify-items: stretch; }
.cta-contact a { justify-content: flex-start; }

/* ---------- Page head (subpages) ---------- */
.page-head { background: var(--mist); padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -90px; bottom: -150px; width: 380px; height: 340px;
  background: var(--mist-deep); border-radius: var(--pebble-2); opacity: .8;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 18ch; }
.page-head .lede { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mist-deep); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Content layouts ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.content-grid > main, .content-grid > article { min-width: 0; }
.block + .block { margin-top: clamp(40px, 5vw, 64px); }
.block h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }

.aside-box { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.aside-box h3 { font-size: 1.3rem; margin-bottom: 14px; }
.aside-box dl { margin: 0 0 22px; display: grid; gap: 14px; }
.aside-box dt { font-size: 0.86rem; color: var(--muted); }
.aside-box dd { margin: 2px 0 0; font-weight: 600; }
.aside-box .btn { width: 100%; }
.aside-box .btn + .btn { margin-top: 10px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 20px; height: 20px; color: var(--teal); margin-top: 4px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 30px); }
.panel h3 { margin-bottom: 0.5em; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel--teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.panel--teal h3 { color: #fff; }
.panel--teal p { color: rgba(255,255,255,.86); }
.panel--warn { border-left: 4px solid var(--ochre); }

.info-list { margin: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 600; }
.info-list dd { margin: 0; color: var(--muted); }

.plain-list { padding-left: 1.2em; margin: 0 0 1.1em; }
.plain-list li { margin-bottom: 6px; }
.plain-list li::marker { color: var(--teal); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.topic-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 500; }

/* Timeline (Ausbildung) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--mist-deep); }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 14px; background: var(--teal); border-radius: var(--pebble); }
.timeline li:last-child { padding-bottom: 0; }

/* About page */
.about-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }

/* Partner */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.partner { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; text-decoration: none; color: var(--ink); transition: border-color .18s; }
.partner:hover { border-color: var(--teal); color: var(--ink); }
.partner .mark { width: 54px; height: 50px; border-radius: var(--pebble); background: var(--mist); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; color: var(--teal); margin-bottom: 8px; }
.partner h3 { margin: 0; }
.partner p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.partner .url { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--teal); font-size: 0.95rem; display: inline-flex; gap: 6px; align-items: center; }
.partner .url svg { width: 16px; height: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-items { display: grid; gap: 4px; margin-bottom: 28px; }
.contact-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-item .ic { width: 46px; height: 42px; border-radius: var(--pebble); background: var(--mist); display: grid; place-items: center; color: var(--teal); }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item small { display: block; color: var(--muted); font-size: 0.85rem; }
.contact-item span { font-weight: 600; word-break: break-word; }
a.contact-item:hover span { color: var(--teal); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.5vw, 36px); }
.form h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: 0.94rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 0.92rem; color: var(--muted); margin: 6px 0 20px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--mist); color: var(--teal-deep); font-size: 0.95rem; }
.form-status.is-visible { display: block; }

.map { margin-top: 8px; border-radius: 20px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { max-width: 36ch; color: var(--muted); font-size: 0.93rem; }

.crisis { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 0.97rem; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.footer-brand svg { width: 44px; height: 44px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.6); }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 0.98rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav > ul .nav-link { padding: 9px 10px; }
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
    padding: 9px 14px; font: 600 0.95rem/1 var(--sans); color: var(--ink); cursor: pointer;
  }
  .menu-toggle svg { width: 18px; height: 18px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    padding: 12px var(--gutter) 32px; overflow-y: auto;
    display: none; flex-direction: column; align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a.nav-link, .nav button.nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; border-radius: 0; font-size: 1.12rem; }
  .nav a.nav-link:hover, .nav button.nav-link:hover, .nav a.nav-link[aria-current="page"], .nav .has-sub.is-active > .nav-link { background: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 12px 8px; min-width: 0; display: none;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.is-open .submenu { display: block; }
  .header-cta { display: inline-flex; margin: 24px 0 0; width: 100%; }
  body.nav-open { overflow: hidden; }

  .hero-grid, .split, .analogy-wrap, .about-teaser, .about-hero, .contact-grid, .content-grid, .cta-band .wrap { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 380px); order: -1; }
  .hero-grid .portrait { order: 0; width: min(100%, 340px); margin-top: 8px; }
  .portrait figcaption { left: 0; }
  .aside-box { position: static; }
  .cta-band .btn-row { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-teaser .photo-pebble { max-width: 420px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-sub { display: none; }
  .brand svg { width: 38px; height: 38px; }
  .brand-name { font-size: 1.12rem; }
  .situations { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr 44px; gap: 8px 16px; padding: 22px 4px; }
  .service-row p { grid-column: 1 / 2; grid-row: 2; }
  .service-row .go { grid-column: 2; grid-row: 1 / 3; }
  .cols-2, .field-row, .partners { grid-template-columns: 1fr; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-row .btn { flex: 1 1 100%; }
  .faq summary { padding-right: 46px; }
  .faq .answer { padding-right: 4px; }
  .portrait figcaption { position: relative; left: auto; bottom: auto; margin: -36px auto 0; max-width: 260px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =====================================================================
   Waffengutachten-Schwerpunkt, Partnerlogos, FAQ-Gruppen, Ergänzungen
   ===================================================================== */

/* Band auf Start- und Leistungsseite */
.w-band { background: var(--teal-deep); color: #fff; padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.w-band::before { content: ""; position: absolute; left: -140px; bottom: -180px; width: 420px; height: 380px; background: var(--teal); border-radius: var(--pebble-2); opacity: .5; }
.w-band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.w-band h2 { color: #fff; max-width: 20ch; }
.w-band p { color: rgba(255,255,255,.84); max-width: 56ch; }
.w-band .btn-row { margin-top: 26px; }
.w-band-kicker { font-size: 0.95rem; font-weight: 600; color: var(--ochre) !important; margin-bottom: 10px; }
.w-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.18); border-radius: 18px; overflow: hidden; }
.w-facts > div { background: var(--teal-deep); padding: 20px 22px; }
.w-facts dt { font-size: 0.86rem; color: rgba(255,255,255,.66); }
.w-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.32rem; line-height: 1.2; color: #fff; }

/* Seitenkopf Waffengutachten */
.w-hero { background: var(--teal-deep); color: #fff; padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.w-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 460px; background: var(--teal); border-radius: var(--pebble); opacity: .55; }
.w-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.w-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.9rem); max-width: 16ch; }
.w-hero .lede { color: rgba(255,255,255,.84); margin-bottom: 1.6em; }
.crumbs--light, .crumbs--light a { color: rgba(255,255,255,.7); }
.crumbs--light li + li::before { color: rgba(255,255,255,.35); }
.crumbs--light a:hover { color: #fff; }

.w-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.w-card-label { margin: 0; font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.w-price { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4rem); line-height: 1; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.w-price-note { margin: 6px 0 20px; color: var(--muted); font-size: 0.95rem; }
.w-card dl { margin: 0; border-top: 1px solid var(--line); }
.w-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.w-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.w-card dt { color: var(--muted); }
.w-card dd { margin: 0; font-weight: 600; text-align: right; }

/* Sprungnavigation */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.subnav a:hover { background: var(--mist); color: var(--teal-deep); }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 76px); }

.w-intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
.w-intro p.muted { max-width: 60ch; }
.w-news { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ochre); border-radius: 18px; padding: 24px 26px; }
.w-news h3 { margin-bottom: 0.4em; }
.w-news p { color: var(--muted); font-size: 0.97rem; }
.w-news .checklist { margin: 0; }

.w-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.w-uses li { padding: 22px 20px 6px 0; display: grid; gap: 4px; }
.w-uses li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.w-uses strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.w-uses span { color: var(--muted); }

/* Vier Schritte */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); counter-reset: p; position: relative; }
.process::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: var(--mist-deep); }
.process li { counter-increment: p; position: relative; }
.process li::before {
  content: counter(p); position: relative; z-index: 1; display: grid; place-items: center;
  width: 50px; height: 46px; margin-bottom: 18px; border-radius: var(--pebble);
  background: var(--teal); color: #fff; font-family: var(--serif); font-size: 1.4rem;
}
.process h3 { font-size: 1.28rem; margin-bottom: 0.35em; }
.process p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.w-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.w-sub { font-size: 1.25rem; margin-bottom: 14px; }

/* Preisbox */
.price-box { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3.5vw, 36px); }
.price-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.price-name { font-weight: 600; max-width: 22ch; }
.price-value { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.2rem); line-height: 1; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.price-value small { display: block; font-family: var(--sans); font-size: 0.88rem; color: var(--muted); margin-top: 6px; text-align: right; }
.price-box .checklist { margin-bottom: 24px; }
.price-box .btn { width: 100%; }

/* Ergebnis */
.result { border-top: 4px solid var(--teal); }
.result--neg { border-top-color: var(--ochre); }

/* Gutachter */
.gutachter { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 980px; }
.gutachter img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: var(--pebble); background: var(--mist); }

/* Weitere Leistungen */
.related-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 20px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-item { display: grid; grid-template-columns: 1fr 40px; grid-template-rows: auto auto; gap: 4px 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: border-color .18s; }
.related-item:hover { border-color: var(--teal); color: var(--ink); }
.related-item strong { font-weight: 600; }
.related-item span:not(.go) { grid-column: 1; color: var(--muted); font-size: 0.93rem; }
.related-item .go { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--teal); }
.related-item .go svg { width: 16px; height: 16px; }
.related-item:hover .go { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Schritte kompakt (Unterseiten) */
.steps--compact li::before { font-size: 2rem; margin-bottom: 10px; }
.steps--compact h3 { font-size: 1.15rem; }

/* Arbeitsweise */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.principles > div { border-top: 2px solid var(--teal); padding-top: 20px; }
.principles h3 { font-size: 1.3rem; }
.principles p { color: var(--muted); margin: 0; }

/* Partnerlogos */
.partner .logo { display: grid; place-items: center; height: 120px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.partner .logo img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }

/* FAQ-Gruppen */
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.faq-jump a { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.faq-jump a:hover { border-color: var(--teal); color: var(--teal); }
.faq-group + .faq-group { margin-top: clamp(40px, 5vw, 64px); }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }

@media (max-width: 960px) {
  .w-band-grid, .w-hero-grid, .w-intro, .w-two { grid-template-columns: 1fr; }
  .w-card { max-width: 440px; }
  .w-uses { grid-template-columns: 1fr 1fr; }
  .w-uses li:nth-child(3) { padding-left: 0; border-left: 0; }
  .w-uses li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .process::before { display: none; }
  .related, .principles { grid-template-columns: 1fr; }
  .partner .logo { height: 110px; }
}
@media (max-width: 640px) {
  .w-facts { grid-template-columns: 1fr 1fr; }
  .w-facts dd { font-size: 1.12rem; }
  .w-uses { grid-template-columns: 1fr; }
  .w-uses li, .w-uses li + li { padding: 16px 0; border-left: 0; }
  .w-uses li + li { border-top: 1px solid var(--line); }
  .process { grid-template-columns: 1fr; }
  .process li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; }
  .process li::before { grid-row: 1 / 3; margin: 0; }
  .gutachter { grid-template-columns: 1fr; }
  .gutachter img { max-width: 220px; }
  .price-value small { text-align: left; }
}
.price-tax { margin: 14px 0 0; font-size: 0.84rem; color: var(--muted); text-align: center; }

/* Rechtliche Seiten */
.legal { display: grid; gap: clamp(32px, 5vw, 56px); max-width: 920px; }
.legal .info-list > div { grid-template-columns: 240px 1fr; }
.legal-text h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 1.6em; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { color: var(--muted); }
.ds-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.ds-summary h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.ds-summary .checklist { margin: 0; }
mark.todo { background: #F6E3B8; color: var(--ink); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 640px) { .legal .info-list > div { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { background: #F6E3B8; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.footer-addr2 { margin-top: 12px; color: rgba(255,255,255,.6); font-size: 0.93rem; }
/* Logo auf dunklem Grund */
.footer-brand svg path:nth-of-type(1) { fill: #5E9894; }
.footer-brand svg path:nth-of-type(2) { fill: #9CC5C0; }
.panel.kasse { border-left: 4px solid var(--teal); }
.panel.kasse p:not(.muted) { margin-bottom: 0.7em; }
