/* Hexlizer Kundenbereich – dunkles "Studio"-Design wie die Verkaufsseite (site/css/site.css).
   Farbtoken, Schriften, Knöpfe und Formularfelder sind 1:1 von dort übernommen; keine externen Ressourcen. */

:root {
  --ink-900: #0a0c10;
  --ink-800: #12151b;
  --ink-700: #1b1f28;
  --ink-600: #2a303c;
  --text: #15181d;
  --muted-dark: #9aa3b2;
  --accent: #f5c400;
  --accent-hell: #ffd83a;
  --line-dark: rgba(255, 255, 255, 0.12);
  --ok: #2f8f5b;
  --ok-text: #9fe0bd;
  --fehler-text: #ff9b8f;
  --code-grund: #06070a;
  --code-text: #e6e9ef;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --wrap: 1040px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: #fff;
  background: var(--ink-900);
  overflow-x: hidden;
}
/* Gitter-Textur und gelber Lichtschein wie im Hero der Verkaufsseite, seitenweit und fixiert */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(60rem 30rem at 85% -10%, rgba(245, 196, 0, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800));
  background-size: 48px 48px, 48px 48px, auto, auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
h3 { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); }
h3 .hinweis { font-family: var(--font); letter-spacing: 0; text-transform: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hell); }
code, pre { font-family: var(--mono); }
code {
  background: var(--code-grund);
  border: 1px solid var(--line-dark);
  color: var(--code-text);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
strong { color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- Kopf (wie .site-header der Verkaufsseite) ---------- */
.site-header {
  background: var(--ink-900);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand small {
  display: none;
  font-weight: 500;
  color: var(--muted-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 600px) { .brand small { display: inline; margin-left: 0.4rem; } }

.kopf-rechts {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.kopf-rechts form { margin: 0; }
.kopf-mail {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
  margin-right: 0.4rem;
  overflow-wrap: anywhere;
}
.kopf-knopf {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms, color 150ms;
}
.kopf-knopf:hover { border-color: #fff; background: var(--ink-700); color: #fff; }

/* ---------- Inhalt ---------- */
.inhalt { flex: 1; width: 100%; padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.karte {
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0 0 1.25rem;
  min-width: 0;
}
.karte.schmal { max-width: 30rem; margin: clamp(0.5rem, 3vw, 2rem) auto 1.25rem; }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.zweispaltig .karte { margin: 0; }
.titelzeile { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.titelzeile h1, .titelzeile h2 { margin: 0; overflow-wrap: anywhere; }
h2.gross { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h1.eyebrow { font-weight: 400; line-height: 1.5; }
.status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid;
}
.status.ok { color: var(--accent); border-color: rgba(245, 196, 0, 0.6); }
.status.aus { color: var(--fehler-text); border-color: rgba(255, 155, 143, 0.6); }
.hinweis { color: var(--muted-dark); font-size: 0.92rem; }
p.hinweis { margin: 0 0 1.1rem; }
p.hinweis:last-child { margin-bottom: 0; }
.karte > h1 + p.hinweis, .karte > h2 + p.hinweis { margin-top: 0.6rem; }
.karte > h1 { margin-bottom: 0.4rem; }

/* ---------- Meldungen ---------- */
.meld {
  background: rgba(47, 143, 91, 0.12);
  border: 1px solid rgba(47, 143, 91, 0.5);
  color: var(--ok-text);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-lg);
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
}
.meld.f { background: rgba(255, 155, 143, 0.1); border-color: rgba(255, 155, 143, 0.4); color: var(--fehler-text); }
.karte .meld { margin: 1.25rem 0 0; }
.schluessel { background: rgba(245, 196, 0, 0.06); border-color: rgba(245, 196, 0, 0.4); }
.schluessel dl { margin: 1rem 0 0; }
.schluessel dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); margin-top: 0.75rem; }
.schluessel dd { margin: 0.25rem 0 0; }
.schluessel code, .daten dd > code { color: var(--accent); font-size: 0.95rem; }
.geheim, .daten dd > code.geheim, .schluessel code.geheim { background: var(--accent); border-color: var(--accent); color: var(--ink-900); font-weight: 700; }

/* ---------- Kennzahlen (wie .hero-facts) ---------- */
.kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .kacheln { grid-template-columns: repeat(4, 1fr); } }
.kachel {
  background: var(--ink-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.15rem;
}
.kachel strong { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.kachel span { font-size: 0.85rem; color: var(--muted-dark); }

/* ---------- Daten-Listen ---------- */
.daten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.75rem 1.5rem; margin: 0; }
.daten dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); padding-top: 0.3rem; max-width: 14rem; }
.daten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.daten dd .hinweis { display: inline; }
.code {
  background: var(--code-grund);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--code-text);
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}
@media (max-width: 640px) {
  .daten { grid-template-columns: 1fr; gap: 0.15rem; }
  .daten dt { max-width: none; padding-top: 0; }
  .daten dd { margin-bottom: 0.9rem; }
}

/* ---------- Tabellen ---------- */
.tw { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--ink-900); }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line-dark); vertical-align: top; white-space: nowrap; }
th { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); background: var(--ink-700); }
td { color: var(--code-text); }
tr:last-child td { border-bottom: 0; }
tr.summe td { font-weight: 700; color: #fff; background: var(--ink-700); }
td code { font-size: 0.82em; }

/* ---------- Formulare (Felder wie .contact-form der Verkaufsseite) ---------- */
.formular { display: grid; gap: 1rem; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem 1.25rem; }
.raster .voll { grid-column: 1 / -1; }
label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
label.kasten {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  font-family: var(--font);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}
label.kasten input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; padding: 0; accent-color: var(--accent); }
input, select, button { font: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: var(--ink-900);
  border: 1px solid rgba(255, 255, 255, 0.4);   /* Feldrand mit 3:1 erkennbar (WCAG 1.4.11) */
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 150ms;
}
input::placeholder { color: rgba(170, 178, 192, 0.85); }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background: var(--ink-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%239aa3b2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1rem;
}
select option { color: var(--text); background: #fff; }
input:not([type=checkbox]):not([type=radio]):hover, select:hover { border-color: rgba(255, 255, 255, 0.3); }
input:focus, select:focus { border-color: var(--accent); outline: none; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type=file] { font-family: var(--font); font-size: 0.9rem; letter-spacing: 0; text-transform: none; color: var(--muted-dark); max-width: 100%; }
input[type=file]::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: border-color 150ms;
}
input[type=file]::file-selector-button:hover { border-color: #fff; }

/* Knöpfe: .knopf = .btn-primary, .knopf.sekundaer = .btn-ghost der Verkaufsseite */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--ink-900);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), background-color 150ms, border-color 150ms, color 150ms;
}
.knopf:hover { background: var(--accent-hell); color: var(--ink-900); transform: translateY(-1px); }
.knopf:active { transform: translateY(0); }
.knopf.sekundaer { background: transparent; border-color: var(--line-dark); color: #fff; }
.knopf.sekundaer:hover { border-color: #fff; background: transparent; color: #fff; }
.formular .knopf { justify-self: start; }
.formular + .formular { margin-top: 1rem; }
.formular + p.hinweis { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mandanten-Auswahl ---------- */
.liste { display: grid; gap: 0.75rem; }
.wahl {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  background: var(--ink-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  color: #fff;
  cursor: pointer;
  transition: border-color 150ms, transform 200ms var(--ease);
}
.wahl:hover { border-color: var(--accent); transform: translateY(-1px); }
.wahl span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted-dark); }

/* ---------- Fuß (wie .site-footer der Verkaufsseite) ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding-block: 2rem;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin: 0; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Code einlösen: Feld und Knopf nebeneinander */
.formular.zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.formular.zeile label { flex: 1 1 220px; }
.formular.zeile input { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Login-Karte: Registrierung als eigener Block mit Knopf */
.trenner { border: 0; border-top: 1px solid var(--line-dark); margin: 1.25rem 0 0.9rem; }
.klein-titel { font-size: 1rem; margin: 0 0 0.25rem; }
.knopf.breit { display: block; text-align: center; }

/* Logo-Vorschau: auf dunklem Grund wie im Ergebnisbild */
.logo-vorschau { display: grid; gap: 0.5rem; justify-items: start; margin: 0.6rem 0 0.9rem; }
.logo-vorschau img { max-width: 240px; max-height: 120px; width: auto; height: auto; padding: 0.6rem; background: var(--ink-700); border: 1px solid var(--line-dark); border-radius: var(--radius); }

/* ---- Logo-Groesse mit Vorschau (14.09.2026) ---- */
.logo-groesse { margin-top: 1.1rem; border-top: 1px solid var(--linie, #dfe2e5); padding-top: .9rem; }
.logo-groesse h3 { margin: 0 0 .2rem; font-size: 1rem; }
.logo-groesse input[type="range"] { width: 100%; }
.logo-groesse output { font-variant-numeric: tabular-nums; font-weight: 600; }
.logo-vorschau-bild { margin: .6rem 0 0; }
.logo-vorschau-bild img { width: 100%; height: auto; border-radius: 8px; display: block;
  background: #0f1218; transition: opacity .15s; }
/* Waehrend das Beispielbild neu gerechnet wird, bleibt das alte stehen und wird blasser: sonst blitzt
   die Flaeche bei jeder Schieberbewegung leer auf. */
.logo-vorschau-bild img.laedt { opacity: .55; }
.logo-vorschau-bild figcaption { margin-top: .35rem; }

/* Paketwahl (Stripe-Abo): drei Pakete als Auswahlkarten */
.pakete { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin: 0 0 1.25rem; }
label.paket { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.65rem; align-items: start; padding: 0.9rem 1rem;
  border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; font-family: var(--font); text-transform: none; letter-spacing: 0; color: #fff; }
label.paket:has(input:checked) { border-color: var(--accent); background: rgba(245, 196, 0, 0.06); }
label.paket input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--accent); grid-row: span 3; }
label.paket strong { font-size: 1.05rem; }
label.paket span { color: var(--muted-dark); font-size: 0.9rem; }
.abo-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* Naechster Schritt fuer neue Haendler */
.karte.fokus { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.35); }
.schritte { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; }
.schritt { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--muted-dark); }
.schritt .nr { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--line-dark); font-weight: 700; }
.schritt.erledigt .nr { background: var(--accent); border-color: var(--accent); color: #0a0c10; }
.schritt.jetzt { border-color: var(--accent); color: #fff; }
.schritt.jetzt .nr { border-color: var(--accent); color: var(--accent); }
.schritt strong { color: var(--accent); font-weight: 600; }

/* Logo-Zusatz: Bestaetigung vor der Buchung */
.bestaetigung { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid var(--accent); border-radius: var(--radius); }
.bestaetigung h3 { margin: 0 0 0.9rem; padding-top: 0; border-top: 0; }
.bestaetigung .daten { margin-bottom: 1rem; }
.karte .abo-knoepfe + .abo-knoepfe { margin-top: 0.6rem; }
.meld p { margin: 0 0 0.8rem; }
.logo-farbe { margin-top: 0.9rem; }

/* ---------- Barrierefreiheit ---------- */
.sprunglink { position: absolute; left: 0.75rem; top: -3rem; z-index: 50; padding: 0.55rem 0.9rem; background: var(--accent); color: var(--ink-900); font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.sprunglink:focus { top: 0.75rem; }
.meld:focus { outline: 2px solid currentColor; outline-offset: 2px; }
fieldset.gruppe { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: inherit; }
.knopf:disabled, .knopf[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.kopier-knopf { margin-top: 0.4rem; font-size: 0.85rem; padding: 0.35rem 0.7rem; }
.wahl { border-color: rgba(255, 255, 255, 0.4); }

/* Freigegebene Bilder: Vorher/Nachher-Schieberegler */
.bilder-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.bild-karte { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-900); }
.vergleich { position: relative; aspect-ratio: 4 / 3; background: #000; overflow: hidden; }
.vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.vergleich .vergleich-nachher { clip-path: inset(0 0 0 var(--pos)); }
.vergleich-linie { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #f5c400; pointer-events: none; }
.vergleich input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.vergleich input[type=range]:focus-visible + .vergleich-linie, .vergleich:focus-within .vergleich-linie { width: 4px; margin-left: -2px; }
.bild-text { display: grid; gap: .3rem; padding: .8rem 1rem 1rem; }
.bild-links a { color: inherit; }
.marke-warn { justify-self: start; font-size: .82rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(220, 60, 60, .18); color: #ffb4b4; }

.bild-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.bild-knoepfe form.inline { display: inline; margin: 0; }
.knopf.klein { padding: .35rem .7rem; font-size: .85rem; }
.knopf.gefahr { background: transparent; border-color: rgba(220, 60, 60, .6); color: #ffb4b4; }
.knopf.gefahr:hover { border-color: #ff7b7b; color: #fff; }
.video-ergebnis { display: grid; gap: .4rem; margin-top: .5rem; }
.video-ergebnis video { width: 100%; border-radius: var(--radius-lg); background: #000; }
/* Dialog zum Unkenntlichmachen (wie im Hexlizer-Admin) */
.kz-dialog { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--ink-900); color: #fff; max-width: min(94vw, 900px); padding: 1rem; }
.kz-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.kz-dialog h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.kz-flaeche { position: relative; max-width: 100%; max-height: 62vh; overflow: auto; cursor: crosshair; touch-action: none; user-select: none; border-radius: var(--radius-lg); background: #000; }
.kz-inhalt { position: relative; width: 100%; }
.kz-flaeche img { width: 100%; display: block; }
.kz-leiste, .kz-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 .6rem; }
.kz-netz { position: absolute; inset: 0; pointer-events: none; }
.kz-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kz-svg polygon { fill: rgba(245, 196, 0, .2); stroke: #f5c400; stroke-width: .3; vector-effect: non-scaling-stroke; }
.kz-svg polygon.aktiv { fill: rgba(245, 196, 0, .34); stroke-width: .6; }
.kz-griff { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #f5c400; border: 2px solid #0a0c10; pointer-events: auto; cursor: grab; touch-action: none; }

/* Kunden & Auftraege */
.unterseiten { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.filter-leiste { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin: 1rem 0; }
.filter-leiste label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted-dark); }
.filter-leiste input, .filter-leiste select { min-height: 2.4rem; }
.filter-leiste .suche { flex: 1 1 14rem; }
.daten-kacheln { margin-top: .5rem; }
.sortier-knopf { all: unset; cursor: pointer; font: inherit; color: inherit; white-space: nowrap; }
.sortier-knopf:focus-visible { outline: 2px solid #f5c400; outline-offset: 2px; }
.sortier-knopf[data-richtung=auf]::after { content: " ▲"; }
.sortier-knopf[data-richtung=ab]::after { content: " ▼"; }
table.sortierbar td { vertical-align: top; }

/* Auswertungsbereich: Tabs, Balken */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem 0 .5rem; margin: .75rem 0 .25rem; border-bottom: 1px solid var(--line-dark); scrollbar-width: thin; }
.tabs a { flex: 0 0 auto; padding: .5rem .8rem; border-radius: 8px 8px 0 0; color: var(--muted-dark); text-decoration: none; white-space: nowrap; font-size: .92rem; }
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tabs a.aktiv { color: #0a0c10; background: #f5c400; font-weight: 700; }
.schnellwahl { display: flex; flex-wrap: wrap; gap: .35rem; }
.balken-liste { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.balken-liste li { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr auto; gap: .6rem; align-items: center; font-size: .9rem; }
.balken-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken-spur { height: .7rem; background: rgba(255, 255, 255, .06); border-radius: 999px; overflow: hidden; }
.balken-wert { display: block; height: 100%; background: #f5c400; border-radius: 999px; }
.balken-zahl { color: var(--muted-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabellen-suche { display: grid; gap: .25rem; max-width: 22rem; margin: .5rem 0; font-size: .85rem; color: var(--muted-dark); }
.daten-details { margin-top: .75rem; }
.daten-details summary { cursor: pointer; color: #f5c400; }
.datenschutz-hinweis { margin-top: 1.5rem; }
@media (max-width: 560px) { .balken-liste li { grid-template-columns: 1fr auto; } .balken-spur { grid-column: 1 / -1; order: 3; } }

/* Freitext-Spalten (Kommentare) brechen um statt die Tabelle seitlich zu schieben; Scrollbalken im dunklen Stil */
td.lang { white-space: normal; min-width: 18rem; max-width: 46rem; overflow-wrap: anywhere; }
.tw { scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; }
