/* ============================================================
   SENSO CARE – Styles
   Breakpoints: mobile <768px | tablet 768–1024px | desktop >1024px
   ============================================================ */

:root {
  --teal:          #058cab;   /* brand teal — matches the "senso care" logo wordmark */
  --teal-dark:     #046e86;   /* darker shade for hovers / footer */
  --teal-light:    #1ba7c6;   /* lighter shade for focus ring / links */
  --teal-logo:     #058cab;   /* alias kept for the section banners */
  --teal-grad:     linear-gradient(135deg, #046e86 0%, #058cab 55%, #18accb 100%);
  --pink:          #c8a0a0;
  --bg:            #eef3f4;
  --bg-alt:        #e2eaec;
  --white:         #ffffff;
  --text:          #1a2e3a;
  --text-mid:      #3a5060;
  --text-muted:    #6a8090;
  --shadow:        0 4px 24px rgba(0,0,0,.10);
  --radius:        8px;
  --nav-h:         70px;
  --font:          'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --max-w:         1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Brand-colored text selection */
::selection { background: var(--teal); color: var(--white); }

/* Visible keyboard focus ring — appears on Tab, not on mouse click */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 2px;
  border-radius: 2px;
}
img  { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.logo {
  display: flex; align-items: center;
  flex-shrink: 0;
  transition: opacity .2s;
}
.logo:hover { opacity: .85; }
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.nav-list {
  display: flex; align-items: center; gap: .25rem;
}
.nav-list a {
  position: relative;
  padding: .45rem 1rem;
  font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text);
  transition: color .2s;
}
.nav-list a::after {
  content: '';
  position: absolute; left: 1rem; right: 1rem; bottom: .15rem;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-list a:hover { color: var(--teal); }
.nav-list a:hover::after,
.nav-list a.active::after { transform: scaleX(1); }
.nav-sep { color: var(--text-muted); padding: 0 .1rem; user-select: none; }
.nav-list .hl a { color: var(--teal); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Section shell ── */
.section { padding-top: var(--nav-h); }

.s-banner {
  background: var(--teal-logo); color: var(--white);
  padding: 1rem 2rem;
  font-size: 1.05rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  text-align: center; line-height: 1.5;
}
.s-banner h2 { font-size: inherit; font-weight: inherit; margin: 0; color: inherit; }
.s-banner .b-logo { opacity: .85; flex-shrink: 0; }

.s-body {
  position: relative; background: var(--bg); overflow: hidden;
}
.s-body + .s-banner { margin-top: 0; }

/* decorative circles */
.deco {
  position: absolute; border-radius: 50%;
  background: var(--pink); opacity: .45; pointer-events: none;
}

/* ── Inner wrapper ── */
.inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4rem 2rem;
}

/* ── Two-column grid ── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}

/* ── Typography helpers ── */
.s-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; text-transform: uppercase;
  color: var(--teal); line-height: 1.15; margin-bottom: 1.25rem;
}
.s-text { font-size: 1rem; line-height: 1.85; color: var(--text-mid); }
.s-text + .s-text { margin-top: 1rem; }

/* ── Services list ── */
.svc-list li {
  position: relative; padding: .45rem 0 .45rem 1.4rem;
  color: var(--text-mid); line-height: 1.6;
}
.svc-list li::before { content: '•'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── Teal box ── */
.teal-box {
  background: var(--teal); color: var(--white);
  padding: 2rem 2.25rem; border-radius: var(--radius);
  line-height: 1.8; font-size: 1rem;
}

/* ── Hero ── */
#home {
  min-height: 100vh;
  padding-top: 0;             /* image starts from top edge; override .section */
  background: var(--bg);
  display: flex; align-items: stretch; position: relative; overflow: hidden;
}
.hero-inner {
  /* Full viewport width — image right column bleeds to screen edge */
  max-width: 100%; margin: 0;
  padding: 0;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 0; align-items: stretch;
  width: 100%; position: relative; z-index: 1;
}
.hero-left {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 4rem;
  padding-left: clamp(4rem, 8vw, 8rem);
  padding-right: 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.08;
  color: var(--text-mid);
}
.hero-box {
  background: var(--teal); color: var(--white);
  padding: 1.6rem 1.8rem; border-radius: var(--radius);
  margin-top: 2rem; font-size: 1rem; line-height: 1.6;
  max-width: 100%;
}
/* ── Section images (img/hero/, img/betreuung/, …) ──────────────────────
   One file per slot — CSS handles all screen sizes automatically.
   object-fit: cover crops to fill the slot without distortion.        */
.hero-img-wrap {
  position: relative;
  height: 100vh;
  padding-top: var(--nav-h);
}
.hero-img-wrap .deco { width: 130px; height: 130px; bottom: -40px; left: -50px; }
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* full photo fills the column (like mobile) */
  object-position: center;
  display: block;
}
.s-body img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ── Betreuung – full-bleed image layout ── */
.bt-visual {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 58px);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--bg) 70%, var(--teal) 100%);
}
.bt-bg {
  position: absolute;
  left: 0; bottom: 0;
  width: 40% !important; height: 85% !important;
  object-fit: cover; object-position: center top;
  border-radius: 0 !important;
}
.bt-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  min-height: calc(100vh - var(--nav-h) - 58px);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.bt-subtitle {
  display: none;             /* intro line switched off — set to block to show again */
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0; z-index: 3;
  font-size: 1rem; line-height: 1.5;
  color: var(--text-mid); text-align: center;
  padding: 0 2rem;
}
.bt-right-col {
  margin-left: 42%;
  display: flex; flex-direction: column;
  gap: 1.5rem; flex: 1; justify-content: center;
}
/* Subtitle is hidden — lift the heading block up into the freed space (desktop only) */
@media (min-width: 1025px) {
  .bt-right-col { justify-content: flex-start; padding-top: 4vh; }
}
.bt-heading {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 900; text-transform: uppercase;
  color: var(--teal); line-height: 1.05;
}
.bt-desc {
  font-size: .95rem; line-height: 1.75;
  color: var(--text);
  background: rgba(0,0,0,.08);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
}
.bt-box {
  background: var(--teal-grad);
  color: var(--white);
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius);
  font-size: .95rem; line-height: 1.7;
}

