/* ==========================================================================
   Physiotherapie Elias Janesch — Design Tokens & Stylesheet
   Alle Farben, Schriftgrößen, Abstände, Radien und Übergänge sind zentral
   hier als Custom Properties definiert. Neue Werte bitte hier ergänzen,
   nicht als Einzelwerte in Komponenten/HTML.
   ========================================================================== */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/jost-variable.woff2') format('woff2-variations'), url('../fonts/jost-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/josefin-sans-variable.woff2') format('woff2-variations'), url('../fonts/josefin-sans-variable.woff2') format('woff2');
}

:root {
  /* Farben — abgeleitet aus dem Logo (Türkis/Blaugrau) und ergänzenden
     Petrol-/Anthrazit-Tönen für ausreichend Kontrast (siehe Briefing). */
  --color-primary: #26979B;        /* Logo-Türkis: große Akzente, Icons, Linien */
  --color-primary-hover: #2FAAAE;
  --color-accent: #7FEDF0;         /* helles Zyan: Hero-CTA, Akzente auf Dunkel */
  --color-action: #155E63;         /* dunkles Petrol: Buttons, Links, Text-Aktion */
  --color-action-hover: #17383B;
  --color-ink: #17383B;            /* sehr dunkles Petrol: Überschriften, Fließtext */
  --color-hero-bg: #06191B;        /* fast Schwarz: Hero-Hintergrund */
  --color-secondary-light: #B5D7D8;/* helles Blaugrau: Rahmen, Trenner, Flächen */
  --color-bg: #FFFFFF;
  --color-bg-soft: #F7FAFA;
  --color-border: #E4EFEF;
  --color-text-muted-1: #395C5F;
  --color-text-muted-2: #43666A;
  --color-text-muted-3: #4E7376;
  --color-text-muted-4: #7A9698;
  --color-white: #FFFFFF;

  /* Typografie */
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;
  --font-heading: 'Josefin Sans', 'Jost', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing-Skala (4px-Basis) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radien */
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Schatten */
  --shadow-card: 0 10px 30px rgba(23, 56, 59, 0.07);

  /* Übergänge */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-panel: 350ms cubic-bezier(.16,.8,.3,1);

  color-scheme: light;
}

/* ==========================================================================
   Reset & Basis
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

a { color: var(--color-action); text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-action);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  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 */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-action);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--transition-base);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
  top: calc(env(safe-area-inset-top, 0px) + var(--space-4));
}

/* ==========================================================================
   Layout-Hilfen
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(18px, 5vw, 40px);
  padding-right: clamp(18px, 5vw, 40px);
}

main { display: block; padding-bottom: var(--space-24); }

.section { padding-top: clamp(48px, 11vw, 96px); padding-bottom: clamp(32px, 8vw, 64px); }
.section--tight { padding-top: clamp(24px, 6vw, 48px); padding-bottom: clamp(24px, 6vw, 48px); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}
.eyebrow--on-dark { color: var(--color-secondary-light); }

.section-title {
  font-size: clamp(25px, 6.5vw, 36px);
  letter-spacing: -0.01em;
  max-width: 24em;
  text-wrap: pretty;
  margin-bottom: var(--space-4);
}

.section-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted-1);
  max-width: 40em;
  text-wrap: pretty;
}

/* ==========================================================================
   Scroll-Reveal (respektiert prefers-reduced-motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: min(94vh, 800px);
  overflow: hidden;
  background: var(--color-hero-bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.62;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active img { animation: hero-kenburns 20s cubic-bezier(.16,.8,.3,1) forwards; }
}
@keyframes hero-kenburns {
  from { transform: scale(1.12) translate3d(0, 1.5%, 0); }
  to { transform: scale(1) translate3d(0, 0, 0); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 42%, rgba(6,25,27,0.25) 0%, rgba(6,25,27,0.8) 62%, rgba(6,25,27,0.96) 100%);
}

.hero__frame {
  position: absolute;
  inset: clamp(10px, 3vw, 22px);
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: min(94vh, 800px);
  padding: clamp(34px, 9vw, 80px) clamp(20px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.hero__logo {
  width: clamp(88px, 24vw, 132px);
  height: auto;
  filter: brightness(0) invert(1);
}

.hero__wordmark {
  margin: clamp(10px, 3vw, 14px) 0 0;
  font-family: var(--font-heading);
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #EAF5F5;
}

/* ==========================================================================
   Intro-Splash — kurze Logo-Zeichenanimation beim Öffnen der Seite
   ========================================================================== */

