/* =========================================================
   MARIVA Sonnenschutzsysteme – Stylesheet
   Farben & Typografie aus dem Stitch-Designsystem.
   Alle Schriften lokal gehostet (keine Google-Server).
   ========================================================= */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Material Symbols Outlined";
  src: url("../fonts/material-symbols-outlined.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: block;
}

/* ---------- Design-Tokens ---------- */
:root {
  --primary: #05536c;
  --primary-container: #2c6b85;
  --on-primary: #ffffff;
  --on-primary-container: #bde8ff;
  --primary-fixed: #bfe9ff;
  --on-primary-fixed: #001f2a;

  --secondary: #855300;
  --secondary-container: #fea619;
  --on-secondary-container: #684000;
  --secondary-fixed: #ffddb8;
  --secondary-fixed-dim: #ffb95f;
  --on-secondary-fixed: #2a1700;

  --tertiary: #892e00;
  --tertiary-container: #b13e00;
  --tertiary-fixed: #ffdbce;
  --on-tertiary: #ffffff;

  --surface: #faf8ff;
  --surface-lowest: #ffffff;
  --surface-low: #f2f3ff;
  --surface-container: #eaedff;
  --surface-high: #e2e7ff;
  --surface-highest: #dae2fd;
  --on-surface: #131b2e;
  --on-surface-variant: #40484c;
  --outline: #70787d;
  --outline-variant: #c0c8cd;
  --inverse-surface: #283044;
  --inverse-on-surface: #eef0ff;

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 2px 8px -2px rgba(44, 107, 133, 0.10);
  --shadow-md: 0 6px 20px -4px rgba(44, 107, 133, 0.16);
  --shadow-primary: 0 4px 14px rgba(5, 83, 108, 0.25);
  --shadow-tertiary: 0 4px 14px rgba(137, 46, 0, 0.28);

  --gutter: 1rem;
  --header-h: 4rem;
  --bottom-h: 0px;
  --max: 1180px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  padding-top: var(--header-h);
  padding-bottom: var(--bottom-h);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--on-surface); margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--secondary-container); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: .75rem; }

/* Icons (Material Symbols, lokal) */
.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal;
  font-size: 1.25em; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  flex-shrink: 0;
  user-select: none;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 2.5rem 0; }
.section-tight { padding: 1.5rem 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; align-items: center; gap: .5rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.grid-cards { grid-template-columns: 1fr; }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.eyebrow {
  display: block;
  font-family: var(--font-head); font-size: 11px; font-weight: 700; line-height: 1.3;
  letter-spacing: .06em; text-transform: uppercase; color: var(--secondary);
}
.lead { font-size: 1.0625rem; color: var(--on-surface-variant); }
.muted { color: var(--on-surface-variant); }
.small { font-size: 13px; line-height: 1.5; }
.tiny { font-size: 11px; line-height: 1.4; }
.text-primary { color: var(--primary); }
.text-tertiary { color: var(--tertiary); }
.text-secondary { color: var(--secondary); }
.slogan { font-family: var(--font-head); font-style: italic; font-weight: 600; color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(44, 107, 133, .08);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand:hover { text-decoration: none; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-call {
  display: inline-flex; align-items: center; gap: .4rem; height: 2.5rem; padding: 0 .9rem;
  border-radius: 999px; background: rgba(254, 166, 25, .2); color: var(--on-surface);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.header-call .ms { color: var(--tertiary-container); animation: pulse 2s ease-in-out infinite; }
.header-call:hover { background: rgba(254, 166, 25, .32); text-decoration: none; }
.header-call .label-long { display: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* Dropdown (Desktop) */
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .2rem; padding: .5rem .7rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--on-surface-variant); background: none; border: 0;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--primary); background: var(--surface-low); text-decoration: none; }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link { font-weight: 700; }
.dropdown {
  position: absolute; top: calc(100% + .35rem); left: 0; min-width: 270px; padding: .5rem;
  background: var(--surface-lowest); border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: none; flex-direction: column;
}
.nav-item.open .dropdown { display: flex; }
.dropdown a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-sm); color: var(--on-surface); font-size: 14px; font-weight: 500; }
.dropdown a .ms { color: var(--primary); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--surface-low); text-decoration: none; color: var(--primary); }

