/* Mittelrhein-Gymnasium – Frontend
   Markenfarben exakt: --orange #FF8F1C, --teal #00859B (Flächen, Linien, große Schrift auf Dunkel).
   --orange-ink / --teal-ink sind nur abgedunkelte Fassungen für kleine Schrift auf Weiß (Barrierefreiheit, Kontrast ≥ 4,5:1).
   Farben aus dem Logo: Orange #FF8F1C (Pantone 1495 C), Blau #00859B (Pantone 7712 C). Schrift: Inter.
   Hell/Dunkel: html[data-scheme] = light | dark | auto (+ Besucherwahl html.is-dark / html.is-light) */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-bold.woff2") format("woff2"); }

:root {
  --orange: #FF8F1C;
  --orange-ink: #B35A00;     /* Orange für Text auf Hell (Kontrast ≥ 4.5:1) */
  --teal: #00859B;
  --teal-ink: #006D80;
  --bg: #FFFFFF;
  --bg2: #F6F4EF;
  --card: #FFFFFF;
  --ink: #18242A;
  --muted: #56656C;
  --line: #E5E0D6;
  --head: #FFFFFF;
  --shadow: 0 1px 2px rgba(20, 30, 35, .06), 0 8px 24px rgba(20, 30, 35, .06);
  --radius: 14px;
  --wrap: 1180px;
  --hd-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
/* Dunkel – fest gewählt, automatisch nach Gerät, oder per Besucher-Knopf */
html[data-scheme="dark"]:not(.is-light), html.is-dark { --bg: #0E191C; --bg2: #132226; --card: #172A2F; --ink: #E8F0F1; --muted: #A2B4B9; --line: #24393F; --head: #0E191C; --orange-ink: #FFA54A; --teal-ink: #6FCBDA; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25); color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  html[data-scheme="auto"]:not(.is-light) { --bg: #0E191C; --bg2: #132226; --card: #172A2F; --ink: #E8F0F1; --muted: #A2B4B9; --line: #24393F; --head: #0E191C; --orange-ink: #FFA54A; --teal-ink: #6FCBDA; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25); color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
.h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); letter-spacing: -.025em; }
.h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.02em; }
.h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
.h4 { font-size: 1.05rem; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--orange-ink); }
.kick { margin: 0 0 .6em; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; margin: 0; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }
.rounded { border-radius: var(--radius); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .78em 1.3em; border-radius: 999px; border: 1.5px solid var(--teal); background: transparent; color: var(--teal-ink); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-s { padding: .55em 1em; font-size: .88rem; }
.btn-primary, .btn-ink { background: var(--orange); border-color: var(--orange); color: #1B1205; }
.btn-primary:hover, .btn-ink:hover { background: color-mix(in srgb, var(--orange) 88%, #000); border-color: color-mix(in srgb, var(--orange) 88%, #000); color: #1B1205; }
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }

/* ------------------------------------------------ Kopf */
.topbar { background: var(--orange); color: #1B1205; font-size: .84rem; position: relative; z-index: 31; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: inherit; }
.topbar-l { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-r { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: rgba(0,0,0,.08); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 170px; z-index: 50; }
.lang ul a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink); }
.lang ul a:hover, .lang ul a[aria-current] { background: var(--bg2); text-decoration: none; }
.lang ul a[aria-current] { font-weight: 700; }
.scheme-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.08); color: inherit; cursor: pointer; }
.scheme-btn:hover { background: rgba(0,0,0,.16); }
.scheme-btn .i-sun, html.is-dark .scheme-btn .i-moon, html[data-scheme="dark"]:not(.is-light) .scheme-btn .i-moon { display: none; }
html.is-dark .scheme-btn .i-sun, html[data-scheme="dark"]:not(.is-light) .scheme-btn .i-sun { display: block; }

.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--head) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.hd.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hd-h); }
.hd-logo { flex: none; display: block; }
.hd-logo-img { width: var(--logo-w, 210px); height: auto; transition: width .3s var(--ease); }
.hd.is-scrolled .hd-logo-img { width: calc(var(--logo-w, 210px) * .82); }
.logo-d { display: none !important; }
html[data-scheme="dark"]:not(.is-light) .logo-l, html.is-dark .logo-l { display: none !important; }
html[data-scheme="dark"]:not(.is-light) .logo-d, html.is-dark .logo-d { display: block !important; }
@media (prefers-color-scheme: dark) {
  html[data-scheme="auto"]:not(.is-light) .logo-l { display: none !important; }
  html[data-scheme="auto"]:not(.is-light) .logo-d { display: block !important; }
}