html.intro-lock,
html.intro-lock body {
  overflow: hidden;
  height: 100%;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-hero-bg);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.intro-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-splash svg {
  width: clamp(120px, 30vw, 220px);
  height: auto;
  overflow: visible;
}

.intro-splash .guide {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash { display: none; }
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 3vw, 22px);
  margin-top: clamp(18px, 4vw, 26px);
  list-style: none;
  padding: 0;
}

.hero__nav a {
  color: #EAF5F5;
  text-decoration: none;
  font-size: clamp(10.5px, 2.8vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 2px;
}
.hero__nav a:hover,
.hero__nav a:focus-visible { color: var(--color-accent); }

.hero__dot {
  width: 5px; height: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  flex: none;
}

.hero__rule {
  width: clamp(56px, 18vw, 110px);
  height: 1px;
  background: rgba(255,255,255,0.35);
  margin: clamp(24px, 6vw, 44px) 0;
  border: 0;
}

.hero__eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  color: var(--color-white);
  max-width: 16em;
  text-wrap: pretty;
}

.hero__lede {
  margin: 0 0 30px;
  font-size: clamp(16.5px, 4.3vw, 20px);
  line-height: 1.6;
  color: #CFE4E4;
  max-width: 30em;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero__note {
  margin: 18px 0 0;
  font-size: 15px;
  color: #9FBFC0;
}

/* ==========================================================================
   Buttons / Links (wiederverwendbar)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-hero-bg);
}
.btn--accent:hover, .btn--accent:focus-visible { background: #97F1F4; color: var(--color-hero-bg); }

.btn--outline-on-dark {
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}
.btn--outline-on-dark:hover, .btn--outline-on-dark:focus-visible {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

.btn--solid {
  background: var(--color-action);
  color: var(--color-white);
  border-color: var(--color-action);
}
.btn--solid:hover, .btn--solid:focus-visible { background: var(--color-action-hover); border-color: var(--color-action-hover); color: var(--color-white); }

.btn--ghost {
  background: var(--color-white);
  color: var(--color-action);
  border-color: var(--color-secondary-light);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--color-bg-soft); border-color: var(--color-primary); color: var(--color-action); }

/* ==========================================================================
   Bild mit Rahmen (Content-Bilder)
   ========================================================================== */

.framed-media { position: relative; overflow: hidden; }
.framed-media img { width: 100%; object-fit: cover; }
.framed-media::after {
  content: "";
  position: absolute;
  inset: clamp(8px, 2.2vw, 16px);
  border: 1px solid rgba(255,255,255,0.5);
  pointer-events: none;
}

/* ==========================================================================
   Leistungen (Cards Grid)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  isolation: isolate;
  transition: border-color var(--transition-panel), box-shadow var(--transition-panel);
}
.service-card:hover, .service-card:focus-within {
  border-color: var(--color-secondary-light);
  box-shadow: var(--shadow-card);
}

.service-card__icon {
  position: absolute;
  right: -40px;
  bottom: -46px;
  width: 168px;
  height: 168px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.service-card h3 { position: relative; font-size: 19px; }
.service-card p { position: relative; font-size: 16px; line-height: 1.6; color: var(--color-text-muted-2); text-wrap: pretty; }

/* ==========================================================================
   Highlight-Panel ("Ihr Ziel bestimmt die Therapie")
   ========================================================================== */

.highlight-panel {
  position: relative;
  margin: 0;
  padding: clamp(40px, 9vw, 68px) clamp(30px, 7vw, 64px);
  background: var(--color-bg-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}
.highlight-panel::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 2.6vw, 18px);
  border: 1px solid var(--color-secondary-light);
  pointer-events: none;
}
.highlight-panel h2 { font-size: clamp(23px, 6vw, 32px); line-height: 1.25; margin-bottom: var(--space-4); text-wrap: pretty; }
.highlight-panel p { font-size: 17px; line-height: 1.65; color: var(--color-text-muted-1); text-wrap: pretty; }
.highlight-panel img { width: 100%; height: clamp(200px, 40vw, 300px); object-fit: cover; }

