/* WLC Vorschlagsmaske – mobile first im WLC-Design.
   Farben und Schriftstapel wie auf wlc-online.com (Stand 16.09.2026). Würth Sans ist lizenzpflichtig und wird
   nicht ausgeliefert; es greift derselbe Ersatz-Stapel, den WLC selbst definiert (Futura, dann Systemschrift). */
:root {
  --rot: #CC0000;
  --rot-dunkel: #A30000;
  --rot-hell: #FBEAEA;
  --schwarz: #000000;
  --grau-dunkel: #605D5C;
  --grau-rahmen: #8C8A89;
  --grau-linie: #BFBFBF;
  --grau-fein: #DEDEDE;
  --grau-hell: #EDEDED;
  --weiss: #FFFFFF;
  --ok: #1E7B3A;
  --radius: 4px;
  --tap: 46px;
  --schrift: futura, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-display: futura, "Roboto Condensed", sans-serif-condensed, "Arial Narrow", Bahnschrift, -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  color: var(--schwarz);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--rot); }
.icon { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }

h1 {
  margin: 0 0 6px;
  font-family: var(--schrift-display);
  font-stretch: condensed;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.unterzeile { margin: 0 0 16px; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--rot); }

/* Kopf: Logo links, Sprache rechts, darunter die graue Navigationsleiste */
.kopf { background: var(--weiss); }
.kopf-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 6px 6px 6px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
}
.marke { display: block; flex: 0 1 220px; min-width: 0; line-height: 0; }
.marke img { display: block; width: 100%; height: auto; }

.sprachwahl { position: relative; flex: none; }
.sprachwahl summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}
.sprachwahl summary::-webkit-details-marker { display: none; }
.sprachwahl summary .icon { color: var(--rot); }
.sprachwahl summary .icon:last-child { width: 18px; height: 18px; transition: transform .15s ease; }
.sprachwahl[open] summary { background: var(--grau-hell); }
.sprachwahl[open] summary .icon:last-child { transform: rotate(180deg); }
.sprachwahl ul {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 210px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--weiss);
  border-top: 2px solid var(--rot);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}
.sprachwahl li a { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 16px; color: var(--schwarz); text-decoration: none; }
.sprachwahl li a .code { width: 26px; font-size: 14px; font-weight: 800; color: var(--grau-dunkel); }
.sprachwahl li a:hover { background: var(--grau-hell); }
.sprachwahl li a[aria-current] { font-weight: 800; color: var(--rot); }
.sprachwahl li a[aria-current] .code { color: var(--rot); }

.hauptnavigation { display: flex; gap: 4px; padding: 0 6px; background: var(--grau-hell); overflow-x: auto; }
.hauptnavigation a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 3px 10px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--schwarz);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.hauptnavigation a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--rot); }

/* Inhalt */
.inhalt { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 16px 24px; }

.fortschritt { height: 4px; overflow: hidden; background: var(--grau-fein); }
.fortschritt-balken { display: block; width: 25%; height: 100%; background: var(--rot); transition: width .25s ease; }
.schritt-anzeige { margin: 10px 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--grau-dunkel); }
html:not(.js) .fortschritt, html:not(.js) .schritt-anzeige { display: none; }

/* Abschnitte im WLC-Stil: rote Linie oben, keine Box */
.schritt, .karte {
  min-width: 0;
  margin: 0 0 20px;
  padding: 16px 0 0;
  background: none;
  border: 0;
  border-top: 2px solid var(--rot);
}
.js .schritt { padding-top: 0; border-top: 0; }  /* der Fortschrittsbalken trennt bereits */
.schritt legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.schritt legend + * { clear: both; }
.schritt legend:focus { outline: none; }
.js .schritt:not(.aktiv) { display: none; }