/* ── Über uns – full viewport height, image right ── */
.ub-visual {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 58px);
  overflow: hidden;
  background: var(--bg);
}
.ub-bg {
  position: absolute;
  right: 0; top: 0;
  width: 40% !important;
  height: calc(100vh - var(--nav-h) - 58px) !important;
  object-fit: cover; object-position: 48% top;
  border-radius: 0 !important;
}
.ub-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  min-height: calc(100vh - var(--nav-h) - 58px);
  display: flex; flex-direction: column; justify-content: center;
}
.ub-left {
  max-width: 55%;
  display: flex; flex-direction: column; gap: 1.5rem;
}

/* ── Kooperation sub1 – full viewport height ── */
.koop-sub1 {
  min-height: calc(100vh - var(--nav-h) - 58px);
  display: flex; flex-direction: column;
  background: linear-gradient(to bottom, var(--bg) 70%, var(--teal) 100%);
}
.koop-sub1 .inner {
  width: 100%; flex: 1;
  display: flex; flex-direction: column;
  padding-top: 13rem;
}
.koop-sub2 {
  min-height: calc(100vh - var(--nav-h) - 58px);
  display: flex; flex-direction: column;
}
.koop-sub2 .inner {
  width: 100%; flex: 1;
  display: flex; flex-direction: column;
  padding-bottom: 0;
}
.koop-text { padding-top: 1rem; text-align: center; }
.koop-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: auto auto 2.5rem;     /* pin to section bottom, centred, with breathing room */
  width: 100%;
  max-width: var(--max-w);
  padding: 0 2rem;
}
/* each item is a <picture> — turn it into a uniform image card */
.koop-gallery picture {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  transition: transform .4s ease, box-shadow .4s ease, opacity .6s ease;
}
.koop-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  transition: transform .6s ease;
}
/* refined hover — gentle lift + slow zoom, calm and on-brand */
@media (hover: hover) {
  .koop-gallery picture:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0,0,0,.18);
    transition-delay: 0s !important;   /* override reveal.js stagger delay so hover stays snappy */
  }
  .koop-gallery picture:hover img { transform: scale(1.06); }
}

