/* Design nach Vorlage Chrüsimüsi Charity: Rot → Schwarz, Bergsilhouette, Anton-Schrift, weisses Spendenband */
@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --red: #c4000a;
  --red-bright: #e30613;
  --red-dark: #5c0004;
  --black: #0b0505;
  --surface: #1a0c0c;
  --surface-2: #241010;
  --text: #ffffff;
  --muted: #d9c4c4;
  --border: #3d1a1a;
  --twitch: #9146ff;
  --radius: 14px;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--black);
  color: var(--text);
}
a { color: #ff6b73; }
h1, h2, h3 { line-height: 1.15; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 16px 64px;
  background: linear-gradient(180deg, var(--red) 0%, #8a0007 40%, #3a0204 72%, var(--black) 100%);
  border-bottom: 6px solid var(--red-bright);
}
.hero .logo {
  width: min(340px, 70vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.45));
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 1;
  margin: 24px 0 12px;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.tagline { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto; }
.date {
  display: block;
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  margin: 18px 0 28px;
}

/* Hochgeladene Header-Grafik */
.hero-graphic { background: var(--black); line-height: 0; }
.hero-graphic img { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: contain; margin: 0 auto; }
.hero-info {
  text-align: center; padding: 24px 16px 32px;
  background: var(--black);
  border-bottom: 6px solid var(--red-bright);
}
.hero-info .tagline { margin-top: 0; }
.hero-info .date { margin: 8px 0 20px; }
.hero-info:not(:has(*)) { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Weisses Spendenband ---------- */
.band {
  background: #fff;
  color: #111;
  text-align: center;
  padding: 28px 16px 32px;
  margin: 0;
}
.band h2 {
  font-family: inherit;
  font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 20px;
}
.charities {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 24px 56px;
}
.charity { display: block; color: #111; text-decoration: none; font-weight: 700; }
.charity img { display: block; height: 96px; max-width: 280px; object-fit: contain; }
.charity:hover img { transform: scale(1.04); transition: transform .15s; }

/* ---------- Inhalt ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 16px; }
main.narrow { max-width: 720px; }
section { margin: 56px 0; }
main section h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: .01em;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 6px solid var(--red-bright);
}
.text { max-width: 760px; color: var(--muted); }
.text p:first-child { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.card h3 { margin: 12px 0 4px; font-size: 1.15rem; }
.card p { margin: 4px 0 8px; color: var(--muted); font-size: .95rem; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover;
  display: grid; place-items: center;
  background: var(--red);
  border: 3px solid var(--red-bright);
  color: #fff;
  font-family: var(--display); font-size: 1.9rem;
}
.artist .card { border: 2px solid var(--red-bright); box-shadow: 0 0 0 4px rgba(227,6,19,.15); }

.links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: auto; padding-top: 10px; }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--red-bright); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none;
}
.btn-twitch { background: var(--twitch); }
.btn-big {
  padding: 14px 34px; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .06em;
  background: #fff; color: var(--red);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.btn:hover { filter: brightness(1.1); }

footer {
  text-align: center; color: var(--muted);
  padding: 32px 16px 48px;
  border-top: 1px solid var(--border);
}

/* ---------- Admin (hell, schlicht) ---------- */
body.admin {
  --text: #2a1a1a; --muted: #6d5c5c; --border: #e6d6d6; --surface: #fff;
  background: #faf6f6; color: var(--text);
}
body.admin a { color: var(--red); }
body.admin main section h2, body.admin h1, body.admin h2 { font-family: inherit; text-transform: none; border: 0; padding: 0; }
.adminnav {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  padding: 12px 16px; background: var(--red); color: #fff;
}
body.admin .adminnav a, .adminnav button.link { color: #fff; }
.adminnav form { margin-left: auto; }
.form { display: grid; gap: 14px; margin-bottom: 24px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form small, .list small { color: var(--muted); font-weight: 400; }
input, textarea, select {
  font: inherit; padding: 10px 12px; width: 100%;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: #2a1a1a;
}
input[type=checkbox] { width: auto; }
.form .btn { justify-self: start; }
details summary { cursor: pointer; }
details summary h2 { display: inline; }
.list { list-style: none; padding: 0; margin: 0 0 16px; }
.list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.actions { display: flex; gap: 12px; align-items: center; }
.actions form { margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger { color: #b71c1c; }
.flash { padding: 10px 14px; border-radius: 8px; }
.flash.ok { background: #e3f6e8; color: #1b5e20; }
.flash.error { background: #fde7e9; color: #b71c1c; }

/* Bildauswahl & Mediathek */
.picker { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 0; display: grid; gap: 12px; }
.picker legend { font-weight: 600; padding: 0 4px; }
.picker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px;
  max-height: 280px; overflow-y: auto; padding: 2px;
}
.pick { display: grid !important; gap: 4px; font-weight: 400 !important; font-size: .8rem; text-align: center; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick img, .pick .noimg {
  width: 100%; aspect-ratio: 1; object-fit: contain; background: #f1e9e9;
  border: 3px solid transparent; border-radius: 8px;
}
.pick .noimg { display: grid; place-items: center; color: var(--muted); }
.pick > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick input:checked + img, .pick input:checked + .noimg { border-color: var(--red); }
.pick input:focus-visible + img, .pick input:focus-visible + .noimg { outline: 2px solid var(--red); outline-offset: 2px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.media-item { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.media-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #f1e9e9; }
.media-item figcaption { display: grid; gap: 6px; padding: 10px; font-size: .9rem; }
.media-item form { margin: 0; }
.media-item form.inline { display: flex; gap: 6px; align-items: center; }
.media-item form.inline input { padding: 4px 8px; font-size: .9rem; flex: 1; min-width: 0; }
