/* RubyFox.TCG · Gestaltung „Rubinschliff Live“
   ===================================================================
   Dunkel wie die Whatnot-Shows. Formensprache aus dem Stream-Overlay
   (stream-overlay/overlay.html): abgeschrägte Ecken wie ein geschliffener
   Rubin, Rubin-Leuchten, dunkles Rubinglas. Das eine laute Element ist der
   Schliff mit dem umlaufenden Licht - am aktiven Schritt und am
   Senden-Knopf. Alles andere bleibt ruhig. */

@font-face { font-family: "Bricolage"; src: url("schriften/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("schriften/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("schriften/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Für das umlaufende Licht: ein animierbarer Winkel. */
@property --winkel { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --buehne: #0B0710;
  --buehne-2: #160A12;
  --glas: rgba(42, 6, 16, .84);
  --glas-hell: rgba(70, 14, 30, .55);
  --rubin: #E3123F;
  --rubin-tief: #6D0A22;
  --glanz: #FFC7B8;
  --gold: #F6B625;
  --gold-hell: #FFD970;
  --text: #FFF4F6;
  --leise: #C9A9B1;
  --linie: rgba(255, 199, 184, .16);
  --feld: rgba(255, 244, 246, .06);
  --fehler: #FF6B86;
  --fase: 14px;
  --schrift-titel: "Bricolage", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --schrift: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --breite: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.6; color: var(--text);
  background:
    radial-gradient(70% 50% at 80% -10%, rgba(227, 18, 63, .22), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(109, 10, 34, .35), transparent 70%),
    var(--buehne);
  background-attachment: fixed;
  min-height: 100vh;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glanz); text-underline-offset: .18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .45em; }
p { margin: 0 0 1em; }
small { font-weight: 400; color: var(--leise); font-family: var(--schrift); letter-spacing: 0; }
.leise { color: var(--leise); }
.offen { background: rgba(246, 182, 37, .18); color: var(--gold-hell); padding: 0 .3em; }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 12px; z-index: 60; background: var(--gold); color: var(--buehne); padding: 8px 14px; }
.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

/* ---- Der Schliff -------------------------------------------------
   Achteck-Ecken wie im Overlay. */
.schliff {
  --f: var(--fase);
  clip-path: polygon(var(--f) 0, calc(100% - var(--f)) 0, 100% var(--f), 100% calc(100% - var(--f)),
    calc(100% - var(--f)) 100%, var(--f) 100%, 0 calc(100% - var(--f)), 0 var(--f));
}

/* ---- Kopf ---- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(11, 7, 16, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); }
.kopf .rahmen { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marke img { height: 42px; width: auto; }
.kopf-nav { display: flex; gap: 22px; margin-left: auto; }
.kopf-nav a { color: var(--leise); text-decoration: none; font-weight: 700; font-family: var(--schrift-titel); font-size: 1.02rem; }
.kopf-nav a:hover { color: var(--text); }
.kopf-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--rubin); }
@media (max-width: 720px) {
  .kopf .rahmen { gap: 14px; }
  .kopf .knopf { display: none; }
  .kopf-nav { gap: 16px; }
  .marke img { height: 34px; }
}

/* ---- Knöpfe ---- */
.knopf {
  --f: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--schrift-titel); font-weight: 800; font-size: 1.02rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 0; padding: .85em 1.6em; min-height: 48px;
  background: linear-gradient(180deg, var(--gold-hell), var(--gold)); color: #2A0610;
  clip-path: polygon(var(--f) 0, calc(100% - var(--f)) 0, 100% var(--f), 100% calc(100% - var(--f)),
    calc(100% - var(--f)) 100%, var(--f) 100%, 0 calc(100% - var(--f)), 0 var(--f));
  transition: filter .15s ease, transform .15s ease;
}
.knopf:hover { filter: brightness(1.08); color: #2A0610; }
.knopf:active { transform: translateY(1px); }
.knopf-gross { font-size: 1.15rem; padding: 1em 2em; min-height: 56px; }
.knopf-klein { padding: .5em 1.1em; min-height: 40px; font-size: .95rem; }
.knopf-leise { background: var(--feld); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
.knopf-leise:hover { background: rgba(255, 244, 246, .12); color: var(--text); }
.knopf[disabled] { opacity: .5; cursor: progress; }
/* Senden: das umlaufende Licht. */
.knopf-senden {
  background: conic-gradient(from var(--winkel), var(--rubin), var(--glanz), var(--rubin-tief), var(--rubin));
  color: #fff; position: relative; isolation: isolate; padding: 1em 2.2em;
  animation: randlauf 4s linear infinite;
}
.knopf-senden::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: linear-gradient(180deg, #F0244F, #B80D33);
  clip-path: inherit;
}
.knopf-senden:hover { color: #fff; }
@keyframes randlauf { to { --winkel: 360deg; } }

/* „Ankauf läuft“-Plakette wie das LIVE-Zeichen im Stream. */
.sendung {
  display: inline-flex; align-items: center; gap: .55em; margin: 0 0 18px;
  font-family: var(--schrift-titel); font-weight: 800; font-size: .9rem; letter-spacing: .04em;
  padding: .35em .9em .35em .75em; background: rgba(227, 18, 63, .16); color: var(--glanz);
  box-shadow: inset 0 0 0 1px rgba(227, 18, 63, .5);
}
.sendung .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--rubin); box-shadow: 0 0 10px var(--rubin); animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }

/* ---- Startseite: Bühne ---- */
.buehne { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 9vw, 120px); isolation: isolate; }
.buehne::before {
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: 48%; height: 160px;
  background: linear-gradient(90deg, transparent 0%, transparent 35%, var(--rubin-tief) 48%, var(--rubin) 62%, var(--gold) 82%, rgba(255, 240, 200, .9) 92%, transparent 100%);
  transform: rotate(-11deg); border-radius: 50%; filter: blur(3px); opacity: .85;
  animation: schweif 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes schweif { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.buehne .rahmen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.buehne h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); letter-spacing: -.035em; }
