/* Zertifikat-Tool TOP Seminare 24 */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("schriften/InterTight-400.ttf") format("truetype"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("schriften/InterTight-600.ttf") format("truetype"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("schriften/InterTight-700.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("schriften/Outfit-300.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("schriften/Outfit-400.ttf") format("truetype"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("schriften/Outfit-500.ttf") format("truetype"); }
  :root {
    --papier: #f5f3ee;
    --karte: #ffffff;
    --tinte: #151412;
    --tinte-2: #6f6a63;
    --linie: #dcd7ce;
    --linie-2: #ebe7df;
    --rot: #d51f25;
    --rot-hover: #bf1b21;
    --rot-tinte: #b3181d;
    --rot-flaeche: #fbeaea;
    --gruen: #1f7a3c;
    --gruen-flaeche: #e6f4ea;
    --gelb-flaeche: #fff4d6;
    --gelb-tinte: #6b4d00;
    --kopf: #151412;
    --kopf-tinte: #f1ede6;
    --kopf-leise: #b9b2a8;
    --auswahl: #fdf1f1;
    --schatten: 0 1px 2px rgba(21, 20, 18, .06), 0 10px 28px -14px rgba(21, 20, 18, .22);
    --fokus: #d51f25;
    --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
    --display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --papier: #171513;
      --karte: #221f1c;
      --tinte: #f1ede6;
      --tinte-2: #a39d94;
      --linie: #3a3531;
      --linie-2: #2c2825;
      --rot: #e0353b;
      --rot-hover: #c92a30;
      --rot-tinte: #ff8a8e;
      --rot-flaeche: #3a1c1d;
      --gruen: #7ed49a;
      --gruen-flaeche: #1c2f22;
      --gelb-flaeche: #3a3116;
      --gelb-tinte: #f3d78a;
      --kopf: #0d0c0b;
      --auswahl: #33201f;
      --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
      --fokus: #ff6b70;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --papier: #171513;
    --karte: #221f1c;
    --tinte: #f1ede6;
    --tinte-2: #a39d94;
    --linie: #3a3531;
    --linie-2: #2c2825;
    --rot: #e0353b;
    --rot-hover: #c92a30;
    --rot-tinte: #ff8a8e;
    --rot-flaeche: #3a1c1d;
    --gruen: #7ed49a;
    --gruen-flaeche: #1c2f22;
    --gelb-flaeche: #3a3116;
    --gelb-tinte: #f3d78a;
    --kopf: #0d0c0b;
    --auswahl: #33201f;
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --fokus: #ff6b70;
  }

  * { box-sizing: border-box; }
  body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

  .kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--kopf); color: var(--kopf-tinte); border-bottom: 3px solid var(--rot); }
  .kopf-innen { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; gap: 28px; flex-wrap: wrap; }
  .marke { font-family: var(--display); font-weight: 700; letter-spacing: .02em; font-size: 17px; display: flex; align-items: center; gap: 8px; padding: 12px 0; }
  .marke b { color: #ff4a50; }
  nav.reiter { display: flex; gap: 4px; align-items: stretch; flex-wrap: wrap; flex: 1; }
  nav.reiter button { background: transparent; border: 0; color: var(--kopf-leise); padding: 0 14px; font-family: var(--display); font-weight: 500; font-size: 15px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -3px; min-height: 48px; }
  nav.reiter button:hover { color: var(--kopf-tinte); }
  nav.reiter button[aria-selected="true"] { color: #fff; border-bottom-color: #ff4a50; }
  nav.reiter .anzahl { display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #2c2926; color: #d9d3ca; font-family: var(--sans); font-size: 12px; line-height: 20px; text-align: center; }
  .kopf-rechts { font-size: 13px; color: var(--kopf-leise); display: flex; align-items: center; }

  main { max-width: 1240px; margin: 0 auto; padding-block: 26px 56px; padding-inline: 20px; }
  h1 { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -.01em; margin: 0 0 4px; text-wrap: balance; }
  h2 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0; }
  .untertitel { color: var(--tinte-2); margin: 0 0 22px; font-weight: 300; max-width: 70ch; }
  .kopfzeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

  .karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; box-shadow: var(--schatten); }
  .raster { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 30px; align-items: start; }
  @media (max-width: 900px) { .raster { grid-template-columns: minmax(0, 1fr); } }

  .formular { padding: 20px; display: grid; gap: 14px; }
  .feld label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-2); margin-bottom: 6px; }
  .feld input, .feld select, .feld textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); color: var(--tinte); }
  .feld textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
  .feld [aria-invalid="true"] { border-color: var(--rot); background: var(--rot-flaeche); }
  .feld .klein { font-size: 12.5px; color: var(--tinte-2); margin: 5px 0 0; }
  .hinweis { font-size: 12.5px; color: var(--rot-tinte); margin: 5px 0 0; }
  .hinweis:empty { display: none; }
  .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 480px) { .zwei { grid-template-columns: 1fr; } }

  .nummer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 6px; background: var(--papier); border: 1px dashed var(--linie); font-size: 13px; color: var(--tinte-2); }
  .nummer b { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--tinte); font-variant-numeric: tabular-nums; }

  .knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 0; border-radius: 6px; background: var(--rot); color: #fff; font-family: var(--display); font-weight: 600; cursor: pointer; font-size: 14.5px; text-decoration: none; }
  .knopf:hover { background: var(--rot-hover); }
  .knopf:disabled { opacity: .55; cursor: not-allowed; }
  .knopf.leise { background: transparent; color: var(--tinte); border: 1px solid var(--linie); font-weight: 500; padding: 8px 12px; font-size: 13.5px; }
  .knopf.leise:hover { background: var(--papier); }
  .knopf.gefahr { background: transparent; color: var(--rot-tinte); border: 1px solid var(--linie); font-weight: 500; padding: 8px 12px; font-size: 13.5px; }
  .knopf.gefahr.bestaetigen { background: var(--rot); color: #fff; border-color: var(--rot); }
  .spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: dreh .8s linear infinite; display: none; }
  .knopf.laedt .spinner { display: inline-block; }
  @keyframes dreh { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
  .knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .zurueck { background: none; border: 0; padding: 0; color: var(--tinte-2); cursor: pointer; font-size: 14px; margin-bottom: 10px; }
  .zurueck:hover { color: var(--tinte); text-decoration: underline; }

  .meldung { border-radius: 8px; padding: 13px 15px; font-size: 14px; }
  .meldung h3 { margin: 0 0 5px; font-size: 15px; font-family: var(--display); font-weight: 600; }
  .meldung p { margin: 3px 0; overflow-wrap: anywhere; }
  .meldung.ok { background: var(--gruen-flaeche); }
  .meldung.ok h3 { color: var(--gruen); }
  .meldung.fehl { background: var(--rot-flaeche); }
  .meldung.fehl h3 { color: var(--rot-tinte); }
  .meldung.info { background: var(--gelb-flaeche); color: var(--gelb-tinte); }
  .meldung .knopfreihe { margin-top: 10px; }

  .vorschau { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 66px); }
  @media (max-width: 900px) { .vorschau { position: static; } }
  .vorschau-kopf { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-2); font-weight: 500; gap: 10px; }
  .blatt { width: 100%; max-width: 600px; background: #fff; border: 1px solid var(--linie); box-shadow: var(--schatten); margin: 0 auto; }
  .blatt svg { width: 100%; height: auto; display: block; }

  /* Vorlagen-Übersicht */
  .vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
  .vorlage { text-align: left; cursor: pointer; padding: 16px 16px 14px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--rot); }
  .vorlage:hover { border-color: var(--tinte-2); border-top-color: var(--rot); }
  .vorlage .titel { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.3; }
  .vorlage .meta { font-size: 13px; color: var(--tinte-2); }
  .vorlage ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
  .vorlage li { display: flex; gap: 8px; align-items: baseline; }
  .vorlage li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rot); transform: translateY(-1px); }
  .vorlage li.mehr::before { background: transparent; }
  .vorlage li.mehr { color: var(--tinte-2); }
  .vorlage .fuss-zeile { font-size: 13px; color: var(--rot-tinte); font-weight: 500; }
  .leer { color: var(--tinte-2); font-size: 14px; padding: 22px; background: var(--karte); border: 1px dashed var(--linie); border-radius: 10px; }
  .leer h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--tinte); }
  .leer p { margin: 0 0 14px; max-width: 60ch; }
  .aenderungen { padding: 10px 12px; border-radius: 8px; background: var(--gelb-flaeche); color: var(--gelb-tinte); font-size: 13.5px; }

  /* Unterschrift */
  .pad-huelle { display: grid; gap: 8px; }
  .pad { width: 100%; aspect-ratio: 3 / 1; display: block; background:
      linear-gradient(to bottom, transparent calc(78% - 1px), #c9c3b9 calc(78% - 1px), #c9c3b9 78%, transparent 78%), #ffffff;
    border: 1px dashed var(--linie); border-radius: 8px; touch-action: none; cursor: crosshair; }
  .pad-leiste { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .pad-leiste select { padding: 7px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); font-size: 13.5px; }
  .datei-knopf { position: relative; overflow: hidden; }
  .datei-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
  .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
  .check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--rot); }

  /* Mitgliedschaften */
  section.mitglied-abschnitt { margin-top: 36px; }
  .mitglied-liste { display: grid; gap: 10px; margin: 12px 0; max-width: 760px; }
  .mitglied { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 14px; }
  @media (max-width: 560px) { .mitglied { grid-template-columns: minmax(0, 1fr); } }
  .mitglied .logo { height: 64px; display: grid; place-items: center; background: #ffffff; border: 1px solid var(--linie-2); border-radius: 6px; padding: 6px; }
  .mitglied .logo img { max-width: 100%; max-height: 52px; display: block; }
  .mitglied .logo span { font-size: 12.5px; color: #6f6a63; text-align: center; }
  .mitglied .rechts { display: grid; gap: 8px; }
  .mitglied .klein { font-size: 12.5px; color: var(--tinte-2); }
  .mitglied input { width: 100%; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); }

  /* Tabelle */
  section.liste-abschnitt { margin-top: 40px; }
  .abschnitt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .abschnitt-kopf select { padding: 7px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); font-size: 13.5px; }
  .tabelle-huelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--linie-2); white-space: nowrap; }
  th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-2); font-weight: 500; }
  tbody tr:last-child td { border-bottom: 0; }
  td.nr { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
  td.datum { font-variant-numeric: tabular-nums; }
  td.aktion { text-align: right; }

  details.einstellungen { margin-top: 30px; }
  details.einstellungen summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 15px; }
  .einstellungen-karte { margin-top: 12px; max-width: 640px; padding: 16px 18px; display: grid; gap: 12px; }
  .einstellungen-karte p { margin: 0; font-size: 13.5px; color: var(--tinte-2); }
  .einstellungen-karte .zeile { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
  .einstellungen-karte .zeile .feld { flex: 1 1 120px; }
  .fuss { margin-top: 40px; font-size: 12.5px; color: var(--tinte-2); }

/* ---------------------------------------------------------------- Hostinger-Version: Ergänzungen */
.abstand-oben { margin-top: 14px; }
.untertitel.ohne-abstand { margin: 4px 0 0; }
.leer.volle-breite { grid-column: 1 / -1; }
.kopf-rechts { gap: 14px; flex-wrap: wrap; }
.kopf-rechts .abmelden { color: #ffffff; font-size: 13px; text-decoration: underline; }

body.einfach main.schmal { max-width: 480px; display: grid; gap: 16px; }
body.einfach .formular h1 { margin-bottom: 0; }
.pruefliste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.pruefliste li.ok strong { color: var(--gruen); }
.pruefliste li.fehl strong { color: var(--rot-tinte); }
.pruefliste span { color: var(--tinte-2); font-size: 13px; }

.konto-raster { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
@media (max-width: 900px) { .konto-raster { grid-template-columns: minmax(0, 1fr); } }
.konto-passwort { max-width: 380px; margin-top: 28px; }
.zugang-liste { display: grid; gap: 10px; }
.zugang { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; }
.zugang .wer { display: grid; gap: 2px; }
.zugang .wer strong { font-family: var(--display); font-weight: 600; }
.zugang .wer span { font-size: 13px; color: var(--tinte-2); }
.zugang .rolle { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--papier); border: 1px solid var(--linie); margin-left: 6px; }
.zugang .aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zugang .aktionen input { padding: 7px 9px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); width: 180px; max-width: 100%; }

.versteckt { display: none; }
.feld textarea.kursname { min-height: 0; resize: none; line-height: 1.45; }
