/* ==========================================================================
   Praxis für Logopädie C. & S. Geib – Stylesheet
   Alle Farb-, Schrift- und Maßangaben wurden per getComputedStyle /
   getBoundingClientRect direkt aus der Originalseite logogeib.de gemessen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties (gemessene Originalwerte)
   -------------------------------------------------------------------------- */
:root {
  /* Farben – gemessen am Original */
  --c-header-bg:      #fff3cd;              /* rgba(255,193,7,.2) über Weiß */
  --c-teal:           rgb(69, 151, 155);    /* Akzent / Buttons / Icons */
  --c-teal-25:        rgba(69, 151, 155, .25);
  --c-teal-10:        rgba(69, 151, 155, .10);
  --c-green:          rgb(85, 146, 132);    /* Überschriften Sektionen */
  --c-green-52:       rgba(85, 146, 132, .52);
  --c-green-10:       rgba(85, 146, 132, .10);
  --c-footer-bg:      rgba(55, 129, 133, .45);
  --c-card-bg:        rgb(220, 244, 242);
  --c-hero-teal:      rgb(69, 151, 155);
  --c-text:           #000;
  --c-heading-dark:   #333;
  --c-white:          #fff;
  --c-btn-text:       rgb(252, 252, 252);
  --c-menu-text:      #666;
  --c-menu-active:    rgba(69, 152, 156, .34);
  --c-menu-idle:      rgba(28, 52, 87, .04);
  --c-input-border:   #ccc;
  --c-grey-bg:        rgba(248, 248, 248, .52);

  /* Typografie */
  --f-head:  'Handlee', 'Comic Sans MS', cursive;
  --f-body:  'Assistant', 'Segoe UI', Helvetica, Arial, sans-serif;
  --f-menu:  'Varela Round', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Fluid-Schriftgrößen.
     Wichtig: Der Originalwert ist ab 1024px erreicht – oberhalb davon ist die
     Schrift also exakt so groß wie im Original, darunter skaliert sie sauber. */
  --fs-body:      clamp(1rem,     .847rem + .631vw, 1.25rem);   /* 16 → 20px */
  --fs-h1:        clamp(1.75rem,  1.289rem + 1.893vw, 2.5rem);  /* 28 → 40px */
  --fs-h2:        clamp(1.25rem,  1.058rem + .789vw, 1.5625rem);/* 20 → 25px */
  --fs-h3:        clamp(1.125rem, 1.010rem + .473vw, 1.3125rem);/* 18 → 21px */
  --fs-flip-head: clamp(1.1875rem, .995rem + .789vw, 1.5rem);   /* 19 → 24px */
  --fs-hero:      clamp(2rem,      .924rem + 4.416vw, 3.75rem); /* 32 → 60px */
  --fs-sec:       clamp(1.75rem,  1.096rem + 2.681vw, 2.8125rem);/* 28 → 45px */
  --fs-person:    clamp(1.5rem,   1.154rem + 1.419vw, 2.0625rem);/* 24 → 33px */
  --fs-cta:       clamp(1.8125rem, 1.121rem + 2.839vw, 2.9375rem);/* 29 → 47px */

  /* Maße */
  --container:      1200px;   /* Header, Footer, die meisten Sektionen */
  --container-nar:  1113px;   /* Startseite Contentbereich (Original: fix 1113px) */
  --gutter:         15px;
  --sec-pad:        80px;
  --radius-card:    0 0 15px 15px;
  --nav-w:          300px;
  --cookie-space:   0px;      /* wird von JS gesetzt, solange Banner sichtbar */
}

/* --------------------------------------------------------------------------
   2. Reset / Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Das hidden-Attribut muss auch dann greifen, wenn eine Klasse display setzt */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;           /* kein horizontaler Overflow */
  /* Original: hyphens:auto + overflow-wrap:break-word -> gleicher Zeilenumbruch */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { opacity: .8; }

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

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--c-teal); color: #fff; padding: 12px 20px;
  font-family: var(--f-body);
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. Layout-Helfer
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-nar); padding-inline: 0; }
.container--full   { max-width: none; padding-inline: 0; }

