/* Ausgeblendete Elemente bleiben ausgeblendet, auch wenn eine Klasse display setzt (z. B. .pinform) */
[hidden] { display: none !important; }

:root {
  --bg: #f4f6fb;
  --hellblau: #E8EEFF;
  --blau-dunkel: #1E44C4;
  --karte: #ffffff;
  --text: #14213d;
  --leise: #5b6577;
  --linie: #e3e7ee;
  --akzent: #2F5BFF;
  --akzent-text: #ffffff;
  --gut: #1c8a4a;
  --schlecht: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.karte {
  width: 100%;
  max-width: 620px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(20, 33, 61, 0.06);
}
.kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; }
.marke picture { display: block; line-height: 0; }
.marke img { display: block; height: 30px; width: auto; }
.hinweis { font-size: 13px; color: var(--gut); }
h1 { font-size: 22px; margin: 0 0 6px; }
.ablauf, .klein, .status { color: var(--leise); font-size: 14px; }
.nachricht { background: var(--bg); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; }
.fehler { color: var(--schlecht); }
.liste { list-style: none; margin: 20px 0; padding: 0; }
.liste li {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--linie);
}
.liste li:last-child { border-bottom: 1px solid var(--linie); }
.name { font-weight: 600; word-break: break-word; }
.meta { color: var(--leise); font-size: 13px; }
.balken { grid-column: 1 / -1; height: 6px; background: var(--linie); border-radius: 3px; overflow: hidden; }
.balken > div { height: 100%; width: 0; background: var(--akzent); transition: width 0.2s; }
a { color: var(--akzent); }
.knopf {
  background: var(--akzent); color: var(--akzent-text); border: 0; border-radius: 10px;
  padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.knopf:hover:not(:disabled) { background: var(--blau-dunkel); }
.knopf:disabled { opacity: 0.55; cursor: default; }
.klein-knopf { padding: 8px 14px; font-size: 14px; }
.ablage { display: block; border: 1.5px dashed var(--linie); border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; margin: 16px 0; color: var(--leise); }
.ablage.ziel { border-color: var(--akzent); color: var(--akzent); }
.punkte { padding-left: 0; list-style: none; }
.punkte li { margin: 6px 0; }
h2 { font-size: 19px; margin: 18px 0 8px; }
h3 { font-size: 15px; margin: 18px 0 0; }
code { font-size: 13px; }

.pinform { display: flex; gap: 10px; margin: 16px 0 8px; }
.pinform input, .feld { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); color: var(--text); }
.pinform input { width: 120px; letter-spacing: 8px; text-align: center; font-size: 20px; }
.feld { width: 100%; margin: 4px 0 12px; }
textarea.feld { min-height: 70px; resize: vertical; }
label.titel { font-weight: 600; font-size: 14px; display: block; }
.quittung { border: 1px solid var(--linie); border-radius: 12px; padding: 16px; margin-top: 16px; }
.quittung .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--leise); word-break: break-all; }
@media print { body, .buehne { background: #fff; padding: 0; } .leiste { border: 0; } .schutz { display: none; } .karte { border: 0; box-shadow: none; } .nichtdrucken { display: none !important; } }
.balken-block { display: block; margin: 8px 0 4px; }
.abstand-oben { margin-top: 16px; }

.linkknopf { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
#codemail { min-width: 0; flex: 1; letter-spacing: normal; text-align: left; }
.wichtig { font-weight: 600; padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #8a4b00; margin: 8px 0 16px; }
.bezug { font-weight: 600; margin: 4px 0 12px; }

/* Kopfleiste mit Slayper-Logo über die ganze Breite */
.leiste { background: var(--karte); border-bottom: 1px solid var(--linie); }
.leiste-innen { max-width: 1100px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.leiste .logo { display: block; height: 28px; width: auto; }
.schutz { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--hellblau); color: var(--blau-dunkel); font-size: 13px; font-weight: 700; }
.buehne { min-height: calc(100vh - 62px); background: linear-gradient(#ffffff, var(--bg)); padding: 40px 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* Dezente Werbekachel, erst nach erledigter Aufgabe sichtbar */
.werbekachel { width: 100%; max-width: 620px; background: var(--hellblau); border-radius: 18px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.werbekachel[hidden] { display: none; }
.werbekachel > img { width: 48px; height: 48px; display: block; }
.werbetext { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.werbetext strong { font-size: 17px; }
.werbetext span { font-size: 14px; color: #33405C; }
.werbeknoepfe { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.linkknopf.leise { color: var(--leise); text-decoration: none; font-size: 13px; font-weight: 600; min-height: 32px; }
@media (max-width: 520px) { .karte { padding: 22px; } .leiste-innen { padding: 12px 16px; } .buehne { padding-top: 24px; } }

/* Rechtliche Links unter jeder Seite (Datenschutz, Impressum) */
.rechtsfuss { display: flex; justify-content: center; gap: 8px; margin: 18px auto 28px; font-size: 13px; color: var(--leise); }
.rechtsfuss a { color: var(--leise); text-decoration: underline; text-underline-offset: 2px; }
