/* ═══════════════════════════════════════════════════════════════
   K-IT × EN-IS — Theme CSS
   IT-Event · Clean IT-Designsprache
   NERO/THE UNIT · 2026-06
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* Farben — IT-Clean Dark */
  --bg:          #0d1117;
  --bg-panel:    #161b22;
  --bg-card:     #1c2431;
  --bg-input:    #0d1117;
  --border:      #30363d;
  --border-acc:  rgba(20, 120, 212, 0.35);

  /* Primärfarbe: EWE-Blau */
  --blue:        #1478d4;
  --blue-dark:   #0d5fa0;
  --blue-dim:    rgba(20, 120, 212, 0.12);

  /* Typografie */
  --text:        #c9d1d9;
  --text-muted:  #8b949e;
  --head:        #e6edf3;
  --ff:          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ff-mono:     "SF Mono", "Fira Code", "Cascadia Code", Menlo, Consolas, monospace;
  --radius:      6px;

  /* Kompatibilität mit bestehenden Klassen */
  --fire-1:      var(--blue);
  --fire-2:      var(--blue-dark);
  --fire-dim:    var(--blue-dim);
  --gold:        #3d8bcd;
  --status-ok:   #2ea043;
  --status-err:  #da3633;
  --bg-overlay:  rgba(13, 17, 23, 0.92);
  --bg-code:     var(--bg-input);
  --border-glow: var(--border-acc);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Dekorative Akzentlinie (ersetzt flame-bar) ── */
.flame-bar,
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-dark) 20%, var(--blue) 50%, var(--blue-dark) 80%, transparent 100%);
  opacity: .8;
}

/* ── Login / Gate ── */
.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 40%, rgba(20,120,212,.08) 0%, transparent 60%), var(--bg);
}
.gate-box {
  text-align: center;
  padding: 2.5rem 2.2rem;
  width: min(360px, 92vw);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: var(--radius);
}
.gate-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: .4rem;
}
.gate-sub {
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  font-family: var(--ff-mono);
}
.gate-error { color: var(--status-err); font-size: .82rem; margin-top: .8rem; }

/* Login-Input & Button */
input[type="password"], input[type="text"] {
  width: 100%;
  padding: .65rem .9rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--head);
  font-family: var(--ff);
  font-size: .9rem;
  outline: none;
  margin-bottom: .9rem;
  transition: border-color .15s, box-shadow .15s;
}
input[type="password"]:focus, input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
button[type="submit"], .submit-btn {
  width: 100%;
  padding: .65rem;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--ff);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
button[type="submit"]:hover, .submit-btn:hover {
  background: #1a8ff0;
  box-shadow: 0 0 16px rgba(20,120,212,.3);
}

/* ── Hero ── */
.hero {
  padding: 2.2rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-logo {
  font-size: clamp(.72rem, 1.8vw, .85rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--border-acc);
  padding: .3rem 1rem;
  border-radius: 3px;
  background: var(--blue-dim);
  font-family: var(--ff-mono);
}
.event-info { text-align: center; }
.event-facts {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
  font-family: var(--ff-mono);
}
.event-title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--head);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.event-subtitle {
  font-size: .95rem;
  color: var(--text);
  max-width: 500px;
  margin: 0 auto;
}
.event-deadline {
  display: inline-block;
  margin-top: .7rem;
  font-size: .72rem;
  font-family: var(--ff-mono);
  letter-spacing: .1em;
  color: var(--blue);
  border: 1px solid var(--border-acc);
  padding: .2rem .65rem;
  border-radius: 3px;
}

/* ── Sektionen ── */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.section-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  font-family: var(--ff-mono);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Report-Karte (Landing-Seite) ── */
.report-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.report-card-text {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
}
.cta-link {
  align-self: flex-start;
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .15s;
}
.cta-link:hover { color: #4aaeff; text-decoration: underline; }

/* ── Report-Vollbild (/report) ── */
.report-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}
.report-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.report-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--head);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.report-header .byline {
  font-size: .8rem;
  color: var(--text-muted);
  font-family: var(--ff-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.report-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem;
}
.report-item h3 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--ff-mono);
  margin-bottom: .6rem;
}
.report-item p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.65;
}
.report-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text-muted);
  font-size: .82rem;
  font-style: italic;
  text-align: center;
  margin: 1rem 0;
}
.report-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: .82rem;
  text-decoration: none;
  transition: color .15s;
}
.report-back:hover { color: var(--blue); }

/* ── Tap-to-Start Overlay ── */
#music-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .4s;
}
.overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--head);
  text-align: center;
  padding: 2rem;
}
.overlay-icon { font-size: 3rem; }
.overlay-text {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .04em;
}
.overlay-hint { font-size: .85rem; opacity: .55; }

