/* =========================================================
   Design im Leonida-/Vice-City-Sonnenuntergang-Stil
   Farben ganz oben ändern = ändert die ganze Seite
   ========================================================= */
:root {
  --night:   #12061f;   /* Hintergrund ganz dunkel */
  --violet:  #2a0d45;   /* dunkles Lila */
  --plum:    #4b1366;
  --pink:    #ff2d95;   /* Neon-Pink */
  --coral:   #ff5e62;
  --orange:  #ff9a3c;   /* Sonnen-Orange */
  --gold:    #ffd166;
  --teal:    #2ee6d6;   /* Türkis-Akzent */
  --text:    #fff4fb;
  --muted:   #cdb3d9;
  --panel:   rgba(30, 10, 50, .72);
  --line:    rgba(255, 255, 255, .12);
  --grad:    linear-gradient(90deg, var(--pink), var(--coral) 45%, var(--orange));
  --grad-v:  linear-gradient(180deg, var(--pink), var(--orange));
  --radius:  16px;
  --shadow:  0 18px 50px rgba(0, 0, 0, .45);
  --head:    "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--night);
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }

/* ---------- Himmel / Sonnenuntergang im Hintergrund ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(255,154,60,.55) 0%, rgba(255,45,149,.35) 28%, transparent 60%),
    linear-gradient(180deg, #0d0418 0%, #24093d 38%, #5a1466 62%, #b42a73 80%, #ff6a5c 94%, #ff9a3c 100%);
}
.sun {
  position: absolute; left: 50%; bottom: -14vmin; width: 62vmin; height: 62vmin; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe08a 0%, #ff9a3c 40%, #ff2d95 85%);
  box-shadow: 0 0 120px 30px rgba(255, 94, 98, .45);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 55% no-repeat, linear-gradient(#000, #000) top / 100% 46% no-repeat;
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px) bottom / 100% 55% no-repeat, linear-gradient(#000, #000) top / 100% 46% no-repeat;
  opacity: .9;
}
.palms {
  position: absolute; inset: auto 0 0 0; height: 46vh;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cpath d='M104 300c-2-70 2-140 10-190' stroke='%23090212' stroke-width='7' fill='none'/%3E%3Cg fill='%23090212'%3E%3Cpath d='M114 110c-30-25-70-25-100-5 35-5 65 0 100 5z'/%3E%3Cpath d='M114 110c20-35 55-50 85-45-35 10-60 25-85 45z'/%3E%3Cpath d='M114 110c-15-35-10-75 15-100-10 35-12 65-15 100z'/%3E%3Cpath d='M114 110c-35-5-70 15-85 50 25-25 55-40 85-50z'/%3E%3Cpath d='M114 110c35 0 65 25 75 60-20-30-45-50-75-60z'/%3E%3C/g%3E%3C/svg%3E") left -40px bottom / auto 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cpath d='M96 300c2-70-2-140-10-190' stroke='%23090212' stroke-width='7' fill='none'/%3E%3Cg fill='%23090212'%3E%3Cpath d='M86 110c30-25 70-25 100-5-35-5-65 0-100 5z'/%3E%3Cpath d='M86 110c-20-35-55-50-85-45 35 10 60 25 85 45z'/%3E%3Cpath d='M86 110c15-35 10-75-15-100 10 35 12 65 15 100z'/%3E%3Cpath d='M86 110c35-5 70 15 85 50-25-25-55-40-85-50z'/%3E%3Cpath d='M86 110c-35 0-65 25-75 60 20-30 45-50 75-60z'/%3E%3C/g%3E%3C/svg%3E") right -30px bottom / auto 80% no-repeat,
    linear-gradient(180deg, transparent 70%, rgba(9,2,18,.9) 100%);
}
.has-bg .sky { opacity: .35; }
.bg-image { position: fixed; inset: 0; z-index: -3; background: center / cover no-repeat; }
body::after { /* dunkler Schleier, damit Text gut lesbar bleibt */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,6,31,.35), rgba(18,6,31,.6) 50%, rgba(18,6,31,.78));
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(18, 6, 31, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .8; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font: 900 22px/1 var(--head); color: #fff; background: var(--grad);
  box-shadow: 0 0 22px rgba(255, 45, 149, .55); transform: rotate(-6deg);
}
.brand-text { font: 900 18px/1.05 var(--head); letter-spacing: .5px; }
.brand-text small { display: block; font: 600 11px/1.3 "Segoe UI", sans-serif; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .linklike {
  color: var(--text); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav a:hover, .linklike:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.on { color: var(--gold); }
.nav .btn-nav { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(255, 45, 149, .35); }
.nav .btn-nav:hover { filter: brightness(1.1); background: var(--grad); }
.inline { display: inline; margin: 0; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); font-size: 22px; border-radius: 10px; padding: 4px 12px; cursor: pointer; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

/* ---------- Grundlayout ---------- */
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
main.wrap { padding: 28px 0 60px; }
.narrow { max-width: 480px; margin: 20px auto; }
.narrow.wide-ish { max-width: 760px; }
section { margin: 46px 0; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font: 900 clamp(28px, 4vw, 40px)/1.1 var(--head); letter-spacing: -.5px; }
h2 { font: 800 22px/1.2 var(--head); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section-title { font: 900 clamp(22px, 3vw, 30px)/1.1 var(--head); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 18px; }
.section-title::after { content: ""; display: block; width: 70px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--grad); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.more { font-weight: 700; margin-bottom: 24px; }

/* ---------- Startseite: Hero ---------- */
.hero { text-align: center; padding: clamp(30px, 7vw, 80px) 0 20px; margin-top: 0; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(46,230,214,.5); color: var(--teal); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; background: rgba(46,230,214,.08); }
.hero-title {
  font: 900 clamp(48px, 11vw, 120px)/.9 var(--head); text-transform: uppercase; letter-spacing: -2px; margin: 0;
  background: linear-gradient(180deg, #ffe7a3 0%, var(--orange) 35%, var(--pink) 70%, #b23cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)) drop-shadow(0 0 30px rgba(255,45,149,.45));
}
.hero-title span { display: block; font-size: .32em; letter-spacing: 6px; line-height: 1.4; }
.hero-sub { max-width: 640px; margin: 18px auto 26px; font-size: clamp(16px, 2vw, 20px); color: #f5dcee; }
.search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
.search input { flex: 1; }
.search.small { margin: 0; max-width: 340px; }
.stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 70px); margin-top: 34px; }
.stats strong { display: block; font: 900 34px/1 var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- Kategorien ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(160deg, rgba(255,45,149,.16), rgba(42,13,69,.8) 55%); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, box-shadow .2s; overflow: hidden;
}
.cat:hover { transform: translateY(-4px); border-color: rgba(255,154,60,.6); box-shadow: 0 14px 40px rgba(255,45,149,.25); color: var(--text); }
.cat-icon { font-size: 34px; }
.cat strong { font: 900 19px/1.2 var(--head); text-transform: uppercase; }
.cat small { color: var(--muted); }
.cat-count { margin-top: 8px; font-weight: 700; color: var(--gold); font-size: 14px; }

/* ---------- Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,45,149,.6); color: var(--text); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--violet); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 54px; background: linear-gradient(160deg, var(--plum), var(--violet)); }
.card-noimg.big { aspect-ratio: 16 / 10; font-size: 110px; border-radius: var(--radius); }
.chip { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(18,6,31,.8); border: 1px solid var(--line); }
.chip.static { position: static; display: inline-block; margin-bottom: 10px; color: var(--text); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 17px; margin: 0 0 6px; }
.loc { margin: 0 0 6px; color: var(--teal); font-size: 14px; font-weight: 600; }
.loc.big { font-size: 16px; }
.meta { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border: 0; border-radius: 12px; cursor: pointer;
  font: 800 15px/1.2 "Segoe UI", system-ui, sans-serif; color: #fff; background: var(--grad);
  box-shadow: 0 8px 22px rgba(255,45,149,.35); transition: transform .15s, filter .15s;
}
.btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-big { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.07); border: 1px solid var(--line); box-shadow: none; }
.btn-danger { background: linear-gradient(90deg, #c21d4b, #ff4d4d); box-shadow: none; }
.icon-btn { background: none; border: 0; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 8px; }
.icon-btn:hover { background: rgba(255,255,255,.1); }

.form { display: grid; gap: 16px; margin-top: 10px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form label small { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(10, 3, 20, .6); color: var(--text); font: 15px/1.4 inherit; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,45,149,.25); }
input[type=file] { padding: 10px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--pink); }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form label.check input { margin-top: 5px; }
.check.small { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 400; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { justify-self: end; font-weight: 400; font-size: 12px; color: var(--muted); }
.preview { max-height: 260px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }

.cat-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.cat-option { cursor: pointer; }
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
.cat-option span { display: inline-block; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-weight: 600; transition: all .15s; }
.cat-option input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255,45,149,.35); }
.cat-option input:focus-visible + span { outline: 2px solid var(--teal); }

/* ---------- Meldungen ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 600; border: 1px solid; }
.flash-ok   { background: rgba(46,230,214,.12); border-color: rgba(46,230,214,.5); color: #b8fff8; }
.flash-err  { background: rgba(255,45,90,.14); border-color: rgba(255,45,90,.55); color: #ffd0dc; }
.flash-warn { background: rgba(255,209,102,.12); border-color: rgba(255,209,102,.5); color: #ffeab8; }
.checks { list-style: none; padding: 0; display: grid; gap: 4px; }
.checks .ok { color: var(--teal); } .checks .bad { color: #ff7a9a; font-weight: 700; }

/* ---------- Liste ---------- */
.list-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 18px; }
.filters .spacer { flex: 1; }
.pill { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-weight: 600; font-size: 14px; }
.pill:hover { color: #fff; border-color: rgba(255,45,149,.6); }
.pill.on { background: var(--grad); border-color: transparent; color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a { min-width: 38px; padding: 8px; text-align: center; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.pager a.on { background: var(--grad); }
.empty { text-align: center; padding: 40px 20px; }
.empty p { font-size: 18px; margin-top: 0; }

/* ---------- Detailseite ---------- */
.crumbs { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.detail-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-body h1 { font-size: clamp(26px, 3vw, 34px); }
.desc { margin: 14px 0 18px; white-space: normal; word-wrap: break-word; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions form { margin: 0; }
.report { margin-top: 18px; color: var(--muted); font-size: 14px; }
.report summary { cursor: pointer; }
.report .form { grid-template-columns: 1fr auto; align-items: center; }

/* ---------- Profil & Tabellen ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.profile-head h1 { margin: 0; font-size: 28px; }
.profile-head .btn { margin-left: auto; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font: 900 30px var(--head); background: var(--grad); }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.table tr:last-child td { border-bottom: 0; }
.table td form { margin: 0; }
.table tr.dim { opacity: .55; }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-ok { background: rgba(46,230,214,.15); color: var(--teal); }
.status-warn { background: rgba(255,209,102,.15); color: var(--gold); }
.status-err { background: rgba(255,45,90,.18); color: #ff8fab; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }

/* ---------- Admin ---------- */
.mod-list { display: grid; gap: 14px; }
.mod-item { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px; }
.mod-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--violet); }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mod-thumb span { display: grid; place-items: center; height: 100%; font-size: 44px; }
.mod-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-top .chip { margin: 0; }
.mod-body h3 { margin: 8px 0 4px; }
.mod-desc { margin: 4px 0 8px; color: #ecd8f2; font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.row-actions form { margin: 0; }

/* ---------- Aufruf unten ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255,45,149,.28), rgba(255,154,60,.18) 60%, rgba(42,13,69,.75)); }
.cta h2 { font-size: 26px; text-transform: uppercase; }
.cta p { margin: 0; color: #f5dcee; }
.prose li { margin-bottom: 8px; }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(10,3,20,.8); padding: 26px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer strong { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: rgba(18,6,31,.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a, .nav .linklike { padding: 12px; width: 100%; text-align: left; }
  .detail, .two-col { grid-template-columns: 1fr; }
  .mod-item { grid-template-columns: 1fr; }
  .report .form { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .search { flex-direction: column; }
  .brand-text small { display: none; }
  .stats strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
