/* ==========================================================================
   IDBT-Glossar · Grundlage nach der 402PAYMENT-Hauptseite
   --------------------------------------------------------------------------
   Übernommen aus homepage/assets/css/site.css (Stand 2026-10-22), siehe
   PLAN-REDESIGN.md, Abschnitt 2.1: Manrope von der eigenen Seite, Navy,
   Orange nur für die Hauptaktion, Schiefer für Fließtext, Papier für
   Karten, Haarlinien, flache Pillen-Knöpfe, weiße Kopfleiste mit
   Haarlinie beim Rollen, Seitenkopf mit zweifarbiger Überschrift,
   navy Fuß mit „//"-Etiketten.

   Was nur das Glossar braucht (Register, Begriffsseite, Suche, Druck),
   steht in css/glossar.css. Keine Vorzeilen über Überschriften (Regel 7).
   ========================================================================== */

/* ---------- Schrift: Manrope von der eigenen Seite (SIL Open Font License) ---------- */
@font-face{font-family:"Manrope";font-style:normal;font-weight:300 800;font-display:swap;src:url(../assets/fonts/manrope-latin.woff2) format("woff2");
  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:"Manrope";font-style:normal;font-weight:300 800;font-display:swap;src:url(../assets/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  /* Farben wie die Hauptseite */
  --navy: #0B0B23; --orange: #FF4436; --orange-hover: #E5392C; --orange-ink: #C42A1E;
  --white: #FFFFFF; --paper: #F4F5F7; --paper-hover: #ECEEF3; --line: #E0E2E9; --slate: #50546B;
  --muted: #73759A;   /* zweite Hälfte zweifarbiger Überschriften: 4,5:1 auf Weiß */
  --navy-800: #2b2b50; --navy-600: #5e5e87; --navy-400: #9898b3; --navy-200: #dadae7; --navy-100: #efeff5;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Ecken: kleine Teile, Karten, Knöpfe */
  --r-sm: 8px; --r-md: 16px; --r-pill: 999px;
  /* Schatten nur für schwebende Flächen (Suche, Sprachwahl) */
  --sh-1: 0 1px 2px rgba(11,11,35,.06), 0 8px 20px -12px rgba(11,11,35,.18);
  --sh-2: 0 24px 64px -24px rgba(11,11,35,.4);
  --ease: cubic-bezier(.22, 1, .36, 1); --dur: .25s;
  --gut: clamp(16px, 4vw, 56px);
  --nav-h: 76px;
  --tipp: 44px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--white); color: var(--navy); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 100; transform: translateY(-160%); padding: 12px 16px; border-radius: var(--r-sm); background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; transition: transform .2s var(--ease); }
.skip-link:focus-visible { transform: none; }
.todo { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--slate); background: repeating-linear-gradient(45deg, rgba(11,11,35,.055) 0 5px, transparent 5px 10px); border-bottom: 1.5px dashed var(--navy-200); padding: .12em .4em; }

/* Zwei Sprachen: beide stehen im Markup, sichtbar ist die zum <html lang>.
   data-immer: Text der anderen Sprache, der trotzdem stehen soll. */
html[lang="en"] [lang="de"]:not([data-immer]), html[lang="de"] [lang="en"]:not([data-immer]) { display: none !important; }
main, .fuss { transition: opacity .16s ease; }
html.wechselt main, html.wechselt .fuss { opacity: 0; }

/* ---------- Überschriften wie die Hauptseite ---------- */
h1, h2, h3 { font-family: var(--sans); text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 80px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.mute { color: var(--muted); }
.intro { max-width: 40em; color: var(--slate); font-size: clamp(17px, 1.35vw, 19px); }

/* ---------- Knöpfe: flach, eine Füllung und ein 1-px-Rand ---------- */
.btn {
  --bg: var(--white); --fg: var(--navy); --edge: var(--navy-200); --bg-hover: var(--navy-100); --edge-hover: var(--navy-400);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid var(--edge);
  background: var(--bg); color: var(--fg);
  font: 700 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--bg-hover); border-color: var(--edge-hover); }
