/* Schuck IT – Farben aus dem Logo */
:root {
  --ink: #0e191d;
  --pale: #e7f2f9;
  --steel: #dae3ea;
  --line: #c9d5de;
  --muted: #5c6c78;
  --bg: #f4f8fb;
  --card: #ffffff;
  --ok: #1e7f4f; --ok-bg: #e5f4ec;
  --warn: #8a5a00; --warn-bg: #fdf3dc;
  --err: #a42828; --err-bg: #fbe7e7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); }
img, svg { max-width: 100%; }
a { color: var(--ink); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 1.25rem; background: #fff; border-bottom: 1px solid var(--steel); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.brand img { height: 44px; }
.brand small { color: var(--muted); font-weight: 400; }
.top nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.top nav a { text-decoration: none; padding: .4rem .7rem; border-radius: 6px; color: var(--muted); }
.top nav a.active, .top nav a:hover { background: var(--pale); color: var(--ink); }
.top nav form { margin: 0; }
.emergency { background: var(--warn-bg); color: var(--warn); padding: .5rem 1.25rem; font-size: .9rem; border-bottom: 1px solid #f3dca5; }

main { max-width: 1000px; margin: 1.5rem auto; padding: 0 1rem; }
main.narrow { max-width: 460px; margin-top: 2.5rem; }
.logo-big { text-align: center; margin-bottom: 1rem; }
.logo-big img { height: 110px; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.title-row h1 { margin: 0; }

.card { background: var(--card); border: 1px solid var(--steel); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(14,25,29,.04), 0 4px 16px rgba(14,25,29,.05); }
.card.highlight { border-color: var(--ink); background: var(--pale); }
.card.danger { border-color: #efc6c6; }
.narrow-card { max-width: 460px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row form { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.warn-text { color: var(--warn); }

label { display: flex; flex-direction: column; gap: .25rem; font-weight: 500; }
input, select { font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
input:disabled { background: #eef2f5; }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-family: Consolas, monospace; }
fieldset { border: 1px solid var(--steel); border-radius: 10px; padding: .75rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
legend { font-weight: 600; padding: 0 .4rem; }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; }
label.check input { width: auto; margin-top: .3rem; }

button, .button { display: inline-block; font: inherit; padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #f0f4f7; }
.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.primary:hover { background: #2a3a42; }
button.danger { border-color: var(--err); color: var(--err); }
button.link { border: 0; background: none; color: var(--muted); padding: .4rem .7rem; }
button.link:hover { color: var(--ink); background: var(--pale); }
button.small { padding: .3rem .7rem; font-size: .85rem; }
button:disabled { opacity: .6; cursor: wait; }

.flash { border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1rem; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tile { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; background: #fff; border: 1px solid var(--steel);
  border-radius: 12px; text-decoration: none; box-shadow: 0 1px 2px rgba(14,25,29,.04); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.tile strong { display: block; font-size: 1.1rem; }
.tile .muted { font-size: .9rem; }
.tile-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--pale); display: grid; place-items: center; }
.tile-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--steel); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
tr.disabled td { color: var(--muted); }
td form { margin: 0; }
.tag { display: inline-block; font-size: .8rem; padding: .05rem .5rem; border-radius: 999px; background: var(--steel); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.err { background: var(--err-bg); color: var(--err); }

.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .75rem; }
.qr { margin: .75rem 0; }
.qr img { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--steel); border-radius: 8px; }
.secret { font: 1.15rem/1.4 Consolas, monospace; letter-spacing: .05em; background: var(--pale); padding: .6rem .8rem; border-radius: 8px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1.5rem; list-style: none; padding: 0; font-size: 1.15rem; }
.codes code { font-family: Consolas, monospace; white-space: nowrap; }
@media (max-width: 380px) { .codes { grid-template-columns: 1fr; } }
details.hint { margin: .75rem 0; color: var(--muted); }
details.hint summary { cursor: pointer; }
.search input { max-width: 360px; }

@media (max-width: 700px) {
  .grid2 { grid-template-columns: 1fr; }
  main { margin-top: 1rem; }
  table thead { display: none; }
  table tr { display: block; border-bottom: 1px solid var(--steel); padding: .4rem 0; }
  table td { display: block; border: 0; padding: .15rem 0; }
  .brand img { height: 36px; }
}

@media print {
  .top, .row, .button, button, .emergency { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
}
