@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --weiss: #ffffff;
  --tinte: #0a0a0a;
  --blau: #8ba8c0;
  --blau-hell: #eaeff4;
  --blau-zart: #f4f7fa;
  --blau-tief: #3d5a73;
  --text-weich: #41525f;
  --haar: #d3dde6;
  --fehler: #a3261b;
  --fehler-hell: #fbeceb;
  --kopf-schrift: "Sora", "Barlow", system-ui, sans-serif;
  --schrift: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: clamp(16px, 4vw, 40px);
  --rund: 10px;
  --rund-gross: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blau-zart); color: var(--tinte); font: 400 1.0625rem/1.55 var(--schrift); }
h1, h2 { font-family: var(--kopf-schrift); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem); line-height: 1.12; }
h2 { font-size: 1.125rem; }
a { color: var(--blau-tief); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }

.innen { max-width: 1080px; margin: 0 auto; padding-inline: var(--rand); }
.kopf { background: var(--tinte); color: var(--weiss); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke { color: var(--weiss); text-decoration: none; font: 700 1.2rem/1 var(--kopf-schrift); letter-spacing: -0.02em; }
.marke span { color: var(--blau); }
.konto-kopf { display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 0; }
.konto-kopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopf .knopf.leise { color: var(--weiss); border-color: rgba(255,255,255,0.35); }

.testhinweis { background: var(--blau-hell); color: var(--blau-tief); font-weight: 500; font-size: 0.95rem; padding-block: 10px; }

main { padding-block: clamp(24px, 4vw, 48px); }
.laden { color: var(--text-weich); }
.karte { background: var(--weiss); border: 1px solid var(--haar); border-radius: var(--rund-gross); padding: clamp(20px, 3vw, 36px); }

.anmelden { max-width: 640px; margin: 0 auto; }
.vorspann { color: var(--text-weich); font-size: 1.125rem; margin: 0 0 24px; }
.rechte { margin-top: 32px; border-top: 1px solid var(--haar); padding-top: 24px; }
.rechte ul { padding-left: 1.1em; margin: 0 0 12px; }
.rechte li { margin-bottom: 8px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--rund); border: 1px solid var(--tinte); background: var(--tinte); color: var(--weiss); font: 600 1rem/1 var(--schrift); text-decoration: none; cursor: pointer; }
.knopf:hover { background: #262626; }
.knopf.gross { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.knopf.leise { background: transparent; color: var(--tinte); border-color: var(--haar); min-height: 40px; padding: 0 14px; font-weight: 500; }
.knopf.leise:hover { border-color: var(--tinte); }
.knopf:disabled { background: var(--haar); border-color: var(--haar); color: var(--text-weich); cursor: not-allowed; }

.raster { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .raster { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .vorschau { position: sticky; top: 24px; } }

fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font: 700 1rem/1.3 var(--kopf-schrift); margin-bottom: 12px; padding: 0; }
.feld { margin-bottom: 16px; }
.feld label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.anzahl { font-weight: 400; color: var(--text-weich); font-size: 0.9rem; }
input[type="text"], textarea, select { width: 100%; font: 400 1rem/1.4 var(--schrift); color: var(--tinte); background: var(--weiss); border: 1px solid var(--haar); border-radius: var(--rund); padding: 12px 14px; min-height: 48px; }
textarea { resize: vertical; }
input[type="text"]:hover, textarea:hover, select:hover { border-color: var(--blau); }

.ablage { display: grid; gap: 4px; place-items: center; text-align: center; border: 2px dashed var(--haar); border-radius: var(--rund-gross); padding: 28px 16px; cursor: pointer; background: var(--blau-zart); }
.ablage:hover { border-color: var(--blau); }
.ablage input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ablage:focus-within { outline: 3px solid var(--blau); outline-offset: 2px; }
.ablage-text { font-weight: 600; }
.klein-text { color: var(--text-weich); font-size: 0.9rem; }

.wahl, .haken, .schalter { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.wahl { border: 1px solid var(--haar); border-radius: var(--rund); padding: 14px; margin-bottom: 10px; }
.wahl:has(input:checked) { border-color: var(--tinte); background: var(--blau-zart); }
.wahl input, .haken input, .schalter input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--tinte); }
.haken:has(input:disabled) { color: var(--text-weich); opacity: 0.55; cursor: not-allowed; }
.hinweis-box { background: var(--blau-hell); border-radius: var(--rund); padding: 12px 14px; font-weight: 500; }

.abschluss { border-top: 1px solid var(--haar); padding-top: 20px; }
.musik-hinweis { margin: 0 0 8px; }
.zustimmung { margin-bottom: 16px; font-weight: 500; }
.fehler { background: var(--fehler-hell); color: var(--fehler); border-radius: var(--rund); padding: 12px 14px; font-weight: 500; margin: 16px 0 0; }
.sperre { margin: 0 0 20px; }

.vorschau-konto { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--blau-hell); flex: none; }
.avatar.klein { width: 30px; height: 30px; }
.vorschau-medium { aspect-ratio: 9 / 16; max-height: 460px; width: 100%; border-radius: var(--rund); background: var(--blau-zart); border: 1px solid var(--haar); display: grid; place-items: center; overflow: hidden; }
.vorschau-medium img, .vorschau-medium video { width: 100%; height: 100%; object-fit: contain; background: var(--tinte); }
.vorschau-titel { font-weight: 600; margin: 14px 0 4px; overflow-wrap: anywhere; }
.vorschau-text { color: var(--text-weich); white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 16px; max-height: 12em; overflow: auto; }
.trennen { width: 100%; }

.status { margin-top: 24px; }
.status-zeile { font-size: 1.125rem; }

.fuss { padding-block: 24px 40px; }
.fuss .innen { display: flex; gap: 20px; flex-wrap: wrap; }
.fuss a { color: var(--text-weich); }

@media (max-width: 520px) {
  .konto-kopf span { display: none; }
  .knopf.gross { width: 100%; }
}