.buehne .lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--leise); max-width: 34ch; }
.buehne .logo { filter: drop-shadow(0 0 40px rgba(227, 18, 63, .35)) drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
@media (max-width: 820px) {
  .buehne .rahmen { grid-template-columns: 1fr; }
  .buehne-bild { order: -1; max-width: 440px; }
  .buehne::before { top: 16%; height: 110px; background: linear-gradient(90deg, transparent, var(--rubin-tief) 20%, var(--rubin) 45%, var(--gold) 75%, transparent); }
}

/* ---- Abschnitte ---- */
.abschnitt { padding: clamp(48px, 7vw, 96px) 0; }
.abschnitt h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; }
.einleitung { color: var(--leise); max-width: 60ch; font-size: 1.1rem; }
.schluss { text-align: center; }
.schluss h2, .schluss .einleitung { margin-inline: auto; }
.schluss .aktionen { justify-content: center; }

/* Ablauf: echte Reihenfolge, deshalb nummeriert - die Nummer sitzt in
   einem geschliffenen Rubin. */
.ablauf { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: schritt; position: relative; }
.ablauf.drei { grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.ablauf::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 2px; background: linear-gradient(90deg, var(--rubin), var(--gold)); opacity: .6; }
.ablauf li { position: relative; counter-increment: schritt; }
.ablauf li::before {
  content: counter(schritt); position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  font-family: var(--schrift-titel); font-weight: 800; font-size: 1.3rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #FF6A84, var(--rubin) 45%, var(--rubin-tief));
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.ablauf h3 { font-size: 1.25rem; }
.ablauf p { color: var(--leise); margin: 0; }
@media (max-width: 860px) {
  .ablauf, .ablauf.drei { grid-template-columns: 1fr; gap: 22px; }
  .ablauf::before { left: 25px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; background: linear-gradient(180deg, var(--rubin), var(--gold)); }
  .ablauf li { padding-left: 74px; min-height: 52px; }
  .ablauf li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Was wir ankaufen: geschliffene Glastafeln mit Strich-Symbol. */
.arten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.art { background: linear-gradient(160deg, var(--glas-hell), var(--glas)); padding: 26px 22px 24px; }
.art svg, .kachel svg { width: 44px; height: 44px; fill: none; stroke: var(--glanz); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 14px; }
.art h3 { font-size: 1.2rem; margin-bottom: .3em; }
.art p { color: var(--leise); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .arten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .arten { grid-template-columns: 1fr; } }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 820px) { .zweispaltig { grid-template-columns: 1fr; gap: 28px; } }
.spiele { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.spiele li { --f: 7px; padding: .35em .9em; background: var(--feld); color: var(--leise); font-weight: 600; font-size: .95rem;
  clip-path: polygon(var(--f) 0, calc(100% - var(--f)) 0, 100% var(--f), 100% calc(100% - var(--f)), calc(100% - var(--f)) 100%, var(--f) 100%, 0 calc(100% - var(--f)), 0 var(--f)); }
.spiele li:first-child { background: var(--rubin); color: #fff; }
.wege { list-style: none; margin: 0; padding: 0; }
.wege li { border-top: 1px solid var(--linie); }
.wege a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--text); text-decoration: none; font-family: var(--schrift-titel); font-weight: 700; font-size: 1.2rem; }
.wege a span { color: var(--leise); font-family: var(--schrift); font-weight: 500; font-size: .98rem; }
.wege a:hover { color: var(--gold-hell); }

/* ---- Unterseiten ---- */
.seitenkopf { padding: 52px 0 28px; }
.seitenkopf h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.seitenkopf p:not(.sendung) { color: var(--leise); max-width: 56ch; font-size: 1.12rem; margin: 0; }
.text { max-width: 72ch; }
.text h2 { font-size: 1.5rem; margin-top: 1.8em; }
.text ul { padding-left: 1.2em; }

/* ---- Formular in Schritten ---- */
.formular { position: relative; padding-bottom: 80px; }
.schrittleiste { margin: 8px 0 28px; }
.schrittleiste ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; }
.schrittleiste a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--leise); font-family: var(--schrift-titel); font-weight: 700; padding: 6px 0; }
.schrittleiste .nr {
  --f: 11px; position: relative; isolation: isolate; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--feld); color: var(--leise); font-weight: 800; font-size: 1.1rem;
}
.schrittleiste a[aria-current="step"] { color: var(--text); }
.schrittleiste a[aria-current="step"] .nr {
  background: conic-gradient(from var(--winkel), var(--rubin), var(--glanz), var(--rubin-tief), var(--rubin)); color: #fff;
  animation: randlauf 4s linear infinite;
}
.schrittleiste a[aria-current="step"] .nr::before { content: ""; position: absolute; inset: 2px; z-index: -1; clip-path: inherit; background: var(--rubin); }
.schrittleiste a.erledigt .nr { background: rgba(227, 18, 63, .22); color: var(--glanz); }
.schrittleiste a[aria-disabled="true"] { pointer-events: none; opacity: .7; }
.fortschritt-leiste { height: 4px; background: var(--feld); margin-top: 12px; overflow: hidden; }
.fortschritt-leiste span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--rubin), var(--gold)); transition: width .35s ease; box-shadow: 0 0 12px var(--rubin); }
@media (max-width: 640px) {
  .schrittleiste .titel { display: none; }
  .schrittleiste a[aria-current="step"] .titel { display: inline; }
  .schrittleiste ol { grid-template-columns: auto auto auto auto; justify-content: space-between; }
}

