/* ===========================================================================
   design.css: Erscheinungsbild ab 9.0
   ---------------------------------------------------------------------------
   Wird NACH projekt.css geladen und legt nur das Aussehen darüber: Schrift,
   Flächen, Schatten, Kopfband, Startseite. Funktion und Aufbau der Seiten
   stehen weiterhin in projekt.css. Wer zum alten Aussehen zurück will,
   bindet diese Datei nicht mehr ein (seitengeruest.php) und nimmt die alte
   farbwelt/labor.css.

   Regel wie überall: keine festen Farbwerte, nur Variablen der Farbwelt.
   ========================================================================= */

/* --- Schrift: Inter, selbst gehostet (kein Google-Dienst) ----------------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("schrift/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {   /* Polnisch und weitere Zeichen (ą ę ł ń ś ź ż …) */
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("schrift/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
body { font-family: var(--schrift); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
       background: var(--hg); letter-spacing: -.003em; }
h1, h2, h3 { letter-spacing: -.018em; }

/* --- Kopfband: bleibt beim Scrollen oben, Marke mit Zeichen --------------- */
.band6 { position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 6px 20px rgba(5,15,25,.18); } /* feste-farbe-ok: Schatten */
.band6__zeile { min-height: 64px; }
.band6__marke { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; }
.band6__marke::before {
  content: ""; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px;
  background: var(--akzent) no-repeat center / 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3.5 4.2 6 7.4 6 10.5a6 6 0 0 1-12 0C6 10.4 8.5 7.2 12 3z'/%3E%3Cpath d='M9.5 14.5a2.5 2.5 0 0 0 2.5 2.5'/%3E%3C/svg%3E");
}
.band6__marke h1 { font-weight: 700 !important; letter-spacing: -.02em; }
.band6__marke p  { opacity: .95; }
.band6__reiter a { border-radius: 999px !important; transition: background .15s, color .15s; font-weight: 500; }
.band6__reiter a:hover { background: var(--dunkel-flaeche); color: var(--dunkel-text); }
.band6__reiter a[aria-current="page"] { background: var(--akzent) !important; color: var(--akzent-text) !important; font-weight: 600; }
.band6 .sprachwahl { background: var(--dunkel-flaeche); padding: 3px; border-radius: 999px; gap: 2px; }
.band6 .sprachwahl a, .band6 .sprachwahl span { border-radius: 999px; border: 0; padding: 5px 11px; font-size: .82rem; }
.band6 .sprachwahl [aria-current] { background: var(--flaeche) !important; color: var(--text) !important; }
/* Das Ergebnis rechts haftet unter dem Kopfband statt dahinter */
.rz__haft { top: 80px; }
@media (max-width: 720px) {
  .band6__zeile { min-height: 56px; }
  .band6__marke::before { width: 30px; height: 30px; border-radius: 9px; background-size: 17px 17px; }
}

/* --- Flächen: weiche Schatten statt harter Rahmen ------------------------- */
.rz__block, .startkarte, .startzahl, .startstand__karte, .fliese, .karte,
.s-labor .werkbank__block, .s-hilfe .werkbank__block, .s-grundlagen .werkbank__block, .s-impressum .werkbank__block,
.s-faelle .werkbank__block, .s-zugang .werkbank__block, .s-verwaltung .werkbank__block {
  border-color: var(--rand-fein); box-shadow: var(--schatten); border-radius: var(--radius-gross);
}
.rz__block { padding: 20px 22px; }
.rz__block h2 { font-size: 1.08rem; font-weight: 650; }
.rz__zeile { border-top-color: var(--rand-fein); }

/* --- Felder und Knöpfe ---------------------------------------------------- */
.rz__feld, .rz__wahl, .rz__voll, input[type="text"], input[type="email"], input[type="number"], input[type="password"],
input[type="date"], select, textarea { border-radius: var(--radius); }
.rz__feld { border-color: var(--rand); background: var(--flaeche); }
.rz__feld--soll, .rz__wahl--soll { background: var(--flaeche2); }
/* Auswahllisten in "Vorgabe gegen Ist" waren auf 140 px abgeschnitten
   ("Tauchen ohı", "Übliche Bea"): sie dürfen jetzt den freien Platz nehmen. */
.rz__zeile > .rz__wahl { flex: 1 1 140px; max-width: 230px; }
.knopf { border-radius: var(--radius); font-weight: 600; transition: transform .08s, box-shadow .15s, filter .15s; }
.knopf:not(.knopf--leer):not(.knopf--schwach):not(:disabled) { box-shadow: 0 1px 2px rgba(10,60,120,.25); } /* feste-farbe-ok: Schatten */
.knopf:not(:disabled):hover { filter: brightness(1.05); }
.knopf:not(:disabled):active { transform: translateY(1px); }
.knopf--leer { background: var(--flaeche); }
.pille { border-radius: 999px; }

/* --- Ergebniskarte: Farbe mit leichtem Verlauf, grosse Zahl -------------- */
.rz__urteil { border-radius: 18px; box-shadow: var(--schatten-hoch); padding: 22px 24px 18px; }
.rz__urteil--rot   { background: linear-gradient(140deg, var(--fehler), color-mix(in srgb, var(--fehler) 78%, black)); }
.rz__urteil--gelb  { background: linear-gradient(140deg, var(--warn),   color-mix(in srgb, var(--warn) 80%, black)); }
.rz__urteil--gruen { background: linear-gradient(140deg, var(--erfolg), color-mix(in srgb, var(--erfolg) 78%, black)); }
.rz__prozent { font-weight: 800; letter-spacing: -.035em; }

/* --- Reiter in Karten (Woran es liegt / Weg zurück / Kurven) -------------- */
.rz__reiter { border-bottom-color: var(--rand-fein); }
.rz__reiterknopf { border-radius: var(--radius) var(--radius) 0 0; }

/* --- Startseite ----------------------------------------------------------- */
.held { padding-inline: max(30px, var(--rand-aussen)); padding-block: 40px 18px;
        display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.held__text h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.07; letter-spacing: -.035em;
                 font-weight: 800; margin: 0 0 14px; }
.held__text p  { font-size: 1.12rem; line-height: 1.55; color: var(--schwach); margin: 0 0 22px; max-width: 56ch; }
.held__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.held__knoepfe .knopf { min-height: 50px; padding-inline: 22px; font-size: 1rem; }
.held__karte { position: relative; border-radius: 22px; padding: 26px 26px 22px; color: var(--akzent-text);
               background: linear-gradient(150deg, var(--dunkel-flaeche), var(--dunkel)); box-shadow: var(--schatten-hoch); overflow: hidden; }
.held__karte::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
                      background: radial-gradient(circle, color-mix(in srgb, var(--akzent) 55%, transparent), transparent 70%); }
