@font-face {
  font-family: "Roboto Condensed";
  src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --accent: #f0cb47;
  --text: #f4f4f4;
  --muted: #c9c9c9;
  --panel: rgba(62, 62, 62, .74);
  --panel-solid: #3b3b3b;
  --line: rgba(255, 255, 255, .16);
  --condensed: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --panel-w: 47vw;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #2b2b2b;
  color: var(--text);
  font: 400 clamp(16px, 1.2vw, 17px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #111; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* Hintergrundfoto über die ganze Fläche */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.bg-left { background-position: left center; }
.bg-right { background-position: right center; }

/* Navigation oben rechts */
.main-nav { position: absolute; top: 40px; right: 5vw; z-index: 5; }
.main-nav ul { list-style: none; display: flex; gap: 2.4vw; margin: 0; padding: 0; }
.main-nav a {
  font: 500 clamp(24px, 1.3vw, 32px)/1 var(--sans);
  color: #fff; text-decoration: none; letter-spacing: .01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 22px rgba(0, 0, 0, .45);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }

/* Linke Inhaltsspalte */
.panel {
  width: var(--panel-w); min-width: 560px; min-height: 100vh;
  background: var(--panel);
  padding: 26px 68px 100px;
}
.brand a { text-decoration: none; display: inline-block; }
.brand-name {
  display: block; font: 700 clamp(36px, 3vw, 54px)/1.05 var(--condensed);
  text-transform: uppercase; color: #e8e8e8; letter-spacing: .005em;
}
.brand-tagline { display: block; font: 400 clamp(22px, 1.9vw, 34px)/1.2 var(--condensed); color: var(--accent); margin-top: 4px; }
main { margin-top: 32px; }

/* Inhaltsblöcke */
.block { margin: 0 0 48px; }
.block-text + .block-player { margin-top: -20px; }
.block-player { margin-bottom: 26px; }
.block-text p { margin: 0 0 15px; }
.block-text strong { font-weight: 700; color: #fff; }
.block-text h2 {
  font: 700 clamp(24px, 1.9vw, 32px)/1.1 var(--condensed);
  text-transform: uppercase; text-align: center; color: var(--accent); margin: 2.4em 0 .4em;
}
.block-text h3 { font: 700 17px/1.4 var(--sans); text-transform: uppercase; color: var(--accent); margin: 2.8em 0 .4em; }
/* Leere Zeilen aus dem Editor nicht als riesige Lücke anzeigen */
.block-text h2:empty, .block-text h3:empty, .block-text h2:has(> br:only-child), .block-text h3:has(> br:only-child) { display: none; }
.block-text p:has(> br:only-child) { margin: 0; line-height: 1; }
.block-text ul, .block-text ol { padding-left: 1.2em; }
.block-text blockquote { margin: 0 0 1.4em; padding-left: 1em; border-left: 3px solid var(--accent); color: var(--muted); }
.block-text a { text-underline-offset: 3px; }
.block-text > :first-child { margin-top: 0; }

/* Audioplayer */
.player-title {
  font: 700 18px/1.2 var(--condensed); text-transform: uppercase; letter-spacing: .05em;
  text-align: center; margin: 0 0 8px; color: #fff;
}
.player { background: rgba(0, 0, 0, .28); border: 1px solid var(--line); padding: 12px 16px 4px; }
.p-now { display: flex; align-items: center; gap: 12px; }
.p-play {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); display: grid; place-items: center;
}
.p-play:hover { filter: brightness(1.08); }
.i-play { width: 0; height: 0; border-left: 13px solid #1d1d1d; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.is-playing .i-play { width: 12px; height: 15px; border: 0; margin: 0; border-left: 4px solid #1d1d1d; border-right: 4px solid #1d1d1d; }
.p-title { font: 700 17px/1.25 var(--condensed); color: #fff; }
.p-sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.p-sub:empty { display: none; }
.p-progress { margin: 8px 0 2px; display: flex; align-items: center; gap: 12px; }
.p-seek { flex: 1; min-width: 0; accent-color: var(--accent); height: 16px; margin: 0; cursor: pointer; }
.p-time { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-list { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.p-list li + li { border-top: 1px solid var(--line); }
.p-track {
  width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  background: none; border: 0; color: var(--text); cursor: pointer; text-align: left;
  font: 400 15px/1.35 var(--sans); padding: 6px 2px;
}
.p-track:hover { color: var(--accent); }
.p-track.is-current { color: var(--accent); font-weight: 700; }
.p-d { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-track.is-current .p-d { color: var(--accent); }

/* Bildergalerie */
.block-gallery { position: relative; padding: 0 34px; }
.g-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.g-track::-webkit-scrollbar { display: none; }
.g-item { scroll-snap-align: start; aspect-ratio: 1; overflow: hidden; background: #222; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff;
  font: 400 48px/1 var(--sans); cursor: pointer; padding: 0 4px; opacity: .85;
}
.g-nav:hover { color: var(--accent); }
.g-prev { left: -6px; } .g-next { right: -6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: fixed; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer;
}

/* Einzelbild */
.block-image figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Video (lädt erst nach Klick) */
.block-video { aspect-ratio: 16 / 9; background: #111; }
.block-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.v-load {
  width: 100%; height: 100%; border: 1px solid var(--line); background: rgba(0, 0, 0, .5); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font: 700 20px/1.3 var(--condensed);
}
.v-load small { font: 400 13px/1.4 var(--sans); color: var(--muted); }
.v-icon { width: 0; height: 0; border-left: 30px solid var(--accent); border-top: 19px solid transparent; border-bottom: 19px solid transparent; }

/* Fußzeile */
.site-footer {
  background: #000; color: #fff; display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center;
  gap: 12px 40px; padding: 34px 5vw; font: 700 17px/1.4 var(--sans);
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; text-transform: uppercase; }
.to-top {
  position: fixed; right: 30px; bottom: 30px; width: 46px; height: 46px; background: var(--accent);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 10;
}
.to-top::before { content: ""; width: 13px; height: 13px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: translateY(3px) rotate(45deg); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* Hinweise nur für angemeldete Verwaltung */
.admin-note {
  margin: 12px 0 0; padding: 12px 16px; border: 2px dashed var(--accent); background: rgba(0, 0, 0, .45);
  font-size: 15px; line-height: 1.5; color: #fff;
}
.admin-note a { color: var(--accent); font-weight: 700; }
.admin-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 30; background: var(--accent); color: #1d1d1d;
  font: 700 14px/1 var(--sans); padding: 10px 14px; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.admin-badge:hover { color: #1d1d1d; filter: brightness(1.08); }

/* Tablet & Handy */
@media (max-width: 1000px) {
  body { font-size: 17px; background: var(--panel-solid); }
  .bg { position: absolute; height: 72vh; bottom: auto; }
  .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 30%, transparent 60%, var(--panel-solid)); }
  .main-nav { top: 20px; right: 16px; left: 16px; }
  .main-nav ul { justify-content: flex-end; gap: 22px; }
  .main-nav a { font-size: 16px; }
  .main-nav ul { gap: 16px; }
  .panel { width: auto; min-width: 0; background: transparent; padding: 0; }
  .brand { padding: 64px 16px 0; height: 66vh; display: flex; align-items: flex-end; }
  .brand-name { text-shadow: 0 2px 16px rgba(0,0,0,.6); }
  .brand-tagline { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
  main { margin-top: 0; background: var(--panel-solid); padding: 40px 16px 60px; }
  .block { margin-bottom: 40px; }
  .block-player { margin-bottom: 24px; }
  .player { padding: 10px 12px 4px; }
  .block-gallery { padding: 0; }
  .g-track { grid-auto-columns: 72%; gap: 14px; }
  .g-nav { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-item img { transition: none; }
}
