/* GEO-Detektor-Trial – alle eigenen Seiten (Lead und Admin).

   Gestaltung wie der Kundenreport des GEO Detektors (report_v3.html.j2, Stand
   06.10.2026): heller Grund, weisse Karten mit 22px Rundung, Markenfarbe Orange
   #ff5a1f, Schrift Inter bzw. Systemschrift. Die Variablen tragen dieselben Namen wie
   im Report, damit Report und Trial-Seiten aus einem Guss wirken. */

:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #fbfbfd; --surface-3: #f0f2f7; --surface-4: #e6e9ef;
  --text: #0f1114; --muted: #5f6674; --soft: #98a0ae; --line: #e5e8ee;
  --brand: #ff5a1f; --brand-2: #ff7a45; --brand-soft: #fff2ec;
  --accent: #635bff; --accent-soft: #eeecff;
  --green: #0f9f6e; --green-soft: #e6f7f0; --red: #e0454a; --red-soft: #fdedee;
  --yellow: #c9800a; --yellow-soft: #fff4dc;
  --shadow: 0 24px 60px rgba(15, 17, 20, .08); --shadow-sm: 0 4px 14px rgba(15, 17, 20, .05);
  --radius: 22px; --radius-sm: 14px; --radius-xs: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }

/* Kopf wie public-header im Report */
.kopf {
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 22px 24px 18px;
  display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line);
}
.marke { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.marke-logo {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: 0 0 44px;
  box-shadow: 0 10px 22px rgba(255, 90, 31, .28);
}
.marke-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marke-name { font-weight: 850; letter-spacing: -.02em; font-size: 16px; line-height: 1.1; }
.marke-zusatz { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }

main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 36px 16px 56px; }
main.admin-breit { max-width: 1140px; }

.karte {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.karte + .karte, .hinweis + .karte, .testmodus + .karte { margin-top: 20px; }

h1 { font-size: 30px; line-height: 1.15; font-weight: 850; letter-spacing: -.03em; margin: 0 0 14px; color: var(--text); }
h1.verlauf { font-size: 32px; }
h1.domain { font-size: 26px; margin-bottom: 4px; }
h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: var(--text); }
p { margin: 0 0 14px; }
.leise { color: var(--muted); }
.klein { font-size: 13px; }
.unterzeile { font-weight: 700; color: var(--muted); margin-bottom: 22px; }

/* Formulare */
form { margin-top: 24px; }
label { display: block; font-size: 13px; font-weight: 750; color: var(--text); margin-bottom: 8px; }
.eingabe-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  flex: 1 1 240px; min-width: 0; font: inherit; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--soft); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
input.fest { background: var(--surface-3); color: var(--muted); cursor: default; }
input[type="number"] { flex: 0 0 84px; width: 84px; }

/* Knoepfe */
.knopf, .knopf-zweit {
  display: inline-block; font: inherit; font-weight: 800; font-size: 14px; line-height: 1.2;
  padding: 13px 20px; border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.knopf {
  border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(255, 90, 31, .25);
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(255, 90, 31, .32); }
.knopf-zweit { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.knopf-zweit:hover { border-color: var(--soft); background: var(--surface-3); }
.knopf-zweit.gefahr { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.knopf-zweit.gefahr:hover { background: var(--red-soft); }
.klein-knopf { padding: 9px 14px; font-size: 13px; }

/* Meldungen */
.hinweis, .fehler, .testmodus {
  margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
}
.hinweis { background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 70%, var(--text)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.hinweis.erfolg { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, var(--line)); }
.fehler { background: var(--red-soft); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 25%, var(--line)); }
.testmodus { background: var(--yellow-soft); color: var(--yellow); border: 1px solid color-mix(in srgb, var(--yellow) 25%, var(--line)); margin: 0 0 20px; }
main > .hinweis { margin: 0 0 20px; }

/* Lead: Stand, Reports, Vollversion */
.stand { margin: 18px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.ergebnisse { margin-top: 28px; }
.ergebnisse ul { list-style: none; padding: 0; margin: 0; }
.ergebnisse li { margin: 8px 0; }
.ergebnisse a {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 650;
}
.ergebnisse a[href]:hover { border-color: var(--brand); background: var(--brand-soft); }
.ergebnisse .zahl { font-weight: 800; color: var(--brand); }
.cta-karte { margin-top: 20px; background: linear-gradient(140deg, var(--brand-soft), var(--surface) 60%); }
.gesperrt ul { list-style: none; padding: 0; margin: 0 0 18px; }
.gesperrt li { padding: 5px 0; color: var(--muted); font-weight: 600; }
.zurueck { margin-top: 24px; }

/* Warten */
.warten { text-align: center; }
.kreisel {
  width: 42px; height: 42px; margin: 6px auto 22px; border-radius: 50%;
  border: 4px solid var(--surface-3); border-top-color: var(--brand); border-right-color: var(--brand-2);
  animation: drehen .9s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }
.fortschritt { width: 100%; height: 8px; margin: 6px 0 14px; accent-color: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .kreisel { animation-duration: 3s; }
  .knopf:hover { transform: none; }
}

/* Admin */
.abmelden { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--muted); font-weight: 650; }
.anzahl { font-size: 16px; font-weight: 700; color: var(--soft); }
.spalte input { display: block; width: 100%; margin-bottom: 18px; }
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.raster input { display: block; width: 100%; }
.raster .ganz { grid-column: 1 / -1; }
.raster .fehler { margin-top: 0; }
.kopieren { display: block; width: 100%; margin: 0 0 18px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
textarea.kopieren { resize: vertical; }
.tabelle-rahmen { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th { background: var(--surface-2); font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tabelle a { font-weight: 700; text-decoration: none; }
.status {
  display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted);
}
.status.aktiv { background: var(--green-soft); color: var(--green); }
.status.verbraucht { background: var(--accent-soft); color: var(--accent); }
.status.gesperrt { background: var(--red-soft); color: var(--red); }
.liste { display: grid; grid-template-columns: 180px 1fr; gap: 8px 20px; margin: 0 0 18px; }
.liste dt { color: var(--muted); font-weight: 600; }
.liste dd { margin: 0; font-weight: 650; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.aktionen h2 { flex-basis: 100%; margin: 0; }
.aktionen form { display: flex; align-items: center; gap: 10px; margin: 0; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }

/* Fuss */
.fuss { padding: 20px 16px 28px; text-align: center; font-size: 12px; color: var(--soft); font-weight: 600; }
.fuss a { color: inherit; }
.fuss span { margin: 0 8px; }

@media (max-width: 700px) {
  .karte { padding: 26px 20px; }
  h1, h1.verlauf { font-size: 25px; }
  .raster, .liste { grid-template-columns: 1fr; }
  .marke-zusatz { display: none; }
}
