/* maintal.ai – Landingpage
   Keine externen Schriften, keine Cookies, kein Tracking. */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --grau: #f5f5f7;
  --linie: #d2d2d7;
  --link: #0066cc;
  --blau: #005da9;
  --gruen: #97bf0d;
  --rot: #e94f35;
  --glas: rgba(255, 255, 255, 0.72);
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid rgba(0, 125, 250, 0.6); outline-offset: 3px; border-radius: 10px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Navigationsleiste (Glas) ---------- */

.leiste {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.leiste__innen {
  max-width: 1024px; height: 76px; margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between;
}
.leiste__logo img { height: 52px; width: auto; }
.leiste nav { display: flex; gap: 28px; }
.leiste nav a { color: var(--text); font-size: 13px; letter-spacing: -0.01em; opacity: 0.85; }
.leiste nav a:hover { opacity: 1; text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding: calc(76px + env(safe-area-inset-top)) 0 0;
}

.hero__bild {
  position: absolute; inset: 0; z-index: -2;
  background: #3a5a78 url("assets/hero-maintal.jpg") center 55% / cover no-repeat;
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.02);
  animation: zoom 40s var(--ease) infinite alternate;
}
@media (max-width: 1100px) {
  .hero__bild { background-image: url("assets/hero-maintal-1280.jpg"); }
}
@media (max-width: 1100px) and (min-resolution: 2dppx) {
  .hero__bild { background-image: url("assets/hero-maintal.jpg"); }
}

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 20, 36, 0.70) 0%, rgba(8, 20, 36, 0.35) 38%, rgba(8, 20, 36, 0.45) 62%, rgba(8, 20, 36, 0.85) 100%);
}

@keyframes zoom { to { transform: scale(1.10); } }

.mitte {
  width: 100%; max-width: 980px; margin: 0 auto;
  padding: 48px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left));
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.unterzeile {
  margin: 14px auto 0;
  max-width: 28em;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}

/* ---------- App-Karten (Glas, zentriert) ---------- */