/* ── Betreuung services block – full viewport height ── */
.bt-services {
  min-height: calc(100vh - var(--nav-h) - 58px);
  display: flex; align-items: center;
}
.bt-services .inner { width: 100%; position: relative; z-index: 2; }
.bt-bg-right {
  position: absolute;
  right: 0; bottom: 0;
  width: 40% !important; height: 100% !important;
  object-fit: cover; object-position: center top;
  border-radius: 0 !important;
}
.bt-svc { max-width: 55%; }
.bt-mobile-note { display: none; }

/* ── Big quote ── */
.big-quote {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 800; text-transform: uppercase;
  color: var(--text); line-height: 1.3;
  padding: 2rem;
  max-width: 820px; margin: auto;
}

/* ── Contact section ── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.contact-deco-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; position: relative;
}
.contact-deco-wrap .deco { position: static; width: 120px; height: 120px; opacity: .5; }

.contact-card {
  --logo-h: 180px;            /* logo height (overridden per breakpoint) */
  background: var(--bg); color: var(--text);
  border-radius: var(--radius); padding: 3rem 2.5rem 3rem 5rem;
}
.card-brand {
  display: flex; align-items: center; justify-content: center;
  margin-top: -0.75rem;        /* nudge the logo up */
  margin-bottom: 5.5rem;       /* open a clear gap before the contact list */
}
.card-brand img { height: var(--logo-h); width: auto; display: block; }
/* centered as a group, but icons share one left edge (vertical column) */
.c-list { width: fit-content; max-width: 100%; margin-inline: auto; }
.c-item {
  display: flex; align-items: flex-start; gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.c-icon { flex-shrink: 0; width: 28px; margin-top: 2px; }
.c-detail { font-size: 1.05rem; line-height: 1.55; color: var(--teal); }
.c-detail a { color: var(--teal); transition: color .2s; }
.c-detail a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ── Contact form (v2) ── */
.contact-form {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.f-group { display: flex; flex-direction: column; gap: .35rem; }
.f-group label { font-weight: 600; font-size: .9rem; color: var(--text); }
.f-group input,
.f-group textarea,
.f-group select {
  border: 2px solid #cdd8dc; border-radius: var(--radius);
  padding: .75rem 1rem; font-family: var(--font); font-size: 1rem;
  color: var(--text); background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.f-group input:hover,
.f-group textarea:hover { border-color: #aebfc5; }
.f-group input:focus,
.f-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(5,140,171,.13);
}
.f-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: var(--teal); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: .9rem 2.2rem; font-family: var(--font);
  font-size: 1rem; font-weight: 700;
  cursor: pointer; align-self: flex-start;
  box-shadow: 0 2px 8px rgba(5,140,171,.25);
  transition: background .2s, transform .15s ease, box-shadow .2s ease;
}
.btn-submit:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5,140,171,.32);
}
.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(5,140,171,.25);
}
.f-msg {
  padding: .8rem 1rem; border-radius: var(--radius);
  font-weight: 600; display: none;
}
.f-msg.ok  { display: block; background: #d1f0e8; color: #145a3a; }
.f-msg.err { display: block; background: #fde8e8; color: #7a1c1c; }

/* ── Footer ── */
footer {
  background: var(--teal-dark); color: rgba(255,255,255,.75);
  text-align: center; padding: 2rem; font-size: .9rem;
}
footer p + p { margin-top: .5rem; }
footer a { color: rgba(255,255,255,.55); margin: 0 .6rem; transition: color .2s; }
footer a:hover { color: var(--white); }

/* ── Active nav link ── */
.nav-list a.active { color: var(--teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--teal);
  color: var(--white);
  padding: .6rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Tablet */
@media (max-width: 1024px) {

  /* Nav — hamburger at tablet and below */
  .nav { padding: 0 1.5rem; }
  .logo img { height: 48px; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem 1.5rem 1.5rem;
    gap: .25rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-110%);
    opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-list.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-sep { display: none; }
  .nav-list a { padding: .6rem 0; font-size: .95rem; }
  .nav-list a::after { display: none; }   /* growing underline only on desktop nav */

  /* General */
  .inner { padding: 3rem 2rem; }

  /* Hero — stacked layout (same as mobile, scaled for tablet) */
  .hero-inner {
    display: flex; flex-direction: column;
    padding: 0; gap: 0;
    height: 100vh; min-height: 0; position: static;
    overflow: hidden; align-items: stretch;
  }
  .hero-left {
    position: relative; z-index: auto;
    max-width: 100%; margin: 0;
    padding: calc(var(--nav-h) + 2.5rem) 0 0;
    text-align: center;
    background: var(--bg);
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .hero-left::after {
    content: '';
    position: absolute;
    width: 160px; height: 160px; border-radius: 50%;
    background: var(--pink); opacity: .45;
    top: -20px; right: -35px; pointer-events: none;
  }
  .hero-title {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    color: var(--teal); font-weight: 900;
    background: none;
    padding: 0 2rem 2.5rem; border-radius: 0;
    flex: 1;
  }
  .hero-box {
    font-size: 1rem; line-height: 1.65;
    padding: 1.75rem 3rem;
    margin: 0;
    background: var(--teal-grad);
    color: var(--white);
    border-radius: 0; text-align: center;
  }
  .hero-img-wrap {
    position: static !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    width: 100% !important; height: auto !important;
    padding-top: 0 !important;
    flex: 1; min-height: 0; z-index: auto; background: none;
  }
  .hero-img-wrap img {
    width: 100%; height: 100% !important;
    object-fit: cover; object-position: center top;
  }
  .hero-img-wrap .deco { display: none; }

  /* Two-col — side by side, tighter gap */
  .two-col { gap: 2rem; }

  /* Betreuung bt-visual — stacked: subtitle → photo → content */
  .bt-visual { min-height: auto; display: flex; flex-direction: column; }
  .bt-subtitle { position: static; padding: 2rem 2rem 0; text-align: left; }
  .bt-visual picture { display: block; width: 100%; flex-shrink: 0; }
  .bt-bg {
    display: block;
    position: relative !important;
    left: auto !important; bottom: auto !important;
    width: 100% !important; height: 400px !important;
    object-fit: cover; object-position: center top;
  }
  .bt-content { min-height: auto; padding: 2.5rem 2rem 3rem; }
  .bt-right-col { margin-left: 0; }

  /* Betreuung bt-services — stacked: list → photo */
  .bt-services { min-height: auto; display: flex; flex-direction: column; }
  .bt-services picture { display: block; width: 100%; order: 2; flex-shrink: 0; }
  .bt-bg-right {
    display: block;
    position: relative !important;
    left: auto !important; bottom: auto !important; right: auto !important;
    width: 100% !important; height: 400px !important;
    object-fit: cover; object-position: center center;
  }
  .bt-services .inner { order: 1; }
  .bt-svc { max-width: 100%; }

  /* Kooperation sub1 — push content down for visual balance */
  .koop-sub1 .inner { padding-top: 7rem; }

  /* Kooperation gallery — 2×2 */
  .koop-gallery { grid-template-columns: repeat(2, 1fr); max-width: 640px; }

  /* Über uns — text (order 1) on top, full uncropped photo (order 2) at bottom */
  #uberuns { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  .ub-visual { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
  .ub-content { order: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 2rem; z-index: 1; }
  .ub-visual picture { order: 2; display: block; width: 100%; flex-shrink: 0; height: auto; overflow: visible; }
  .ub-bg {
    position: static !important;
    inset: auto !important;
    width: 100% !important; height: auto !important;
    object-fit: contain; object-position: center bottom;
    filter: none; border-radius: 0 !important;
  }
  .ub-left { max-width: 100%; gap: 1.25rem; }
  .ub-left .bt-heading { color: var(--text); }
  .ub-left .s-text { background: none; backdrop-filter: none; color: var(--text); padding: 0; border-radius: 0; }

  /* Kontakt — single-column stack */
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-deco-wrap { display: none; }
  .contact-card { padding: 2.5rem 2.5rem; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  #betreuung, #betreuung-2, #kooperation, #kooperation-2, #uberuns, #kontakt { border-radius: 0 !important; }

  .nav { padding: 0 1.25rem; }
  .logo img { height: 44px; }

  .nav-list {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem 1.5rem 1.5rem;
    gap: .25rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-110%);
    opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-list.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-sep { display: none; }
  .nav-toggle { display: flex; }
  .nav-list a { padding: .6rem 0; font-size: .95rem; }

  .inner { padding: 2.5rem 1.25rem; }
  .s-banner { font-size: .9rem; padding: .9rem 1.25rem; }
  .big-quote { padding: 1.25rem 1.25rem; font-size: clamp(1.1rem, 4vw, 1.5rem); }

  /* Hero — stacked mobile: heading block, teal box, image */
  .hero-inner {
    display: flex; flex-direction: column;
    padding: 0; gap: 0;
    height: 100vh; min-height: 0; position: static;
    overflow: hidden; align-items: stretch;
  }
  .hero-left {
    position: relative; z-index: auto;
    max-width: 100%; margin: 0;
    padding: calc(var(--nav-h) + 2.25rem) 0 0;
    text-align: center;
    background: var(--bg);
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .hero-left::after {
    content: '';
    position: absolute;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: var(--pink); opacity: .45;
    top: -15px; right: -30px;
    pointer-events: none;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    color: var(--teal); font-weight: 900;
    background: none; backdrop-filter: none;
    padding: 0 1.25rem 2.25rem; border-radius: 0;
    flex: 1;
  }
  .hero-box {
    font-size: .95rem; line-height: 1.6;
    padding: 1.5rem 1.25rem;
    margin: 0;
    background: var(--teal-grad);
    backdrop-filter: none;
    color: var(--white);
    border-radius: 0;
    text-align: center;
  }
  .hero-img-wrap {
    position: static !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    width: 100% !important; height: auto !important;
    padding-top: 0 !important;
    flex: 1; min-height: 0;
    order: unset; z-index: auto; background: none;
  }
  .hero-img-wrap img {
    width: 100%; height: 100% !important;
    object-fit: cover; object-position: center top;
  }
  .hero-img-wrap .deco { display: none; }
  /* Kontakt — compact layout */
  .contact-card {
    --logo-h: 90px;          /* smaller logo on mobile */
    padding: 1.4rem 1.25rem;
    order: -1;
  }
  .card-brand { margin-top: -0.25rem; margin-bottom: 3rem; }
  .c-item { margin-bottom: 1rem; gap: .8rem; }
  .c-detail { font-size: .95rem; }
  .contact-form { gap: .75rem; }
  .f-group label { font-size: .82rem; }
  .f-group input,
  .f-group textarea { padding: .55rem .8rem; font-size: .9rem; }
  .f-group textarea { min-height: 80px; }
  .btn-submit { width: 100%; text-align: center; align-self: stretch; padding: .75rem 1rem; font-size: .95rem; }

  /* Betreuung */
  [data-cms="betreuung.sub1_desc"] { display: none; }
  .bt-subtitle { text-align: left; }
  .bt-mobile-note { display: block; margin-top: 1.25rem; }

  /* Betreuung — first image: subtitle top, photo middle, heading bottom */
  .bt-visual { background: var(--bg); min-height: auto; display: flex; flex-direction: column; }
  .bt-subtitle { position: static; padding: 1.5rem 1.25rem 0; }
  .bt-visual picture { display: block; width: 100%; flex-shrink: 0; }
  .bt-bg {
    display: block;
    position: relative !important;
    left: auto !important; bottom: auto !important;
    width: 100% !important; height: 320px !important;
    object-fit: cover; object-position: center top;
  }
  .bt-content { min-height: auto; padding: 2rem 1.25rem 2.5rem; }
  .bt-right-col { margin-left: 0; }
  .bt-services { min-height: auto; display: flex; flex-direction: column; }
  .bt-services picture { display: block; width: 100%; order: 2; flex-shrink: 0; }
  .bt-bg-right {
    display: block;
    position: relative !important;
    left: auto !important; bottom: auto !important; right: auto !important;
    width: 100% !important; height: 320px !important;
    object-fit: cover; object-position: center center;
  }
  .bt-services .inner { order: 1; }
  .bt-services .deco { top: -30px !important; bottom: auto !important; left: -30px !important; }
  .bt-svc { max-width: 100%; }
  .bt-heading { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .bt-right-col .bt-heading { text-align: center; }

  /* Uberuns — stacked: content centered, photo pinned to bottom */
  #uberuns { height: 100vh; display: flex; flex-direction: column; }
  .ub-visual {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column;
  }
  .ub-visual::before { display: none; }
  .ub-visual picture { order: 2; display: block; width: 100%; flex-shrink: 0; height: auto; overflow: visible; }
  .ub-bg {
    position: static !important;
    inset: auto !important;
    width: 100% !important; height: auto !important;
    object-fit: contain; object-position: center bottom;
    filter: none; border-radius: 0 !important;
  }
  .ub-content { order: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.25rem; z-index: auto; }
  .ub-left { max-width: 100%; gap: 1rem; }
  .ub-left .bt-heading { color: var(--text); }
  .ub-left .s-text {
    background: none;
    backdrop-filter: none;
    color: var(--text);
    padding: 0;
    border-radius: 0;
  }

  /* Kooperation */
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .teal-box { display: none !important; }
  [data-cms="kooperation.sub1_text_2"] { display: none; }
  .koop-sub2 { min-height: auto; }

  /* Kooperation sub1 — 3-block stacked layout, full viewport */
  .koop-sub1 { min-height: calc(100vh - var(--nav-h) - 55px); height: calc(100vh - var(--nav-h) - 55px); background: var(--bg); }
  .koop-sub1 .inner {
    display: flex; flex-direction: column;
    padding: 0; max-width: 100%; height: 100%;
  }
  /* Block 1: gray heading area with deco circle */
  .koop-sub1 .two-col {
    display: flex; flex-direction: column;
    padding: 3rem 1.25rem 0;
    position: relative; overflow: hidden;
    flex: 1;
  }
  .koop-sub1 .two-col > div {
    display: flex; flex-direction: column;
    flex: 1; order: -1;
  }
  .koop-sub1 .s-heading {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    margin: 0; padding: 0;
  }
  .koop-sub1 .two-col::before {
    content: '';
    position: absolute;
    width: 150px; height: 150px; border-radius: 50%;
    background: var(--pink); opacity: .4;
    top: -30px; left: -40px; pointer-events: none;
  }
  /* Block 2: teal text strip — full-width via negative margins */
  .koop-sub1 [data-cms="kooperation.sub1_text_1"] {
    background: var(--teal-grad);
    color: var(--white);
    padding: 2rem 2.5rem;
    margin: 2rem -1.25rem 0;
    text-align: left;
    line-height: 1.65;
    border-radius: 0;
  }
  /* Block 3: gray big-quote */
  .koop-sub1 .big-quote {
    padding: 0 1.25rem;
    margin: 0;
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
  }
  .koop-sub1 > .deco { display: none; }
  .koop-gallery {
    grid-template-columns: repeat(2, 1fr);   /* all 4 → 2×2 */
    gap: 1rem;
    padding: 0 1.25rem;
    margin: 2rem auto 1.75rem;               /* top gap from the paragraph (overrides bottom-pin) */
  }
  .koop-text { padding: 0 1.25rem; text-align: left; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .two-col { gap: 1.5rem; }
  .s-heading { font-size: 1.5rem; }
  .bt-heading { font-size: 1.8rem; }
}

/* ============================================================
   SCROLL REVEAL  (subtle fade + slide-up — see js/reveal.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   CARD-STACK SCROLL ANIMATION
   ============================================================ */

/* Each animated section must sit above previous ones and
   have a solid background so it visually covers what's behind it. */
#betreuung     { position: relative; z-index: 2; background: var(--bg); }
#betreuung-2   { position: relative; z-index: 3; background: var(--bg); }
#kooperation   { position: relative; z-index: 4; background: var(--bg); }
#kooperation-2 { position: relative; z-index: 5; background: var(--bg); }
#uberuns       { position: relative; z-index: 6; background: var(--bg); }
#kontakt       { position: relative; z-index: 7; background: var(--bg); }

/* Card-style top edge — visible as each section rises over the previous */
#betreuung, #betreuung-2, #kooperation, #kooperation-2, #uberuns, #kontakt {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 50px rgba(0, 0, 0, .18);
  will-change: transform;
}

/* The LAST card (Kontakt) must never clip its form. At browser zoom the form
   grows taller than 100vh, and a fixed-height + overflow:hidden card cuts off
   the Send button with the footer sitting on the 100vh edge. Let it size to its
   content and push the footer below — it still rises over the previous card
   (z-index + solid bg + rounded top), just without pinning. Desktop only;
   ≤1024px already flows via the rule below. */
@media (min-width: 1025px) {
  #kontakt {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE & TABLET — disable the desktop card-stack.
   On ≤1024px the sticky + fixed-100vh + overflow:hidden stack
   cropped any section taller than the screen (contact form cut
   off, footer overlapping the last card). Here sections return
   to normal flow and grow with their content.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #betreuung, #betreuung-2, #kooperation, #kooperation-2, #uberuns, #kontakt {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    will-change: auto;
  }
  /* keep the full-screen feel where the design needs it, but let it grow */
  #uberuns { min-height: 100vh; min-height: 100dvh; }
  .koop-sub1 { height: auto; }   /* drop fixed mobile height; min-height keeps it ~1 screen */
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: #1a2e3a;
  color: rgba(255,255,255,.9);
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
#cookie-banner.cb-visible { transform: translateY(0); }

.cb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cb-text { flex: 1; font-size: .9rem; line-height: 1.6; }
.cb-text strong { display: block; font-size: 1rem; margin-bottom: .35rem; color: var(--white); }
.cb-text p { color: rgba(255,255,255,.75); margin: 0; }
.cb-text a { color: var(--teal-light); text-decoration: underline; }
.cb-text a:hover { color: var(--white); }

.cb-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cb-btn {
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.cb-btn--outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 2px solid rgba(255,255,255,.35);
}
.cb-btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
}
.cb-btn--solid {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
}
.cb-btn--solid:hover { background: var(--teal-light); border-color: var(--teal-light); }

@media (max-width: 768px) {
  .cb-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
    padding: .9rem 1.1rem 1.1rem;
  }
  .cb-text { font-size: .8rem; line-height: 1.5; }
  .cb-text strong { font-size: .88rem; margin-bottom: .2rem; }
  .cb-actions { width: 100%; gap: .5rem; }
  .cb-btn { flex: 1; text-align: center; padding: .55rem .75rem; font-size: .82rem; }
}

/* ── Cookie policy page ── */
.policy-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
}
.policy-wrap h1 { font-size: 2rem; color: var(--teal); margin-bottom: .5rem; }
.policy-wrap .policy-date { color: var(--text-muted); font-size: .9rem; margin-bottom: 2.5rem; }
.policy-wrap h2 { font-size: 1.2rem; color: var(--text); margin: 2rem 0 .5rem; }
.policy-wrap p, .policy-wrap li { color: var(--text-mid); line-height: 1.8; font-size: .97rem; }
.policy-wrap ul { padding-left: 1.5rem; list-style: disc; margin-top: .5rem; }
.policy-wrap ul li { margin-bottom: .35rem; }
.policy-wrap a { color: var(--teal); text-decoration: underline; }
.policy-wrap table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9rem; }
.policy-wrap th { background: var(--teal); color: var(--white); padding: .6rem 1rem; text-align: left; }
.policy-wrap td { padding: .6rem 1rem; border-bottom: 1px solid #d0dde0; color: var(--text-mid); vertical-align: top; }
.policy-wrap tr:last-child td { border-bottom: none; }
.policy-wrap .back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--teal); font-weight: 600; margin-bottom: 2rem;
}
.policy-wrap .back-link:hover { color: var(--teal-dark); }

@media (max-width: 1024px) {
  .policy-wrap { padding: calc(var(--nav-h) + 2.5rem) 2rem 3rem; }
  .policy-wrap h1 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
  .policy-wrap {
    padding: calc(var(--nav-h) + 1.5rem) 1.25rem 2.5rem;
  }
  .policy-wrap h1 { font-size: 1.45rem; margin-bottom: .4rem; }
  .policy-wrap .policy-date { font-size: .82rem; margin-bottom: 1.75rem; }
  .policy-wrap h2 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
  .policy-wrap p, .policy-wrap li { font-size: .9rem; line-height: 1.7; }
  .policy-wrap ul { padding-left: 1.1rem; }
  .policy-wrap .back-link { font-size: .9rem; margin-bottom: 1.5rem; }
  .policy-wrap table { display: block; overflow-x: auto; }
  .policy-wrap th, .policy-wrap td { padding: .5rem .75rem; font-size: .82rem; }
}
