/* assets/css/basic.css – FreeWings Schwarz/Gelb Theme (bereinigt) */
/* --------------------------------------------------------------- */
/* VARIABLEN & BASE */
:root {
  --bg:#000000;
  --panel:#0f1115;
  --panel-2:#14161c;
  --text:#f5f7fa;
  --muted:#c7ced9;
  --accent:#ffd400;           /* Gelb */
  --accent-ink:#121212;
  --border:#23252b;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, Segoe UI, Roboto, Ubuntu, sans-serif;
  position: relative;
}

/* Hintergrundbild mit dunkler Verlaufsmaske */
body::before {
  content:"";
  position: fixed; inset:0; z-index:-1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.7)),
    url('../img/bg.jpg') center/cover no-repeat fixed;
  filter: saturate(.9);
}

/* --------------------------------------------------------------- */
/* LAYOUT & KARTEN */
.container { max-width: 1080px; margin: 28px auto; padding: 0 18px; }
.container-xl { max-width: 1280px; }
.container-fluid { max-width: none; width: 100%; }

.card {
  background: rgba(15,17,21,.82);      /* halbtransparent */
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: visible;
}

/* --------------------------------------------------------------- */
/* HEADER (zweizeilig mit großer Marke) */
.site-header--large { background: transparent; border-bottom: none; box-shadow: none; position: relative; z-index: 2000; }

.site-header-brand { display: grid; place-items: center; padding: 12px 0 0; }

.brand--big {
  display: flex; align-items: flex-end; gap: 14px;
  text-decoration: none; color: var(--text);
}
.site-header--large .brand--big .logo.logo--big {
  height: 220px !important; width: auto !important; display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
}
.brand--big span { font-weight: 900; letter-spacing: .8px; font-size: 1.25rem; opacity: .9; }

/* NAV-Leiste */
.site-header-nav {
  position: relative; z-index: 2500; overflow: visible;
  display: flex; align-items: center; gap: 10px;
  max-width: 1200px; margin: 6px auto 14px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(15,17,21,.86); backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

/* Basis-Stile für Hauptlinks & Dropdown-Button */
.nav-link, .dropbtn {
  position: relative; display: inline-flex; align-items: center;
  padding: 12px 14px; border-radius: 10px;
  color: var(--text); text-decoration: none;
  background: transparent; border: 0; cursor: pointer; font: inherit;
}

/* Hover: Gelb wie im Dropdown */
.nav-link:hover, .dropbtn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Aktiver Hauptlink: gelbe Linie unten */
.nav-link.is-active::after, .nav-item.is-active > .dropbtn::after {
  content:""; position: absolute; left:10px; right:10px; bottom:6px;
  height: 3px; background: var(--accent); border-radius: 2px;
}

.nav-spacer { flex: 1; }
.nav-user { color: var(--muted); margin-right: 6px; }

/* Dropdowns */
.dropdown { position: relative; z-index: 2600; }
.dropdown-panel, .dropdown-content { z-index: 3000; }
.dropdown-panel, .dropdown-content {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px; padding: 8px;
  background: rgba(15,17,21,.96);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
}
.dropdown:hover   > .dropdown-panel,
.dropdown:focus-within > .dropdown-panel,
.dropdown:hover   > .dropdown-content,
.dropdown:focus-within > .dropdown-content { display: block; }
.dropdown::after { content:""; position: absolute; left:0; right:0; top:100%; height:10px; }
.dropdown-panel a, .dropdown-content a {
  display:block; padding:10px 12px; border-radius:8px;
  color: var(--text); text-decoration: none;
}
.dropdown-panel a:hover, .dropdown-content a:hover,
.dropdown-panel a:focus, .dropdown-content a:focus {
  background: var(--accent); color: var(--accent-ink);
  outline: none; transition: background .12s ease, color .12s ease;
}

/* --------------------------------------------------------------- */
/* BUTTONS */
.btn,
button,
input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; cursor: pointer;
  transition: transform .06s ease, filter .15s ease;
  font: inherit;
}
.btn:hover, button:hover, input[type="submit"]:hover { filter: brightness(.96); }
.btn:active, button:active, input[type="submit"]:active { transform: translateY(1px); }

/* Sekundärer Button */
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--panel-2); }

/* --------------------------------------------------------------- */
/* FORMULARE */
.field { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px; border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10,12,16,.85); color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 2px;
  background: rgba(12,14,18,.95);
}
.actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- */
/* HINWEISE */
.alert {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin-bottom: 14px;
  background: rgba(15,17,21,.8);
}
.alert.success { border-color:#1e3d29; background:#0e1a14; color:#dbffe8; }
.alert.error   { border-color:#4d1212; background:#1a0e10; color:#ffd9df; }

/* --------------------------------------------------------------- */
/* FOOTER */
.site-footer {
  margin-top: 32px; padding: 20px 18px; text-align: center;
  color: var(--muted);
  background: rgba(15,17,21,.7);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------- */
/* TABELLEN & ADMIN-ERWEITERUNGEN */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table th, .table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.table thead th { background: var(--panel-2); text-align: left; }
.table tr:hover td { background: rgba(255,255,255,.02); }

.toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .75rem 0; }
.pagination { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .75rem; }
.notice { background: rgba(255,212,0,.08); border: 1px solid var(--border); color: var(--text); padding: 12px; border-radius: var(--radius); }
.notice.error { background: rgba(255,0,0,.10); }

/* Admin breiter */
.admin .container, .container-xl { max-width: 1280px; }

/* Responsive: bestimmte Spalten auf schmalen Screens ausblenden (8-11) */
@media (max-width: 1100px) {
  .table tr > *:nth-child(8),
  .table tr > *:nth-child(9),
  .table tr > *:nth-child(10),
  .table tr > *:nth-child(11) { display: none; }
}
/* ---- Media reset & responsive images ---- */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Karten-/Headerbilder: passen in den Container, ohne zu überlaufen */
.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;         /* gleichmäßige Höhe in Grids */
  max-height: 280px;            /* Sicherheits-Cap (optional) */
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1319;          /* dunkler Hintergrund bei transparenten PNGs */
}

/* Variante 1: zuschneiden (füllend) */
.card-media--cover {
  object-fit: cover;
  object-position: center;
}

/* Variante 2: vollständig zeigen (nicht zuschneiden) */
.card-media--contain {
  object-fit: contain;
  object-position: center;
  background: #0f1319;          /* lässt Ränder „sauber“ aussehen */
}