/* ==========================================================================
   Ablauf (Timeline)
   ========================================================================== */

.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.timeline li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--color-border);
}
.timeline__num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-secondary-light);
  color: var(--color-action);
  font-size: 17px; font-weight: 600;
}
.timeline h3 { font-size: 19px; margin-bottom: 8px; }
.timeline p { font-size: 16.5px; line-height: 1.6; color: var(--color-text-muted-2); max-width: 42em; text-wrap: pretty; }

/* ==========================================================================
   Organisatorisches
   ========================================================================== */

.tarif-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.tarif-list a {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--color-secondary-light);
  border-radius: var(--radius-pill);
  color: var(--color-action);
  text-decoration: none;
  font-size: 16px; font-weight: 600;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}
.tarif-list a:hover, .tarif-list a:focus-visible { background: var(--color-bg-soft); border-color: var(--color-primary); color: var(--color-action); }

.callout {
  margin: 0 0 var(--space-8);
  padding: 20px 22px;
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-primary);
  font-size: 16px; line-height: 1.6;
  color: var(--color-text-muted-1);
  max-width: 42em;
  text-wrap: pretty;
}

.step-grid {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.step-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 22px 22px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--transition-panel), box-shadow var(--transition-panel);
}
.step-card:hover, .step-card:focus-within { border-color: var(--color-secondary-light); box-shadow: var(--shadow-card); }
.step-card__label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary); font-weight: 500; }
.step-card h4 { font-size: 18px; }
.step-card p { font-size: 16px; line-height: 1.6; color: var(--color-text-muted-2); text-wrap: pretty; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 52em;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: border-color var(--transition-panel), box-shadow var(--transition-panel);
}
.faq-item:hover, .faq-item:focus-within { border-color: var(--color-secondary-light); box-shadow: var(--shadow-card); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-ink);
  padding-right: 28px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  font-size: 22px;
  color: var(--color-primary);
  transition: transform var(--transition-base);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted-2);
  text-wrap: pretty;
}

