/* =========================================================
   Spital Männedorf – Journey-Prototyp
   Layout nach Figma «Simplify Design» (7506:1258)
   Referenz: Artboard 1500 px = volle Ansicht.
   1rem = 16 px bei 1500 px Viewport, alle Masse in rem
   -> das gesamte Layout skaliert proportional mit 100vw.
   ========================================================= */

html {
  font-size: clamp(11px, 1.0667vw, 20px);
}

:root {
  --ink: #1c1b19;
  --ink-soft: #6b6862;
  --line: #dcd9d4;
  --surface: #f5f3f0;
  --brand: #006eb5;
  --brand-dark: #005893;
  --brand-tint: #e3eef7;
  --brand-tint-hi: #d3e4f2;
  --button: #16151a;
  --radius: 0.875rem;        /* 14 px – Bild- und Kartenradius */
  --pill: 100px;

  --gut: 3.5rem;            /* 56 px Seitenrand */
  --gap: 2rem;              /* 32 px Spaltenabstand */
  --step: 20rem;            /* 320 px Modulabstand – bewusst luftiger als Figma */
  --step-s: 10rem;          /* 160 px */

  --bar-h: 6rem;
}

* { box-sizing: border-box; }

p, li { text-wrap: pretty; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.75rem;         /* 28 px */
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }

h1 { font-size: 5rem; line-height: 1.2; }
h2 { font-size: 3.5rem; line-height: 1.19; }
h3 { font-size: 1.875rem; line-height: 1.3; letter-spacing: -0.015em; }

a { color: inherit; }

/* ---------- Raster: 12 Spalten, 1388 px Inhalt bei 1500 px ---------- */
.wrap { padding: 0 var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }

.module { padding-top: var(--step); }
.hero + .module { padding-top: 8rem; }
.intro { padding-top: 8rem; }
.collage { padding-top: 9rem; }
.module--tight { padding-top: var(--step-s); }

.lead { font-size: 1.875rem; line-height: 1.5; max-width: 34ch; }
.eyebrow { font-size: 1.25rem; line-height: 1.75; }
.caption { margin-top: 1rem; font-size: 1.75rem; line-height: 1.5; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.75rem;
  border-radius: var(--pill);
  background: var(--button);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #33313a; transform: translateY(-1px); }
.btn--brand { background: var(--brand); }
.btn--brand:hover { background: var(--brand-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #efedea; }
.btn--glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.26); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.1875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.arrow-link:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.arrow-link::after { content: "→"; transition: transform 0.2s ease; }
.arrow-link:hover::after { transform: translateX(0.25rem); }

/* ---------- Site-Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  padding-top: 2.8rem;
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header__right { display: flex; align-items: center; gap: 1rem; }
.burger { display: none; }
.site-nav__foot { display: none; }

/* Notfall – bewusst abgesetzt vom reduzierten Fünfer-Menü */
.notfall {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.notfall:hover { background: #f1efec; transform: translateY(-1px); }
.notfall__dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: #d8232a;
  box-shadow: 0 0 0 0 rgba(216, 35, 42, 0.55);
  animation: notfall-pulse 2.4s infinite;
}
@keyframes notfall-pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 35, 42, 0.5); }
  70% { box-shadow: 0 0 0 0.55rem rgba(216, 35, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 35, 42, 0); }
}
@media (prefers-reduced-motion: reduce) { .notfall__dot { animation: none; } }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand__logo { display: block; height: 2.375rem; width: auto; flex: none; }
.brand__mark { width: 2.375rem; height: 2.375rem; flex: none; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 1.1875rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--pill);
  background: rgba(16, 19, 24, 0.34);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}
.site-nav a { text-decoration: none; opacity: 0.92; transition: opacity 0.18s ease; }
.site-nav a:hover { opacity: 1; }
.site-nav__item { position: relative; }
.site-nav__item > a { display: block; padding: 0.15rem 0; white-space: nowrap; }
.site-nav__item > a:hover { text-decoration: underline; text-underline-offset: 0.35rem; }