/* Felder */
.feld { margin-bottom: 16px; }
.feld:last-child { margin-bottom: 0; }
label, .label { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 800; }
input[type=text], select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--schwarz);
  background-color: var(--weiss);
  border: 1px solid var(--grau-rahmen);
  border-radius: var(--radius);
  appearance: none;
}
select {
  padding-right: 40px;
  background-image: url("../img/pfeil.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea { min-height: 120px; resize: vertical; }
input[type=text]:focus, select:focus, textarea:focus { border-color: var(--schwarz); box-shadow: inset 0 0 0 1px var(--schwarz); outline: none; }
input[type=file] { width: 100%; font: inherit; font-size: 14px; }

.hinweis { display: flex; justify-content: space-between; gap: 12px; margin: 5px 0 0; font-size: 13px; color: var(--grau-dunkel); }
.hinweis-block { display: block; margin: 0 0 14px; font-size: 14px; }
.zaehler { white-space: nowrap; font-variant-numeric: tabular-nums; }
.zaehler.knapp { font-weight: 800; color: var(--rot); }
.feld-fehler { display: none; margin: 5px 0 0; font-size: 14px; font-weight: 800; color: var(--rot); }
.hat-fehler .feld-fehler { display: block; }
.hat-fehler input[type=text], .hat-fehler select, .hat-fehler textarea { border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); }

/* Kategorie-Kacheln */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kachel { position: relative; margin: 0; font-weight: 700; }
.kachel-inhalt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  padding: 10px 6px;
  text-align: center;
  background: var(--weiss);
  border: 1px solid var(--grau-linie);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.kachel-inhalt .icon { width: 26px; height: 26px; color: var(--grau-dunkel); }
.kachel input:checked + .kachel-inhalt { background: var(--rot-hell); border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); }
.kachel input:checked + .kachel-inhalt .icon { color: var(--rot); }
.kachel input:focus-visible + .kachel-inhalt { outline: 3px solid var(--rot); outline-offset: 2px; }
.hat-fehler .kachel-inhalt { border-color: var(--rot); }

.versteckt, .kachel input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 11px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--weiss);
  text-align: center;
  text-decoration: none;
  background: var(--rot);
  border: 1px solid var(--rot);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf:disabled { opacity: .55; cursor: default; }
.knopf-zweit { color: var(--schwarz); background: var(--weiss); border-color: var(--grau-dunkel); }
.knopf-zweit:hover { background: var(--grau-hell); border-color: var(--grau-dunkel); }
.knopf .icon { color: var(--rot); }
.knopf:not(.knopf-zweit) .icon { color: currentColor; }

.aktionen {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 12px 0 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--weiss) 35%);
}
.aktionen .knopf { flex: 1; }
.aktionen [data-aktion="zurueck"] { flex: 0 0 auto; width: auto; }
html:not(.js) .nur-js { display: none !important; }
html:not(.js-fotos) .nur-js-fotos { display: none !important; }
.js-fotos #fotos { display: none; }

/* Fotos */
.foto-knoepfe { display: grid; gap: 10px; }
.foto-vorschau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.foto-vorschau:empty { display: none; }
.foto-vorschau li { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--grau-hell); border-radius: var(--radius); }
.foto-vorschau canvas { display: block; width: 100%; height: 100%; }
.foto-vorschau .ohne-vorschau { display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--grau-dunkel); }
.foto-vorschau button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  color: var(--weiss);
  background: rgba(0, 0, 0, .72);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* Absenden */
.zusammenfassung { display: grid; gap: 6px; margin: 0 0 16px; font-size: 14px; }
.zusammenfassung div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
.zusammenfassung dt { color: var(--grau-dunkel); }
.zusammenfassung dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.datenschutz { margin-bottom: 16px; padding: 12px 14px; font-size: 14px; background: var(--grau-hell); }
.datenschutz h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.datenschutz h2 .icon { color: var(--rot); }
.datenschutz p { margin: 0; }
.datenschutz details { margin-top: 8px; }
.datenschutz summary { padding: 6px 0; font-weight: 800; color: var(--rot); cursor: pointer; }
.checkbox { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 700; cursor: pointer; }
.checkbox input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--rot); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen */
.meldung { margin: 0 0 16px; padding: 11px 13px; font-size: 14px; font-weight: 700; }
.meldung-fehler { color: var(--rot-dunkel); background: var(--rot-hell); border-left: 4px solid var(--rot); }
.meldung-warnung { color: var(--schwarz); background: var(--grau-hell); border-left: 4px solid var(--rot); text-align: left; }
.ergebnis-meldung { margin: 18px 0 0; }