.schritt { animation: herein .3s ease both; }
@keyframes herein { from { opacity: 0; transform: translateY(8px); } }
.schritt > h2, .teil > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hinweis { color: var(--leise); max-width: 64ch; margin-bottom: 20px; }
.teil + .teil { margin-top: 44px; }

/* Schritt 1: Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kachel { position: relative; cursor: pointer; display: block; }
.kachel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kachel-innen {
  position: relative; display: flex; flex-direction: column; min-height: 190px; padding: 24px 20px; height: 100%;
  background: linear-gradient(160deg, var(--glas-hell), var(--glas)); transition: background .15s ease;
}
.kachel strong { font-family: var(--schrift-titel); font-size: 1.25rem; font-weight: 800; }
.kachel-innen > span { color: var(--leise); font-size: .95rem; margin-top: 4px; }
.kachel:hover .kachel-innen { background: linear-gradient(160deg, rgba(227, 18, 63, .35), var(--glas)); }
.kachel input:checked + .kachel-innen { background: linear-gradient(160deg, var(--rubin), var(--rubin-tief)); }
.kachel input:checked + .kachel-innen svg { stroke: #fff; }
.kachel input:checked + .kachel-innen > span { color: var(--glanz); }
.kachel input:checked + .kachel-innen::after { content: "✓"; position: absolute; top: 14px; right: 18px; font-weight: 800; font-size: 1.2rem; color: #fff; }
.kachel input:focus-visible + .kachel-innen { outline: 3px solid var(--gold); outline-offset: -3px; }
.kacheln[aria-invalid="true"] .kachel-innen { box-shadow: inset 0 0 0 2px var(--fehler); }
@media (max-width: 900px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kachel-innen { min-height: 160px; } }

/* Felder */
.felder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feld { display: grid; gap: 6px; grid-column: span 3; align-content: start; }
.feld.s2 { grid-column: span 2; } .feld.s4 { grid-column: span 4; } .feld.s6 { grid-column: span 6; }
@media (max-width: 640px) { .feld, .feld.s2, .feld.s4 { grid-column: span 6; } }
label { font-weight: 650; font-size: .95rem; }
input, select {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%; min-height: 46px; padding: .65em .8em;
  background: var(--feld); border: 1px solid var(--linie); border-radius: 0;
}
select option { background: var(--buehne-2); color: var(--text); }
input::placeholder { color: rgba(201, 169, 177, .55); }
input:focus, select:focus { outline: none; border-color: var(--rubin); box-shadow: 0 0 0 3px rgba(227, 18, 63, .35); background: rgba(255, 244, 246, .09); }
[aria-invalid="true"] { border-color: var(--fehler); background: rgba(255, 107, 134, .08); }
.feld-fehler { color: var(--fehler); font-size: .9rem; font-weight: 600; }

