:root {
  --bg: #0b1120;
  --bg2: #111a2e;
  --karte: #16223c;
  --text: #e6edf7;
  --muted: #93a4c0;
  --akzent: #D4AF37;
  --gold: #D4AF37;
  --gold-hover: #b8952e;
  --gold-dark: #8a6b1a;
  --akzent2: #22d3ee;
  --fehler: #f87171;
  --ok: #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #16223c 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--akzent2); text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1e2b47;
}
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: .3px; }
.nav nav a { margin-left: 1rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: .55rem 1rem;
  background: var(--akzent);
  color: #fff;
  border: 0;
  border-radius: .5rem;
  cursor: pointer;
  font: inherit;
}
.btn:hover { background: #2563eb; }
.btn.gross { padding: .8rem 1.4rem; font-size: 1.05rem; }

main { max-width: 960px; margin: 0 auto; padding: 1.5rem; }

.hero { padding: 3rem 0 1rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .5rem; }
.badge {
  display: inline-block; padding: .3rem .7rem; margin-bottom: .8rem;
  border: 1px solid #2a3a5c; border-radius: 999px;
  color: var(--akzent2); font-size: .85rem;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.hinweis { color: var(--muted); font-size: .85rem; margin-top: .75rem; }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.karte { background: var(--karte); border: 1px solid #1e2b47; border-radius: .75rem; padding: 1.25rem; }
.karte h2 { margin-top: 0; font-size: 1.1rem; }

.usp { margin: 2rem 0; }
.usp ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.usp li { background: var(--bg2); border: 1px solid #1e2b47; border-radius: .5rem; padding: .75rem 1rem; }

footer { border-top: 1px solid #1e2b47; color: var(--muted); font-size: .85rem; padding: 1.5rem; text-align: center; }

.zentriert { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth { width: 100%; max-width: 420px; background: var(--karte); border: 1px solid #1e2b47; border-radius: .9rem; padding: 1.75rem; }
.auth .brand { display: block; text-align: center; margin-bottom: 1rem; }

.tabs { display: flex; gap: .25rem; margin-bottom: 1.25rem; }
.tabs button {
  flex: 1; padding: .5rem; background: transparent; color: var(--muted);
  border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit;
}
.tabs button.aktiv { color: var(--text); border-bottom-color: var(--akzent); }

.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.form input[type=email], .form input[type=password], .form input[type=text], .form textarea {
  padding: .6rem .7rem; border-radius: .5rem; border: 1px solid #2a3a5c;
  background: #0e1729; color: var(--text); font: inherit;
}
.form textarea { resize: vertical; }
.form input:focus { outline: 2px solid var(--akzent); border-color: transparent; }
.form button { padding: .7rem; border: 0; border-radius: .5rem; background: var(--akzent); color: #fff; cursor: pointer; font: inherit; }
.form button:hover { background: #2563eb; }
.check { display: flex; align-items: center; gap: .5rem; }
.versteckt { display: none; }

.meldung { min-height: 1.2rem; font-size: .9rem; margin-top: 1rem; }
.meldung.ok { color: var(--ok); }
.meldung.fehler { color: var(--fehler); }

.suchleiste { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.suchleiste select, .suchleiste input {
  padding: .6rem .7rem; border-radius: .5rem; border: 1px solid #2a3a5c;
  background: #0e1729; color: var(--text); font: inherit;
}
.suchleiste input { flex: 1; min-width: 220px; }
.karte h3 { margin: 0 0 .4rem; font-size: 1rem; }
.karte .meta { color: var(--muted); font-size: .85rem; margin: .2rem 0; }
.karte .teile { margin: .4rem 0 0; font-size: .85rem; color: var(--akzent2); }

@font-face {
  font-family: "Arsenal";
  src: url("/static/fonts/Arsenal.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

h1, h2, .brand {
  font-family: "Arsenal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(11, 17, 32, 0.86), rgba(11, 17, 32, 0.94)), url("/static/img/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}
.brand img {
  display: block;
  width: auto;
}
.brand-emblem {
  height: 60px;
}
.brand-wordmark {
  height: 26px;
}
.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.7rem;
}
.hero-media img {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%);
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-media {
    order: 2;
  }
  .hero-media img {
    margin-left: 0;
  }
}

.badge {
  border-color: var(--gold);
  color: var(--gold);
}

.btn {
  background: var(--gold);
  color: #16223c;
  font-weight: 600;
}
.btn:hover {
  background: var(--gold-hover);
}
.btn:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}

.karte {
  border-color: #2b3a55;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.karte:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.15);
}
.karte h2, .karte h3 {
  color: var(--gold);
}

.usp li {
  transition: border-color 0.2s ease;
}
.usp li:hover {
  border-color: var(--gold);
}
.usp li strong {
  color: var(--gold);
}

.form input:focus, .form textarea:focus {
  outline-color: var(--gold);
  border-color: transparent;
}
.form button {
  background: var(--gold);
  color: #16223c;
  font-weight: 600;
}
.form button:hover {
  background: var(--gold-hover);
}

.tabs button.aktiv {
  border-bottom-color: var(--gold);
}

footer {
  max-width: 960px;
  margin: 0 auto;
}
footer a:hover {
  color: var(--gold);
}
footer .footer-logo {
  display: block;
  margin: 1.2rem 0 0 auto;
  height: 90px;
  width: auto;
  opacity: 0.92;
}

.auth .brand img {
  margin: 0 auto;
  height: 64px;
  width: auto;
}

#lang-select {
  margin-left: 1rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #2b3a55;
  background: #0e1729;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
#lang-select.lang-fix {
  position: fixed;
  top: 1rem;
  right: 1rem;
  margin: 0;
  z-index: 10;
}

.kopf {
  padding: 2.5rem 0 1rem;
}
.kopf h1 {
  margin: 0 0 0.5rem;
}
.kopf h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.7rem;
}

.portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  display: block;
}

.verweis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.datei-input { display: none; }
.dropzone {
  display: grid;
  gap: .35rem;
  padding: 1.25rem;
  border: 2px dashed #2b3a55;
  border-radius: .75rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone.dropzone-aktiv {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}
.dropzone-titel { font-weight: 700; color: var(--gold); }
.dropzone-hinweis { color: var(--muted); font-size: .85rem; }
.dropzone-name { color: var(--akzent2); font-size: .8rem; word-break: break-word; }
.tabellen-wrap { overflow-x: auto; margin-top: 1rem; }
.daten-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.daten-tabelle th, .daten-tabelle td {
  border: 1px solid #2b3a55;
  padding: .45rem .6rem;
  text-align: left;
  white-space: nowrap;
}
.daten-tabelle th {
  background: var(--bg2);
  color: var(--gold);
  cursor: pointer;
  position: sticky;
  top: 0;
}
.daten-tabelle th:hover { background: #1c2a47; }
.daten-tabelle tbody tr:nth-child(even) { background: rgba(22, 34, 60, 0.5); }

.vorstellung {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 700px) {
  .vorstellung {
    grid-template-columns: 1fr;
  }
  .portrait {
    margin: 0 auto;
  }
}