.section { position: relative; padding: var(--sec-pad) 0; }
.section--flush   { padding: 0; }
.section--tint    { background: var(--c-teal-25); }
.section--green10 { background: var(--c-green-10); }
.section--grey    { background: var(--c-grey-bg); }
.section--teal    { background: var(--c-hero-teal); color: #fff; }

.grid { display: flex; flex-wrap: wrap; margin-inline: -var(--gutter); }

/* Spaltenraster mit 30px Rinne (Original: .qx-col-wrap padding 15px).
   Die Außenkanten bleiben dabei exakt auf der Containerkante. */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
}
.row > * { padding-inline: 0; }

.col-3  { flex: 1 1 calc(25% - 22.5px);     max-width: calc(25% - 22.5px); }
.col-4  { flex: 1 1 calc(33.3333% - 20px);  max-width: calc(33.3333% - 20px); }
.col-6  { flex: 1 1 calc(50% - 15px);       max-width: calc(50% - 15px); }
.col-12 { flex: 1 1 100%; max-width: 100%; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Kleine Hilfsklassen – ersetzen jegliches Inline-CSS */
.cell         { padding: 15px 0; }
.cell--pt50   { padding-top: 50px; }   /* Praxis: Textspalte 50px unter Sektionsstart */
.cell--pt0    { padding-top: 0; }
.cell--tight  { padding: 0; display: flex; }   /* Flipbox-Spalten: gleiche Höhe */
.row--middle  { align-items: center; }
.mt-24        { margin-top: 24px; }
.mt-26        { margin-top: 26px; }
.section--pt0 { padding-top: 0; }
.section--pad40 { padding: 40px 0; }
.section--band  { padding: 0; display: flex; align-items: center; min-height: 210px; }
.section--band > .container { width: 100%; }
.section--team  { padding: 90px 0 100px; }
.lead-tint {                       /* Original: 25px/40px, rgb(69,151,155) */
  font-size: var(--fs-h2);
  line-height: 1.6;
  color: var(--c-teal);
  max-width: 900px;
  margin-inline: auto;
}
.h-green {                                   /* Team: 40/44 Handlee w400 */
  font-size: var(--fs-h1);
  line-height: 1.1;
  font-weight: 400;
  color: var(--c-green);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   4. Kopfbereich
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--c-header-bg);
  padding: 25px 0;
  position: relative;
  z-index: 30;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 216px;
}

.site-header__logo   { flex: 0 0 auto; padding: 15px; }
.site-header__logo img { width: 298px; max-width: 100%; }

.site-header__claim  { flex: 1 1 auto; padding: 15px; }
.site-header__claim img { width: 390px; max-width: 100%; padding-top: 50px; }

.site-header__nav-toggle { flex: 0 0 auto; padding: 15px; margin-left: auto; }