/* ── Musikplayer ── */
#music-player {
  background: var(--bg-panel);
  border-bottom: 2px solid var(--blue);
  padding: .65rem 1rem .55rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
#player-album-info {
  font-size: .65rem;
  font-family: var(--ff-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
#player-title {
  font-size: .85rem;
  color: var(--head);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.player-controls {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}
.player-controls button {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 1.2rem;
  cursor: pointer;
  padding: .2rem .5rem;
  border-radius: 4px;
  transition: background .15s;
}
.player-controls button:hover { background: var(--blue-dim); }
#player-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}
#player-filled {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  width: 0%;
  transition: width .5s linear;
  pointer-events: none;
}

/* Track-Liste */
#player-tracklist {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  overflow-y: auto;
  max-height: min(42vh, 310px);
  -webkit-overflow-scrolling: touch;
}
.track-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .9rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.03);
  min-height: 44px;
  box-sizing: border-box;
  transition: background .12s;
}
.track-item:hover { background: var(--blue-dim); }
.track-item.playing { background: rgba(20,120,212,.18); }
.track-num {
  min-width: 1.8rem;
  text-align: right;
  font-size: .68rem;
  color: var(--text-muted);
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.track-item.playing .track-num { color: var(--blue); }
.track-name {
  font-size: .82rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.track-item.playing .track-name { color: var(--blue); font-weight: 600; }
.track-now {
  font-size: .62rem;
  margin-left: .2rem;
  flex-shrink: 0;
  color: var(--blue);
  visibility: hidden;
}
.track-item.playing .track-now { visibility: visible; }

/* ── Foto-Upload ── */
.upload-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--blue);
  font-size: .92rem;
  padding: 1.2rem;
  transition: background .2s, border-color .2s;
  margin-bottom: .75rem;
  background: var(--blue-dim);
}
.upload-drop:hover, .upload-drop.drag-active {
  background: rgba(20,120,212,.16);
  border-color: var(--blue);
}
.upload-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: .5rem;
}
.upload-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  width: 0%;
  transition: width .15s;
}
.upload-error { color: var(--status-err); font-size: .85rem; margin: .25rem 0; }

/* ── Galerie ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .4rem;
}
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
  border: 1px solid var(--border);
}
.gallery-thumb:hover {
  opacity: .88;
  box-shadow: 0 0 12px rgba(20,120,212,.2);
  border-color: var(--blue);
}

/* ── Lightbox ── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lb-overlay.lb-visible { display: flex; }
#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .3s;
}
#lb-close, #lb-prev, #lb-next {
  position: absolute;
  background: rgba(22,27,34,.8);
  border: 1px solid var(--border);
  color: var(--head);
  font-size: 1.3rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
#lb-close:hover, #lb-prev:hover, #lb-next:hover { background: rgba(20,120,212,.25); }
#lb-close { top: 1rem; right: 1rem; }
#lb-prev  { left: 1rem; }
#lb-next  { right: 1rem; }

/* ── Karten (generisch) ── */
.card-list { display: flex; flex-direction: column; gap: .6rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .3rem .4rem;
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-acc); }
.card-name { font-weight: 600; font-size: .88rem; color: var(--head); }
.card-detail { font-size: .75rem; color: var(--text-muted); grid-column: 1; }
.card-badge { font-size: .7rem; color: var(--blue); text-align: right; grid-row: 1/3; font-family: var(--ff-mono); }

/* ── Buttons ── */
.add-btn {
  width: 100%;
  margin-top: 1rem;
  min-height: 44px;
  padding: .6rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--ff);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color .15s, color .15s;
}
.add-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── Timeline ── */
.tl { border-left: 2px solid var(--blue); margin-left: .5rem; padding-left: 1.2rem; }
.tl-i { position: relative; margin-bottom: 1rem; }
.tl-i::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: .35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
}
.tl-t { font-family: var(--ff-mono); font-size: .82rem; color: var(--blue); font-weight: 700; }
.tl-d { font-size: .82rem; color: var(--text); line-height: 1.5; margin-top: .15rem; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  font-family: var(--ff-mono);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* ── TV-Modus ── */
.tv-body {
  background: #000;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tv-slide {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  transition: opacity .3s;
}
#tv-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: #1e2d3d;
  text-align: center;
}
.tv-empty-label {
  font-family: var(--ff-mono);
  font-size: clamp(.8rem, 2vw, 1.1rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1e2d3d;
}
#tv-qr { width: min(200px, 40vw); opacity: .5; border-radius: 4px; }

/* ── Admin-Bereich ── */
.admin-header {
  padding: 1.2rem 0 .8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.admin-header h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--head);
}
.admin-header .sub { font-size: .78rem; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .section { padding: 1.2rem .75rem; }
  #player-tracklist { max-height: 35vh; }
  .report-grid { grid-template-columns: 1fr; }
}
