/* reihe-werkzeug.css - Werkzeuge »Nur aus der Reihe« (kkgt.de Bonusbereich, 23.11.2026).
   Im Look des Hubs (bonus.css): Königsblau, Lato, Bandfarben als Akzent. --m/--m2 = Modulfarbe (am body gesetzt).
   Eigene Druckseite: nur der Inhalt, schwarz auf weiß, keine Knöpfe. */

:root {
    --blau: #0d5a9e;
    --blau-dunkel: #0a467c;
    --blau-tief: #072f55;
    --blau-hell: #e8f0f9;
    --text: #1b2430;
    --grau: #5b6675;
    --linie: #dfe6ef;
    --flaeche: #f4f7fb;
    --radius: 14px;
    --schatten: 0 1px 2px rgba(7, 47, 85, 0.06), 0 8px 24px rgba(7, 47, 85, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rw {
    margin: 0;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--flaeche);
    overflow-x: hidden;
}
.rw img { max-width: 100%; display: block; }
.rw a { color: var(--blau); }
.rw h1, .rw h2, .rw h3 { line-height: 1.2; margin: 0; }
.rw :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 6px; }
.rw [hidden] { display: none !important; }

/* Leiste */
.rw-leiste { background: var(--blau-tief); color: #fff; }
.rw-leiste-innen { max-width: 1120px; margin: 0 auto; padding: 0.6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rw-marke { color: #fff !important; text-decoration: none; font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-marke span { font-weight: 900; letter-spacing: 0.06em; margin-right: 0.35rem; }
.rw-zurueck { color: #fff !important; text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 0.35rem 0.85rem; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; white-space: nowrap; }
.rw-zurueck:hover { background: rgba(255,255,255,0.12); }

/* Kopf mit Banner */
.rw-kopf { position: relative; background: linear-gradient(135deg, var(--m) 0%, var(--m2) 100%); color: #fff; overflow: hidden; }
.rw-kopf img { width: 100%; height: auto; aspect-ratio: 16 / 3; max-height: 300px; object-fit: cover; object-position: left bottom; opacity: 0.95; }
.rw-kopf-text { max-width: 1120px; margin: 0 auto; padding: 1.4rem 1.25rem 1.6rem; }
.rw-dach { margin: 0 0 0.35rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.rw-kopf h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 900; }
.rw-kopf-text p:last-child { margin: 0.5rem 0 0; max-width: 62ch; font-size: 1.05rem; opacity: 0.95; }
.rw-embed .rw-kopf img { max-height: 160px; }
.rw-embed .rw-kopf-text { padding-top: 1rem; padding-bottom: 1.1rem; }

.rw-haupt { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }

/* Karten und Bereiche */
.rw-karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.25rem 1.35rem; margin-bottom: 1.1rem; }
.rw-karte > h2 { font-size: 1.2rem; font-weight: 900; color: var(--blau-tief); margin-bottom: 0.25rem; }
.rw-karte > .rw-lead { margin: 0 0 1rem; color: var(--grau); }
.rw-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.8rem 1rem; }
.rw-feld { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.rw-feld > span, .rw-label { font-size: 0.82rem; font-weight: 700; color: var(--grau); }
.rw input[type="text"], .rw input[type="date"], .rw input[type="number"], .rw select, .rw textarea {
    font: inherit; color: var(--text); width: 100%; min-width: 0;
    padding: 0.55rem 0.7rem; border: 1px solid #c9d4e2; border-radius: 10px; background: #fff;
}
.rw textarea { resize: vertical; min-height: 4.2rem; line-height: 1.45; }
.rw input:focus, .rw select:focus, .rw textarea:focus { outline: none; border-color: var(--m); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m) 22%, transparent); }
.rw-hilfe { font-size: 0.86rem; color: var(--grau); margin: 0.3rem 0 0; }

/* Knöpfe */
.rw-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rw-knopf { font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid transparent; background: var(--m); color: #fff; text-decoration: none; }
.rw-knopf:hover { background: var(--m2); }
.rw-knopf.is-rand { background: #fff; color: var(--m2); border-color: color-mix(in srgb, var(--m) 45%, #fff); }
.rw-knopf.is-rand:hover { background: color-mix(in srgb, var(--m) 8%, #fff); }
.rw-knopf.is-leise { background: transparent; color: var(--grau); border-color: var(--linie); }
.rw-knopf.is-klein { padding: 0.35rem 0.75rem; font-size: 0.84rem; }
.rw-werkleiste { position: sticky; top: 0; z-index: 20; background: rgba(244, 247, 251, 0.96); backdrop-filter: blur(6px); padding: 0.6rem 0; margin: -0.5rem 0 1rem; border-bottom: 1px solid var(--linie); }
.rw-gespeichert { font-size: 0.82rem; color: var(--grau); margin-left: auto; }

/* Bandwahl */
.rw-chips { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.5rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rw-chip { font: inherit; font-weight: 900; font-size: 0.95rem; cursor: pointer; flex: 0 0 auto; min-width: 3.4rem; padding: 0.5rem 0.75rem; border-radius: 10px;
    border: 2px solid var(--band); background: #fff; color: var(--text); }
.rw-chip:hover { background: color-mix(in srgb, var(--band) 14%, #fff); }
.rw-chip.is-aktiv { background: var(--band); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }

/* Bandhinweis */
.rw-hinweis { display: flex; gap: 0.9rem; align-items: center; background: #fff; border: 1px solid var(--linie); border-left: 5px solid var(--band); border-radius: 12px; padding: 0.75rem 0.9rem; margin: 1rem 0; }
.rw-hinweis img { width: 54px; height: auto; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.18); flex: 0 0 auto; }
.rw-hw-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.rw-hw-dach { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--grau); }
.rw-hw-text strong { font-size: 0.98rem; color: var(--blau-tief); }
.rw-hw-stelle { font-size: 0.88rem; color: var(--grau); }
.rw-hw-knoepfe { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.rw-hw-knopf { font-size: 0.82rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--blau); color: #fff !important; text-decoration: none; }
.rw-hw-knopf.is-zweit { background: #fff; color: var(--blau) !important; border: 1px solid #b9cbe0; }
.rw-hw-knopf.is-bald { background: var(--flaeche); color: var(--grau) !important; border: 1px dashed #b9c4d2; }

/* Tabellen */
.rw-tabelle { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.rw-tabelle th, .rw-tabelle td { text-align: left; vertical-align: top; padding: 0.5rem 0.55rem; border-bottom: 1px solid var(--linie); }
.rw-tabelle th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grau); background: var(--flaeche); }
.rw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rw-seite { white-space: nowrap; font-size: 0.8rem; font-weight: 700; color: var(--m2); background: color-mix(in srgb, var(--m) 10%, #fff); padding: 0.1rem 0.45rem; border-radius: 6px; }

/* Meldung */
.rw-meldung { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%); background: var(--blau-tief); color: #fff; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; transition: transform 0.25s ease; z-index: 50; }
.rw-meldung.is-da { transform: translate(-50%, 0); }

.rw-nur-druck { display: none; }

@media (max-width: 640px) {
    body.rw { font-size: 15.5px; }
    .rw-haupt { padding: 1rem 1rem 1.5rem; }
    .rw-karte { padding: 1rem; border-radius: 12px; }
    .rw-marke { font-size: 0.85rem; }
    .rw-kopf img { aspect-ratio: auto; height: 120px; }
    .rw-hinweis { align-items: flex-start; }
    .rw-hinweis img { width: 44px; }
    .rw-werkleiste { position: static; background: none; backdrop-filter: none; border-bottom: 0; margin: 0 0 0.6rem; padding: 0; }
    .rw-knopf { font-size: 0.86rem; padding: 0.5rem 0.85rem; }
}

@media print {
    @page { margin: 14mm 12mm; }
    body.rw { background: #fff; font-size: 10.5pt; color: #000; }
    .no-print, .rw-leiste, .rw-kopf, .rw-werkleiste, .rw-hinweis, .rw-chips, .rw-knoepfe, .rw-meldung { display: none !important; }
    .rw-nur-druck { display: block; }
    .rw-haupt { max-width: none; padding: 0; }
    .rw-karte { box-shadow: none; border: 1px solid #999; border-radius: 6px; padding: 8pt 10pt; margin-bottom: 8pt; break-inside: avoid; }
    .rw input, .rw select, .rw textarea { border: none; border-bottom: 1px solid #888; border-radius: 0; padding: 1pt 0; background: transparent; box-shadow: none; }
    .rw textarea { resize: none; overflow: hidden; }
    .rw select { -webkit-appearance: none; appearance: none; }
    .rw-seite { background: none; padding: 0; color: #000; }
    .rw-druckkopf { display: flex !important; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #000; padding-bottom: 4pt; margin-bottom: 8pt; }
    .rw-druckkopf h1 { font-size: 15pt; }
    .rw-druckkopf span { font-size: 8.5pt; }
    .rw-druckfuss { display: block !important; font-size: 8pt; color: #444; margin-top: 8pt; border-top: 1px solid #999; padding-top: 3pt; }
    a { color: #000 !important; text-decoration: none; }
}
.rw-druckkopf, .rw-druckfuss { display: none; }