/* ---------- Mobile Bottom-Navigation ---------- */
.bottom-bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 -4px 16px rgba(44, 107, 133, .1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-cta { display: flex; gap: .5rem; padding: .35rem var(--gutter) .25rem; }
.bottom-cta a {
  flex: 1; height: 2.75rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
.bottom-cta a:hover { text-decoration: none; }
.bottom-cta .cta-emergency { background: var(--tertiary); box-shadow: 0 2px 8px rgba(137, 46, 0, .25); }
.bottom-cta .cta-request { background: var(--primary); box-shadow: 0 2px 8px rgba(5, 83, 108, .25); }
.bottom-nav { display: flex; justify-content: space-around; align-items: center; height: 3.75rem; padding: 0 .25rem; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-width: 56px; min-height: 44px; color: var(--on-surface-variant);
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
}
.bottom-nav a .ms { font-size: 22px; }
.bottom-nav a:hover { text-decoration: none; color: var(--on-surface); }
.bottom-nav a[aria-current="page"] { color: var(--primary); font-weight: 800; }
body.has-bottom-bar { --bottom-h: 8.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: 0 1.25rem; border-radius: var(--radius-sm); border: 0;
  font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 2.5rem; padding: 0 .9rem; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-container); }
.btn-tertiary { background: var(--tertiary); color: var(--on-tertiary); box-shadow: var(--shadow-tertiary); }
.btn-tertiary:hover { background: var(--tertiary-container); }
.btn-soft { background: var(--surface-container); color: var(--primary); }
.btn-soft:hover { background: var(--surface-high); }
.btn-light { background: var(--surface-lowest); color: var(--on-surface); }
.btn-light:hover { background: var(--surface-container); }
.btn-amber { background: var(--secondary-container); color: var(--on-secondary-container); box-shadow: var(--shadow-md); }
.btn-amber:hover { background: var(--secondary-fixed-dim); }
.btn-icon { width: 3rem; padding: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .2rem; font-family: var(--font-head); font-weight: 700; font-size: 13px; }

/* ---------- Badges / Chips / Tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
}
.badge .ms { font-size: 15px; }
.badge-amber { background: rgba(133, 83, 0, .1); color: var(--secondary); }
.badge-primary { background: var(--surface-high); color: var(--primary); }
.badge-solid { background: var(--primary); color: var(--on-primary); }
.badge-sun { background: var(--secondary-container); color: var(--on-secondary-container); }
.badge-fixed { background: var(--secondary-fixed); color: var(--on-secondary-fixed); }
.badge-glass { background: rgba(255, 255, 255, .92); color: var(--primary); }
.badge-tertiary { background: var(--tertiary-container); color: #ffdacd; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { padding: .15rem .5rem; border-radius: .3rem; background: var(--surface-container); color: var(--on-surface-variant); font-family: var(--font-head); font-size: 11px; font-weight: 700; }
.pill { padding: .3rem .7rem; border-radius: 999px; background: var(--surface-highest); font-size: 13px; }

.filter-bar { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .5rem; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; height: 2.4rem; padding: 0 1rem; border-radius: 999px;
  border: 0; background: var(--surface-lowest); color: var(--on-surface-variant); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .2s, color .2s;
}
.chip .ms { font-size: 17px; }
.chip:hover { color: var(--on-surface); background: var(--surface-container); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); font-weight: 700; }

/* ---------- Karten ---------- */
.card { background: var(--surface-lowest); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s; }
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card-body .btn { margin-top: auto; }
.card-pad { padding: 1rem; }
.card-pad-lg { padding: 1.5rem; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-high); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 48, 68, .85), rgba(40, 48, 68, .15) 55%, transparent); pointer-events: none; }
.media-top { position: absolute; top: .75rem; left: .75rem; z-index: 1; }
.media-bottom { position: absolute; left: .85rem; right: .85rem; bottom: .75rem; z-index: 1; color: #fff; }
.media-bottom h2, .media-bottom h3 { color: #fff; font-size: 1.125rem; }
.media-bottom p { color: var(--inverse-on-surface); font-size: 13px; }

/* Freigestellte Produktbilder / Grafiken: nicht beschneiden, kein Verlauf */
.card-media.contain { background: #fff; }
.card-media.contain img { object-fit: contain; }
.card-media.contain::after { display: none; }
.card-media.tall { aspect-ratio: 4 / 3; }

/* Bildleiste mit kleinen Fotos (Originalfotos sind teils nur ~280 px breit) */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.thumbs figure { margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.thumbs.contain img { object-fit: contain; }
.thumbs figcaption { font-size: 11px; line-height: 1.3; color: var(--on-surface-variant); text-align: center; }

/* Fotogalerie Referenzen */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gallery figure { margin: 0; background: var(--surface-lowest); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .6rem .7rem; font-size: 12.5px; line-height: 1.4; color: var(--on-surface-variant); }
.gallery figcaption strong { display: block; color: var(--on-surface); font-family: var(--font-head); font-size: 13px; }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ref-list { columns: 1; column-gap: 2rem; padding-left: 1.1rem; margin: 0; font-size: 14px; color: var(--on-surface-variant); }
.ref-list li { break-inside: avoid; margin-bottom: .35rem; }
@media (min-width: 640px) { .ref-list { columns: 2; } }

/* Download-Liste */
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .35rem; }
.dl-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-sm); background: var(--surface-low); color: var(--on-surface); font-size: 14px; line-height: 1.35; transition: background-color .2s; }
.dl-list a:hover { background: var(--surface-high); text-decoration: none; }
.dl-list a .ms { color: var(--tertiary-container); }
.dl-list .dl-size { margin-left: auto; padding-left: .5rem; font-size: 11px; color: var(--outline); white-space: nowrap; }
@media (min-width: 960px) { .dl-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile { background: var(--surface-lowest); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .9rem; display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .25s; }
.tile:hover { box-shadow: var(--shadow-md); }
.tile h3, .tile h4 { font-size: 14px; }
.tile p { font-size: 13px; color: var(--on-surface-variant); line-height: 1.45; }
.icon-box { width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box.lg { width: 3rem; height: 3rem; }
.icon-box.round { border-radius: 999px; }
.ib-primary { background: var(--primary-fixed); color: var(--primary); }
.ib-amber { background: var(--secondary-fixed); color: var(--secondary); }
.ib-tertiary { background: var(--tertiary); color: var(--on-tertiary); }
.ib-solid { background: var(--primary); color: var(--on-primary); }
.ib-soft { background: var(--surface-high); color: var(--primary); }

.media-row { display: flex; align-items: flex-start; gap: 1rem; }

/* Feature-Listen */
.checklist { list-style: none; margin: 0; padding: .75rem; background: var(--surface-low); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: .55rem; }
.checklist li { display: flex; gap: .5rem; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.checklist li .ms { color: var(--primary); font-size: 19px; margin-top: .05rem; }
.checklist.plain { background: none; padding: 0; }
.mini { background: var(--surface-low); border-radius: var(--radius-sm); padding: .65rem; display: flex; flex-direction: column; gap: .2rem; }
.mini .ms { color: var(--primary); }
.mini strong { font-family: var(--font-head); font-size: 13px; }
.mini span { font-size: 13px; color: var(--on-surface-variant); line-height: 1.4; }

/* Fortschrittsbalken */
.meter { display: flex; flex-direction: column; gap: .35rem; }
.meter-track { height: .5rem; border-radius: 999px; background: var(--surface-highest); overflow: hidden; }
.meter-fill { height: 100%; border-radius: inherit; background: var(--primary); }
.meter-fill.amber { background: var(--secondary-container); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--surface-lowest); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.hero::before { width: 18rem; height: 18rem; top: -4rem; right: -4rem; background: rgba(254, 166, 25, .2); filter: blur(48px); }
.hero::after { width: 14rem; height: 14rem; top: 8rem; left: -4rem; background: rgba(5, 83, 108, .1); filter: blur(40px); }
.hero .container { position: relative; z-index: 1; padding-top: 1.25rem; padding-bottom: 1.75rem; }
.hero-grid { display: grid; gap: 1.25rem; }
.hero-text { display: flex; flex-direction: column; gap: 1rem; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 10; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 48, 68, .85), rgba(40, 48, 68, .2) 50%, transparent); }
.hero-media .media-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.ping-dot { position: relative; width: .5rem; height: .5rem; border-radius: 999px; background: var(--secondary-container); flex-shrink: 0; }
.ping-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }

.page-hero { background: linear-gradient(to bottom, var(--surface-low), var(--surface)); }
.page-hero .container { padding-top: 1.5rem; padding-bottom: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }

.breadcrumb { font-size: 12px; color: var(--on-surface-variant); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .3rem; color: var(--outline); }
.breadcrumb a { color: var(--on-surface-variant); }

/* ---------- Callouts / Panels ---------- */
.callout-emergency {
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--tertiary-fixed), rgba(255, 221, 184, .45) 55%, var(--surface-lowest));
}
.callout-amber { border-radius: var(--radius); padding: 1rem; background: rgba(255, 221, 184, .35); }
.panel-primary {
  background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: 0 8px 24px rgba(5, 83, 108, .22);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1rem;
}
.panel-primary::after { content: ""; position: absolute; right: -2rem; bottom: -2rem; width: 11rem; height: 11rem; border-radius: 999px; background: rgba(255, 255, 255, .1); filter: blur(20px); pointer-events: none; }
.panel-primary h2, .panel-primary h3 { color: var(--on-primary); }
.panel-primary .eyebrow { color: var(--secondary-fixed); }
.panel-primary p, .panel-primary .muted { color: var(--inverse-on-surface); }
.panel-primary a:not(.btn) { color: #fff; }
.panel-item { display: flex; gap: .75rem; align-items: flex-start; background: rgba(255, 255, 255, .1); padding: .8rem; border-radius: var(--radius); }
.panel-item .ms { color: var(--secondary-fixed); font-size: 22px; }
.panel-item strong { display: block; font-family: var(--font-head); font-size: 14px; }
.panel-item span { font-size: 13px; color: rgba(238, 240, 255, .9); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.stat { background: rgba(255, 255, 255, .15); border-radius: var(--radius-sm); padding: .5rem; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; color: var(--secondary-fixed); }
.stat span { font-family: var(--font-head); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--inverse-on-surface); }
.panel-soft { background: var(--surface-container); border-radius: var(--radius); padding: 1rem; }
.panel-low { background: var(--surface-low); border-radius: var(--radius); padding: 1rem; }

.trust-strip { display: flex; justify-content: space-around; align-items: center; text-align: center; background: var(--surface-low); border-radius: var(--radius-sm); padding: .75rem; }
.trust-strip b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--primary); }
.trust-strip span { font-size: 11px; color: var(--on-surface-variant); }
.trust-strip .sep { width: 1px; height: 2rem; background: var(--surface-highest); }

