/* AmimA – Gestaltung
   Welt: fast schwarzer Grund, feines Raster, weicher Schimmer,
   fließende Bänder in Türkis-Violett (assets/js/hintergrund.js). */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --grund: #0a0a0b;
  --flaeche: rgba(17, 17, 21, 0.8);
  --flaeche-fest: #111115;
  --text: #f3f2ee;
  --text-2: #ababb3;
  --linie: rgba(255, 255, 255, 0.11);
  --raster: rgba(255, 255, 255, 0.045);

  --tuerkis: #5eead4;
  --blau: #7ea6ff;
  --violett: #b49cfb;
  --akzent: #5eead4;
  --akzent-hell: #a78bfa;
  --auf-akzent: #08121a;
  --verlauf: linear-gradient(115deg, #5eead4, #7ea6ff 55%, #b49cfb);
  --verlauf-hover: linear-gradient(115deg, #7ff0dd, #95b6ff 55%, #c2aefc);
  --schimmer-a: rgba(45, 212, 191, 0.17);
  --schimmer-b: rgba(167, 139, 250, 0.16);

  --rot: #fb7185;
  --gelb: #fbbf24;

  --schrift: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --breite: 76rem;
  --rand: clamp(1.25rem, 4vw, 3rem);
  --abstand: clamp(5.5rem, 13vh, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4 6.4 11.6 13 4.6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #2b2b30 var(--grund);
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--tuerkis); color: var(--auf-akzent); }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--akzent); }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { text-wrap: balance; }

