/* Einig – gemeinsames Aussehen für alle Seiten. Mobil zuerst. */

:root {
  --bg: #f4f4f7;
  --card: #ffffff;
  --ink: #15161c;
  --muted: #6c707e;
  --line: #e5e5ec;
  --brand: #4f46e5;
  --brand-weich: rgba(79, 70, 229, 0.12);
  --ja: #15a34a;
  --nein: #b3340f;
  --fav: #d97706;
  --radius: 18px;
  --schatten: 0 14px 40px rgba(20, 22, 29, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: Outfit, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: 20px 16px 40px;
}

.huelle { width: 100%; max-width: 460px; margin: 0 auto; }

/* --- Marke --- */
.marke { font-weight: 800; font-size: 26px; letter-spacing: -0.6px; }
.marke span { color: var(--brand); }
.kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.kopf .claim { color: var(--muted); font-size: 13px; }

/* --- Flächen --- */
.karte {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--schatten);
}
.karte + .karte { margin-top: 14px; }

h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.3px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.unter { color: var(--muted); font-size: 14px; margin: 0 0 18px; line-height: 1.45; }
.klein { color: var(--muted); font-size: 12.5px; }

/* --- Eingaben --- */
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=url], textarea {
  width: 100%; font: inherit; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 11px;
  background: #fbfbfd; outline: none; color: inherit;
}
input:focus, textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px var(--brand-weich);
}
textarea { resize: vertical; min-height: 64px; }