/* Schritt 2: jede Karte ein geschliffenes Panel, das Foto als Kartenbild links. */
.karten, .karten tbody { display: block; width: 100%; }
.karten thead { display: none; }
.karten tr {
  --f: 16px; position: relative; display: grid; gap: 10px 14px; margin-bottom: 14px; padding: 16px 56px 16px 16px;
  grid-template-columns: 116px repeat(4, minmax(0, 1fr));
  grid-template-areas: "bild marke marke marke marke" "bild name name set nr" "bild sprache zustand menge .";
  background: linear-gradient(160deg, var(--glas-hell), var(--glas));
  clip-path: polygon(var(--f) 0, calc(100% - var(--f)) 0, 100% var(--f), 100% calc(100% - var(--f)), calc(100% - var(--f)) 100%, var(--f) 100%, 0 calc(100% - var(--f)), 0 var(--f));
}
.karten td { display: block; padding: 0; min-width: 0; }
.karten td[data-titel]::before { content: attr(data-titel); display: block; font-size: .8rem; font-weight: 650; color: var(--leise); margin-bottom: 4px; }
.karten td.bilder { grid-area: bild; }
.karten td.bilder::before { display: none; }
.karten td.name { grid-area: name; } .karten td.set { grid-area: set; } .karten td.nummer { grid-area: nr; }
.karten td.marke { grid-area: marke; } .karten td.sprache { grid-area: sprache; } .karten td.zustand { grid-area: zustand; } .karten td.menge-zelle { grid-area: menge; }
/* Die Art steht als Marke oben in der Zeile, wie ein Etikett. */
.art-marke { --f: 6px; display: inline-block; font-family: var(--schrift-titel); font-weight: 800; font-size: .85rem; letter-spacing: .03em; padding: .3em .8em; background: rgba(255, 199, 184, .12); color: var(--glanz);
  clip-path: polygon(var(--f) 0, calc(100% - var(--f)) 0, 100% var(--f), 100% calc(100% - var(--f)), calc(100% - var(--f)) 100%, var(--f) 100%, 0 calc(100% - var(--f)), 0 var(--f)); }
.karten tr[data-art="Sealed"] .art-marke { background: rgba(246, 182, 37, .18); color: var(--gold-hell); }
.karten tr[data-art="Graded"] .art-marke { background: rgba(227, 18, 63, .3); color: #fff; }
.karten tr[data-art="Sealed"] td.nummer { visibility: hidden; }
.karten input, .karten select { min-height: 42px; padding: .5em .6em; }
.karten td.aktion { position: absolute; right: 10px; top: 10px; }
.karten .weg { background: none; border: 0; color: var(--leise); cursor: pointer; width: 38px; height: 38px; font-size: 1.4rem; line-height: 1; }
.karten .weg:hover { color: var(--fehler); }
.karten tr.drueber { background: linear-gradient(160deg, rgba(227, 18, 63, .45), var(--glas)); }

/* Das Kartenbild: ein Platz im Kartenformat, gefüllt mit dem ersten Foto. */
.kbilder { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; height: 100%; min-height: 150px;
  padding: 8px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--linie); }
