/* Toolbox - gemeinsames Stylesheet aller Werkzeuge.
   Farben wie die Verteilerseite assistuk-apps.net; helle Flaeche, damit
   Formulare und Tabellen gut lesbar bleiben. Zielgroessen ab 44 px,
   weil auch mit Blick und Taster bedient wird. */
:root {
  --blue: #4b698c; --blue-dark: #3a5a7c; --deep: #1a3a6a; --deep-2: #0b2a56;
  --ink: #1f2d3d; --muted: #5a6b80; --line: #dfe5ee; --card: #ffffff; --ground: #f3f6fa;
  --accent: #ee7f00; --ok: #1f6b3a; --ok-bg: #e6f4ea; --warn: #8a4b00; --warn-bg: #fff4e0;
  --bad: #9b1c1c; --bad-bg: #fdecec; --focus: #ffd27a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--ground); line-height: 1.55; min-height: 100vh;
}
a { color: var(--deep); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 4px solid var(--focus); outline-offset: 3px;
}

/* Kopf ueber allem, wie auf der Verteilerseite */
.kopf {
  background: linear-gradient(165deg, #1a3a6a 0%, #173256 45%, #0b2a56 100%);
  color: #fff; padding: 1.4rem 1.1rem 1.7rem;
}
.kopf .innen { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.kopf img.marke { height: 44px; width: auto; background: #fff; border-radius: 12px; padding: 7px 12px; }
.kopf h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; }
.kopf p { color: #bcd0ec; font-size: .98rem; width: 100%; max-width: 640px; }
.kopf nav a { color: #cfe0f5; text-decoration: none; font-weight: 600; margin-right: 1.2rem; }
.kopf nav a:hover { color: #fff; text-decoration: underline; }
.kopf .sprache { margin-left: auto; display: flex; gap: .3rem; }
.kopf .sprache button {
  background: transparent; color: #cfe0f5; border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px; min-height: 44px; min-width: 44px; padding: 0 .7rem; font: inherit; font-weight: 700; cursor: pointer;
}
.kopf .sprache button[aria-pressed="true"] { background: #fff; color: var(--deep); border-color: #fff; }

main { max-width: 960px; margin: 0 auto; padding: 1.6rem 1.1rem 4rem; }
.karte {
  background: var(--card); border-radius: 16px; padding: 1.4rem 1.4rem 1.5rem; margin-bottom: 1.2rem;
  box-shadow: 0 6px 22px rgba(7,18,40,.10); border: 1px solid var(--line);
}
.karte h2 { font-size: 1.22rem; font-weight: 800; margin-bottom: .5rem; }
.karte h3 { font-size: 1.02rem; font-weight: 700; margin: 1.1rem 0 .4rem; }
.karte p { margin: .35rem 0; }
.leise { color: var(--muted); font-size: .93rem; }
.schritt { display: flex; gap: .8rem; align-items: baseline; }
.schritt .nr {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--deep); color: #fff;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
}

/* Ablage fuer die Datei */
.ablage {
  margin: .9rem 0; padding: 2.2rem 1.2rem; text-align: center; cursor: pointer;
  border: 3px dashed #b8c6d9; border-radius: 14px; background: #f7f9fc; min-height: 120px;
}
.ablage:hover, .ablage.bereit, .ablage:focus-visible { border-color: var(--deep); background: #eef3fa; }
.ablage strong { display: block; font-size: 1.08rem; margin-bottom: .3rem; }
.ablage input[type=file] { display: none; }

/* Knoepfe und Felder */
button.haupt, button.neben {
  font: inherit; font-weight: 700; min-height: 52px; padding: .7rem 1.4rem; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--deep); display: inline-flex; align-items: center; gap: .5rem;
}
button.haupt { background: var(--deep); color: #fff; }
button.haupt:hover { background: var(--deep-2); }
button.neben { background: #fff; color: var(--deep); }
button.neben:hover { background: #eef3fa; }
button:disabled { opacity: .55; cursor: default; }
label.feld { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
input[type=text] {
  font: inherit; min-height: 48px; padding: .5rem .8rem; border: 2px solid #b8c6d9; border-radius: 10px;
  width: 100%; max-width: 20rem; background: #fff; color: var(--ink);
}
.zeile { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.pfeil { font-size: 1.4rem; color: var(--muted); }

/* Hinweise */
.hinweis { padding: .75rem 1rem; border-radius: 10px; margin: .7rem 0; border: 1px solid var(--line); background: #f7f9fc; }
.hinweis.gut { background: var(--ok-bg); border-color: #b9dfc5; color: var(--ok); }
.hinweis.warnung { background: var(--warn-bg); border-color: #f3d39a; color: var(--warn); }
.hinweis.fehler { background: var(--bad-bg); border-color: #f0b8b8; color: var(--bad); }
.hinweis strong { font-weight: 800; }
main > .hinweis.warnung { border-width: 2px; font-weight: 600; margin: 0 0 1.2rem; }

/* Tabellen */
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: .5rem 0; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rollbar { overflow-x: auto; }
.zustand { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.zustand.neu { background: var(--ok-bg); color: var(--ok); }
.zustand.bleibt { background: #edf1f6; color: var(--muted); }
.zustand.gesperrt { background: var(--bad-bg); color: var(--bad); }

/* Werkzeugliste auf der Startseite */
.werkzeuge { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
a.werkzeug {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border-radius: 16px; padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: 0 6px 22px rgba(7,18,40,.10); border: 1px solid var(--line);
  transition: transform .16s ease, box-shadow .16s ease; min-height: 180px;
}
a.werkzeug:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(7,18,40,.18); }
a.werkzeug h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
a.werkzeug p { color: var(--muted); font-size: .93rem; flex: 1; }
a.werkzeug .fuer { font-size: .78rem; font-weight: 700; color: var(--deep); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
a.werkzeug .oeffnen {
  align-self: flex-start; margin-top: .9rem; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--blue); color: #fff; font-weight: 600; font-size: .92rem; padding: .6rem 1.2rem; border-radius: 10px; min-height: 44px;
}
a.werkzeug:hover .oeffnen { background: var(--deep); }

details { margin: .8rem 0; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
code { font-family: Consolas, 'Courier New', monospace; font-size: .9em; background: #edf1f6; padding: .05rem .3rem; border-radius: 4px; }
[hidden] { display: none !important; }

footer { text-align: center; color: var(--muted); font-size: .86rem; padding: 1rem 1.1rem 2.5rem; }
footer .haftung { max-width: 62ch; margin: 0 auto .8rem; font-size: .82rem; }
footer .links { display: flex; gap: .4rem 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: .6rem; }
footer a { color: var(--deep); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { a.werkzeug { transition: none; } a.werkzeug:hover { transform: none; } }
@media (max-width: 560px) { .karte { padding: 1.1rem 1rem 1.2rem; } .kopf .sprache { margin-left: 0; } }