/* ==========================================================================
   Über mich
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.about-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-soft);
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-portrait::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 2.6vw, 18px);
  border: 1px solid var(--color-secondary-light);
  pointer-events: none;
}
.about-portrait picture { display: block; width: 100%; height: 100%; }
.about-portrait__alt {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path .7s cubic-bezier(.65, 0, .2, 1);
}
.about-portrait.is-swapped .about-portrait__alt { clip-path: inset(0); }
.about-portrait { touch-action: pan-y; }
.about-portrait:focus-visible { outline: 2px solid var(--color-action); outline-offset: 3px; }
.about-portrait__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vw, 28px);
  transform: translateX(-50%);
  display: none;
  gap: 8px;
  z-index: 2;
}
.about-portrait__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(23, 56, 59, .25);
  transition: background .3s, transform .3s;
}
.about-portrait__dots span.is-active { background: #fff; transform: scale(1.25); }
@media (hover: none) { .about-portrait__dots { display: flex; } }
@media (prefers-reduced-motion: reduce) {
  .about-portrait__alt { clip-path: none; opacity: 0; transition: opacity .3s; }
  .about-portrait.is-swapped .about-portrait__alt { opacity: 1; }
}
.about-copy h2 { font-size: clamp(25px, 6.5vw, 36px); margin-bottom: var(--space-4); }
.about-copy p { font-size: 17px; line-height: 1.7; color: var(--color-text-muted-1); text-wrap: pretty; margin-bottom: var(--space-4); }
.about-copy p:last-child { margin-bottom: 0; }

.about-portrait__caption { display: none; }
@media (max-width: 680px) {
  .about-grid { gap: var(--space-6); }
  .about-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(14, 38, 41, .88) 0%, rgba(14, 38, 41, .55) 28%, rgba(14, 38, 41, 0) 55%);
    pointer-events: none;
  }
  .about-portrait__caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 54px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
    pointer-events: none;
  }
  .about-portrait__caption .eyebrow { color: rgba(255, 255, 255, .85); margin: 0; }
  .about-portrait__name { font-family: var(--font-heading, inherit); font-size: clamp(25px, 7vw, 32px); line-height: 1.15; }
  .about-portrait__dots { left: 28px; bottom: 28px; transform: none; z-index: 2; }
  .about-portrait__dots span { height: 6px; width: 6px; background: rgba(255, 255, 255, .45); box-shadow: none; }
  .about-portrait__dots span.is-active { width: 20px; border-radius: 3px; background: #fff; transform: none; }
  .about-copy > .eyebrow, .about-copy > h2 {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* ==========================================================================
   Praxis & Hausbesuche
   ========================================================================== */

.practice-card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: visible;
  isolation: isolate;
  transition: border-color var(--transition-panel), box-shadow var(--transition-panel);
}
.practice-card:hover, .practice-card:focus-within { border-color: var(--color-secondary-light); box-shadow: var(--shadow-card); }
.practice-card__icon {
  position: absolute; right: -38px; bottom: -50px;
  width: 176px; height: 176px;
  fill: none; stroke: var(--color-primary); stroke-width: 0.7;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.15; pointer-events: none;
  z-index: -1;
  will-change: transform;
  transition: transform 0.15s ease-out;
}
.practice-card h3 { position: relative; font-size: 19px; margin-bottom: 12px; }
.practice-card p { position: relative; font-size: 16.5px; line-height: 1.6; color: var(--color-text-muted-2); margin-bottom: 8px; }
.practice-card p:last-child { margin-bottom: 0; font-size: 15.5px; color: var(--color-text-muted-4); }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-panel {
  position: relative;
  margin: clamp(24px, 6vw, 48px) 0 0;
  padding: clamp(44px, 9vw, 80px) clamp(30px, 7vw, 64px);
  background: var(--color-ink);
  color: var(--color-white);
}
.contact-panel::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 2.6vw, 18px);
  border: 1px solid rgba(255,255,255,0.22);
  pointer-events: none;
}
.contact-panel h2 { position: relative; font-size: clamp(25px, 6.5vw, 36px); max-width: 22em; margin-bottom: var(--space-4); }
.contact-panel > .eyebrow { position: relative; }
.contact-panel__lede { position: relative; font-size: 17px; line-height: 1.65; color: #D6E9E9; max-width: 34em; text-wrap: pretty; margin-bottom: var(--space-8); }

.contact-tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  max-width: 720px;
}
.contact-tile {
  display: flex; flex-direction: column; gap: 4px;
  min-height: 76px; justify-content: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}