/* ---------- Karte (lokales Vorschaubild, kein Google-Embed) ---------- */
.map-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-card img { width: 100%; height: 15rem; object-fit: cover; }
.map-overlay { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; background: rgba(255, 255, 255, .95); border-radius: var(--radius); padding: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; box-shadow: var(--shadow-sm); }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label, .field-label { font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--on-surface-variant); }
.field-label.upper { text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ms { position: absolute; left: .8rem; color: var(--outline); font-size: 19px; pointer-events: none; }
.input-wrap input { padding-left: 2.6rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 2.9rem; padding: .7rem .85rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface-low); color: var(--on-surface); font: inherit; font-size: 15px; transition: background-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { outline: none; background: var(--surface-lowest); box-shadow: 0 0 0 2px var(--primary); }
input::placeholder, textarea::placeholder { color: rgba(112, 120, 125, .8); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; padding: .3rem; background: var(--surface-container); border-radius: var(--radius); }
.segmented.cols-2 { grid-template-columns: repeat(2, 1fr); background: none; padding: 0; }
.segmented.cols-4 { grid-template-columns: repeat(2, 1fr); background: none; padding: 0; }
.seg-btn {
  min-height: 2.5rem; padding: .4rem .5rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--on-surface);
  font-family: var(--font-head); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; transition: background-color .2s, color .2s;
}
.segmented.cols-2 .seg-btn, .segmented.cols-4 .seg-btn { background: var(--surface-low); }
.seg-btn:hover { background: var(--surface-highest); }
.seg-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); font-weight: 700; box-shadow: var(--shadow-sm); }
.seg-btn.urgent[aria-pressed="true"] { background: var(--tertiary); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: 13px; color: var(--on-surface-variant); cursor: pointer; }
.checkbox input { margin-top: .2rem; width: 1rem; height: 1rem; accent-color: var(--primary); flex-shrink: 0; }
.form-note { display: flex; gap: .4rem; align-items: flex-start; font-size: 12px; color: var(--on-surface-variant); }
.form-note .ms { font-size: 16px; color: var(--outline); }
.form-success { display: none; padding: 1rem; border-radius: var(--radius); background: var(--surface-high); gap: .75rem; align-items: flex-start; }
.form-success.show { display: flex; }
.form-success strong { display: block; font-family: var(--font-head); color: var(--primary); }