/* Bestätigung */
.bestaetigung { display: grid; justify-items: center; gap: 14px; text-align: center; }
.bestaetigung .meldung { margin: 0; }
.bestaetigung h1 { font-size: 24px; }
.haken { display: grid; place-items: center; width: 56px; height: 56px; color: var(--weiss); background: var(--ok); border-radius: 50%; }
.haken .icon { width: 32px; height: 32px; stroke-width: 3; }
.kleinlabel { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--grau-dunkel); }
.nummer {
  margin: 0;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: clamp(20px, 6.8vw, 28px);
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  border: 2px dashed var(--schwarz);
  border-radius: var(--radius);
  user-select: all;
}
.qr { display: grid; justify-items: center; gap: 6px; margin: 4px 0; }
.qr svg { width: 168px; height: 168px; }
.qr figcaption { font-size: 14px; color: var(--grau-dunkel); }

/* Status */
.status-suche { display: grid; gap: 14px; }
.status-suche .feld { margin: 0; }
.eingabe-nummer { font-family: var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.ergebnis { display: grid; gap: 14px; }
.status-badge { justify-self: start; margin: 0; padding: 6px 14px; font-size: 17px; font-weight: 800; border-radius: var(--radius); }
.status-eingegangen { color: var(--schwarz); background: var(--grau-hell); }
.status-in_pruefung { color: #5C4400; background: #FFEDB3; }
.status-umgesetzt { color: #145C29; background: #D9F0E0; }
.status-nicht_umgesetzt { color: var(--weiss); background: var(--grau-dunkel); }
.details { display: grid; gap: 14px; margin: 0; }
.details dt { font-size: 14px; font-weight: 800; color: var(--grau-dunkel); }
.details dd { margin: 4px 0 0; }
.rueckmeldung { padding: 12px 14px; white-space: pre-line; background: var(--grau-hell); }
.mit-icon { display: flex; align-items: center; gap: 8px; }
.mit-icon .icon { color: var(--rot); }

/* Fuß wie auf wlc-online.com: hellgraue Fläche */
.fuss {
  display: grid;
  gap: 4px;
  padding: 16px max(16px, calc(50% - 264px));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  font-size: 13px;
  background: var(--grau-hell);
}
.fuss p { margin: 0; }
.fuss-marke { font-weight: 800; }
.fuss-links { display: flex; flex-wrap: wrap; margin-top: 6px !important; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.fuss-links a + a::before { content: ""; width: 1px; height: 14px; margin: 0 12px; background: var(--grau-linie); }
.fuss-hinweis { color: var(--grau-dunkel); }

/* Ansichts-Umschalter des Mockups: Mitarbeiter <-> Abteilungsleiter */
.ansicht { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 10px; background: #262626; }
.ansicht-label { font-size: 12px; font-weight: 700; color: #BFBFBF; }
.ansicht-schalter { display: inline-flex; gap: 2px; padding: 3px; background: #454343; border-radius: 999px; }
.ansicht-schalter a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}
.ansicht-schalter a small { font-size: 11px; font-weight: 600; color: #DEDEDE; }
.ansicht-schalter a:hover { background: #5a5857; }
.ansicht-schalter a[aria-current="page"] { background: #CC0000; }
.ansicht-schalter a[aria-current="page"] small { color: #FFFFFF; }
.ansicht-schalter .icon { width: 16px; height: 16px; }
.ansicht-schalter a:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 1px; }
@media (max-width: 720px) {
  .ansicht-label, .ansicht-schalter a small { display: none; }
  /* Der Umschalter ist auf dem Handy die am häufigsten getippte Fläche: fingerfreundlich halten */
  .ansicht-schalter a { min-height: 40px; padding: 5px 14px; }
}

@media (max-width: 360px) {
  h1 { font-size: 23px; }
  .marke { flex-basis: 190px; }
  .hauptnavigation a { padding: 3px 8px 0; font-size: 14px; }
}
@media (min-width: 720px) {
  .inhalt { padding-top: 28px; }
  h1 { font-size: 30px; }
  .kacheln { grid-template-columns: repeat(4, 1fr); }
  .kopf-zeile { padding-left: max(16px, calc(50% - 264px)); padding-right: max(10px, calc(50% - 270px)); }
  .hauptnavigation { padding: 0 max(6px, calc(50% - 274px)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