.contact-tile span { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-tile strong { font-size: 18px; font-weight: 600; word-break: break-word; }

.contact-tile--tel { background: var(--color-white); color: var(--color-ink); }
.contact-tile--tel span { color: var(--color-text-muted-3); }
.contact-tile--tel:hover, .contact-tile--tel:focus-visible { background: var(--color-border); color: var(--color-ink); }

.contact-tile--whatsapp { background: var(--color-primary); color: var(--color-white); }
.contact-tile--whatsapp span { color: #DFF1F1; }
.contact-tile--whatsapp:hover, .contact-tile--whatsapp:focus-visible { background: var(--color-primary-hover); color: var(--color-white); }

.contact-tile--mail { border: 1px solid var(--color-text-muted-3); color: var(--color-white); }
.contact-tile--mail span { color: var(--color-secondary-light); }
.contact-tile--mail:hover, .contact-tile--mail:focus-visible { border-color: var(--color-secondary-light); color: var(--color-white); }

/* Helle Variante der Kontakt-Kacheln (auf weißem Seitenhintergrund, z. B. Kontaktseite) */
.contact-tiles--light { max-width: 480px; margin: 0 0 var(--space-8); }
.contact-tiles--light .contact-tile--tel { background: var(--color-bg-soft); border: 1px solid var(--color-border); color: var(--color-ink); }
.contact-tiles--light .contact-tile--tel:hover, .contact-tiles--light .contact-tile--tel:focus-visible { background: var(--color-border); }

/* ==========================================================================
   Kontaktformular
   ========================================================================== */

.form-notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: var(--space-6);
  max-width: 34em;
}
.form-notice--success { background: #E4F5EE; color: #14523B; border: 1px solid #B7E0CC; }
.form-notice--error { background: #FBEAEA; color: #7A2020; border: 1px solid #F0C2C2; }

.contact-form { max-width: 34em; }
.form-row { margin-bottom: var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 600; color: var(--color-text-muted-1); }
.form-row input, .form-row textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  color: var(--color-ink);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* Honeypot: für Menschen unsichtbar/unerreichbar, aber im DOM vorhanden für Bots */
.form-row--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint { font-size: 13.5px; color: var(--color-text-muted-4); margin-bottom: var(--space-6); }

.contact-form .btn { border: none; cursor: pointer; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: clamp(32px, 7vw, 56px) 0 var(--space-8);
  display: flex; flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center; justify-content: space-between;
  font-size: 15px; color: var(--color-text-muted-3);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--color-text-muted-3); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--color-action); }

.link-button {
  padding: 0; background: none; border: 0;
  color: var(--color-text-muted-3);
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover, .link-button:focus-visible { color: var(--color-action); }

/* ==========================================================================
   Sticky Mobile Bar
   ========================================================================== */

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 24px rgba(23,56,59,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sticky-bar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 58px;
  background: var(--color-white);
  color: var(--color-action);
  text-decoration: none;
  font-size: 15.5px; font-weight: 600;
}
.sticky-bar a.is-primary { background: var(--color-action); color: var(--color-white); }

@media (max-width: 767px) {
  .sticky-bar { display: grid; }
  .site-footer { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + var(--space-8)); }
}

/* ==========================================================================
   Cookie-Consent-Banner
   ========================================================================== */

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,25,27,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.consent-overlay[hidden] { display: none; }

.consent-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: clamp(24px, 6vw, 36px) clamp(20px, 5vw, 40px) clamp(24px, 5vw, 34px);
}

@media (prefers-reduced-motion: no-preference) {
  .consent-overlay { animation: fade-in 300ms ease-out both; }
  .consent-dialog { animation: slide-up 420ms cubic-bezier(.16,.8,.3,1) both; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }

.consent-dialog h2 { font-size: clamp(21px, 5.5vw, 26px); margin-bottom: 12px; }
.consent-dialog > p { font-size: 16px; line-height: 1.65; color: var(--color-text-muted-2); text-wrap: pretty; margin-bottom: 22px; }

.consent-categories { display: flex; flex-direction: column; gap: 2px; margin: 0 0 24px; }
.consent-category {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--color-border);
}
.consent-category h3 { font-size: 17px; margin-bottom: 6px; }
.consent-category p { font-size: 15px; line-height: 1.55; color: var(--color-text-muted-2); text-wrap: pretty; margin: 0; }