.btn:active { transform: scale(.98); }
.btn--primary { --bg: var(--orange); --fg: var(--white); --edge: var(--orange); --bg-hover: var(--orange-hover); --edge-hover: var(--orange-hover); }
.btn--dark { --bg: var(--navy); --fg: var(--white); --edge: var(--navy); --bg-hover: var(--navy-800); --edge-hover: var(--navy-800); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn--rund { width: 48px; padding: 0; }
.btn--rund.btn--sm { width: 40px; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease); }
.btn--sm svg { width: 16px; height: 16px; }
.btn:hover .pfeil { transform: translateX(3px); }

/* ---------- Kopfleiste ----------
   Weiß, bleibt oben. Die Haarlinie erscheint, sobald die Seite darunter
   rollt (glossar.js setzt .ist-gerollt; ohne Script immer sichtbar). */
.kopf { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transition: opacity var(--dur) var(--ease); }
html.js .kopf:not(.ist-gerollt)::after { opacity: 0; }
.kopf__leiste { display: flex; align-items: center; gap: 14px; height: var(--nav-h); }
.kopf__marke { display: inline-flex; align-items: center; gap: 14px; flex: none; text-decoration: none; }
.kopf__marke img { height: 36px; width: auto; }
.kopf__zeichen { display: none; }
.kopf__trenner { width: 1px; height: 28px; background: var(--line); }
.kopf__name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.kopf__nav { display: flex; gap: 2px; margin: 0 auto; }
.kopf__nav a {
  position: relative; display: inline-flex; align-items: center; height: var(--tipp); padding: 0 14px;
  font-weight: 600; font-size: 15px; color: var(--slate); text-decoration: none; white-space: nowrap; transition: color var(--dur) var(--ease);
}
.kopf__nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s var(--ease); }
.kopf__nav a:hover, .kopf__nav a[aria-current] { color: var(--navy); }
.kopf__nav a:hover::after, .kopf__nav a[aria-current]::after { transform: scaleX(1); }
.kopf__rechts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.kopf__nav + .kopf__rechts { margin-left: 0; }

/* Suchknopf: Pille mit Taste, schmal ein runder Knopf. */
.suchknopf { gap: 8px; padding: 0 10px 0 14px; color: var(--slate); font-weight: 600; }
.suchknopf kbd { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font: 700 12px/1 var(--sans); color: var(--slate); }

/* Sprachwahl wie die Hauptseite: eine Pille mit Globus und Kürzel; offen
   klappt darunter nur die andere Sprache auf, als eine Kapsel. */
.sprache { position: relative; }
.sprache > summary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 84px; height: 40px; padding: 0 12px 0 10px;
  border: 1px solid var(--navy-200); border-radius: 20px; background: var(--white); cursor: pointer; list-style: none;
  font: 700 13px/1 var(--sans); color: var(--navy);
  transition: border-radius .45s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.sprache > summary::-webkit-details-marker { display: none; }
