/* =====================================================================
   LOVYLLAC – Love is in the Car · gemeinsame Styles (mobile-first)
   ===================================================================== */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Yellowtail";
  src: url("fonts/Yellowtail.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --kirsch: #8E0E1C;
  --rot: #C8102E;
  --chrom-1: #F4F4F4;
  --chrom-2: #A9A9A9;
  --chrom-3: #E6E6E6;
  --anthrazit: #1C1C1E;
  --weiss: #FFFFFF;
  --bg: #FBF8F6;
  --text: #1C1C1E;
  --muted: #5A5A60;
  --ok: #1F7A3A;
  --chrom: linear-gradient(180deg, #FFFFFF 0%, #F4F4F4 18%, #A9A9A9 48%, #7E7E80 52%, #C9C9CB 62%, #E6E6E6 100%);
  --chrom-h: linear-gradient(90deg, #A9A9A9, #F4F4F4 30%, #C4C4C6 55%, #F4F4F4 80%, #A9A9A9);
  --lack: linear-gradient(180deg, #E8344A 0%, #C8102E 50%, #A80D24 51%, #8E0E1C 100%);
  --radius: 18px;
  --tap: 58px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--kirsch); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1280px; }
main { flex: 1; padding-bottom: 32px; }

/* ---------- Kopf: Chromleiste ---------- */
.topbar {
  height: 8px;
  background: var(--chrom-h);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.hero { text-align: center; padding: 18px 0 6px; }
.hero .logo { width: min(86vw, 420px); margin: 0 auto; }
.hero-small .logo { width: min(60vw, 240px); }
.claim {
  font-family: var(--script);
  color: var(--kirsch);
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.1;
  margin: 4px 0 8px;
  font-weight: 400;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.35rem; font-weight: 800; }

/* ---------- Schritte ---------- */
.steps { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.steps li {
  display: flex; align-items: center; gap: 14px;
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 600;
  box-shadow: 0 1px 0 #fff inset, 0 2px 10px rgba(0,0,0,.06);
}
.steps .num {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  background: var(--lack);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px #C9C9CB, inset 0 2px 0 rgba(255,255,255,.35);
}

/* ---------- Buttons: Lack mit Chromrand ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 22px;
  border-radius: 999px;
  border: 3px solid transparent;
  font: 800 1.08rem/1.2 var(--font);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, filter .15s ease, opacity .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #fff;
  background: var(--lack) padding-box, var(--chrom) border-box;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 6px 16px rgba(142,14,28,.35);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.btn-chrome {
  color: var(--anthrazit);
  background: var(--chrom) padding-box, linear-gradient(#7E7E80, #3A3A3E) border-box;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 4px 12px rgba(0,0,0,.12);
}
.btn-ghost {
  color: var(--kirsch);
  background: transparent;
  border-color: rgba(142,14,28,.35);
}
.btn[disabled], .btn[aria-disabled="true"] {
  filter: grayscale(.85);
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-row { display: grid; gap: 12px; margin: 14px 0; }
.btn-sm { min-height: 44px; font-size: .95rem; padding: 8px 14px; width: auto; }

/* ---------- Karten / Formular ---------- */
.card {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  margin: 14px 0;
}
.preview {
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 0 0 3px #E6E6E6, 0 0 0 5px #A9A9A9, 0 8px 22px rgba(0,0,0,.18);
  margin: 10px 0 16px;
}
.consent h2 { font-size: 1.2rem; }
.check {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  padding: 12px 4px;
  border-top: 1px solid #eee;
  cursor: pointer;
  font-size: .97rem;
}
.check input {
  width: 30px; height: 30px; margin: 0;
  accent-color: var(--rot);
  cursor: pointer;
}
.tag { font-weight: 800; color: var(--kirsch); }
.tag-opt { color: var(--muted); }
.small { font-size: .88rem; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 12px; background: #FFF1F3; color: var(--kirsch); font-weight: 600; }
.notice-ok { background: #EAF6EE; color: var(--ok); }

/* ---------- Fortschritt ---------- */
.progress { height: 14px; border-radius: 99px; background: #eee; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.progress > span { display: block; height: 100%; width: 0; background: var(--lack); transition: width .2s ease; }
.status { text-align: center; font-weight: 600; margin: 10px 0; min-height: 1.5em; }

/* ---------- Erfolg ---------- */
.done-title { font-family: var(--script); color: var(--rot); font-size: clamp(38px, 11vw, 56px); text-align: center; margin: 6px 0; font-weight: 400; }
.copy-row { display: flex; gap: 8px; }
.copy-row input {
  flex: 1; min-width: 0; min-height: 48px; border-radius: 12px; border: 2px solid #ddd;
  padding: 0 12px; font: 500 .85rem var(--font); background: #fafafa;
}
.mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mine li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .9rem; }

/* ---------- Galerie ---------- */
.counter { text-align: center; font-weight: 800; font-size: 1.15rem; margin: 6px 0 16px; }
.counter b { color: var(--rot); font-size: 1.5em; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #eee, #ddd);
  box-shadow: 0 0 0 2px #E6E6E6, 0 3px 10px rgba(0,0,0,.1);
  border: 0; padding: 0; cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.is-new { animation: pop 1.2s ease; box-shadow: 0 0 0 3px var(--rot), 0 6px 18px rgba(200,16,46,.35); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: none; } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20,20,22,.94);
  display: grid; place-items: center; padding: 16px;
}
.lightbox img { max-height: 88dvh; max-width: 100%; border-radius: 10px; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: auto; }
.sentinel { height: 40px; }

/* ---------- Footer ---------- */
footer {
  text-align: center; font-size: .88rem; color: var(--muted);
  padding: 18px 12px 26px;
  border-top: 1px solid #eee;
}
footer a { color: var(--muted); margin: 0 6px; display: inline-block; padding: 6px 2px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--anthrazit); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 600; z-index: 60; width: max-content; max-width: 92vw; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* ---------- Konfetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* ---------- Rechtstexte ---------- */
.legal h1 { font-size: 1.6rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.4em; }
.placeholder { background: #FFF6D6; padding: 2px 4px; border-radius: 4px; }

/* =====================================================================
   Admin
   ===================================================================== */
.admin-bar { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.admin-bar .btn { width: auto; white-space: nowrap; min-height: 48px; }
.admin-bar .btn.active { outline: 3px solid var(--rot); }
.badge {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 99px; background: var(--rot); color: #fff; font-size: .85rem; font-weight: 800;
}
.badge.zero { background: #bbb; }
.mod-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mod { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.mod img { width: 100%; max-height: 60vh; object-fit: contain; background: #111; }
.mod .meta { padding: 10px 14px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.mod .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 14px; }
.mod .actions .wide { grid-column: 1 / -1; }
.pill { padding: 2px 10px; border-radius: 99px; background: #eee; font-weight: 700; font-size: .8rem; }
.pill.yes { background: #EAF6EE; color: var(--ok); }
.pill.no { background: #f3f3f3; color: #888; }
.pill.ig { background: #FFF1F3; color: var(--kirsch); }
.btn-ok { color: #fff; background: linear-gradient(#2E9A50, #1F7A3A) padding-box, var(--chrom) border-box; }
.btn-danger { color: #fff; background: linear-gradient(#3A3A3E, #1C1C1E) padding-box, var(--chrom) border-box; }

/* =====================================================================
   TV-Screen (dunkel)
   ===================================================================== */
body.screen {
  background: var(--anthrazit);
  color: #fff;
  overflow: hidden;
  cursor: none;
}
.stage { position: fixed; inset: 0; }
.stage .bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(36px) brightness(.45) saturate(1.2);
  transition: background-image .8s;
}
.slide {
  position: absolute;
  left: 3vw; top: 13vh; bottom: 13vh; right: 30vw;
  display: grid; place-items: center;
}
.slide img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%;
  border-radius: 1vh;
  box-shadow: 0 0 0 .5vh #E6E6E6, 0 0 0 .9vh #7E7E80, 0 2vh 6vh rgba(0,0,0,.6);
  opacity: 0; transform: scale(.97);
  transition: opacity .9s ease, transform .9s ease;
}
.slide img.show { opacity: 1; transform: none; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.panel {
  position: absolute; right: 3vw; top: 50%; transform: translateY(-50%);
  width: 24vw;
  background: rgba(28,28,30,.82);
  border-radius: 2.2vh;
  padding: 2.4vh 1.6vw 2.6vh;
  text-align: center;
  box-shadow: 0 0 0 .4vh #A9A9A9, 0 2vh 6vh rgba(0,0,0,.5);
}
.panel .qr { background: #fff; border-radius: 1.4vh; padding: 1.2vh; width: 100%; aspect-ratio: 1; }
.panel .qr img { width: 100%; height: 100%; }
.panel .scan { font-family: var(--script); font-size: 5.2vh; color: #fff; margin: 1vh 0 0; line-height: 1.1; }
.panel .sub { font-size: 1.9vh; color: #E6E6E6; margin: .6vh 0 1.6vh; font-weight: 600; }
.panel .count { font-size: 2.3vh; font-weight: 700; color: #E6E6E6; }
.panel .count b { display: block; font-size: 8vh; line-height: 1; color: #fff; text-shadow: 0 0 2vh rgba(200,16,46,.8); }
.new-badge {
  position: absolute; top: 15vh; left: 4vw;
  font: 800 3.4vh var(--font); letter-spacing: .1em;
  color: #fff; background: var(--lack);
  padding: 1vh 2.4vh; border-radius: 99px;
  box-shadow: 0 0 0 .4vh #E6E6E6, 0 1vh 3vh rgba(200,16,46,.6);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); } }
.screen-empty { position: absolute; inset: 0; display: grid; place-items: center; right: 30vw; font: 600 3vh var(--font); color: #E6E6E6; text-align: center; padding: 0 6vw; }
.screen-start {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: rgba(28,28,30,.92); cursor: pointer;
}
.screen-start .btn { width: auto; font-size: 1.6rem; padding: 18px 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
}
