/* dismacon – Website-Styles
   Farben ausschließlich aus der dismacon-Palette. */

@font-face { font-family: 'Comfortaa'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/comfortaa-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Comfortaa'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/comfortaa-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Comfortaa'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/comfortaa-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/open-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/open-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/open-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/open-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --blau: #2E3A59;
  --rot: #A0220A;
  --mittelgrau: #60646C;
  --neutralgrau: #E1E1E1;
  --blaugrau: #E3E6EC;
  --s1: #E2E3E6;
  --s2: #818693;
  --s3: #474F62;
  --s4: #8890A2;
  --s5: #A1A5AC;
  --tuerkis: #00A6A0;
  --salbei: #83C167;
  --lavendel: #B3A7D5;
  --bernstein: #EBAF00;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #ffffff; font-family: 'Open Sans', Arial, sans-serif; color: var(--mittelgrau); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: 'Comfortaa', Arial, sans-serif; }
a { color: var(--blau); }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--blau); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: 90px; }

/* ---------- Kopfzeile ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--blaugrau); }
.hdr-in { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hdr-logo { display: flex; }
.hdr-logo img { height: 54px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; color: var(--blau); padding: 10px 14px; border-radius: 999px; transition: background .3s ease, color .3s ease; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blaugrau); color: var(--blau); }
.nav-sep { width: 1px; height: 22px; background: var(--s5); margin: 0 8px; }
.hdr-schule { border-bottom: 3px solid var(--tuerkis); }
.hdr-schule .hdr-in { padding-top: 12px; padding-bottom: 12px; }
.hdr-schule .hdr-logo img { height: 50px; }
.hdr-schule .nav { font-size: 15px; }
.hdr-schule .nav a { padding: 9px 13px; }
.readbar { height: 3px; }
.readbar span { display: block; height: 3px; width: 0; background: var(--rot); }
@media (max-width: 640px) {
  .hdr-in { padding: 10px 16px; }
  .hdr-logo img, .hdr-schule .hdr-logo img { height: 42px; }
  .nav { font-size: 15px; }
  .nav a { padding: 8px 10px; }
  .nav .nav-x, .nav-sep { display: none; }
}

/* ---------- Buttons & Links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.3; border-radius: 999px; padding: 14px 26px; border: 0; cursor: pointer; transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46,58,89,.22); }
.btn-blau { background: var(--blau); color: #fff; }
.btn-blau:hover { background: var(--s3); color: #fff; }
.btn-rot { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--blau); color: #fff; }
.btn-ghost { background: transparent; color: var(--blau); border: 1.5px solid var(--blau); }
.btn-ghost:hover { background: #fff; color: var(--blau); }
.btn-gross { font-size: 18px; padding: 16px 30px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.more { font-weight: 700; text-decoration: none; }
.tag-link { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--rot); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: background .25s ease, color .25s ease; }
.tag-link:hover { background: var(--rot); color: #fff; }
.tag-link.on-grau { background: var(--blaugrau); }
.tag-link.on-grau:hover { background: var(--rot); }
.tags { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.t-link { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s ease, color .3s ease; }
.card:hover .t-link, .t-link:hover, .t-link:focus-visible { background-size: 100% 2px; color: var(--rot); }

/* ---------- Karten ---------- */
.card { transition: transform .45s ease, box-shadow .45s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(46,58,89,.16); }
.card img { transition: transform 1.2s ease; }
.card:hover img { transform: scale(1.06); }
.card .no-zoom img, .card img.no-zoom { transform: none !important; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rot); flex: none; margin-top: 9px; }
.fmt-ic { height: 34px; display: flex; align-items: center; }
.p-ic { width: 22px; height: 22px; fill: var(--rot); margin-right: 10px; flex: none; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.post { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; background: var(--blaugrau); }
.post-img { display: block; aspect-ratio: 2 / 1; overflow: hidden; }
.post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.post-body h3 { margin: 0; color: var(--blau); font-size: 20px; line-height: 1.35; }
.post-body p.ex { margin: 0; font-size: 15px; flex-grow: 1; }

/* ---------- Einblendungen ---------- */
@supports (animation-timeline: view()) {
  .rv { animation: rvIn linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes rvIn {
    from { opacity: 0; transform: translateY(48px); }
    to { opacity: 1; transform: none; }
  }
}
.fade-in { animation: fadeUp 1s ease-out .15s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero Startseite: zwei Ufer, eine Brücke, ein Zentrum ---------- */
.hero { position: relative; padding: 56px 32px 72px; background: #fff; overflow: hidden; }
.hero-in { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero svg { width: 100%; max-width: 1100px; height: auto; display: block; overflow: visible; }
.h-draw { stroke-dasharray: 1; }
.h-red { transform-box: fill-box; transform-origin: center; }
.h-play .h-fade { animation: hFade .7s ease-out both; }
.h-play .h-left { animation: hLeft 1.3s cubic-bezier(.65,0,.35,1) 2.6s both; }
.h-play .h-right { animation: hRight 1.3s cubic-bezier(.65,0,.35,1) 2.6s both; }
.h-play .h-draw { animation: hDraw 1s ease-out both, hOut .6s ease-in 2.6s forwards; }
.h-play .h-hang { animation: hFade .5s ease-out 1.6s both, hOut .6s ease-in 2.6s forwards; }
.h-play .h-red { animation: hPop .6s cubic-bezier(.34,1.56,.64,1) 3.6s both; }
.h-play .h-text { animation: hUp .8s ease-out 3.9s both; }
.h-slogans { position: relative; height: 64px; margin-top: 22px; font-size: 16px; color: var(--mittelgrau); }
.h-slogan { position: absolute; left: 0; right: 0; top: 0; margin: 0; opacity: 0; animation: hSlogan 12s ease-in-out infinite; }
@keyframes hFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hLeft { from { transform: translateX(-380px); } to { transform: translateX(0); } }
@keyframes hRight { from { transform: translateX(400px); } to { transform: translateX(0); } }
@keyframes hDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hOut { to { opacity: 0; } }
@keyframes hPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hSlogan {
  0% { opacity: 0; transform: translateY(10px); }
  6% { opacity: 1; transform: none; }
  44% { opacity: 1; transform: none; }
  50% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 16px 48px; }
  .h-slogans { height: 92px; }
}

/* ---------- Abschnitte ---------- */
.sec { padding: 104px 32px; }
.sec-88 { padding: 88px 32px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.bg-grau { background: var(--blaugrau); }
.h2 { margin: 0; color: var(--blau); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; }
@media (max-width: 640px) {
  .sec, .sec-88 { padding: 64px 16px; }
}

/* ---------- Horizontaler Bereich (beide Seiten) ---------- */
.hs { position: relative; background: var(--blaugrau); }
.hs-sticky { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 18px 0 16px; }
.hs-head { padding: 0 6vw; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; }
.hs-head h2 { margin: 0; flex: 1 1 420px; color: var(--blau); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; }
.hs-head p { margin: 0; flex: 1 1 440px; font-size: 17px; }
.hs-view { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 6vw; scroll-padding-right: 6vw; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.hs-view::-webkit-scrollbar { height: 8px; }
.hs-view::-webkit-scrollbar-thumb { background: var(--s5); border-radius: 8px; }
.hs-track { display: flex; width: max-content; padding: 0 6vw; will-change: transform; }
.hs.is-pinned .hs-sticky { position: sticky; }
.hs.is-pinned .hs-view { overflow-x: hidden; scroll-snap-type: none; }

/* Startseite: Projekt-Panels */
.hs-track.panels { gap: 28px; }
.panel { width: min(720px, 84vw); flex: none; background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; scroll-snap-align: start; }
.panel img { transition: transform 1.4s ease; }
.panel:hover img { transform: scale(1.05); }
.pimg { height: clamp(130px, 24vh, 300px); overflow: hidden; }
.pbody { padding: 30px 36px 36px; display: flex; gap: 24px; }
.pbody .num { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; color: var(--rot); }
.pbody h3 { margin: 4px 0 10px; color: var(--blau); font-size: 24px; overflow-wrap: break-word; hyphens: auto; }
.pbody > div { min-width: 0; }
.pbody p { margin: 0; font-size: 16px; }
.dm-art { transition: transform 1.4s ease; }
.panel:hover .dm-art { transform: scale(1.06); }
.dm-arch { stroke-dasharray: 1; stroke-dashoffset: 0; }
.panel:hover .dm-arch { animation: hDraw 1.4s ease-out; }
.dm-pulse { transform-box: fill-box; transform-origin: center; }
.panel:hover .dm-pulse { animation: dmPulse 1.4s ease-in-out infinite; }
@keyframes dmPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.hs-bar { position: relative; height: 34px; margin: 18px 6vw 0; }
.hs-bar .line { position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--s5); border-radius: 2px; }
.hs-bar .fill { position: absolute; left: 0; top: 15px; height: 4px; width: 0; background: var(--rot); border-radius: 4px; }
.hs-bar .pillar { position: absolute; top: 4px; width: 4px; height: 26px; margin-left: -2px; border-radius: 3px; background: var(--s5); transition: background .3s ease; }
.hs-bar .pillar.on { background: var(--rot); }
@media (max-width: 640px) {
  .pbody { padding: 22px 22px 26px; gap: 8px; flex-direction: column; }
  .pbody .num { font-size: 28px; }
  .pbody h3 { font-size: 20px; }
}
@media (max-height: 860px) {
  .hs.is-pinned .hs-head { margin-bottom: 14px; }
  .hs.is-pinned .hs-head h2 { font-size: 28px; }
  .hs.is-pinned .hs-head p { font-size: 15px; line-height: 1.55; }
  .hs.is-pinned .pbody { padding: 18px 28px 20px; gap: 18px; }
  .hs.is-pinned .pbody .num { font-size: 34px; }
  .hs.is-pinned .pbody h3 { font-size: 20px; margin: 2px 0 6px; }
  .hs.is-pinned .pbody p { font-size: 14.5px; line-height: 1.55; }
  .hs.is-pinned .hs-bar { margin-top: 10px; }
  .hs.is-pinned .step { padding: 18px 20px; }
  .hs.is-pinned .step h3 { font-size: 16.5px; }
  .hs.is-pinned .step p { font-size: 14px; line-height: 1.5; }
}
@media (max-height: 720px) {
  .hs.is-pinned .hs-head { margin-bottom: 10px; }
  .hs.is-pinned .hs-head h2 { font-size: 24px; }
  .hs.is-pinned .hs-head p { font-size: 14px; line-height: 1.45; }
  .hs.is-pinned .pimg { height: 18vh; min-height: 96px; }
  .hs.is-pinned .pbody { padding: 14px 22px 16px; gap: 14px; }
  .hs.is-pinned .pbody .num { font-size: 28px; }
  .hs.is-pinned .pbody h3 { font-size: 18px; margin: 0 0 4px; }
  .hs.is-pinned .pbody p { font-size: 13.5px; line-height: 1.45; }
  .hs.is-pinned .hs-bar { margin-top: 6px; height: 26px; }
  .hs.is-pinned .step { padding: 14px 16px; }
  .hs.is-pinned .step h3 { font-size: 15.5px; margin-bottom: 6px; }
  .hs.is-pinned .step p { font-size: 13px; line-height: 1.45; }
}
.hs.tight .hs-head { margin-bottom: 10px; }
.hs.tight .hs-head h2 { font-size: 24px; }
.hs.tight .hs-head p { font-size: 14px; line-height: 1.45; }
.hs.tight .pimg { height: 18vh; min-height: 96px; }
.hs.tight .pbody { padding: 14px 22px 16px; gap: 14px; }
.hs.tight .pbody .num { font-size: 28px; }
.hs.tight .pbody h3 { font-size: 18px; margin: 0 0 4px; }
.hs.tight .pbody p { font-size: 13.5px; line-height: 1.45; }
.hs.tight .hs-bar { margin-top: 6px; height: 26px; }
.hs.tight .step { padding: 14px 16px; }
.hs.tight .step h3 { font-size: 15.5px; margin-bottom: 6px; }
.hs.tight .step p { font-size: 13px; line-height: 1.45; }

/* Schulseite: Ablauf als Wegstrecke – Nummern sitzen auf einer Linie, die mit den Karten wandert */
.hs-track.steps { padding-top: 6px; }
.stp { width: 340px; flex: none; scroll-snap-align: start; padding-right: 24px; display: flex; flex-direction: column; transition: opacity .45s ease; }
.stp-mark { position: relative; height: 44px; margin-bottom: 14px; }
.stp-mark::before { content: ''; position: absolute; left: 0; right: -24px; top: 21px; height: 2px; background: var(--s5); }
.stp-mark::after { content: ''; position: absolute; left: 0; top: 20px; height: 4px; width: var(--fill, 0px); background: var(--tuerkis); border-radius: 4px; }
.stp:last-child .stp-mark::before, .stp:last-child .stp-mark::after { display: none; }
.stp-num { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 16px; color: var(--blau); background: #fff; border: 2px solid var(--tuerkis); transition: background .35s ease, color .35s ease, transform .35s ease; }
.stp.reached .stp-num { background: var(--tuerkis); color: #fff; }
.stp.current .stp-num { transform: scale(1.12); }
.step { flex-grow: 1; padding: 24px; border-radius: 22px; background: #fff; border: 2px solid var(--tuerkis); transition: transform .4s ease, box-shadow .4s ease; }
.step:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(46,58,89,.14); }
.step .phase { display: block; font-family: 'Comfortaa', sans-serif; font-weight: 700; color: var(--blau); font-size: 14px; margin-bottom: 10px; }
.step h3 { margin: 0 0 10px; color: var(--blau); font-size: 18px; line-height: 1.35; }
.step p { margin: 0; font-size: 15px; }
.stp-count { padding: 0 6vw; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blau); }
@media (max-width: 640px) {
  .stp { width: 290px; }
}

/* ---------- Formulare ---------- */
.pill { position: relative; display: inline-flex; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--s5); color: var(--s3); transition: all .25s ease; font-size: 15px; line-height: 1.3; }
.pill:hover span { border-color: var(--blau); }
.pill input:checked + span { background: var(--blau); border-color: var(--blau); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.fs legend, .fld label { font-size: 14px; font-weight: 600; color: var(--s3); padding: 0; }
.fs legend { margin-bottom: 10px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld input, .fld textarea { font: inherit; font-size: 16px; color: var(--blau); padding: 14px 16px; border: 1.5px solid var(--s5); border-radius: 14px; background: #fff; width: 100%; transition: border-color .25s ease, box-shadow .25s ease; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(46,58,89,.12); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blau); }
.hint { margin: -8px 0 0; font-size: 13px; color: var(--mittelgrau); }
.form-status { margin: 0; padding: 16px 20px; border-radius: 14px; background: #fff; color: var(--blau); font-weight: 600; }
.form-status.ok { border: 2px solid var(--salbei); }
.form-status.err { border: 2px solid var(--rot); }
.form-status[hidden] { display: none; }
.prefilled { animation: pfFlash 2.4s ease-out 1; }
@keyframes pfFlash {
  0%, 30% { background: var(--blaugrau); border-color: var(--rot); }
  100% { background: #fff; }
}
.tel-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; margin-top: -22px; transition: grid-template-rows .55s cubic-bezier(.4,0,.2,1), opacity .3s ease, margin-top .55s cubic-bezier(.4,0,.2,1), visibility 0s linear .55s; }
.tel-wrap.open { grid-template-rows: 1fr; opacity: 1; visibility: visible; margin-top: 0; transition: grid-template-rows .55s cubic-bezier(.4,0,.2,1), opacity .45s ease .12s, margin-top .55s cubic-bezier(.4,0,.2,1), visibility 0s; }
.tel-inner { overflow: hidden; min-height: 0; }
.tel-box { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 18px; background: var(--blaugrau); transform: translateY(-14px); transition: transform .55s cubic-bezier(.4,0,.2,1); }
.tel-wrap.open .tel-box { transform: none; }
.form-card { background: #fff; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 22px; position: relative; }
@media (max-width: 640px) {
  .form-card { padding: 24px 18px; border-radius: 22px; }
}

/* Overlay-Formular (Beiträge) */
.ov { position: fixed; inset: 0; z-index: 200; background: rgba(46,58,89,.6); display: flex; align-items: center; justify-content: center; padding: 24px; animation: hFade .3s ease both; }
.ov[hidden] { display: none; }
.ov-panel { position: relative; background: #fff; border-radius: 28px; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow: auto; padding: 40px; animation: panIn .45s cubic-bezier(.2,.8,.2,1) both; }
.ov-panel h2 { margin: 0 0 22px; color: var(--blau); font-size: 26px; line-height: 1.3; padding-right: 50px; }
.ov-panel .form-card { padding: 0; border-radius: 0; gap: 18px; }
.ov-x { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--s5); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ov-x:hover { border-color: var(--blau); }
@keyframes panIn {
  from { opacity: 0; transform: translateY(30px) scale(.98); }
  to { opacity: 1; transform: none; }
}
body.ov-open { overflow: hidden; }
@media (max-width: 640px) {
  .ov { padding: 10px; }
  .ov-panel { padding: 28px 18px; max-height: calc(100vh - 20px); }
}

/* ---------- Schulseite ---------- */
.s-btn { background: var(--blau); color: #fff; }
.s-btn:hover { background: var(--s3); color: #fff; }
.s-check { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--tuerkis); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 14px; }
.s-photo { overflow: hidden; }
.s-photo img { transition: transform 1.4s ease; }
.s-photo:hover img { transform: scale(1.05); }
.faq { border-bottom: 1px solid var(--s5); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-family: 'Comfortaa', sans-serif; font-weight: 700; color: var(--blau); font-size: 18px; display: flex; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 13px; font-size: 28px; color: var(--blau); transition: transform .3s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px 52px; }
.faq-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--tuerkis); display: inline-flex; align-items: center; justify-content: center; }
.faq-ic svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 640px) {
  .faq summary { font-size: 16px; }
  .faq p { margin-left: 0; }
}
.follow { transform-origin: 100px 100px; transition: transform .6s cubic-bezier(.34,1.45,.64,1); }
.compass-float { animation: cFloat 6s ease-in-out infinite; }
@keyframes cFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.price { border: 2px solid var(--tuerkis); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 14px; background: rgba(0,166,160,.06); }
.price .amount { margin: 6px 0 8px; font-family: 'Comfortaa', sans-serif; color: var(--blau); font-size: 44px; font-weight: 700; line-height: 1; }
@media (max-width: 640px) {
  .price { padding: 28px 22px; }
}
.cal-box { flex-grow: 1; min-height: 260px; border-radius: 20px; border: 1.5px dashed var(--s5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; background: #fff; }

/* ---------- Beiträge ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 56px 32px 24px; font-size: 18px; line-height: 1.75; }
.prose p { margin: 0 0 20px; }
.prose > p:first-child.lead, .prose .lead { font-size: 21px; color: var(--s3); }
.prose h2, .prose h3 { color: var(--blau); font-size: 24px; line-height: 1.3; margin: 44px 0 14px; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h4 { color: var(--blau); font-size: 20px; margin: 32px 0 10px; }
.prose a { color: var(--rot); }
.prose a:hover { color: var(--blau); }
.prose blockquote { margin: 36px 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--rot); font-family: 'Comfortaa', sans-serif; font-size: 21px; line-height: 1.55; color: var(--blau); }
.prose blockquote p { margin: 0 0 12px; }
.prose blockquote p:last-child { margin: 0; }
.prose ul { margin: 0 0 24px; padding-left: 24px; }
.prose ol { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: st; }
.prose ol > li { counter-increment: st; display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--blaugrau); }
.prose ol > li::before { content: counter(st); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blau); color: #fff; font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.prose img { height: auto; border-radius: 20px; }
@media (max-width: 640px) {
  .prose { padding: 40px 16px 16px; font-size: 17px; }
}

/* Rechtstexte */
.lg { max-width: 820px; margin: 0 auto; padding: 64px 32px 104px; font-size: 17px; line-height: 1.7; }
.lg h1 { color: var(--blau); font-size: clamp(30px, 4vw, 44px); line-height: 1.2; margin: 0 0 36px; overflow-wrap: anywhere; }
.lg h2 { color: var(--blau); font-size: 26px; line-height: 1.3; margin: 56px 0 16px; }
.lg h3 { color: var(--blau); font-size: 21px; line-height: 1.35; margin: 36px 0 12px; }
.lg h4 { font-family: 'Open Sans', sans-serif; color: var(--s3); font-size: 18px; margin: 26px 0 8px; }
.lg p { margin: 0 0 16px; overflow-wrap: anywhere; }
.lg ul { margin: 0 0 16px; padding-left: 22px; }
@media (max-width: 640px) {
  .lg { padding: 40px 16px 64px; }
}

/* ---------- Fußzeile ---------- */
.ft { background: var(--blau); color: var(--blaugrau); padding: 56px 32px 40px; font-size: 15px; line-height: 1.8; }
.ft a { color: var(--blaugrau); text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft-row { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; align-items: flex-start; }
.ft-logo { height: 60px; width: auto; display: block; }
.ft address { font-style: normal; }
.ft-social { display: flex; gap: 10px; margin-top: 12px; }
.ft-ic { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--s4); display: inline-flex; align-items: center; justify-content: center; transition: background .3s ease, border-color .3s ease; }
.ft .ft-ic:hover { background: var(--s3); border-color: var(--blaugrau); text-decoration: none; }
.ft-bottom { max-width: 1180px; margin: 28px auto 0; display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .ft { padding: 44px 16px 32px; }
}

/* ---------- Impulse-Übersicht ---------- */
.i-filter { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--s5); background: #fff; color: var(--blau); transition: all .25s ease; }
.i-filter:hover { border-color: var(--blau); }
.i-filter[aria-pressed="true"] { background: var(--blau); color: #fff; border-color: var(--blau); }
.i-filter .n { opacity: .7; font-weight: 400; }
.lead-post { border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; background: var(--blaugrau); }
.lead-post .post-img { flex: 1.3 1 480px; min-width: 0; aspect-ratio: 16 / 9; }
.lead-post .lead-body { flex: 1 1 380px; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.lead-post h2 { margin: 0; color: var(--blau); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; }
[data-post][hidden] { display: none !important; }
@media (max-width: 640px) {
  .lead-post .post-img { flex-basis: 100%; }
  .lead-post .lead-body { padding: 26px 22px 30px; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .fade-in, .compass-float, .dm-float { animation: none; }
  .tel-wrap, .tel-wrap.open, .tel-box, .follow { transition: none; }
  .h-play .h-fade, .h-play .h-left, .h-play .h-right, .h-play .h-red, .h-play .h-text { animation: none; }
  .h-play .h-draw, .h-play .h-hang { animation: none; opacity: 0; }
  .panel:hover .dm-arch, .panel:hover .dm-pulse { animation: none; }
  .h-slogan { animation: none; }
  .h-slogan-1 { opacity: 1; }
  .ov, .ov-panel { animation: none; }
}
.dm-float { animation: dmFloat 7s ease-in-out infinite; }
@keyframes dmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .dm-float { animation: none; } }
.ft-ic svg { fill: var(--blaugrau); }
.lg h2, .lg h3, .lg h4 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) {
  .art-head { padding: 32px 16px 0 !important; }
  .art-cta { padding: 0 16px !important; }
  .art-cta-box { padding: 28px 22px !important; }
  .imp-head { padding: 48px 16px 40px !important; }
  .imp-list { padding: 40px 16px 72px !important; }
  .s-hero { padding: 40px 16px 56px !important; }
  .cal-card { padding: 24px 18px !important; }
}

/* Fehlermarkierung in Formularen */
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(160,34,10,.12); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--rot); outline-offset: 2px; }
.feld-fehler { display: block; color: var(--rot); font-size: 14px; font-weight: 600; margin-top: 2px; }
.consent .feld-fehler { flex-basis: 100%; margin-left: 32px; }
.consent { flex-wrap: wrap; }