.sprache > summary:hover { border-color: var(--navy-400); }
.sprache > summary svg { width: 18px; height: 18px; flex: none; transition: transform .6s var(--ease); }
.sprache[open] > summary { border-color: transparent; border-radius: 20px 20px 0 0; background: var(--navy-100); }
.sprache[open] > summary svg { transform: rotate(-30deg); }
.sprache__liste {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 6; display: flex; padding: 4px 4px 5px;
  border-radius: 0 0 20px 20px; background: var(--navy-100); box-shadow: var(--sh-1);
  animation: aufklappen .45s var(--ease) both;
}
@keyframes aufklappen { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -40px 0); } }
.sprache__liste button { flex: 1; height: 30px; border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer; font: 700 13px/1 var(--sans); color: var(--slate); transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.sprache__liste button:hover, .sprache__liste button:focus-visible { color: var(--navy); border-color: var(--navy-200); background: var(--white); }
.sprache__liste button[aria-pressed="true"] { display: none; }

/* ---------- Seitenkopf ---------- */
.seitenkopf { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.seitenkopf .intro { margin-top: 20px; }

/* ---------- Abschnittskopf: Überschrift links, kurzer Text rechts ---------- */
.abschnittskopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: end; gap: 16px 56px; margin-bottom: clamp(24px, 3vw, 40px); }
.abschnittskopf p { color: var(--slate); }

/* ---------- Abstand vor dem Fuß ----------
   Das IDBT-FAQ steht nur noch im Fuß (Anweisung 2026-10-22); der Inhalt
   endet mit Luft vor dem Navy. */
main { padding-bottom: clamp(64px, 8vw, 120px); }

/* ---------- Fuß wie die Hauptseite: navy, „//"-Etiketten ---------- */
.fuss { position: relative; overflow: hidden; background: var(--navy); color: #C5C7DC; padding-top: clamp(72px, 9vw, 120px); font-size: 15px; }
.fuss a:not(.btn) { color: inherit; text-decoration: none; }
.fuss__haupt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px 64px; padding-bottom: clamp(56px, 7vw, 96px); }
.fuss__info { display: grid; gap: 28px; align-content: start; justify-items: start; }
.fuss__logo img { height: 44px; width: auto; }
.fuss__etikett { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 14px/1.4 var(--sans); letter-spacing: 0; color: var(--white); }
.fuss__etikett::before { content: "//"; font-weight: 700; letter-spacing: -.06em; color: #5C5E80; }
.fuss__info p { max-width: 30rem; color: #9A9CB8; line-height: 1.6; }
.fuss__verweise { display: grid; grid-template-columns: repeat(2, minmax(150px, 240px)); gap: 40px 56px; align-content: start; }
.fuss__verweise .fuss__etikett { margin-bottom: 24px; }
.fuss__verweise ul { display: grid; gap: 14px; }
.fuss__verweise ul a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 500; font-size: 16px; line-height: 1.4; }
.fuss__verweise ul a svg { width: 15px; height: 15px; opacity: .7; }
.fuss__verweise ul a:hover, .fuss__unten a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.fuss :focus-visible { outline-color: var(--white); }
.fuss__unten { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 22px 0; border-top: 1px solid #23244A; color: #9A9CB8; font-size: 14px; }
.fuss__trenner { margin: 0 6px; color: #5C5E80; font-weight: 700; letter-spacing: -.06em; }
.fuss__unten > span + a { margin-left: auto; }
.fuss__unten a:not(.btn) { display: inline-flex; align-items: center; min-height: 28px; }
.fuss .btn--hell { --bg: transparent; --fg: var(--white); --edge: rgba(255,255,255,.28); --bg-hover: rgba(255,255,255,.08); --edge-hover: rgba(255,255,255,.5); }

/* ---------- Umbrüche ---------- */
@media (max-width: 1024px) {
  /* Ohne die Verweise in der Mitte rücken Suche und Sprache an den
     rechten Rand (sonst standen sie schmal direkt neben dem Logo). */
  .kopf__nav { display: none; }
  .kopf__nav + .kopf__rechts { margin-left: auto; }
  .abschnittskopf { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) { .fuss__haupt { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .kopf__leiste { gap: 8px; }
  .kopf__marke { gap: 10px; }
  .kopf__logo { display: none; }
  .kopf__zeichen { display: block; height: 30px !important; }
  .kopf__trenner { height: 22px; }
  .kopf__name { font-size: 14px; }
  .suchknopf { width: 40px; padding: 0; }
  .suchknopf__text, .suchknopf kbd { display: none; }
  .sprache > summary { min-width: 0; padding: 0 10px; }
}
@media (max-width: 640px) { .kopf__trenner { display: none; } }
@media (max-width: 560px) { .fuss__verweise { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 420px) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