.nav-l1 { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-l1 > li { position: relative; display: flex; align-items: center; }
.nav-a { display: block; padding: 10px 12px; font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-radius: 8px; transition: color .2s; }
.nav-a:hover, .nav-a.is-cur { color: var(--orange-ink); }
.nav-a.is-cur::after { content: ""; display: block; height: 2px; background: var(--orange); border-radius: 2px; margin-top: 3px; }
.sub-btn { display: inline-grid; place-items: center; width: 22px; height: 28px; margin-left: -8px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.sub-btn svg { transition: transform .2s; }
.has-sub.is-open .sub-btn svg { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 4px); left: -8px; min-width: 280px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub:last-child .sub { left: auto; right: -8px; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; line-height: 1.35; }
.sub a:hover, .sub a.is-cur { background: var(--bg2); color: var(--orange-ink); }
.sub li li a { padding-left: 26px; font-size: .9rem; color: var(--muted); position: relative; }
.sub li li a::before { content: ""; position: absolute; left: 13px; top: 50%; width: 6px; height: 1.5px; background: currentColor; opacity: .6; }
.nav-extra { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--bg2); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span:not(.sr) { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  :root { --hd-h: 76px; }
  .burger { display: inline-flex; }
  .hd-logo-img { width: var(--logo-w-m, 160px); }
  .hd.is-scrolled .hd-logo-img { width: calc(var(--logo-w-m, 160px) * .9); }
  /* Mobil: Menü als Vollbild-Überlagerung (Logo + Schließen bleiben sichtbar) */
  .hd { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--head); }
  .nav { position: fixed; top: var(--nav-top, calc(var(--hd-h) + 40px)); left: 0; right: 0; bottom: 0; z-index: -1; background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 40px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  body.menu-open .topbar { z-index: 1; }
  body.menu-open .hd { border-bottom-color: transparent; box-shadow: none; }
  .nav-extra { display: grid; gap: 12px; margin-top: auto; padding-top: 28px; }
  .nav-extra a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
  .nav-extra a:hover { color: var(--orange-ink); }
  .nav-l1 { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-l1 > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-a { flex: 1; padding: 18px 4px; font-size: 1.12rem; }
  .nav-a.is-cur::after { display: none; }
  .sub-btn { width: 48px; height: 48px; margin: 0; }
  .sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 10px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: block; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 620px) {
  .topbar-l span { display: none; }
  .topbar-l a:first-child span { display: inline; }
  .topbar-l { gap: 14px; }
}

/* ------------------------------------------------ Startseite: Hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: calc(100vh - 40px - var(--hd-h)); min-height: calc(100svh - 40px - var(--hd-h)); display: flex; flex-direction: column; justify-content: center; padding: 72px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #10202a; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 75% 50% at 50% 36%, rgba(6,14,18,.62) 0%, rgba(6,14,18,.28) 55%, rgba(6,14,18,0) 80%), linear-gradient(180deg, rgba(6,14,18,.55) 0%, rgba(6,14,18,.5) 45%, rgba(6,14,18,.82) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-in { display: grid; gap: clamp(32px, 6vh, 64px); }
.hero-h { margin: 0; text-align: center; color: var(--orange); font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.55), 0 0 60px rgba(0,0,0,.35); }
.hl { text-wrap: balance; }
.hl { display: block; }
.hl-1, .hl-3 { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.3rem); font-weight: 600; letter-spacing: -.01em; }
.hl-2 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.4rem); letter-spacing: -.03em; line-height: 1.08; margin: .12em 0 .16em; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1040px; width: 100%; margin-inline: auto; }
.hcard { background: rgba(14, 25, 30, .58); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px 22px 14px; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.hcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.16); }
.hcard-h h2 { margin: 0; font-size: 1.2rem; color: var(--orange); }
.hcard-h a { white-space: nowrap; color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; opacity: .85; }
.hcard-h a:hover { opacity: 1; text-decoration: underline; color: #fff; }
.hcard-empty { margin: 10px 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.hlist { list-style: none; margin: 0; padding: 0; }
.hlist li + li { border-top: 1px solid rgba(255,255,255,.1); }
.hitem { display: flex; gap: 14px; align-items: center; padding: 12px 6px; margin: 0 -6px; color: #fff; text-decoration: none; border-radius: 10px; transition: background .2s; }
.hitem:hover { background: rgba(255,255,255,.07); color: #fff; }
.hitem strong { display: block; font-size: 1rem; line-height: 1.35; font-weight: 600; }
.hitem:hover strong { color: var(--orange); }
.hitem small { display: block; color: rgba(255,255,255,.72); font-size: .82rem; margin-top: 3px; }
.hthumb { flex: none; width: 72px; height: 56px; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.08); }
.hthumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph, .card-ph { display: block; width: 100%; height: 100%; background: url("../img/fotos/welle-800.webp") center/cover; }
.dt { flex: none; display: grid; place-items: center; align-content: center; width: 58px; height: 58px; border-radius: 12px; background: var(--orange); color: #1B1205; line-height: 1; }
.dt b { font-size: 1.35rem; font-weight: 700; }
.dt span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.85); text-decoration: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.scroll-hint:hover { color: var(--orange); }
.mouse { width: 26px; height: 40px; border: 2px solid currentColor; border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.mouse i { width: 4px; height: 8px; border-radius: 2px; background: var(--orange); animation: wheel 1.8s infinite var(--ease); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 820px) {
  .hero { padding: 40px 0 92px; }
  .hero-in { gap: 28px; }
  .hl-1, .hl-3 { font-size: clamp(1.1rem, 4.6vw, 1.6rem); }
  .hl-2 { font-size: clamp(1.5rem, 7.3vw, 2.6rem); margin: .18em 0 .22em; }
  .hero-cards { grid-template-columns: 1fr; }
  .hcard { padding: 18px 18px 10px; }
  .hcard-h h2 { font-size: 1.05rem; }
}
/* Hero-Einstieg */
html[data-mlevel="full"] .hl, html[data-mlevel="full"] .hcard { animation: rise .9s var(--ease) both; }
html[data-mlevel="full"] .hl-2 { animation-delay: .12s; }
html[data-mlevel="full"] .hl-3 { animation-delay: .24s; }
html[data-mlevel="full"] .hcard { animation-delay: .4s; }
html[data-mlevel="full"] .hcard + .hcard { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Laufband */
.ticker { background: var(--teal); color: #fff; overflow: hidden; font-size: .92rem; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li a { display: block; padding: 12px 28px; color: #fff; text-decoration: none; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.25); }
.ticker li a:hover { text-decoration: underline; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------ Abschnitte */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-tint { background: var(--bg2); }
.sec-h { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-txt .btn { margin-top: 8px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.cards { display: grid; gap: 22px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-b { padding: 18px 20px 22px; }
.card-b h3 { font-size: 1.1rem; margin-bottom: .35em; }
.card-b h3 a { color: var(--ink); text-decoration: none; }
.card-b h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--orange-ink); }
.card-b p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.quick a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s var(--ease), color .2s; }
.quick a:hover { border-color: var(--orange); color: var(--orange-ink); transform: translateX(3px); }

.addr { font-style: normal; margin: 1em 0 1.4em; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--card) url("../img/fotos/welle-800.webp") center/cover; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.map-gate p { margin: 0; max-width: 34ch; font-size: .95rem; }
.sm-cal { margin-top: 56px; }
.sm-frame { aspect-ratio: auto; height: 620px; background-color: var(--bg2); }

/* ------------------------------------------------ Unterseiten */
.phead { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 56px); background: var(--bg2); border-bottom: 1px solid var(--line); }
.phead::before { content: ""; position: absolute; right: 0; top: 0; width: min(46vw, 560px); height: 100%; background: url("../img/fotos/welle-1600.webp") left center/cover; opacity: .55; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
html[data-scheme="dark"]:not(.is-light) .phead::before, html.is-dark .phead::before { opacity: .12; }
.phead-img-on { color: #fff; background: #10202a; border-bottom: 0; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); display: flex; flex-direction: column; justify-content: flex-end; min-height: max(380px, calc(50svh - 40px)); }
.phead-img-on::before { display: none; }
.phead-bg { position: absolute; inset: 0; z-index: -1; }
.phead-bg img { width: 100%; height: 100%; object-fit: cover; }
.phead-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,20,.25) 0%, rgba(8,16,20,.35) 40%, rgba(8,16,20,.8) 100%); }
.phead-img-on .lead, .phead-img-on .crumbs, .phead-img-on .crumbs a { color: rgba(255,255,255,.88); }
.phead-img-on .h1 { color: #fff; }
.phead .h1 { margin-bottom: .3em; max-width: 22ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.phead-img-on .crumbs [aria-current] { color: #fff; }

.page-body { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.blk { display: grid; gap: clamp(24px, 4vw, 56px); margin: 0 0 clamp(40px, 5vw, 64px); align-items: center; max-width: 1080px; }
.blk-text, .blk-hinweis, .blk-zitat, .blk:not(.has-img) { max-width: 760px; }
.blk-bild-rechts.has-img { grid-template-columns: 1.1fr 1fr; }
.blk-bild-rechts.has-img .blk-media { order: 2; }
.blk-bild-links.has-img { grid-template-columns: 1fr 1.1fr; }
.blk-media { margin: 0; }
.blk-media img { width: 100%; border-radius: var(--radius); }
.blk-wide img { max-height: 560px; object-fit: cover; }
.blk-hinweis { background: color-mix(in srgb, var(--orange) 12%, var(--bg)); border-left: 4px solid var(--orange); border-radius: 12px; padding: 22px 26px; }
.blk-hinweis .prose > :last-child { margin-bottom: 0; }
.quote { margin: 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--teal); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); line-height: 1.45; font-weight: 500; }
@media (max-width: 860px) { .blk-bild-rechts.has-img, .blk-bild-links.has-img { grid-template-columns: 1fr; } .blk-bild-rechts.has-img .blk-media { order: 0; } }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 1.05em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--orange); }
.prose .small { font-size: .88rem; color: var(--muted); }
.prose a { font-weight: 500; }
.legal .prose, .legal-cols { max-width: 860px; }
.legal-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 760px) { .legal-cols { grid-template-columns: 1fr; } }

.subpages { margin-top: 24px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.tile-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-b { position: relative; display: grid; gap: 6px; padding: 18px 48px 20px 20px; }
.tile-b strong { font-size: 1.1rem; }
.tile:hover strong { color: var(--orange-ink); }
.tile-b small { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.tile-go { position: absolute; right: 20px; top: 18px; color: var(--orange-ink); transition: transform .25s var(--ease); }
.tile:hover .tile-go { transform: translateX(4px); }

/* Neuigkeiten */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chips a small { color: var(--muted); }
.chips a:hover { border-color: var(--orange); }
.chips a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips a[aria-current] small { color: inherit; opacity: .7; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-b { padding: 18px 20px 22px; }
.pcard-b h3 { font-size: 1.12rem; margin: .2em 0 .4em; }
.pcard-b h3 a { color: var(--ink); text-decoration: none; }
.pcard-b h3 a:hover { color: var(--orange-ink); }
.pcard-b p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.meta { font-size: .82rem !important; color: var(--muted); margin: 0; }
.meta .cat { color: var(--teal-ink); font-weight: 600; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager [aria-current] { background: var(--orange); border-color: var(--orange); color: #1B1205; }
.pager .gap { border: 0; }

/* Termine */
.ev-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ev-month { margin: 36px 0 10px; color: var(--teal-ink); }
.elist { list-style: none; margin: 0; padding: 0; }
.erow { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.erow-b h3 { font-size: 1.12rem; margin: 0 0 .2em; }
.erow-b h3 a { color: var(--ink); text-decoration: none; }
.erow-b h3 a:hover { color: var(--orange-ink); }
.erow-b p { margin: .25em 0 0; color: var(--muted); font-size: .95rem; }
.erow-img img { width: 140px; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 600px) { .erow { grid-template-columns: auto 1fr; } .erow-img { display: none; } }
.past { margin-top: 48px; }
.past summary { cursor: pointer; font-weight: 600; color: var(--teal-ink); padding: 10px 0; }

/* Beitrag */
.post-body { max-width: 860px; padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 88px); }
.post-hero { margin: 0 0 32px; }
.post-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 32px 0; }
.gal a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gal a:hover img { transform: scale(1.05); }
.back { margin-top: 32px; }
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5,10,12,.92); padding: 24px; }
.lb img { max-height: 88vh; width: auto; border-radius: 8px; }
.lb button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; }
.lb .lb-p, .lb .lb-n { top: 50%; transform: translateY(-50%); }
.lb .lb-p { left: 16px; right: auto; }
.lb .lb-n { right: 16px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 72px); }
.contact address { font-style: normal; margin-bottom: 1em; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.cf { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.cf-full { grid-column: 1 / -1; }
.cf-f label, .cf-f legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.cf input[type="text"], .cf input[type="email"], .cf input[type="tel"], .cf input[type="number"], .cf input[type="date"], .cf textarea, .cf select { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.cf input:focus, .cf textarea:focus, .cf select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.cf fieldset { border: 0; padding: 0; margin: 0; }
.cf-opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.cf-opt input { margin-top: 5px; accent-color: var(--orange); }
.cf-consent { font-size: .9rem; }
.cf-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cf-submit small { color: var(--muted); }
.req { color: var(--orange-ink); }
.has-err input, .has-err textarea, .has-err select { border-color: #C0392B; }
.cf-err { display: block; color: #C0392B; font-size: .85rem; margin-top: 4px; }
.cf-help { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.form-err { background: #FDECEA; color: #8E1F14; padding: 12px 16px; border-radius: 10px; }
.form-ok { background: color-mix(in srgb, var(--teal) 12%, var(--bg)); border-left: 4px solid var(--teal); padding: 22px 24px; border-radius: 12px; }
.form-ok-h { font-weight: 700; font-size: 1.15rem; margin: 0 0 .3em; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .cf { grid-template-columns: 1fr; } }

/* ------------------------------------------------ Fußbereich (weiß/orange – umgekehrt zum Kopf) */
.ft-top { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 40px; }
.ft-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.ft-logo { width: 200px; margin-bottom: 22px; }
.ft-h { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 14px; }
.ft-col p, .ft-col address { margin: 0 0 1em; font-style: normal; font-size: .95rem; color: var(--muted); }
.ft-lines { display: grid; gap: 6px; }
.ft-lines a, .ft-lines span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.ft-lines a:hover { color: var(--orange-ink); }
.ft-more { color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.ft-links { display: grid; gap: 8px; justify-items: start; }
.ft-cc { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ft-eu { width: 200px; margin-top: 18px; border-radius: 6px; }
html[data-scheme="dark"]:not(.is-light) .ft-eu, html.is-dark .ft-eu { background: #fff; padding: 6px; }
.ft-bar { background: var(--orange); color: #1B1205; font-size: .86rem; }
.ft-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 52px; padding: 10px 0; }
.ft-bar nav { display: flex; gap: 20px; }
.ft-bar a { color: inherit; text-decoration: none; font-weight: 600; }
.ft-bar a:hover { text-decoration: underline; color: inherit; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); box-shadow: var(--shadow); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.a11y-fab { bottom: 76px !important; }

/* Cookie-Hinweis */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; justify-content: center; }
.cc[hidden] { display: none; }
.cc-in { max-width: 720px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.cc-h { font-weight: 700; margin: 0 0 .3em; }
.cc-t { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.cc-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.cc-opt { display: flex; gap: 10px; font-size: .9rem; }
.cc-opt small { display: block; color: var(--muted); }
.cc-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cc-b { font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.cc-b-link { border-color: transparent; text-decoration: underline; margin-right: auto; }
.cc-b-main { background: var(--orange); border-color: var(--orange); color: #1B1205; }

/* Einblenden beim Scrollen (nur bei voller Bewegung) */
html[data-mlevel="full"] [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html[data-mlevel="full"] [data-reveal].is-in { opacity: 1; transform: none; }
html[data-mlevel="full"] .cards [data-reveal]:nth-child(2), html[data-mlevel="full"] .tiles [data-reveal]:nth-child(3n+2), html[data-mlevel="full"] .pgrid [data-reveal]:nth-child(3n+2) { transition-delay: .08s; }
html[data-mlevel="full"] .cards [data-reveal]:nth-child(3), html[data-mlevel="full"] .tiles [data-reveal]:nth-child(3n+3), html[data-mlevel="full"] .pgrid [data-reveal]:nth-child(3n+3) { transition-delay: .16s; }
html[data-mlevel="full"] .cards [data-reveal]:nth-child(4) { transition-delay: .24s; }
html[data-mlevel="soft"] .hero-bg img, html[data-mlevel="none"] .hero-bg img { animation: none; transform: none; }
html[data-mlevel="soft"] .ticker-track, html[data-mlevel="none"] .ticker-track { animation: none; overflow-x: auto; width: auto; }
html[data-mlevel="soft"] .ticker ul[aria-hidden], html[data-mlevel="none"] .ticker ul[aria-hidden] { display: none; }
html[data-mlevel="none"] .mouse i { animation: none; }

/* Druck */
@media print {
  .topbar, .hd, .ft-top, .to-top, .cc, .scroll-hint, .a11y-fab, .hero-bg { display: none !important; }
  .hero { color: #000; min-height: 0; }
  body { font-size: 12pt; }
}
@media (prefers-color-scheme: dark) {
  html[data-scheme="auto"]:not(.is-light) .scheme-btn .i-moon { display: none; }
  html[data-scheme="auto"]:not(.is-light) .scheme-btn .i-sun { display: block; }
  html[data-scheme="auto"]:not(.is-light) .phead::before { opacity: .12; }
  html[data-scheme="auto"]:not(.is-light) .ft-eu { background: #fff; padding: 6px; }
}
body.menu-open .a11y-fab, body.menu-open .to-top { display: none !important; }

/* Downloads */
.dl-cat { margin: 0 0 44px; }
.dl-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.dl { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); transition: border-color .2s; }
.dl:hover { border-color: var(--orange); }
.dl-ico { display: grid; place-items: center; width: 46px; height: 54px; border-radius: 8px; background: var(--bg2); color: var(--teal-ink); font-size: .7rem; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line); }
.dl-pdf { color: #B3261E; }
.dl-t strong { display: block; font-weight: 600; }
.dl-t small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.dl-m { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.dl-b { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .dl { grid-template-columns: auto 1fr; } .dl-b { grid-column: 1 / -1; justify-content: stretch; } .dl-b .btn { flex: 1; justify-content: center; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pv { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(5,10,12,.82); padding: 20px; }
.pv-box { display: flex; flex-direction: column; width: min(1000px, 100%); height: min(92vh, 100%); background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pv-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.pv-h strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg2); color: var(--ink); font-size: 18px; cursor: pointer; }
.pv-f { flex: 1; width: 100%; border: 0; background: #525659; }
.pv-i { flex: 1; min-height: 0; display: grid; place-items: center; background: var(--bg2); padding: 12px; }
.pv-i img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.pv-open { overflow: hidden; }