.unsichtbar {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hintergrund-Ebenen ---------- */

.bg-schimmer,
.bg-raster,
.bg-baender {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-schimmer {
  background:
    radial-gradient(50vmax 42vmax at -6% -10%, var(--schimmer-a), transparent 70%),
    radial-gradient(48vmax 40vmax at 106% 108%, var(--schimmer-b), transparent 70%);
}

.bg-raster {
  background-image:
    linear-gradient(var(--raster) 1px, transparent 1px),
    linear-gradient(90deg, var(--raster) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 40%, #000 55%, transparent 100%);
  mask-image: radial-gradient(130% 100% at 50% 40%, #000 55%, transparent 100%);
}

.bg-baender {
  width: 100%;
  height: 100%;
  transition: opacity 900ms ease;
}
.baender-leise .bg-baender { opacity: 0.4; }

/* ---------- Kopf ---------- */

.sprung {
  position: absolute;
  left: var(--rand);
  top: -4rem;
  z-index: 10;
  background: var(--akzent);
  color: var(--auf-akzent);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.sprung:focus { top: 1rem; }

.kopf {
  position: relative;
  z-index: 2;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.6rem var(--rand) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.marke {
  font-size: 1.5rem;
  font-weight: 780;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.kopf ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.kopf nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 160ms ease;
}
.kopf nav a:hover { color: var(--text); }

/* ---------- Erster Bildschirm ---------- */

main { position: relative; z-index: 1; }

.held {
  position: relative;
  max-width: var(--breite);
  min-height: calc(100svh - 4.5rem);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6.5rem) var(--rand) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: clip;
}

h1 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(2.4rem, 1.1rem + 4.6vw, 4.5rem);
  line-height: 1.06;
  font-weight: 640;
  letter-spacing: -0.028em;
}
h1 .zeile { display: block; }

.einleitung {
  margin: 1.6rem 0 0;
  max-width: 58ch;
  font-size: clamp(1.06rem, 0.96rem + 0.42vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Ein einziger, abgestimmter Auftritt beim Laden */
.auftritt { animation: auftritt 1100ms var(--ease) both; }
.einleitung.auftritt { animation-delay: 110ms; }
.messleiste.auftritt { animation-delay: 220ms; }
.hinweis.auftritt { animation-delay: 300ms; }
.fakten.auftritt { animation-delay: 380ms; }

@keyframes auftritt {
  from { opacity: 0.15; transform: translate3d(0, 18px, 0); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Formular: die Hauptaktion */
.messleiste {
  margin-top: 2.6rem;
  max-width: 60rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  align-items: stretch;
  background: var(--flaeche);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  transition: border-color 220ms ease, box-shadow 320ms var(--ease);
}
.messleiste:focus-within {
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(94, 234, 212, 0.12);
}

.feld {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.55rem 1.1rem 0.6rem;
  min-width: 0;
}
.feld + .feld { border-left: 1px solid var(--linie); }

.feld label {
  font-size: 0.8rem;
  font-weight: 560;
  color: var(--text-2);
}
.feld label .optional {
  margin-left: 0.3rem;
  font-weight: 400;
  color: #8b8b94;
}
.feld input {
  width: 100%;
  min-width: 0;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.12rem;
  caret-color: var(--akzent);
}
.feld input::placeholder { color: #80808a; }
.feld input:focus { outline: none; }
.feld input[aria-invalid="true"] { color: #ffb4a8; }

.messleiste button,
.knopf {
  min-height: 3.6rem;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 11px;
  background: var(--verlauf);
  color: var(--auf-akzent);
  font: inherit;
  font-weight: 680;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 220ms ease, background 220ms ease;
}
.messleiste button:hover,
.knopf:hover {
  background: var(--verlauf-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.85);
}
.messleiste button:active, .knopf:active { transform: translateY(0); }
.messleiste button:disabled { opacity: 0.6; cursor: progress; transform: none; }

.knopf {
  display: inline-flex;
  align-items: center;
  min-height: 3.4rem;
  text-decoration: none;
}

.nicht-ausfuellen {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hinweis {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--text-2);
}
.hinweis a { color: var(--text-2); }
.hinweis a:hover { color: var(--text); }
.hinweis .fehler { color: #ffb4a8; }
.hinweis .erfolg { color: var(--tuerkis); }

.fakten {
  margin: clamp(3rem, 8vh, 5rem) 0 0;
  padding: 1.4rem 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--linie);
}
.fakten li {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 0 1.4rem 0 0;
}
.fakten li + li {
  padding-left: 1.4rem;
  border-left: 1px solid var(--linie);
}
.fakten strong {
  font-size: 1.12rem;
  font-weight: 640;
}
.fakten span {
  font-size: 0.95rem;
  color: var(--text-2);
}

.raute {
  position: absolute;
  width: 3.4rem;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--schimmer-a), transparent 75%);
  border: 1px solid rgba(94, 234, 212, 0.14);
  animation: schweben 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.raute-1 { top: 14%; right: 12%; width: 5.5rem; }
.raute-2 { top: 58%; right: 4%; animation-duration: 21s; animation-delay: -6s; }
.raute-3 { bottom: 22%; left: -1.5rem; width: 2.6rem; animation-duration: 18s; animation-delay: -11s; }

@keyframes schweben {
  from { transform: translate3d(0, 0, 0) rotate(45deg); }
  to { transform: translate3d(-12px, -26px, 0) rotate(57deg); }
}

/* ---------- Abschnitte ---------- */

.abschnitt {
  position: relative;
  max-width: var(--breite);
  margin: 0 auto;
  padding: var(--abstand) var(--rand) 0;
}

h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem);
  line-height: 1.08;
  font-weight: 640;
  letter-spacing: -0.024em;
}

h3 { font-weight: 620; }

.abschnitt-text {
  margin: 1.2rem 0 0;
  max-width: 56ch;
  font-size: 1.12rem;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Liste mit gezeichneten Haken */
.haken,
.konditionen {
  list-style: none;
  margin: 0;
  padding: 0;
}
.haken li,
.konditionen li,
.enthalten dt {
  position: relative;
  padding-left: 1.7rem;
}
.haken li::before,
.konditionen li::before,
.enthalten dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1rem;
  height: 1rem;
  background: var(--verlauf);
  -webkit-mask: var(--haken) center / contain no-repeat;
  mask: var(--haken) center / contain no-repeat;
}

/* 2 · Beispiel-Analyse */
.beispiel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.haken { margin-top: 1.8rem; display: grid; gap: 0.6rem; }

.bericht {
  margin: 0;
  background: var(--flaeche);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 1.6rem 1.7rem 1.4rem;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
}
.bericht figcaption {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--linie);
}
.bericht-titel { font-weight: 640; font-size: 1.12rem; }
.bericht-hinweis { font-size: 0.9rem; color: var(--text-2); }

.bericht table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.bericht thead th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 560;
  color: var(--text-2);
  padding: 0.9rem 0.8rem 0.5rem 0;
}
.bericht thead th:last-child { text-align: right; padding-right: 0; }
.bericht tbody th,
.bericht tbody td {
  padding: 0.8rem 0.8rem 0.8rem 0;
  border-top: 1px solid var(--linie);
  vertical-align: top;
  text-align: left;
}
.bericht tbody th { font-weight: 600; width: 34%; }
.bericht tbody td { color: var(--text-2); }
.bericht tbody td:last-child { text-align: right; padding-right: 0; white-space: nowrap; }

.stufe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.stufe::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
}
.stufe.kritisch { color: var(--rot); }
.stufe.kritisch::before { background: var(--rot); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.stufe.mittel { color: var(--gelb); }
.stufe.mittel::before { background: var(--gelb); transform: rotate(45deg) scale(0.85); }
.stufe.gut { color: var(--tuerkis); }
.stufe.gut::before { background: var(--tuerkis); border-radius: 50%; }

.bericht-fuss {
  margin: 0.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--linie);
  font-weight: 600;
}

/* 3 · Ablauf */
.ablauf {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.ablauf-kopf { position: sticky; top: 3rem; }

.schritte {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.6rem;
}
.schritte::before,
.schritte-linie {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 1.375rem;
  bottom: 1.375rem;
  width: 2px;
}
.schritte::before { background: var(--linie); }
.schritte-linie {
  background: linear-gradient(var(--tuerkis), var(--blau) 60%, var(--violett));
  transform-origin: top;
}

.schritt {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.4rem;
}
.schritt-nr {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grund);
  border: 1.5px solid var(--tuerkis);
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  transition: border-color 400ms ease, color 400ms ease, background 500ms var(--ease);
}
.schritte.animiert .schritt:not(.erreicht) .schritt-nr {
  border-color: var(--linie);
  color: var(--text-2);
}
.schritte.animiert .schritt.erreicht .schritt-nr {
  background: #0f2a28;
}
.schritt h3 { margin: 0.45rem 0 0.35rem; font-size: 1.3rem; }
.schritt p { margin: 0; color: var(--text-2); max-width: 50ch; }

.kostenlos {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 999px;
  color: var(--tuerkis);
  font-size: 0.8rem;
  font-weight: 600;
  font-stretch: 100%;
  vertical-align: 0.2em;
}

/* 2 · Angebot: ein Preis, darunter, was drin ist */
.angebot-oben {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.angebot-kopf { position: sticky; top: 3rem; }

.preis { margin: 0.7rem 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.7rem; }
.betrag {
  font-size: clamp(2.4rem, 1.6rem + 2.3vw, 3.4rem);
  line-height: 1;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.art { color: var(--text-2); font-size: 1.0625rem; }
.preis-gross { margin-top: 2.4rem; }
.preis-gross .betrag { font-size: clamp(3.4rem, 2rem + 4vw, 5rem); }
.dauer { margin: 0.6rem 0 0; color: var(--tuerkis); font-size: 1.0625rem; }

.enthalten {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.2rem;
  border-top: 1px solid var(--linie);
}
.enthalten > div {
  padding: 1.3rem 0 1.45rem;
  border-bottom: 1px solid var(--linie);
}
.enthalten dt { font-weight: 620; font-size: 1.12rem; }
.enthalten dd {
  margin: 0.4rem 0 0;
  padding-left: 1.7rem;
  color: var(--text-2);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.zusatz {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.zusatz h3 { margin: 0; font-size: 1.3rem; }
.mehr { padding-top: 1.6rem; }
.mehr p { margin: 0.7rem 0 0; color: var(--text-2); max-width: 46ch; }
.gesetz {
  padding: 1.6rem 1.8rem 1.7rem;
  background: var(--flaeche);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--linie);
  border-radius: 16px;
}
.gesetz .preis { margin-top: 0.9rem; }
.gesetz .betrag { font-size: 2.4rem; }
.gesetz p:last-child { margin: 0.9rem 0 0; color: var(--text-2); max-width: 58ch; }

.konditionen {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  color: var(--text-2);
  font-size: 0.95rem;
}
.steuerhinweis { margin: 1rem 0 0; color: var(--text-2); font-size: 0.9rem; }
.weiter { margin: 2.5rem 0 0; }

/* 3 · Gefunden werden: Erklärung links, Beispiel-Treffer und Maßnahmen rechts */
.gefunden {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.gefunden-kopf { position: sticky; top: 3rem; }
.ehrlich {
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  max-width: 46ch;
  border-top: 1px solid var(--linie);
  color: var(--text-2);
}

.treffer {
  margin: 0 0 2.4rem;
  padding: 1.5rem 1.7rem 1.6rem;
  background: var(--flaeche);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--linie);
  border-radius: 18px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
}
.treffer figcaption {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--linie);
}
.treffer-suche {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.treffer-suche svg { flex: none; color: var(--text-2); }
.treffer-eintrag { margin-top: 1.3rem; }
.treffer-eintrag p { margin: 0; }
.treffer-adresse { color: var(--text-2); font-size: 0.9rem; }
.treffer-titel {
  margin-top: 0.25rem !important;
  color: var(--blau);
  font-size: 1.3rem;
  font-weight: 560;
  line-height: 1.3;
  text-wrap: balance;
}
.treffer-text { margin-top: 0.45rem !important; color: var(--text-2); font-size: 0.95rem; }
.treffer-ort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  margin-top: 0.8rem !important;
  font-size: 0.9rem;
}
.treffer-offen { color: var(--tuerkis); }

/* 5 · Über AmimA */
.ueber {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.ueber-text { max-width: 60ch; font-size: 1.12rem; }
.ueber-text p { margin: 0 0 1.1rem; color: var(--text-2); }
.ueber-text > p:first-child { color: var(--text); font-size: 1.3rem; line-height: 1.5; }
.ueber-text h3 { margin: 2.2rem 0 0.6rem; font-size: 1.3rem; }

/* Abschlüsse und Zertifikate: Haarlinien, Jahr links */
.nachweise {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}
.nachweise li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) 5.75rem;
  gap: 0 1.2rem;
  padding: 1.05rem 0 1.15rem;
  border-bottom: 1px solid var(--linie);
}
.nachweis-jahr {
  color: var(--text-2);
  font-weight: 620;
}
.nachweise strong { display: block; font-weight: 620; }
.ueber-text .nachweis-text { margin: 0.3rem 0 0; }
.ueber-text .nachweis-praxis { margin-top: 1.1rem; }

/* Vorschaubild eines Zeugnisses; öffnet die große Ansicht */
.zeugnis {
  display: grid;
  gap: 0.45rem;
  align-self: start;
  color: var(--text-2);
  font-size: 0.8rem;
  text-align: center;
  text-decoration: none;
}
.zeugnis img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--linie);
  border-radius: 4px;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.9);
  transition: transform 220ms var(--ease), border-color 220ms ease;
}
.zeugnis:hover { color: var(--text); }
.zeugnis:hover img { transform: translateY(-2px); border-color: rgba(94, 234, 212, 0.5); }

/* Große Ansicht als natives Dialogfenster */
.zeugnis-ansicht {
  /* Breite aus der verfügbaren Höhe und dem Seitenverhältnis der Zeugnisse (1200 x 1700) */
  width: min(92vw, 52rem, calc((96vh - 4rem) * 0.7059));
  max-width: none;
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.zeugnis-ansicht[open] { animation: ansicht-auf 280ms var(--ease); }
.zeugnis-ansicht::backdrop {
  background: rgba(5, 5, 6, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.zeugnis-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.zeugnis-kopf p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.zeugnis-schliessen {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--linie);
  border-radius: 50%;
  background: var(--flaeche-fest);
  cursor: pointer;
  transition: border-color 160ms ease;
}
.zeugnis-schliessen:hover { border-color: rgba(94, 234, 212, 0.5); }
.zeugnis-schliessen::before,
.zeugnis-schliessen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%) rotate(45deg);
}
.zeugnis-schliessen::after { transform: translate(-50%, -50%) rotate(-45deg); }
.zeugnis-ansicht img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
@keyframes ansicht-auf {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.palindrom {
  margin-top: 2rem !important;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linie);
}

/* 6 · Fragen */
.fragen-liste { margin-top: 2.4rem; max-width: 54rem; border-top: 1px solid var(--linie); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: 1.12rem;
  font-weight: 620;
  transition: color 160ms ease;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary:hover { color: var(--tuerkis); }
.fragen summary::before,
.fragen summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--text-2);
  transition: transform 300ms var(--ease), background 160ms ease;
}
.fragen summary::after { transform: rotate(90deg); }
.fragen details[open] summary::after { transform: rotate(0deg); }
.fragen details[open] summary::before,
.fragen details[open] summary::after { background: var(--tuerkis); }
.antwort { padding: 0 3rem 1.4rem 0; color: var(--text-2); max-width: 64ch; }
.antwort p { margin: 0; }

/* 7 · Schluss */
.schluss { padding-bottom: var(--abstand); }
.schluss h2 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.2rem); max-width: 14ch; }
.direkt { margin: 2rem 0 0; color: var(--text-2); }
.platzhalter { color: var(--text); border-bottom: 1px dashed var(--tuerkis); }