.auswahl {
  margin: 36px auto 0;
  max-width: 500px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.karte {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 2px;
  padding: 22px 14px 18px;
  border-radius: 26px;
  text-align: center; color: var(--text);
  background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s var(--ease), background 0.3s var(--ease), box-shadow 0.45s var(--ease);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  overflow: hidden;
}
/* farbiger Schimmer, der beim Hover aufgeht */
.karte::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, var(--akzent-hell) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.karte--kuno { --akzent: #97bf0d; --akzent-hell: rgba(151, 191, 13, 0.32); --akzent-voll: linear-gradient(160deg, #b9dc3f 0%, #6f9a00 100%); }
.karte--sperry { --akzent: #e94f35; --akzent-hell: rgba(233, 79, 53, 0.26); --akzent-voll: linear-gradient(160deg, #ff8a70 0%, #c93d25 100%); }

.karte__icon {
  position: relative;
  width: 76px; height: 76px; margin-bottom: 10px;
  border-radius: 22.5%; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.karte__icon img { width: 100%; height: 100%; object-fit: cover; }

/* Kuno: Originalfigur auf vollgrünem Grund, Kopf und Oberkörper wie ein App-Icon */
.karte__icon--kuno { background: radial-gradient(circle at 50% 22%, #c8e85c 0%, #97bf0d 52%, #5e8a00 100%); }
.karte__icon.karte__icon--kuno img,
.oeffnen__icon.karte__icon--kuno img {
  position: absolute; left: -6%; top: 6%;
  width: 128%; height: auto; max-width: none; object-fit: unset;
  filter: drop-shadow(0 3px 5px rgba(30, 60, 0, 0.35));
}
.karte__name { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.karte__info { display: block; font-size: 13.5px; line-height: 1.35; color: var(--text-2); letter-spacing: -0.01em; }

/* Pfeil: immer sichtbar, mit sanftem Puls im Hintergrund */
.karte__pfeil {
  position: relative;
  display: grid; place-items: center; margin-top: auto !important;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; background: var(--akzent);
  box-shadow: 0 4px 12px -4px var(--akzent);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.karte__pfeil::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--akzent);
  animation: puls 3.6s var(--ease) infinite;
  z-index: -1;
}
.karte__pfeil svg { width: 15px; height: 15px; animation: schubs 3.6s var(--ease) infinite; }
.karte--sperry .karte__pfeil::before,
.karte--sperry .karte__pfeil svg { animation-delay: 1.8s; }

@keyframes puls {
  0%   { transform: scale(1);    opacity: 0.28; }
  60%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes schubs {
  0%, 40%, 100% { transform: translateX(0); }
  20% { transform: translateX(2px); }
}

@media (hover: hover) {
  .karte:hover { text-decoration: none; transform: translateY(-6px) scale(1.03); background: rgba(255, 255, 255, 0.86); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 34px 70px -24px rgba(0, 0, 0, 0.6); }
  .karte:hover::before { opacity: 1; }
  .karte:hover .karte__icon { transform: scale(1.08) rotate(-2deg); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 14px 28px -10px rgba(0, 0, 0, 0.45); }
  .karte:hover .karte__pfeil { transform: scale(1.06); box-shadow: 0 6px 16px -4px var(--akzent); }
  .karte:hover .karte__pfeil::before { animation-duration: 2s; animation-delay: 0s; }
  .karte:hover .karte__pfeil svg { animation: schubs-hover 1.4s var(--ease) infinite; }
}
@keyframes schubs-hover { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
.karte:active { transform: scale(0.97); }

/* ---------- Öffnen-Animation (wie eine App auf dem iPhone) ---------- */

.oeffnen {
  position: fixed; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--akzent-voll);
  border-radius: 32px;
  color: #fff; text-align: center;
  transition: top 0.55s var(--ease), left 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease), border-radius 0.55s var(--ease);
  overflow: hidden;
}
.oeffnen.ist-offen { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; border-radius: 0; }
.oeffnen__icon {
  position: relative;
  width: 96px; height: 96px; border-radius: 22.5%; overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.55s var(--ease);
}
.oeffnen.ist-offen .oeffnen__icon { transform: scale(1.5); }
.oeffnen__icon img { width: 100%; height: 100%; object-fit: cover; }
.oeffnen__text { font-size: 17px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.3s 0.35s, transform 0.3s 0.35s; margin-top: 30px; }
.oeffnen.ist-offen .oeffnen__text { opacity: 1; transform: none; }
.oeffnen__lade { display: inline-block; width: 18px; height: 18px; margin-left: 8px; vertical-align: -3px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: dreh 0.8s linear infinite; }
.oeffnen__zu { margin-top: 18px; padding: 10px 22px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: rgba(255,255,255,0.9); cursor: pointer; opacity: 0; transition: opacity 0.3s 0.45s; }
.oeffnen.ist-offen .oeffnen__zu { opacity: 1; }
@keyframes dreh { to { transform: rotate(360deg); } }

.hinweis-ki {
  margin: 26px auto 0; max-width: 36em;
  font-size: 12px; line-height: 1.4; letter-spacing: 0;
  color: rgba(255, 255, 255, 0.62);
}

.runter {
  display: block; width: 36px; height: 36px; margin: 0 auto max(20px, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.7);
}
.runter:hover { color: #fff; }
.runter svg { width: 100%; height: 100%; }

/* ---------- Projektpartner ---------- */

.partner {
  background: var(--grau);
  padding: 88px max(20px, env(safe-area-inset-right)) 96px max(20px, env(safe-area-inset-left));
}
.partner__innen { max-width: 980px; margin: 0 auto; text-align: center; }
.partner h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.partner__unter { margin: 12px auto 56px; max-width: 32em; font-size: 19px; color: var(--text-2); }

.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.logos li {
  display: grid; place-items: center;
  min-height: 128px; padding: 22px 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 8px 24px -14px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.logos li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 16px 34px -16px rgba(0, 0, 0, 0.35); }
.logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos a:hover { text-decoration: none; }
.logos img { max-height: 62px; max-width: 82%; width: auto; object-fit: contain; }

/* ---------- Fuß (Apple-artig) ---------- */

.fuss {
  background: var(--grau);
  color: var(--text-2);
  font-size: 12px; line-height: 1.33; letter-spacing: -0.01em;
  padding: 18px max(20px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.fuss__innen {
  max-width: 980px; margin: 0 auto;
  padding-top: 14px; border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
}
.fuss nav { display: flex; flex-wrap: wrap; }
.fuss nav a { color: var(--text); padding: 0 10px; border-left: 1px solid var(--linie); }
.fuss nav a:first-child { padding-left: 0; border-left: 0; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.unterseite { background: var(--grau); }
.unterseite .leiste { position: sticky; }
.zurueck { font-size: 13px; color: var(--link); }

.text {
  max-width: 760px; margin: 0 auto;
  padding: 48px max(20px, env(safe-area-inset-right)) 72px max(20px, env(safe-area-inset-left));
  overflow-wrap: anywhere;
}
.text h1 { color: var(--text); font-size: clamp(36px, 6vw, 56px); margin: 0 0 28px; }
.text h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 10px; }
.text h3 { font-size: 19px; font-weight: 600; margin: 24px 0 6px; }
.text p, .text address, .text ul { margin: 0 0 12px; font-style: normal; }
.text .kasten {
  background: #fff; border-radius: 18px; padding: 20px 22px; margin: 0 0 14px;
  box-shadow: 0 2px 12px -6px rgba(0, 0, 0, 0.12);
}
.text .quelle { font-size: 14px; color: var(--text-2); border-top: 1px solid var(--linie); padding-top: 16px; margin-top: 40px; }
.offen { background: #fff4d6; border-radius: 12px; padding: 12px 16px; }

/* ---------- Responsiv ---------- */

@media (max-width: 734px) {
  body { font-size: 17px; }
  .leiste nav { display: none; }
  .leiste__innen { justify-content: center; height: 64px; }
  .leiste__logo img { height: 44px; }
  .unterseite .leiste__innen { justify-content: space-between; }
  .hero { padding-top: calc(64px + env(safe-area-inset-top)); }
  .mitte { padding-top: 28px; }
  .auswahl { gap: 12px; margin-top: 32px; }
  .karte { padding: 18px 8px 14px; border-radius: 22px; }
  .karte__icon { width: 64px; height: 64px; margin-bottom: 8px; }
  .karte__name { font-size: 18px; }
  .karte__info { font-size: 12.5px; }
  .oeffnen__icon { width: 72px; height: 72px; }
  .partner { padding-top: 64px; padding-bottom: 64px; }
  .partner__unter { margin-bottom: 36px; font-size: 17px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logos li { min-height: 100px; padding: 16px; border-radius: 18px; }
  .logos img { max-height: 48px; }
  .fuss__innen { flex-direction: column; align-items: flex-start; }
}

@media (max-height: 700px) and (max-width: 734px) {
  .runter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bild { animation: none; }
  .karte, .karte__icon, .karte__pfeil, .logos li, .oeffnen, .oeffnen__icon { transition: none; }
  .karte__pfeil::before, .karte__pfeil svg { animation: none !important; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .leiste { background: rgba(255, 255, 255, 0.96); }
  .karte { background: rgba(255, 255, 255, 0.94); }
}

/* =========================================================
   Barrierefreiheit (a11y.js)
   ========================================================= */

/* Knopf in der Leiste */
.leiste__innen { position: relative; }
.a11y-knopf {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 24px; padding: 7px 12px 7px 9px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text); background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.a11y-knopf:hover { background: rgba(0, 0, 0, 0.09); }
.a11y-knopf svg { width: 20px; height: 20px; color: var(--blau); }
.leiste nav { margin-left: auto; }

/* Panel */
.a11y-panel {
  position: fixed; z-index: 60;
  top: calc(84px + env(safe-area-inset-top)); right: max(16px, calc((100vw - 1024px) / 2 + 20px));
  width: 340px; max-height: calc(100dvh - 110px); overflow-y: auto;
  padding: 18px 18px 16px;
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 24px 60px -20px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top right;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
  font-size: 15px; letter-spacing: -0.01em;
}
.a11y-panel.ist-sichtbar { opacity: 1; transform: none; }
.a11y-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.a11y-panel h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.a11y-panel h3 { margin: 16px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-2); }
.a11y-panel button { font: inherit; cursor: pointer; color: inherit; }
.a11y-zu { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.06); font-size: 13px !important; }

.a11y-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a11y-reihe button {
  height: 44px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, 0.05);
  font-weight: 600 !important;
}
.a11y-reihe button:nth-child(1) { font-size: 14px !important; }
.a11y-reihe button:nth-child(2) { font-size: 17px !important; }
.a11y-reihe button:nth-child(3) { font-size: 20px !important; }
.a11y-reihe button:disabled { opacity: 0.35; cursor: default; }
.a11y-wert { margin: 6px 0 0; font-size: 12px; color: var(--text-2); }

.a11y-gitter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-wahl {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 10px; text-align: left;
  border: 2px solid transparent; border-radius: 12px; background: rgba(0, 0, 0, 0.05);
  font-size: 13px !important; line-height: 1.2;
}
.a11y-wahl[aria-pressed="true"] { border-color: var(--link); background: rgba(0, 102, 204, 0.08); }
.a11y-muster { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.a11y-kontrast--standard .a11y-muster { background: linear-gradient(135deg, #3a5a78, #97bf0d); color: #fff; }
.a11y-kontrast--sw .a11y-muster { background: #fff; color: #000; box-shadow: 0 0 0 1.5px #000 inset; }
.a11y-kontrast--ws .a11y-muster { background: #000; color: #fff; }
.a11y-kontrast--gelb .a11y-muster { background: #000; color: #ffe600; }

.a11y-schalter, .a11y-vorlesen {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 48px; padding: 8px 12px; margin-bottom: 8px;
  border: 0; border-radius: 12px; background: rgba(0, 0, 0, 0.05); text-align: left;
}
.a11y-schalter__spur { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #d2d2d7; transition: background 0.2s; }
.a11y-schalter__spur::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.2s var(--ease); }
.a11y-schalter[aria-checked="true"] .a11y-schalter__spur { background: #34c759; }
.a11y-schalter[aria-checked="true"] .a11y-schalter__spur::after { transform: translateX(18px); }
.a11y-vorlesen { justify-content: flex-start; }
.a11y-vorlesen svg { width: 22px; height: 22px; color: var(--blau); }
.a11y-vorlesen.laeuft { background: rgba(0, 102, 204, 0.12); }

.a11y-links { display: flex; flex-direction: column; }
.a11y-links a { padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.a11y-links a:last-child { border-bottom: 0; }
.a11y-reset { width: 100%; margin-top: 12px; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: var(--link) !important; font-size: 14px !important; }

@media (max-width: 734px) {
  .a11y-knopf { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); margin: 0; padding: 8px; }
  .a11y-knopf__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a11y-knopf svg { width: 24px; height: 24px; }
  .a11y-panel {
    top: auto; bottom: 0; left: 0; right: 0; width: auto;
    max-height: 85dvh;
    border-radius: 22px 22px 0 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateY(24px); transform-origin: bottom center;
  }
}

/* ---------- Schriftgröße ---------- */
.mitte, .partner__innen, .text, .fuss__innen { zoom: var(--schrift-faktor, 1); }
html[data-schrift="2"] .auswahl,
html[data-schrift="3"] .auswahl { grid-template-columns: 1fr; max-width: 360px; }
@media (max-width: 734px) {
  html[data-schrift="2"] .logos, html[data-schrift="3"] .logos { grid-template-columns: 1fr; }
}

/* ---------- Animationen anhalten ---------- */
html[data-ruhig] *, html[data-ruhig] *::before, html[data-ruhig] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* ---------- Kontrastmodi ---------- */
html[data-kontrast="sw"]   { --k-bg: #ffffff; --k-fg: #000000; --k-akz: #000000; --k-akz-text: #ffffff; }
html[data-kontrast="ws"]   { --k-bg: #000000; --k-fg: #ffffff; --k-akz: #ffffff; --k-akz-text: #000000; }
html[data-kontrast="gelb"] { --k-bg: #000000; --k-fg: #ffe600; --k-akz: #ffe600; --k-akz-text: #000000; }

html[data-kontrast] body,
html[data-kontrast] .hero,
html[data-kontrast] .partner,
html[data-kontrast] .fuss,
html[data-kontrast] .unterseite,
html[data-kontrast] .leiste { background: var(--k-bg) !important; color: var(--k-fg) !important; }
html[data-kontrast] .hero__bild,
html[data-kontrast] .hero::after,
html[data-kontrast] .karte::before { display: none !important; }
html[data-kontrast] .leiste { -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 2px solid var(--k-fg); }
html[data-kontrast] h1, html[data-kontrast] h2, html[data-kontrast] h3,
html[data-kontrast] .unterzeile, html[data-kontrast] .hinweis-ki, html[data-kontrast] .runter,
html[data-kontrast] .partner__unter, html[data-kontrast] .fuss, html[data-kontrast] .text,
html[data-kontrast] .leiste nav a, html[data-kontrast] .zurueck { color: var(--k-fg) !important; text-shadow: none !important; opacity: 1 !important; }
html[data-kontrast] a { color: var(--k-fg) !important; text-decoration: underline; }
html[data-kontrast] .karte {
  background: var(--k-bg) !important; color: var(--k-fg) !important;
  border: 3px solid var(--k-fg) !important; box-shadow: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; text-decoration: none !important;
}
html[data-kontrast] .karte__info { color: var(--k-fg) !important; }
html[data-kontrast] .karte__pfeil { background: var(--k-akz) !important; color: var(--k-akz-text) !important; box-shadow: none !important; }
html[data-kontrast] .karte__pfeil::before { display: none; }
html[data-kontrast] .logos li { box-shadow: none !important; border: 3px solid var(--k-fg); background: #fff; }
html[data-kontrast] .fuss__innen { border-top-color: var(--k-fg); }
html[data-kontrast] .fuss nav a { border-left-color: var(--k-fg); }
html[data-kontrast] .text .kasten { background: var(--k-bg); border: 2px solid var(--k-fg); box-shadow: none; }
html[data-kontrast] .offen { background: var(--k-bg); border: 2px dashed var(--k-fg); }
html[data-kontrast] :focus-visible { outline: 3px solid var(--k-fg); }
/* Logo auf dunklem Grund lesbar halten */
html[data-kontrast="ws"] .leiste__logo,
html[data-kontrast="gelb"] .leiste__logo { background: #fff; padding: 4px 10px; border-radius: 10px; }
html[data-kontrast] .a11y-knopf { background: var(--k-bg); color: var(--k-fg); border: 2px solid var(--k-fg); }
html[data-kontrast] .a11y-knopf svg { color: var(--k-fg); }

/* ---------- 404 ---------- */
.fehler { text-align: center; padding-top: 12vh; padding-bottom: 14vh; }
.fehler__code { margin: 0 0 6px !important; font-size: 17px; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; }
.fehler h1 { margin-bottom: 14px; }
.fehler p { max-width: 30em; margin-left: auto !important; margin-right: auto !important; color: var(--text-2); }
.fehler__links { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 26px !important; }
.fehler__knopf { padding: 11px 22px; border-radius: 999px; background: var(--link); color: #fff !important; font-weight: 600; }
.fehler__knopf:hover { background: #0077ed; text-decoration: none; }