.held__karte .uz { color: var(--dunkel-schwach); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.held__wert { font-size: 3.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.held__wert--schlecht { color: color-mix(in srgb, var(--fehler) 55%, white); }
.held__wert--knapp    { color: color-mix(in srgb, var(--warn) 55%, white); }
.held__wert--gut      { color: color-mix(in srgb, var(--erfolg) 55%, white); }
.held__karte p { margin: 10px 0 0; color: var(--dunkel-schwach); line-height: 1.5; font-size: .93rem; position: relative; }
.held__karte p b { color: var(--dunkel-text); }
.held__balken { display: grid; gap: 8px; margin-top: 16px; position: relative; }
.held__balken div { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 10px; font-size: .84rem; color: var(--dunkel-schwach); }
.held__balken i { display: block; height: 7px; border-radius: 4px; background: var(--dunkel-flaeche); overflow: hidden; }
.held__balken i b { display: block; height: 100%; border-radius: 4px; background: var(--akzent); }
.held__balken em { font-style: normal; text-align: right; color: var(--dunkel-text); font-variant-numeric: tabular-nums; }

.startgruppe { padding-inline: max(30px, var(--rand-aussen)); padding-block: 18px 4px; }
.startgruppe h2 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--schwach);
                  font-weight: 650; margin: 0 0 12px; }
.startgruppe .brett { padding: 0 !important; }
.brett--rechner { grid-template-columns: repeat(3, 1fr); }
.brett--werkzeuge { grid-template-columns: repeat(4, 1fr); }
.brett--werkzeuge .fliese { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; padding: 14px 16px; }
.brett--werkzeuge .fliese__sym { width: 38px; height: 38px; }
.fliese { transition: transform .15s, box-shadow .15s, border-color .15s; }
.fliese:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); border-color: var(--rand); }
.fliese__sym { background: var(--akzent-hell); border-color: transparent; border-radius: 11px; }
.brett--rechner .fliese { min-height: 150px; padding: 20px; }
.brett--rechner .fliese b { font-size: 1.08rem; margin-bottom: 3px; }
.brett--rechner .fliese--gross { grid-column: auto; background: linear-gradient(150deg, var(--akzent), color-mix(in srgb, var(--akzent) 75%, black)); }
@media (min-width: 861px) { .brett--rechner .fliese--gross { grid-column: auto; min-height: 150px; } }
.fliese__pfeil { margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--akzent); }
.fliese--gross .fliese__pfeil { color: var(--akzent-text); }