.consent-badge {
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted-4);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
}

.consent-toggle {
  flex: none;
  width: 60px; height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-secondary-light);
  background: var(--color-white);
  padding: 3px;
  display: flex; align-items: center; justify-content: flex-start;
}
.consent-toggle__knob {
  width: 26px; height: 26px;
  border-radius: var(--radius-pill);
  background: var(--color-secondary-light);
  margin-left: 0;
  transition: margin var(--transition-base), background-color var(--transition-base);
}
.consent-toggle[aria-pressed="true"] .consent-toggle__knob {
  margin-left: 26px;
  background: var(--color-action);
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}
.consent-actions .btn { min-height: 56px; font-size: 17px; }

.consent-footer-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin: 20px 0 0;
}
.consent-footer-links a,
.consent-footer-links button {
  padding: 8px 0; background: none; border: 0;
  color: var(--color-action);
  font-family: var(--font-body);
  font-size: 15.5px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.consent-footer-links a { font-weight: 400; color: var(--color-text-muted-3); }

[data-consent-settings-panel][hidden] { display: none; }
[data-consent-open-settings][hidden],
[data-consent-save][hidden] { display: none; }

/* ==========================================================================
   Rechtstexte (Impressum / Datenschutz)
   ========================================================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(18px, 5vw, 40px) clamp(64px, 10vw, 120px);
}
.legal-page h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: var(--space-2); }
.legal-page .legal-updated { font-size: 14px; color: var(--color-text-muted-4); margin-bottom: var(--space-12); }
.legal-page h2 { font-size: 20px; margin-top: var(--space-12); margin-bottom: var(--space-3); }
.legal-page h3 { font-size: 17px; margin-top: var(--space-8); margin-bottom: var(--space-2); }
.legal-page p, .legal-page li { font-size: 16px; line-height: 1.7; color: var(--color-text-muted-1); }
.legal-page p { margin-bottom: var(--space-4); }
.legal-page ul, .legal-page ol { padding-left: 1.2em; margin: 0 0 var(--space-4); }
.legal-page li { margin-bottom: var(--space-2); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: 15px; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.legal-page th { color: var(--color-text-muted-3); font-weight: 600; }
.legal-page a { word-break: break-word; }

.legal-header {
  position: relative;
  background: var(--color-hero-bg);
}
.legal-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0.75;
}
.legal-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.legal-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #EAF5F5;
  text-decoration: none;
}
.legal-header__brand:hover,
.legal-header__brand:focus-visible { color: var(--color-accent); }
.legal-header__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }

.legal-header__back {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}
.legal-header__back:hover,
.legal-header__back:focus-visible {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   Utility-Klassen (ersetzen einmalige Inline-Styles, CSP-freundlich)
   ========================================================================== */

.framed-media--spaced { margin-top: clamp(28px, 7vw, 56px); }
.content-image { height: clamp(200px, 46vw, 380px); object-fit: cover; width: 100%; }
.mb-8 { margin-bottom: var(--space-8); }
.lede-tight { margin: 0 0 var(--space-4); }
.section--pb-lg { padding-bottom: clamp(40px, 9vw, 80px); }
.tarif-label { margin: 0 0 12px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted-4); font-weight: 600; }
.subheading { font-family: var(--font-heading); font-size: clamp(20px, 5vw, 26px); margin-bottom: var(--space-6); }
.step-note { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--color-text-muted-4); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; width: 100%; }

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-16) clamp(18px, 5vw, 40px);
}
.error-page .eyebrow { text-align: center; }
.error-page h1 { font-size: clamp(30px, 7vw, 48px); margin-bottom: var(--space-4); }
.error-page p { font-size: 17px; color: var(--color-text-muted-1); max-width: 32em; margin-bottom: var(--space-8); }