/* Burger-Button – Original: 57×57, bg rgba(69,151,155,.26), pad 10px */
.burger {
  width: 57px; height: 57px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  padding: 10px;
  border: 0;
  background: rgba(69, 151, 155, .26);
  cursor: pointer;
  transition: background .3s ease;
}
.burger:hover { background: rgba(69, 151, 155, .45); }
.burger__bars { display: block; width: 24px; height: 14px; position: relative; }
.burger__bars::before,
.burger__bars::after,
.burger__bars span {
  content: ''; position: absolute; left: 0;
  width: 24px; height: 2px; background: #6b6b6b;
  transition: transform .3s ease, opacity .3s ease;
}
.burger__bars::before { top: 0; }
.burger__bars span    { top: 6px; }
.burger__bars::after  { top: 12px; }
.burger__label {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: .04em;
  color: #6b6b6b;
  margin-top: 2px;
}
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span    { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Offcanvas-Navigation
   Original: 300px breite Leiste rechts, transform .5s, Seite wird
   nach links geschoben, Pillen 280×50 mit radius 29px/24px.
   -------------------------------------------------------------------------- */
.offcanvas {
  position: fixed;
  top: 0; right: 0;
  width: var(--nav-w);
  max-width: 85vw;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 14px rgba(0, 0, 0, .12);
  padding: 5px 10px 10px;
  /* overflow muss sichtbar bleiben, sonst wird die Schließen-Schaltfläche
     links außerhalb der Leiste abgeschnitten – gescrollt wird die Liste */
  overflow: visible;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s ease;
  /* Stacking: Panel MUSS über dem Overlay liegen */
  z-index: 1200;
  -webkit-overflow-scrolling: touch;
}
.offcanvas.is-open { transform: translateX(0); }

.offcanvas__list { padding-top: 15px; flex: 1 1 auto; overflow-y: auto; }

.offcanvas__item {
  display: block;
  height: 50px;
  border: 6px solid transparent;
  background-clip: padding-box;
  background-color: var(--c-menu-idle);
  border-radius: 29px / 24px;
  transition: background-color .3s ease;
}
.offcanvas__item + .offcanvas__item { margin-top: 0; }

.offcanvas__item a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 4px 0 14px;
  font-family: var(--f-menu);
  font-size: 16px;
  line-height: 1.2;
  color: var(--c-menu-text);
}
.offcanvas__item:hover           { background-color: rgba(69, 152, 156, .18); }
.offcanvas__item.is-active       { background-color: var(--c-menu-active); }
.offcanvas__item.is-active a     { color: #fff; }

/* Original: 37×37 Feld direkt LINKS neben der aufgeklappten Leiste, oben */
.offcanvas__close {
  position: absolute;
  top: 0; left: -37px;
  width: 37px; height: 37px;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: rgba(69, 151, 155, .26);
  font-size: 22px; line-height: 1; color: #6b6b6b;
  /* nur sichtbar, solange die Leiste offen ist – sonst stünde sie
     am rechten Bildschirmrand neben dem Kopfbereich */
  opacity: 0;
  visibility: hidden;
  transition: background .3s ease, opacity .3s ease, visibility .3s ease;
}
.offcanvas.is-open .offcanvas__close { opacity: 1; visibility: visible; }
.offcanvas__close:hover { background: rgba(69, 151, 155, .45); }

/* Overlay – bewusst NIEDRIGER als das Panel, damit Klicks im Panel ankommen */
.offcanvas-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
  z-index: 1100;
}
.offcanvas-overlay.is-visible { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Startseite
   -------------------------------------------------------------------------- */
/* Contentbereich mit 35px Rand oben / 5px unten (Original-Border) */
.home-main {
  border-top: 35px solid var(--c-teal-25);
  border-bottom: 5px solid var(--c-teal-25);
  padding: 0 0 var(--sec-pad);
  position: relative;
  isolation: isolate;
}
.home-main__bg {
  position: absolute; inset: 0;
  background-color: var(--c-card-bg);
  background-image: url('../images/AdobeStock_114527883.jpeg');
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: .10;                 /* Original: opacity .1 */
  z-index: -1;
  pointer-events: none;
}

.icon-row { padding: 0; margin-inline: 0; }
.icon-row > * { padding-inline: 0; }
.icon-row .icon-cell { padding: 15px; text-align: center; }
.icon-row { margin-inline: 0; gap: 0; }
.icon-row .col-4 { flex: 1 1 33.3333%; max-width: 33.3333%; }
.icon-row img { width: 164px; height: 164px; margin-inline: auto; }

/* Balken hinter den Icons – Original: 80px hoch, -50px nach oben gezogen */
.icon-bar {
  background: var(--c-teal-25);
  height: 80px;
  margin-top: -50px;
  padding-top: 50px;
}

.info-cards { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.info-card__col {
  flex: 1 1 calc(50% - 9px);
  max-width: calc(50% - 9px);
  display: flex;
}
.info-card {
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  padding: 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.info-card h1,
.info-card h2 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  color: var(--c-heading-dark);
  margin-bottom: 20px;   /* Original: H2 endet 623, Text startet 643 */
}
.info-card p { margin: 0 0 32px; }        /* Original: eine Leerzeile Abstand */
.info-card p:last-of-type { margin-bottom: 0; }
.info-card--tight p { margin-bottom: 0; }  /* Original Karte 2: Absätze ohne Abstand */
.info-card__figure { flex: none; margin: auto 0 0; padding-top: 20px; text-align: center; }
.info-card__figure img { width: 447px; max-width: 100%; margin-inline: auto; }

/* Sektionsüberschrift + Trennlinie (Original: 550×4px, #559284) */
.section-head { text-align: center; }
.section-head h2 {
  font-size: var(--fs-h1);
  line-height: 1.2;
  color: var(--c-green);
}
.divider {
  display: block;
  width: 550px; max-width: 100%;
  height: 0;
  border-top: 4px solid var(--c-green);
  margin: 37px auto 20px;   /* Original: H2 endet 1486, Linie beginnt 1523 */
}
.divider--left       { margin: 22px 0 20px; width: 369px; }  /* Praxis */
.divider--team       { margin: 22px 0 20px; width: 351px; }  /* Team */
.divider--angebot    { margin: 22px 0 20px; width: 411px; }  /* Therapieangebot */
.divider--kategorien { margin: 39px 0 20px; width: 520px; }  /* Kategorien */
.divider--kontakt    { width: 188px; border-color: rgb(252, 252, 252); margin: 22px auto 20px; }

.teaser-col { padding: 15px 0; text-align: center; }
.teaser-col h2,
.teaser-col h3 { font-size: var(--fs-h2); line-height: 1.2; color: var(--c-green); margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   7. Seite „Die Praxis"
   Gemessen: SEC1 weiß, pad 80/0/0 – Bildkasten 933x347 @0,311 –
   H1 60/72 Handlee w400 rgb(58,131,138) – Absätze 20/36
   -------------------------------------------------------------------------- */
.section--hero { background: #fff; padding: 0; }

.split { display: flex; flex-wrap: wrap; align-items: flex-start; }
.split__media {
  flex: 0 0 49%;
  min-height: 347px;
  align-self: stretch;
  margin-top: 45px;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-color: var(--c-card-bg);
}
/* Rekonstruiertes Hero-Bild der Seite „Die Praxis" */
.split__media--praxis { background-image: url('../images/AdobeStock_415052637.jpeg'); }

.split__body { flex: 1 1 51%; padding: 45px 50px 50px; }
.split__body .eyebrow {
  /* Original: h4 in der System-Schrift, 14px – wirkt dadurch größer als Assistant */
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: uppercase;
  color: rgb(119, 119, 119);
  margin-bottom: 20px;
}
.split__body h1 {
  font-size: var(--fs-hero);
  line-height: 1.2;
  font-weight: 400;
  color: rgb(58, 131, 138);
  margin-bottom: 25px;
}
.split__body p { line-height: 1.8; margin: 0; }      /* Original: 20px/36px */

/* „Unsere Praxis" – H2 45/45 Handlee w300, Linie 369x4 */
.page-head h2 {
  font-size: var(--fs-sec);
  line-height: 1;
  font-weight: 300;
  color: var(--c-green);
}
.page-head h1 {
  font-size: var(--fs-hero);
  line-height: 1;
  font-weight: 400;
  color: var(--c-green);
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 585 / 437;
  min-height: 340px;
  border: 0;
  overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Slider ----------------------------------------------------------------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  /* Original (UIkit-Slider): ca. 400 ms, ease – kein Autoplay */
  transition: transform .4s ease;
  will-change: transform;
}
.slider__slide { flex: 0 0 33.3333%; padding: 0 7px; }
.slider__slide img {
  width: 100%;
  height: 506px;
  object-fit: cover;
}
.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 45px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: #999; font-size: 34px; line-height: 1;
  transition: color .2s ease, opacity .2s ease;
}
.slider__nav:hover { color: var(--c-teal); }
.slider__nav[disabled] { opacity: .25; cursor: default; }
.slider__nav--prev { left: -50px; }
.slider__nav--next { right: -50px; }

.slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.slider__dot {
  width: 11px; height: 11px; padding: 0;
  border: 1px solid var(--c-teal); border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: background .3s ease;
}
.slider__dot.is-active { background: var(--c-teal); }

/* --------------------------------------------------------------------------
   8. Seite „Unsere Therapieangebote"
   -------------------------------------------------------------------------- */
/* Pfeil-Liste – Pfeil als reines CSS, kein externes Icon-Set nötig */
.head-angebot h1 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem); line-height: 1; font-weight: 700; color: var(--c-green); }
.head-angebot h2 { font-size: var(--fs-h2); line-height: 1.2; font-weight: 600; color: var(--c-green); }

/* Pfeil-Liste – Original: Icon 30px breit, 20px/32px Text, 5px Abstand */
.arrow-list { margin-top: 30px; }
.arrow-list li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 5px;
  line-height: 1.6;
}
.arrow-list li::before {           /* Schaft */
  content: '';
  position: absolute;
  left: 0; top: .78em;
  width: 22px; height: 1.5px;
  background: var(--c-teal);
}
.arrow-list li::after {            /* Spitze */
  content: '';
  position: absolute;
  left: 14px; top: calc(.78em - 3.5px);
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--c-teal);
  border-right: 1.5px solid var(--c-teal);
  transform: rotate(45deg);
}