/* zweite Ebene – im Figma nur unter «Über uns» */
.site-nav__item.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0.4em; height: 0.4em;
  margin-left: 0.6em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
  transition: transform 0.2s ease;
}
.site-nav__item.has-sub:hover > a::after,
.site-nav__item.has-sub:focus-within > a::after { transform: translateY(0.05em) rotate(225deg); }

/* Brücke, damit der Zeiger die Lücke überqueren kann */
.site-nav__item.has-sub::after {
  content: "";
  position: absolute;
  top: 100%; left: -1.25rem; right: -1.25rem;
  height: 1.7rem;
}
.site-nav__sub {
  position: absolute;
  top: calc(100% + 1.5rem);
  right: -1.5rem;
  min-width: 12rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(16, 19, 24, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s;
}
.site-nav__item.has-sub:hover .site-nav__sub,
.site-nav__item.has-sub:focus-within .site-nav__sub {
  opacity: 1; visibility: visible; transform: none;
}
.site-nav__sub a { font-size: 1.0625rem; white-space: nowrap; }
.site-nav__sub a:hover { text-decoration: underline; text-underline-offset: 0.3rem; }

/* ---------- Header.Text-Media: Vollbild-Hero ---------- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 36rem;
  max-height: 58rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 20, 0.66) 0%, rgba(12, 15, 20, 0.4) 12%,
                    rgba(12, 15, 20, 0.14) 24%, rgba(12, 15, 20, 0) 38%),
    linear-gradient(0deg, rgba(12, 15, 20, 0.72) 0%, rgba(12, 15, 20, 0.3) 32%,
                    rgba(12, 15, 20, 0) 62%);
}
.hero__body { position: relative; width: 100%; padding-bottom: 6rem; color: #fff; }

/* Zeile für Zeile aus der Maske nach oben */
.hero h1 { font-size: 6rem; line-height: 1.02; letter-spacing: -0.035em; }
/* Die Maske braucht Luft nach unten, sonst schneidet sie Unterlaengen wie g und p ab */
.hline { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hline > span {
  display: block;
  transform: translate3d(0, 120%, 0);
  animation: hline-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.15s);
}
@keyframes hline-in { to { transform: translate3d(0, 0, 0); } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  animation: hline-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}
@keyframes hline-fade { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hline > span, .hero__actions { animation: none; }
  .hero__media img { transform: none; }
  .hline > span { transform: none; }
  .hero__actions { opacity: 1; transform: none; }
}

/* ---------- Content.Text ---------- */
.intro__text { grid-column: 1 / 7; }
.intro__text--wide { grid-column: 1 / 8; }

.text-block h2 { grid-column: 1 / 6; }
.text-block .body { grid-column: 7 / 13; font-size: 1.875rem; line-height: 1.5; }
.text-block .body p + p { margin-top: 1.5rem; }

/* ---------- Teaser.Multiple: Bildstrecke «Unsere Expertise» ---------- */
.collage h2 { margin-bottom: 5rem; }
.collage__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.collage__left  { grid-column: 1 / 8; }           /* 796 px */
.collage__right { grid-column: 8 / 13; }          /* 560 px */
.collage figure { margin: 0; }
.collage figure.collage__small--2 { margin-top: 1.75rem; }   /* 2017 -> 2045 */
.collage figure { overflow: hidden; }
.collage img { width: 100%; height: auto; border-radius: var(--radius); }
.collage figcaption { display: block; margin-top: 1.5rem; }
.collage .eyebrow { display: block; color: var(--ink-soft); letter-spacing: 0.01em; }
.collage .figtext { display: block; margin-top: 0.5rem; font-size: 1.75rem; line-height: 1.5; }

/* ---------- Feature: Titel links, Text rechts, drei Bildkarten ---------- */
.feature h2 { grid-column: 1 / 6; }
.feature__body { grid-column: 7 / 13; font-size: 1.875rem; line-height: 1.5; }
.feature__body p + p { margin-top: 2rem; }

.feature__cards {
  margin-top: 7.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.fcard { display: block; text-decoration: none; color: inherit; }
.fcard__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.fcard:hover .fcard__media img { transform: scale(1.04); }
.fcard__media::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.6) 0%, rgba(14, 17, 22, 0) 100%);
  z-index: 1;
}
.fcard__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(14, 17, 22, 0.78) 0%, rgba(14, 17, 22, 0.35) 42%, rgba(14, 17, 22, 0) 100%);
  z-index: 1;
}
.fcard__label {
  position: absolute;
  top: 1.75rem; left: 1.75rem; right: 1.75rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.fcard__title {
  position: absolute;
  bottom: 1.75rem; left: 1.75rem; right: 1.75rem;
  z-index: 2;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- Content.Media-Asset ---------- */
.media-full img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Aussage über vollflächigem Bild ---------- */
.statement__box {
  position: relative;
  min-height: 40rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}
.statement__media { position: absolute; inset: 0; z-index: -1; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; }
.statement__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 55%, rgba(10, 13, 18, 0.62) 0%, rgba(10, 13, 18, 0.24) 62%,
                    rgba(10, 13, 18, 0.1) 100%),
    linear-gradient(180deg, rgba(10, 13, 18, 0.28) 0%, rgba(10, 13, 18, 0.34) 100%);
}
.statement__body { position: relative; width: 100%; padding: 8rem clamp(2rem, 4vw, 5rem); color: #fff; text-align: center; }
.statement figure { grid-column: 2 / 12; margin: 0; }
.statement blockquote {
  margin: 0;
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(10, 13, 18, 0.3);
}
.statement figcaption {
  display: inline-block;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Teaser.List: Karten ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 8rem;
}
.cards { display: grid; gap: var(--gap); }
.card.is-more { display: none; }
.cards.is-open .card.is-more { display: flex; }
.cards__more { margin-top: 4rem; display: flex; justify-content: center; }

/* ---------- Fachbereiche: Gruppen mit Icon-Karten ---------- */
.cardgroup + .cardgroup { margin-top: 5rem; }
.cardgroup__title {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card--icon { justify-content: flex-start; min-height: 15.5rem; }
.card--icon .card__arrow { margin-top: auto; }
.card__icon {
  display: block;
  width: 2rem; height: 2rem;
  margin-bottom: 1.25rem;
  color: var(--brand);
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 14.625rem;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.card--tinted { background: var(--brand-tint); box-shadow: none; }
.card--tinted:hover {
  background: var(--brand-tint-hi);
  box-shadow: inset 0 0 0 1px rgba(0, 110, 181, 0.45);
  transform: translateY(-2px);
}
.card__head { display: block; }
.card__sub {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #2c4358;
}

/* Leistungskarten zeigen den Text direkt – nur das grosse Fachbereichsraster
   haelt ihn bis zum Hover zurueck */
.card__sub { opacity: 1; transform: none; }
.card__arrow { transition: transform 0.25s ease; }
.card:hover .card__arrow { transform: translateX(0.35rem); }
.card__title { display: block; font-size: 1.625rem; line-height: 1.28; letter-spacing: -0.02em; }
.card__arrow {
  margin-top: 1.5rem;
  align-self: flex-end;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
  font-size: 1.25rem;
}
.card:hover .card__arrow { box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.card--tinted .card__arrow { box-shadow: inset 0 0 0 1px rgba(0, 110, 181, 0.35); }
.card--tinted:hover .card__arrow { box-shadow: inset 0 0 0 1px var(--brand); background: #fff; }
.card--wide { grid-column: span 2; }

/* ---------- Teaser.Article ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.article { text-decoration: none; color: inherit; display: block; }
.article__media { display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--surface); }
.article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article:hover .article__media img { transform: scale(1.03); }
.article__kicker { display: block; margin-top: 1.75rem; font-size: 1.1875rem; line-height: 1.1; color: var(--ink-soft); }
.article__title { display: block; margin-top: 0.5rem; font-size: 1.625rem; line-height: 1.24; letter-spacing: -0.015em; }

/* ---------- Content.List: Kurse und Veranstaltungen ---------- */
.events h2 { grid-column: 1 / 6; }
.events__list { grid-column: 6 / 13; }
.events__head { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.event:first-child { border-top: 1px solid var(--line); }
.event__badge {
  display: grid;
  place-items: center;
  align-content: center;
  width: 5.5rem; height: 5.5rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  line-height: 1.1;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.event__day { font-size: 1.875rem; letter-spacing: -0.02em; }
.event__mon { font-size: 1.0625rem; color: var(--ink-soft); }
.event__year { font-size: 0.9375rem; color: var(--ink-soft); }
.event__title { display: block; font-size: 2.125rem; line-height: 1.2; letter-spacing: -0.025em; }
.event__cta {
  padding: 0.7rem 1.25rem;
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.0625rem;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.event:hover .event__cta { background: var(--ink); color: #fff; box-shadow: none; }
.event:hover .event__badge { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- CTA.Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.contact__body { grid-column: 1 / 6; }
.contact__body h2 { margin-bottom: 2.5rem; }
.contact__body p { font-size: 1.375rem; line-height: 1.55; }
.contact__body p + p { margin-top: 1.5rem; }
.contact__media { grid-column: 8 / 13; }
.contact--wide .contact__media { grid-column: 6 / 13; }
.contact--wide .contact__media img { max-width: none; aspect-ratio: 3 / 2; }
.contact__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 18rem;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}
.contact .btn { margin-top: 2rem; }

/* ---------- Content.Accordion ---------- */
.accordion { grid-column: 6 / 13; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 1.75rem;
  letter-spacing: -0.015em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "⌄"; font-size: 1.5rem; line-height: 0.5; transition: transform 0.2s ease; }
.accordion details[open] summary::after { transform: rotate(180deg); }
.accordion .answer { padding-bottom: 1.75rem; font-size: 1.375rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Versetzte Leistungsblöcke ---------- */
.offset { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.offset__media-a { grid-column: 1 / 7; }
.offset__body-a  { grid-column: 8 / 13; align-self: center; }
.offset__media-b { grid-column: 8 / 13; margin-top: 4rem; }
.offset__body-b  { grid-column: 3 / 8; align-self: center; margin-top: 4rem; }
.offset__media-c { grid-column: 2 / 7; margin-top: 4rem; }
.offset__body-c  { grid-column: 7 / 12; align-self: center; margin-top: 4rem; }
.offset figure { margin: 0; }
.offset h3 { margin-bottom: 1rem; }
.offset p { font-size: 1.375rem; line-height: 1.55; color: var(--ink-soft); }
.offset img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 7rem 0 calc(2.5rem + var(--bar-h));
  margin-top: var(--step);
  border-radius: var(--radius) var(--radius) 0 0;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.3rem; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--gap);
  padding-bottom: 5rem;
}
.footer__mark { display: block; width: 3rem; height: 3rem; margin-bottom: 2rem; }
.fcol__head {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.fcol ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.fcol li a { font-size: 1.375rem; }
.fcol address, .fcol p { margin: 0; font-size: 1.25rem; line-height: 1.6; font-style: normal; }
.fcol__contact { margin-top: 1.25rem; }
.fcol--emergency .fcol__big {
  margin-bottom: 0.75rem;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fcol--emergency p:last-child { color: rgba(255, 255, 255, 0.82); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
}
.footer__social { display: flex; gap: 1.75rem; }
.footer__legal { display: flex; gap: 1.75rem; margin-left: auto; }

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem var(--gap); padding-bottom: 3.5rem; }
  .fcol--brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer__social, .footer__legal { flex-wrap: wrap; gap: 1.25rem; margin-left: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  html { font-size: 12px; }
  :root { --gut: 1.5rem; --step: 7rem; --step-s: 4.5rem; }
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.4rem; }
  body { font-size: 1.4rem; }
  .hero { height: 70vh; min-height: 26rem; }
  .hero h1 { font-size: 3.4rem; }
  .intro__text, .intro__text--wide,
  .text-block h2, .text-block .body,
  .events h2, .events__list,
  .accordion,
  .contact__body, .contact__media,
  .feature h2, .feature__body,
  .collage__left, .collage__right,
  .offset__media-a, .offset__body-a, .offset__media-b, .offset__body-b,
  .offset__media-c, .offset__body-c { grid-column: 1 / -1; margin-top: 0; }
  .collage figure.collage__small--2 { margin-top: 1.5rem; }
  .collage__right figure + figure { margin-top: 1.5rem; }
  .hero h1 { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .hero__note { grid-column: 1 / -1; }
  .offset > * + * { margin-top: 1.5rem; }
  .cards--4, .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: 1fr; }
  .feature__cards { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .feature__body { font-size: 1.4rem; }
  .statement__box { min-height: 26rem; }
  .statement__body { padding: 4rem 1.5rem; }
  .statement figure { grid-column: 1 / -1; }
  .statement blockquote { font-size: 2.2rem; }
  .event__title { font-size: 1.8rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer__social { margin-left: 0; }
  /* Mobiles Menü im Stil von radiatinghope.org: weisses Vollbild,
     Zeilen mit Haarlinien, zweite Ebene als Akkordeon */
  .site-header .wrap { gap: 0.75rem; }
  .site-header__right { gap: 0.6rem; }
  .burger {
    display: grid;
    place-items: center;
    width: 2.75rem; height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 19, 24, 0.34);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
    color: #fff;
    cursor: pointer;
    z-index: 80;
  }
  .burger__box { display: grid; gap: 0.3rem; width: 1.15rem; }
  .burger__box i {
    display: block; height: 1.5px;
    background: currentColor; border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .burger[aria-expanded="true"] {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
  }
  .burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-0.45rem) rotate(-45deg); }

  /* Kopfzeile bleibt über dem Panel sichtbar und wechselt auf dunkle Schrift */
  body.nav-open .site-header { position: fixed; z-index: 90; }
  body.nav-open .site-header, body.nav-open .brand,
  body.nav-open .notfall { color: var(--ink); }
  /* Logo und Notfall liegen im Stapelkontext des Headers – sie brauchen
     eine eigene Ebene über dem Menü-Panel */
  body.nav-open .brand, body.nav-open .notfall { position: relative; z-index: 80; }
  body.nav-open .notfall { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  body.nav-open .notfall { box-shadow: inset 0 0 0 1px var(--line); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7.5rem var(--gut) 2rem;
    border-radius: 0;
    background: #fff;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--ink);
    font-size: 1rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { opacity: 1; }

  .site-nav__item { border-bottom: 1px solid var(--line); }
  .site-nav__item:first-child { border-top: 1px solid var(--line); }
  .site-nav__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 0;
    font-size: 2.25rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
  }
  .site-nav__item.has-sub > a::after {
    content: "";
    display: block;
    width: 0.6rem; height: 0.6rem;
    margin: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
    transition: transform 0.25s ease;
  }
  .site-nav__item.has-sub.is-open > a::after { transform: translateY(0.15em) rotate(225deg); }

  .site-nav__sub {
    position: static;
    display: grid;
    gap: 1rem;
    min-width: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-nav__item.has-sub.is-open .site-nav__sub { max-height: 22rem; padding: 0 0 1.5rem; }
  .site-nav__sub a { font-size: 1.375rem; color: var(--ink-soft); }

  .site-nav__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 2.5rem;
    font-size: 1.125rem;
    color: var(--ink-soft);
  }
  .notfall { padding: 0.7rem 1.1rem; font-size: 1.2rem; }
  .hero__body { padding-bottom: 3.5rem; }
}
@media (max-width: 620px) {
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .footer__bottom { flex-direction: column; }
}


/* ---------- Fokus ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
/* nur wenn JS läuft – ohne JS bleibt alles sichtbar */
html.js .reveal { opacity: 0; transform: translateY(1.25rem); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, html.js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}


/* ---------- Content.List: Schrittliste ---------- */
.clist__intro { grid-column: 1 / 6; }
.clist__intro p { margin-top: 1.5rem; font-size: 1.375rem; line-height: 1.55; color: var(--ink-soft); }
.clist__items { grid-column: 6 / 13; margin: 0; padding: 0; list-style: none; }
.clist__item { padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.clist__item:first-child { border-top: 1px solid var(--line); }
.clist__item h3 { font-size: 1.875rem; letter-spacing: -0.02em; }
.clist__item p { margin-top: 0.75rem; font-size: 1.375rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Abschluss-CTA ---------- */
.cta-final__box {
  border-radius: var(--radius);
  background: var(--brand-tint);
  padding: clamp(3rem, 6vw, 6rem);
  text-align: center;
}
.cta-final__box h2 { font-size: 4rem; line-height: 1.14; letter-spacing: -0.03em; }
.cta-final__box p {
  margin: 2rem auto 0;
  max-width: 44ch;
  font-size: 1.875rem;
  line-height: 1.5;
  color: #2c4358;
}
.cta-final__actions { margin-top: 3rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-final__box .btn--ghost { box-shadow: inset 0 0 0 1px rgba(0, 110, 181, 0.4); }
.cta-final__box .btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--brand); }

@media (max-width: 1000px) {
  .clist__intro, .clist__items { grid-column: 1 / -1; }
  .clist__items { margin-top: 2rem; }
  .cta-final__box h2 { font-size: 2.4rem; }
  .cta-final__box p { font-size: 1.4rem; }
}

/* ---------- Formular ---------- */
.formblock__intro { grid-column: 1 / 6; }
.formblock__intro p { margin-top: 1.5rem; font-size: 1.375rem; line-height: 1.55; color: var(--ink-soft); }
.formblock__form { grid-column: 6 / 13; display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.6rem; }
.field > span { font-size: 1.1875rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 1.375rem;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 110, 181, 0.14);
}
.formblock__form .btn { justify-self: start; margin-top: 0.5rem; }

@media (max-width: 1000px) {
  .formblock__intro, .formblock__form { grid-column: 1 / -1; }
  .formblock__form { margin-top: 2rem; }
}

/* ---------- Kleines Label über Abschnittstiteln ---------- */
.section-head { flex-wrap: wrap; }
.section-head__label {
  flex: 0 0 100%;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Formular ---------- */
.formblock__intro { grid-column: 1 / 6; }
.formblock__intro p { margin-top: 1.5rem; font-size: 1.375rem; line-height: 1.55; color: var(--ink-soft); }
.formblock__form { grid-column: 6 / 13; display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.6rem; }
.field > span { font-size: 1.1875rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 1.375rem;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 110, 181, 0.14);
}
.formblock__form .btn { justify-self: start; margin-top: 0.5rem; }

@media (max-width: 1000px) {
  .formblock__intro, .formblock__form { grid-column: 1 / -1; }
  .formblock__form { margin-top: 2rem; }
}

/* ---------- Leistungen als Bildkarten (Muster radiatinghope.org) ---------- */
.section-head__label {
  flex: 0 0 100%;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-head { flex-wrap: wrap; }


.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.scard { display: block; text-decoration: none; color: inherit; }
.scard__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.scard:hover .scard__media img { transform: scale(1.04); }
.scard__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(0deg, rgba(14, 17, 22, 0.78) 0%, rgba(14, 17, 22, 0.3) 48%,
              rgba(14, 17, 22, 0) 100%);
  z-index: 1;
}
.scard__title {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  z-index: 2;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.scard__text {
  display: block;
  margin-top: 1.25rem;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 1000px) {
  .scards { grid-template-columns: 1fr; }
}

/* ---------- Reiter unter dem Hero (Fachbereichs-Unterseiten) ---------- */
.tabs {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.tabs .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.tabs__nav { display: flex; flex-wrap: wrap; gap: 2.25rem; }
.tabs__item {
  position: relative;
  padding: 1.6rem 0;
  font-size: 1.25rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-active { color: var(--brand); }
.tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand);
}
.tabs__crumbs { margin: 0; font-size: 1.0625rem; color: var(--ink-soft); }

@media (max-width: 1000px) {
  .tabs .wrap { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .tabs__nav { gap: 1.5rem; overflow-x: auto; width: 100%; }
  .tabs__item { padding: 1.1rem 0; font-size: 1.2rem; }
  .tabs__crumbs { padding-bottom: 1rem; }
}