button {
  font: inherit; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 12px; padding: 13px 16px;
  background: var(--ink); color: #fff;
  transition: opacity .15s, transform .05s;
}
button:hover { opacity: .9; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button.breit { width: 100%; margin-top: 18px; }
button.zweit { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button.leise { background: none; color: var(--muted); padding: 8px 4px; font-weight: 600; font-size: 13px; }

/* --- Meldungen --- */
.fehler, .hinweis {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.4;
}
.fehler { background: #fdf0ec; color: var(--nein); border: 1px solid #f6d5ca; }
.hinweis { background: var(--brand-weich); color: var(--brand); border: 1px solid #d5d2fa; }
[hidden] { display: none !important; }

/* --- Link zum Teilen --- */
.linkfeld {
  display: flex; gap: 8px; align-items: center; margin-top: 8px;
  background: #fbfbfd; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
}
.linkfeld code {
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.linkfeld button { padding: 8px 12px; font-size: 13px; border-radius: 9px; }

/* --- Teilnehmerliste --- */
.leute { list-style: none; padding: 0; margin: 12px 0 0; }
.leute li {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px;
}
.leute li:first-child { border-top: 0; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.punkt.fertig { background: var(--ja); }
.punkt.laeuft { background: var(--fav); }
.leute .status { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* --- Fortschritt --- */
.balken { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.balken i { display: block; height: 100%; background: var(--brand); transition: width .3s; }

/* --- Karteninhalt (Bild, Preis, Titel) --- */
.bild {
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 14px; background: #eeeef3; display: grid; place-items: center;
}
.bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bild.platzhalter {
  background: hsl(var(--ton, 250) 55% 92%);
  color: hsl(var(--ton, 250) 55% 32%);
}
.bild.platzhalter span { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.text { padding: 14px 4px 0; }
.preis { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.titel { font-size: 16px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.unterzeile {
  color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.quelle { color: var(--muted); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600; margin-top: 8px; }

/* --- Kleine Karten in Listen --- */
.minikarte {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.minikarte:first-child { border-top: 0; }
.minikarte img, .minikarte .bild {
  width: 52px; height: 52px; flex: none; border-radius: 10px;
  object-fit: cover; aspect-ratio: auto;
}
.minikarte .bild.platzhalter span { font-size: 17px; }
.mk-text { min-width: 0; flex: 1; }
.mk-titel { font-size: 14.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.platz { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--line);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* --- Fortschritt --- */
.fortschritt {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.fortschritt .balken { flex: 1; margin-top: 0; }
.pips { display: flex; gap: 5px; flex: 1; }
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.pip.voll { background: var(--brand); }
.mitte { text-align: center; display: block; margin-left: auto; margin-right: auto; }

/* --- Swipen --- */
.stapel { position: relative; height: 62vh; min-height: 380px; max-height: 520px; }
.swipekarte {
  position: absolute; inset: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--schatten);
  transform: translateY(calc(var(--tiefe) * 8px)) scale(calc(1 - var(--tiefe) * 0.035));
  transition: transform .2s; touch-action: pan-y; user-select: none; cursor: grab;
  display: flex; flex-direction: column;
}
.swipekarte .bild { flex: 1; aspect-ratio: auto; min-height: 0; }
.swipekarte[data-tiefe="0"] { z-index: 3; }
.swipekarte[data-tiefe="1"] { z-index: 2; opacity: .7; }
.swipekarte[data-tiefe="2"] { z-index: 1; opacity: .4; }
.stempel {
  position: absolute; top: 26px; padding: 6px 14px; border-radius: 9px;
  font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  opacity: 0; transition: opacity .12s; border: 3px solid;
}
.stempel.ja { left: 22px; color: var(--ja); border-color: var(--ja); transform: rotate(-12deg); }
.stempel.nein { right: 22px; color: var(--nein); border-color: var(--nein); transform: rotate(12deg); }
.zeig-ja .stempel.ja, .zeig-nein .stempel.nein { opacity: 1; }

.knoepfe { display: flex; justify-content: center; gap: 18px; margin: 20px 0 14px; }
.rund {
  width: 62px; height: 62px; border-radius: 50%; padding: 0;
  font-size: 24px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--schatten); display: grid; place-items: center;
}
.rund.ja { color: var(--ja); }
.rund.nein { color: var(--nein); }
.rund.fav { color: var(--fav); width: 52px; height: 52px; font-size: 20px; align-self: center; }

/* --- Endrunde --- */
.duell { display: flex; flex-direction: column; gap: 10px; }
.duellkarte {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--schatten); color: inherit; text-align: left;
  font-weight: 400; display: block; width: 100%;
}
.duellkarte:hover { border-color: var(--brand); opacity: 1; }
.duellkarte .bild { aspect-ratio: 16 / 9; }
.oder { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }

/* --- Ergebnis --- */
.sieger { border-color: var(--brand); box-shadow: 0 18px 50px rgba(79, 70, 229, .16); }
.pokal {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.warum { font-size: 15px; line-height: 1.45; margin: 16px 0 6px; }
.knopflink {
  display: block; text-align: center; margin-top: 16px; padding: 13px 16px;
  border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 700; text-decoration: none;
}
.zitat {
  margin: 0 0 10px; padding: 10px 13px; background: #fbfbfd;
  border-left: 3px solid var(--brand); border-radius: 0 9px 9px 0;
  font-size: 14px; line-height: 1.45;
}
.duelltabelle { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14.5px; }
.duelltabelle td { padding: 9px 4px; border-top: 1px solid var(--line); }
.duelltabelle td:first-child { font-weight: 600; }
.duelltabelle td:last-child { color: var(--muted); text-align: right; }
.duelltabelle .tore {
  text-align: center; font-variant-numeric: tabular-nums; font-weight: 700;
  white-space: nowrap; padding: 9px 10px;
}

details.karte summary { cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; }
details.karte summary::-webkit-details-marker { display: none; }
details.karte summary::after { content: '⌄'; color: var(--muted); font-size: 18px; }
details.karte[open] summary::after { content: '⌃'; }
details.karte summary h2 { margin: 0; }

/* Getippte Ideen: Text statt Bildfläche. */
.nurtext {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 26px 18px; gap: 12px;
  background: #fbfbfd; border-radius: 14px;
}
.nurtext p { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.4px; }
.nurtext span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.duellkarte .nurtext, .minikarte .nurtext { padding: 18px 14px; }
.duellkarte .nurtext p { font-size: 19px; }

/* Unentschiedene Duelle sollen nicht wie Siege aussehen. */
.duelltabelle tr.remis td, .duelltabelle tr.remis td:first-child { color: var(--muted); font-weight: 400; }
.duelltabelle tr.remis .tore { font-weight: 600; }

/* Das Angebot zur Handeingabe, wenn eine Seite uns nichts gibt. Bewusst leise: es ist
   der Normalfall bei Amazon und Instagram, keine Fehlermeldung. */
.mk-angebot {
  background: none; border: 0; padding: 3px 0; margin-top: 3px;
  color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 600;
  text-align: left; width: auto; cursor: pointer; line-height: 1.35;
}
.mk-angebot:hover { text-decoration: underline; opacity: 1; }
.benennen { display: flex; gap: 6px; margin-top: 7px; }
.benennen input { flex: 1; padding: 7px 9px; font-size: 14px; }
.benennen button { padding: 7px 13px; font-size: 13px; border-radius: 9px; width: auto; }