.media-pair { display: flex; flex-wrap: wrap; gap: 30px; }
.media-pair figure { flex: 1 1 calc(50% - 15px); margin: 0; }
.media-pair img { width: 100%; height: 380px; object-fit: cover; }

/* Flipbox – Original: 0.6s ease-in-out, rotateX, perspective 1000px.
   Beide Seiten liegen im selben Rasterfeld übereinander: Der Kasten wächst
   dadurch automatisch auf die Höhe der längeren Seite – kein überlaufender
   Text mehr bei schmalen Fenstern. */
.flipbox {
  perspective: 1000px;
  min-height: 450px;
  display: flex;
  flex: 1 1 auto;      /* füllt die Spalte -> beide Kästen einer Reihe gleich hoch */
}
.flipbox__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-areas: "face";
  transform-style: preserve-3d;
}
.flipbox__face {
  grid-area: face;
  min-width: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 15px;      /* Original: Textbreite 545 in 575px-Kasten */
  text-align: center;
  backface-visibility: hidden;
  transition: transform .6s ease-in-out;
  transform-style: preserve-3d;
}
.flipbox__face--front { transform: rotateX(0deg); }
.flipbox__face--back  { transform: rotateX(180deg); }
.flipbox:hover .flipbox__face--front,
.flipbox:focus-within .flipbox__face--front { transform: rotateX(-180deg); }
.flipbox:hover .flipbox__face--back,
.flipbox:focus-within .flipbox__face--back  { transform: rotateX(0deg); }