/* ---------- Fuß ---------- */

.fuss {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--linie);
  background: rgba(10, 10, 11, 0.7);
}
.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2.6rem var(--rand) 3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem 2.5rem;
  align-items: baseline;
  color: var(--text-2);
  font-size: 0.95rem;
}
.fuss-innen p { margin: 0; }
.fuss .marke { grid-column: 1; grid-row: 1; color: var(--text); font-size: 1.3rem; }
.fuss-innen > p:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.fuss-innen > p:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.fuss nav { grid-column: 3; grid-row: 1; display: flex; gap: 1.5rem; justify-self: end; }
.fuss nav a { color: var(--text); }
.fuss-jahr { grid-column: 3; grid-row: 2; justify-self: end; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.rechtstext {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) var(--rand) var(--abstand);
}
.rechtstext h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.8rem); max-width: none; }
.rechtstext h2 { font-size: 1.3rem; letter-spacing: -0.01em; max-width: none; margin: 2.6rem 0 0.7rem; }
.rechtstext h3 { font-size: 1.12rem; margin: 1.6rem 0 0.4rem; }
.rechtstext p, .rechtstext li { color: #d6d5d0; max-width: 68ch; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext .stand { color: var(--text-2); }
.entwurf {
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(251, 191, 36, 0.55);
  border-radius: 12px;
  color: var(--gelb) !important;
  font-size: 0.95rem;
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 980px) {
  .beispiel, .ablauf, .ueber, .angebot-oben, .zusatz, .gefunden { grid-template-columns: 1fr; }
  .ablauf-kopf, .angebot-kopf, .gefunden-kopf { position: static; }
  .angebot-kopf, .gefunden-kopf { margin-bottom: 2.6rem; }
  .mehr { padding-top: 0; }
}

@media (max-width: 900px) {
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .fakten li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .kopf nav { display: none; }
  .messleiste { grid-template-columns: 1fr; padding: 4px; }
  .feld + .feld { border-left: 0; border-top: 1px solid var(--linie); }
  .feld { padding: 0.7rem 0.9rem; }
  .messleiste button { margin-top: 4px; }
  .raute-1 { right: -1rem; top: 6%; }
  .raute-2 { display: none; }
  .bericht { padding: 1.2rem 1.1rem 1.1rem; }
  .bericht thead { display: none; }
  .bericht tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; padding: 0.8rem 0; border-top: 1px solid var(--linie); }
  .bericht tbody th, .bericht tbody td { border: 0; padding: 0; width: auto; }
  .bericht tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .bericht tbody td:last-child { grid-column: 2; grid-row: 1; }
  .enthalten { grid-template-columns: 1fr; }
  .treffer { padding: 1.2rem 1.1rem 1.3rem; }
  .treffer-titel { font-size: 1.12rem; }
  .gesetz { padding: 1.3rem 1.2rem 1.4rem; }
  .fuss-innen { grid-template-columns: 1fr; }
  .fuss .marke, .fuss-innen > p:nth-of-type(1), .fuss-innen > p:nth-of-type(2), .fuss nav, .fuss-jahr { grid-column: auto; grid-row: auto; justify-self: start; }
  .antwort { padding-right: 0; }
  .nachweise li { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 0.9rem; }
  .zeugnis { grid-column: 2; width: 7.5rem; margin-top: 0.9rem; }
}

@media (max-width: 480px) {
  .fakten { grid-template-columns: 1fr; }
  .fakten li, .fakten li + li { padding: 0 0 1.1rem; border-left: 0; border-bottom: 1px solid var(--linie); }
  .fakten li:last-child { border-bottom: 0; }
  .kostenlos { margin-left: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .raute, .auftritt, .zeugnis-ansicht[open] { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
