/* Hörnerfest „Pagan Flame & Stone“ — Design-Tokens & Komponenten.
   Quelle: DESIGN.md + code.html. KEINE Redakteur-Wahl von Schrift/Abstand:
   alles zentral hier. */

:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --surface: #121317;
  --surface-low: #14161d;
  --surface-mid: #1e212b;
  --surface-high: #343439;
  --text: #e2d9cc;
  --muted: #cfc5b6;
  --on-variant: #e6bdb8;
  --gold: #d4af37;
  --bronze: #c5a059;
  --red: #dc2626;
  --blood: #b91c1c;
  --ember: #f97316;
  --line: #5a4528;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(220,38,38,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

h1, h2, h3, h4 { font-family: "Syne", sans-serif; margin: 0; letter-spacing: .02em; }
p { color: var(--muted); line-height: 1.55; margin: 0; }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }

.hero-display { font-size: 56px; font-weight: 800; line-height: 64px; letter-spacing: .04em; }
.headline-lg { font-size: 36px; font-weight: 700; line-height: 44px; letter-spacing: .02em; }
.headline-md { font-size: 24px; font-weight: 700; line-height: 30px; letter-spacing: .01em; }
.headline-sm { font-size: 20px; font-weight: 600; line-height: 26px; }

.label-lg {
  font-family: "Space Grotesk", monospace;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.label-runic {
  font-family: "Space Grotesk", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.label-md {
  font-family: "Space Grotesk", monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,22,29,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90,69,40,.4);
}
.site-header .bar {
  height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand .name { font-family: "Syne"; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.brand .sub { color: var(--gold); }
.auth-area { display: flex; align-items: center; gap: .5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1rem; border-radius: .25rem; border: 1px solid transparent;
  font-family: "Space Grotesk", monospace; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--text); border-color: var(--blood); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(220,38,38,.5); }
.btn-gold { background: var(--gold); color: #0d0e12; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(226,217,204,.25); }

/* Edit-Overlay (nur im Bearbeiten-Modus) */
.hoerner-edit {
  position: relative;
  border: 1px dashed transparent;
  transition: border-color .15s;
}
body.is-editing .hoerner-edit:hover { border-color: var(--gold); }
.edit-pen {
  display: none;
  position: absolute; top: .4rem; right: .4rem; z-index: 10;
  width: 1.9rem; height: 1.9rem; border-radius: 9999px;
  background: var(--surface-mid); color: var(--gold);
  border: 1px solid var(--bronze); cursor: pointer;
  align-items: center; justify-content: center; font-size: 1rem;
}
body.is-editing .edit-pen { display: inline-flex; }

.edit-panel {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(13,14,18,.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.edit-panel.open { display: flex; }
.edit-panel .card {
  width: min(34rem, 100%);
  background: var(--surface-low); border: 1px solid var(--line); border-radius: .25rem;
  padding: 1.5rem; max-height: 86vh; overflow-y: auto;
}
.edit-panel .card h3 { color: var(--text); }
.edit-panel label {
  display: block; margin: 1rem 0 .35rem;
  font-family: "Space Grotesk", monospace; font-weight: 700; letter-spacing: .06em;
  font-size: .7rem; text-transform: uppercase; color: var(--bronze);
}
.edit-panel input, .edit-panel textarea {
  width: 100%; box-sizing: border-box; background: var(--bg);
  border: 1px solid #373b47; border-radius: .25rem; color: var(--text);
  padding: .6rem .75rem; font: inherit;
}
.edit-panel input:focus, .edit-panel textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold);
}
.edit-panel .actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; }

/* Sektion Raster */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--surface-low); }
.eyebrow { color: var(--gold); }
.grid-bands { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.band-card {
  background: var(--surface-low); border: 1px solid rgba(90,69,40,.5); border-radius: .25rem;
  overflow: hidden; display: flex; flex-direction: column;
}
.band-card .media { aspect-ratio: 16/9; background: var(--surface-mid); position: relative; }
.band-card .media img { width: 100%; height: 100%; object-fit: cover; }
.band-card .badge {
  position: absolute; top: .75rem; left: .75rem;
  padding: .25rem .5rem; border-radius: .25rem;
  background: var(--blood); color: var(--text);
}
.band-card .body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.band-card .body h3 { text-transform: uppercase; }
.band-card .genre { color: var(--gold); }

/* Alert / News */
.alert { border-left: 3px solid var(--red); background: var(--surface-mid); padding: .8rem 1rem; border-radius: .125rem; }
.news-item { display: flex; flex-direction: column; gap: .25rem; }

/* SEO-Zahnrad */
.seo-gear { display: inline-flex; align-items: center; justify-content: center; }
/* Live-Vorschau-Hinweis */
.preview-hint { color: var(--ember); font-size: .75rem; }

.notice { border-left: 3px solid var(--red); background: var(--surface-mid); padding: .8rem 1rem; border-radius: .125rem; }
footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); }

/* Tabellen (Betreiber-Bereich) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--bronze); font-family: "Space Grotesk", monospace; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 767px) {
  .hero-display { font-size: 36px; line-height: 42px; }
  .headline-lg { font-size: 26px; line-height: 32px; }
}