/* ---------- Akkordeon / FAQ ---------- */
details.faq { background: var(--surface-lowest); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
details.faq + details.faq { margin-top: .6rem; }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .ms { transition: transform .25s; color: var(--primary); }
details.faq[open] summary .ms { transform: rotate(180deg); }
details.faq .faq-body { padding: 0 1rem 1rem; color: var(--on-surface-variant); font-size: 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(40, 48, 68, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 32rem; background: var(--surface-lowest); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: rise .25s ease-out; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.icon-close { width: 2rem; height: 2rem; border-radius: 999px; border: 0; background: var(--surface-container); color: var(--on-surface-variant); display: flex; align-items: center; justify-content: center; }

/* ---------- Rechtstexte ---------- */
.legal { background: var(--surface-lowest); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; color: var(--primary); }
.legal h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
.legal p, .legal li { color: var(--on-surface-variant); font-size: 14px; }
.legal p + p { margin-top: .6rem; }
.legal ul { padding-left: 1.2rem; }
.todo { background: #fff4d6; border: 1px dashed var(--secondary); color: var(--on-secondary-fixed); padding: .1rem .35rem; border-radius: 4px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-low); border-radius: 1rem 1rem 0 0; margin-top: 2.5rem; color: var(--on-surface-variant); }
.site-footer .container { padding-top: 2rem; padding-bottom: 1.5rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-grid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: .6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: 14px; }
.footer-grid ul a { color: var(--on-surface-variant); }
.footer-grid ul a:hover { color: var(--primary); }
.footer-logo { height: 36px; width: auto; margin-bottom: .6rem; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--surface-highest); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: 12px; color: var(--outline); }
.footer-bottom nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--outline); }

/* ---------- Filter (JS) ---------- */
[data-filter-item].is-hidden { display: none !important; }
.fade-in { animation: fade .35s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .header-call .label-short { display: none; }
  .header-call .label-long { display: inline; }
}
@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .segmented.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { align-items: center; }
}
@media (min-width: 960px) {
  :root { --gutter: 2rem; --header-h: 4.75rem; }
  body { font-size: 16px; }
  body.has-bottom-bar { --bottom-h: 0px; }
  .bottom-bar { display: none; }
  .brand img { height: 46px; }
  .main-nav { display: flex; align-items: center; gap: .15rem; }
  .section { padding: 3.5rem 0; }
  .hero .container { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-ctas { flex-direction: row !important; }
  .hero-ctas .btn { width: auto; flex: 1; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .split-wide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .page-hero .container { padding-top: 2.5rem; padding-bottom: 2rem; }
  .map-card img { height: 20rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .bottom-bar, .site-footer, .no-print { display: none !important; }
  body { padding: 0; }
}