.startzahlen { padding-block: 22px 4px; grid-template-columns: repeat(2, 1fr); }
.startzahl { border-left-width: 1px; padding: 18px 20px; }
.startzahl .uz { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--schwach); margin: 0; }
.startzahl__wert { font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; color: var(--akzent); }

.startstand { padding-block: 22px 8px; }
.startstand__karte { border-left: 1px solid var(--rand-fein); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.startstand__karte .pille { grid-row: 1 / span 3; margin-top: 2px; }
.startstand__karte p { margin: 0 !important; font-size: .92rem; color: var(--schwach); }
.startfliess { padding-block: 16px 40px; }

@media (max-width: 960px) {
  .held { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 10px; }
  .brett--werkzeuge { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) { .brett--rechner { grid-template-columns: 1fr; } .brett--rechner .fliese { min-height: 0; } }
@media (max-width: 640px) {
  .held, .startgruppe, .startzahlen, .startstand, .startfliess { padding-inline: 16px; }
  .held__wert { font-size: 3rem; }
  .startzahlen { grid-template-columns: 1fr; }
  .startstand__karte { grid-template-columns: 1fr; }
  .startstand__karte .pille { grid-row: auto; justify-self: start; }
  .brett--werkzeuge { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brett--werkzeuge .fliese { padding: 12px; gap: 10px; }
}

/* --- Fusszeile ------------------------------------------------------------ */
.seitenfuss { border-top: 1px solid var(--rand); background: var(--flaeche); padding-block: 22px; }

@media print {
  .band6 { position: static; box-shadow: none; }
  .rz__urteil, .held__karte { box-shadow: none; }
}

/* Nur ein Rechner freigeschaltet: die Karte nimmt die ganze Reihe, liegend */
.brett--n1 { grid-template-columns: 1fr !important; }
.brett--n1 .fliese--gross { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; }
.brett--n1 .fliese__pfeil { margin: 0 0 0 auto; }
.brett--n2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .brett--n2 { grid-template-columns: 1fr; } .brett--n1 .fliese__pfeil { display: none; } }
.fliese b { color: var(--text); }
.fliese--gross b { color: var(--akzent-text); }
/* Kopfband in einer Zeile halten: bei acht Reitern wird es sonst zweizeilig */
.band6__zeile { flex-wrap: nowrap; gap: 18px; }
.band6__reiter { gap: 2px !important; margin-left: 0 !important; }
.band6__reiter a { padding: 7px 11px !important; font-size: .9rem !important; }
.band6__marke { flex: 0 1 auto; min-width: 0; }
.band6__marke h1, .band6__marke p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1360px) { .band6__marke p { display: none; } }
@media (max-width: 720px)  { .band6__marke p { display: block; } .band6__zeile { flex-wrap: wrap; } }
.rz__zeile > .rz__wahl { max-width: 260px; }
.band6 .band6__zeile { align-items: center !important; }
.band6__marke h1 { line-height: 1.25 !important; }
@media (max-width: 1360px) and (min-width: 721px) { .band6__marke::before { grid-row: auto; } }
/* Am Telefon gibt es die Tab-Leiste unten; ein haftendes Kopfband oben
   nähme dauerhaft ein Achtel des Bildschirms weg. */
@media (max-width: 720px) { .band6 { position: static; } }
/* Am Telefon darf die Unterzeile umbrechen, statt mit "…" abgeschnitten zu werden */
@media (max-width: 720px) { .band6__marke h1, .band6__marke p { white-space: normal; overflow: visible; } }

/* 9.3: Sicherung in der Verwaltung */
#sicherung form + h3 { margin-top: calc(var(--luft) * 1.4); }
input[type="file"] { font: inherit; font-size: 16px; width: 100%; min-height: 48px; padding: 10px 12px;
                     border: 1px dashed var(--rand); border-radius: var(--radius); background: var(--flaeche2); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 6px 14px;
                     border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); color: var(--text); cursor: pointer; }