.flipbox__face h3 { font-size: var(--fs-flip-head); line-height: 1.4; }
.flipbox__face p  { font-size: var(--fs-body); line-height: 1.6; }

.flipbox--a .flipbox__face--front { background: var(--c-teal-25); }
.flipbox--a .flipbox__face--front h3 { color: var(--c-teal); }
.flipbox--a .flipbox__face--back  { background: var(--c-teal-25); color: var(--c-teal); }

.flipbox--b .flipbox__face--front { background: var(--c-green-52); }
.flipbox--b .flipbox__face--front h3 { color: rgb(6, 6, 6); }
.flipbox--b .flipbox__face--back  { background: var(--c-teal-25); color: rgb(44, 44, 44); }

/* Original: ZWEI Lagen rgba(69,151,155,.25) übereinander – dadurch deutlich
   dunkler als eine einzelne Lage. Das im Original hinterlegte Foto
   (crayons-1209804_1920.jpg) lädt dort nicht und bleibt auch hier weg:
   Es würde die weiße Schrift unlesbar machen. */
.cta-band {
  position: relative;
  background: rgba(69, 151, 155, .4375);   /* = 2 x 25 % übereinander */
}
.cta-band h2 {
  font-size: var(--fs-cta);       /* Original 47px */
  line-height: 1;
  font-weight: 300;
  color: rgb(252, 252, 252);
  margin-bottom: 22px;
}