.kbild { position: relative; margin: 0; width: 46px; height: 64px; overflow: hidden; flex: none; background: #000; }
.kbild:first-child { width: 100%; height: 118px; }
.kbild img { width: 100%; height: 100%; object-fit: cover; }
.kbild button { position: absolute; right: 0; top: 0; width: 22px; height: 22px; border: 0; background: rgba(11, 7, 16, .85); color: #fff; font-size: .9rem; line-height: 1; cursor: pointer; padding: 0; }
.kbild-neu { font: inherit; font-family: var(--schrift-titel); font-size: .9rem; font-weight: 700; width: 100%; min-height: 40px; border: 1px dashed rgba(255, 199, 184, .35); background: transparent; color: var(--glanz); cursor: pointer; }
.kbilder:not(:has(.kbild)) .kbild-neu { min-height: 100px; }
.kbild-neu:hover { border-color: var(--gold); color: var(--gold-hell); }
.kbild-tipp { color: var(--leise); font-size: .78rem; width: 100%; text-align: center; }
@media (hover: none) { .kbild-tipp { display: none; } }
.karten-fuss { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .karten tr { grid-template-columns: 96px 1fr 1fr; grid-template-areas: "marke marke marke" "bild name name" "bild set nr" "sprache zustand menge"; padding-right: 46px; }
  .kbilder { min-height: 128px; } .kbild:first-child { height: 96px; }
}
@media (max-width: 520px) {
  .karten tr { grid-template-columns: 1fr 1fr; grid-template-areas: "marke marke" "bild bild" "name name" "set nr" "sprache zustand" "menge menge"; padding: 14px 46px 14px 14px; }
  .kbilder { min-height: 0; } .kbild:first-child { width: 96px; height: 132px; }
  .kbilder:not(:has(.kbild)) .kbild-neu { min-height: 46px; }
  .kbild ~ .kbild-neu { width: auto; flex: 1 1 110px; min-height: 64px; }
}

/* Fotos der Sammlung */
.fotofeld { position: relative; display: block; text-align: center; cursor: pointer; padding: 34px 20px; background: rgba(0, 0, 0, .28); transition: background .15s; }
.fotofeld::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(255, 199, 184, .3); pointer-events: none; }
.fotofeld:hover, .fotofeld.drueber { background: rgba(227, 18, 63, .2); }
.fotofeld input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fotofeld strong { display: block; font-family: var(--schrift-titel); font-size: 1.2rem; }
.fotofeld span { color: var(--leise); font-size: .95rem; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 16px; }
.fotos figure { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.fotos img { width: 100%; height: 100%; object-fit: cover; }
.fotos button { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border: 0; background: rgba(11, 7, 16, .85); color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* Schritt 2 im Fotomodus („Ganze Sammlung“): Fotos zuerst. */
.schritt[data-modus="fotos"]:not([hidden]) { display: flex; flex-direction: column; }
.schritt[data-modus="fotos"] .teil-fotos { order: -1; margin-top: 0; }
.schritt[data-modus="fotos"] .teil-karten { margin-top: 44px; }

/* Schritt 4: Zusammenfassung */
.zusammenfassung { display: grid; gap: 14px; margin-bottom: 26px; }
.zf-block { --f: 14px; background: linear-gradient(160deg, var(--glas-hell), var(--glas)); padding: 18px 22px; }
.zf-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.zf-kopf h3 { font-size: 1.15rem; margin: 0; }
.zf-kopf a { font-size: .92rem; font-weight: 650; }
.zf-liste { list-style: none; margin: 0; padding: 0; }
.zf-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--linie); }
.zf-liste li:first-child { border-top: 0; }
.zf-neben { color: var(--leise); font-size: .92rem; text-align: right; }
.zf-leer { color: var(--leise); margin: 0; }

.zustimmung { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; max-width: 72ch; }
.zustimmung input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--rubin); }
.topf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fuß der Schritte: Zurück, Zähler, Weiter. Am Handy klebt er unten. */
.schritt-fuss { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding: 16px 0 0; border-top: 1px solid var(--linie); }
.schritt-fuss .zaehler { margin-right: auto; color: var(--leise); font-size: .95rem; }
.schritt-fuss #zurueck { order: -1; }
.schritt-fuss #zurueck[hidden] + .zaehler { margin-left: 0; }
@media (max-width: 720px) {
  .formular { padding-bottom: 110px; }
  .schritt-fuss { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(11, 7, 16, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .schritt-fuss .knopf { padding: .75em 1.1em; }
  .schritt-fuss .zaehler { font-size: .85rem; }
}

.meldung { padding: 14px 18px; font-weight: 600; margin-top: 18px; }
.meldung.fehler { background: rgba(255, 107, 134, .12); color: var(--fehler); box-shadow: inset 3px 0 0 var(--fehler); }
.meldung.laeuft { background: rgba(255, 199, 184, .08); color: var(--glanz); box-shadow: inset 3px 0 0 var(--rubin); }
.fortschritt { height: 6px; background: var(--feld); overflow: hidden; margin-top: 10px; }
.fortschritt span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rubin), var(--gold)); transition: width .2s; }

/* ---- Fuß ---- */
.fuss { border-top: 1px solid var(--linie); color: var(--leise); padding: 44px 0 32px; font-size: .95rem; margin-top: 40px; }
.fuss .rahmen { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--gold-hell); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss .klein { flex-basis: 100%; font-size: .85rem; margin: 0; opacity: .8; }
body.ankauf .fuss { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