/* Buttons – Original: bg #45979B, Handlee 20px, pad 20px 40px, radius 1px */
.btn {
  display: inline-block;
  background: var(--c-teal);
  color: var(--c-btn-text);
  font-family: var(--f-head);
  font-size: clamp(1rem, .93rem + .35vw, 1.25rem);
  line-height: 1;
  padding: 10px 40px;   /* Original: sichtbare Höhe 41px bei 20px Schrift */
  border: 0;
  border-radius: 1px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.btn:hover { background: rgb(59, 64, 79); opacity: 1; transform: translateY(-2px); }  /* Originalfarbe */

.btn--caps {
  font-family: var(--f-body);
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 34px;
  background: var(--c-green);
}
.btn--caps:hover { background: rgb(70, 124, 112); }

/* --------------------------------------------------------------------------
   9. Seite „Das Team"
   -------------------------------------------------------------------------- */
/* Original: 4 Spalten a 270px, 30px Abstand, Bild 270x363, Name 28px darunter */
.team-grid { display: flex; flex-wrap: wrap; gap: 30px; }
.team-member { flex: 1 1 calc(25% - 22.5px); max-width: calc(25% - 22.5px); padding: 15px 0 0; text-align: center; }
.team-photo { margin-top: 15px; }
.team-member img {
  width: 100%;
  height: 363px;
  object-fit: cover;
  margin-bottom: 20px;   /* Original */
}
.team-member h2,
.team-member h3 {
  font-size: var(--fs-person);   /* Original 33px */
  line-height: 1.2;
  font-weight: 400;
  color: var(--c-teal);
  margin-bottom: 5px;
}
.team-member p  {                /* Original: geerbte 20px, Zeilenhöhe 1.2em */
  font-size: var(--fs-body);
  line-height: 1.2;
  color: var(--c-teal);
  margin-bottom: 20px;
}

.team-photo {
  min-height: 351px;
  background-image: url('../images/Team/image00019.jpeg');
  background-size: cover;
  background-position: 50% 0%;
}

/* --------------------------------------------------------------------------
   10. Seite „Kontakt" / Formular
   -------------------------------------------------------------------------- */
.contact-hero { background: var(--c-hero-teal); color: #fff; text-align: center; }
.contact-hero h1 { font-size: var(--fs-h1); line-height: 1.2; font-weight: 400; color: rgb(252, 252, 252); }
.contact-hero p, .contact-hero a { color: rgb(252, 252, 252); }
.contact-hero p { margin-bottom: 0; }
.contact-hero .block + .block { margin-top: 26px; }
.contact-hero a { text-decoration: none; }
.contact-hero a:hover { text-decoration: underline; }

.contact-line { display: flex; align-items: center; justify-content: center; gap: 10px; }
.contact-line svg { width: 20px; height: 20px; flex: none; }

.form-head h2 { font-size: var(--fs-h2); line-height: 1; font-weight: 700; color: var(--c-green); margin-bottom: 30px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: #444;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 16px;
  color: #000;
  background: transparent;
  border: 1px solid var(--c-input-border);
  border-radius: 4px;
  padding: 18px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; padding-top: 16px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(69, 151, 155, .15);
  outline: none;
}
.field.has-error input,
.field.has-error textarea { border-color: #c0392b; }
.field__error {
  display: none;
  font-size: 14px;
  color: #c0392b;
  margin-top: 6px;
}
.field.has-error .field__error { display: block; }

/* Honeypot – für Menschen unsichtbar, für Bots ein Köder */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note { font-size: 14px; color: #666; margin: 4px 0 18px; }

.form-status {
  display: none;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.5;
}
.form-status.is-visible { display: block; }
.form-status--ok   { background: #e4f4ea; border: 1px solid #79b892; color: #1e6b40; }
.form-status--err  { background: #fdeceb; border: 1px solid #e0a3a0; color: #99271e; }

.btn--submit { width: 100%; padding: 15px; font-family: var(--f-body);
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.btn--submit[disabled] { opacity: .6; cursor: progress; transform: none; }

.contact-card {
  background: #fff;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.contact-card__list { margin-top: 22px; }
.contact-card__list li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.contact-card__list svg { width: 18px; height: 18px; flex: none; color: var(--c-teal); }

/* --------------------------------------------------------------------------
   11. Rechtstexte
   -------------------------------------------------------------------------- */
/* Original: Fließtext 20px/32px Assistant, Zwischenüberschriften 20px/28px
   in der System-Schrift, rgb(51,51,51). */
.legal { max-width: 900px; margin-inline: auto; }
.legal h1 { font-size: var(--fs-h1); color: var(--c-green); text-align: center; margin-bottom: 40px; }
.legal h2,
.legal h3 {
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: rgb(51, 51, 51);
  margin: 34px 0 10px;
}
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal li { font-size: var(--fs-body); line-height: 1.6; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal ul li { margin-bottom: 6px; }
.legal--center { text-align: center; }
.legal--center h2 { margin-top: 30px; font-weight: 700; }   /* Impressum: fette Sprungmarken wie im Original */

/* --------------------------------------------------------------------------
   12. Fußbereich
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-footer-bg);
  color: #fff;
  padding: var(--sec-pad) 0 calc(var(--sec-pad) + var(--cookie-space));
  transition: padding-bottom .3s ease;
}
.site-footer h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.4;
  color: #fff;
  margin-bottom: 20px;
}
.site-footer p, .site-footer li { color: #fff; }
.site-footer a:hover { text-decoration: underline; opacity: 1; }
.site-footer__col { padding: 15px 20px 15px 0; }
.site-footer__nav li { margin-bottom: 0; line-height: 32px; }

/* Nach-oben-Button – Original: 60×60, bg #4E1208, opacity .8 */
.to-top {
  position: fixed;
  right: 30px;
  bottom: calc(30px + var(--cookie-space));
  width: 60px; height: 60px;
  background: rgb(78, 18, 8);
  opacity: 0;
  visibility: hidden;
  border: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease, visibility .3s ease, bottom .3s ease;
  z-index: 900;
}
.to-top.is-visible { opacity: .8; visibility: visible; }
.to-top:hover { opacity: 1; }
.to-top svg { width: 16px; height: 16px; color: #fff; }

/* --------------------------------------------------------------------------
   13. Cookie-Banner
   Reserviert unten Platz, damit die Footer-Links frei bleiben.
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 4px solid var(--c-teal);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .12);
  padding: 18px var(--gutter);
  z-index: 1000;
  transform: translateY(110%);
  transition: transform .4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cookie-banner p { flex: 1 1 320px; font-size: 15px; line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--c-teal); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 12px 26px; font-size: 15px; font-family: var(--f-body); }
.cookie-banner .btn--ghost {
  background: transparent;
  color: var(--c-teal);
  border: 1px solid var(--c-teal);
}
.cookie-banner .btn--ghost:hover { background: rgba(69, 151, 155, .1); }

/* --------------------------------------------------------------------------
   14. 404
   -------------------------------------------------------------------------- */
.error-page { text-align: center; padding: 90px 0 100px; }
.error-page .code {
  font-family: var(--f-head);
  font-size: clamp(4.5rem, 3rem + 8vw, 9rem);
  line-height: 1;
  color: var(--c-teal);
}
.error-page h1 { font-size: var(--fs-h1); color: var(--c-green); margin: 16px 0 20px; }
.error-page p  { max-width: 620px; margin-inline: auto; margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   15. Scroll-Reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   16. Responsive
   Der Nachbau bricht früher um als das Original (dort feste 1113px/719px),
   damit nichts gestaucht wirkt.
   ========================================================================== */

/* ---- ab 1200px abwärts: Innenabstände der Karten reduzieren ---- */
@media (max-width: 1199px) {
  /* Startseiten-Container braucht unterhalb der Fixbreite wieder Seitenluft */
  .container--narrow { padding-inline: var(--gutter); }
  .info-card { padding: 40px; }
  .slider__nav--prev { left: -10px; }
  .slider__nav--next { right: -10px; }
  .split__body { padding: 40px; }
}

/* ---- ≤1024px: Karten einspaltig, Sliderteilung reduzieren ---- */
@media (max-width: 1024px) {
  :root { --sec-pad: 56px; }

  /* Kopfbereich bleibt einzeilig und schrumpft mit – nichts wirkt gestaucht */
  .site-header { padding: 18px 0; }
  .site-header__inner { min-height: 0; flex-wrap: nowrap; gap: 12px; }
  .site-header__logo   { padding: 8px; flex: 0 1 auto; }
  .site-header__logo img { width: clamp(120px, 20vw, 220px); }
  .site-header__claim  { padding: 8px; flex: 1 1 auto; }
  .site-header__claim img { width: clamp(180px, 34vw, 330px); padding-top: 0; }
  .site-header__nav-toggle { padding: 8px; }

  .info-card__col { flex: 1 1 100%; max-width: 100%; }
  .info-card { border-radius: 0 0 15px 15px; }

  .slider__slide { flex: 0 0 50%; }
  .slider__slide img { height: 420px; }

  .split__media { flex: 1 1 100%; min-height: 300px; }
  .split__body  { flex: 1 1 100%; padding: 40px var(--gutter); }

  .team-member { flex: 1 1 calc(50% - 15px); max-width: calc(50% - 15px); }

  .media-pair img { height: 300px; }

  .flipbox { min-height: 420px; }
}

/* ---- ≤900px: Spalten generell einspaltig ---- */
@media (max-width: 900px) {
  .col-3, .col-4, .col-6 { flex: 1 1 100%; max-width: 100%; }
  .icon-row .col-4 { flex: 1 1 33.3333%; max-width: 33.3333%; }

  .teaser-col + .teaser-col { margin-top: 34px; }
  .site-footer__col + .site-footer__col { margin-top: 10px; }

  .split__body h1 { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.4rem); }
}

/* ---- ≤767px: Mobile ---- */
@media (max-width: 767px) {
  :root { --sec-pad: 40px; }

  .site-header { padding: 14px 0; }
  .site-header__inner { gap: 8px; align-items: center; }
  .site-header__logo   { padding: 4px; flex: 0 1 auto; }
  .site-header__logo img { width: clamp(70px, 22vw, 120px); }
  .site-header__claim  { padding: 4px; flex: 1 1 auto; }
  .site-header__claim img { width: clamp(130px, 42vw, 220px); }
  .site-header__nav-toggle { padding: 4px; }

  .home-main { border-top-width: 20px; }

  .icon-row .col-4 { flex: 1 1 33.3333%; max-width: 33.3333%; padding: 8px; }
  .icon-row img { width: 100%; max-width: 110px; height: auto; }
  .icon-bar { height: 56px; margin-top: -34px; padding-top: 34px; }

  .info-card { padding: 26px 20px; }
  .info-card__figure img { width: 260px; }

  .slider__slide { flex: 0 0 100%; }
  .slider__slide img { height: 340px; }
  .slider__nav--prev { left: 0; }
  .slider__nav--next { right: 0; }

  .team-member { flex: 1 1 100%; max-width: 100%; }
  .team-member img { height: 340px; }

  /* Auf Touch-Geräten kein Hover – beide Seiten untereinander zeigen */
  .flipbox { min-height: 0; perspective: none; display: block; }
  .flipbox__inner { display: block; }
  .flipbox__face {
    transform: none !important;
    backface-visibility: visible;
    padding: 26px 20px;
  }
  .flipbox__face--back { padding-top: 0; }

  .media-pair figure { flex: 1 1 100%; }
  .media-pair img { height: 240px; }

  .divider { width: 100%; max-width: 320px; }
  .divider--left, .divider--left-wide { max-width: 220px; }

  .contact-card { padding: 18px; }
  .to-top { right: 16px; width: 48px; height: 48px; }

  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { width: 100%; }
}

/* ---- sehr schmal ---- */
@media (max-width: 400px) {
  .burger { width: 48px; height: 48px; }
}
