/* ===========================================================================
   Startseite - Kommandozentrale 09/2026
   Farben und Grundlagen: css/kz-basis.css. Die Klassen tragen das Praefix
   "start-", damit die alten Regeln im <style>-Block von index.php (h2,
   .anim-video, .fkt ...) nicht greifen bzw. sicher ueberstimmt werden.
   =========================================================================== */

.start {
    text-align: left;
    width: min(1200px, calc(100% - 24px));
    margin: 6px auto 0 auto;
    padding: 0 0 24px 0;
    box-sizing: border-box;
    flex: 1 0 auto;
    color: var(--kz-text);
}

.start h1,
.start h2,
.start h3 {
    font-family: var(--kz-schrift);
    color: var(--kz-text);
    margin: 0;
    padding: 0;
    text-transform: none;
}

/* --- Einstieg ------------------------------------------------------------ */

.start-held {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
    align-items: center;
    padding: 44px 0 36px 0;
}

.start-held h1 {
    margin: 10px 0 14px 0;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.06;
    text-wrap: balance;
}

.start-lead {
    margin: 0;
    max-width: 56ch;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--kz-text-3);
}

.start-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0 0;
}

.start-zahlen {
    display: flex;
    gap: 28px;
    margin: 30px 0 0 0;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--kz-rand);
}
.start-zahlen dt { font-size: 12px; color: var(--kz-text-3); }
.start-zahlen dd { margin: 2px 0 0 0; font-size: 24px; font-weight: 600; color: var(--kz-text); }

/* Vorschaufenster fuer die Animationen: ein angedeuteter Fensterrahmen */
.start-vorschau {
    margin: 0;
    background: var(--kz-panel);
    border: 1px solid var(--kz-rand);
    border-radius: 14px;
    box-shadow: var(--kz-schatten-gross);
    overflow: hidden;
}
.start-vorschau-leiste {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: var(--kz-panel-2);
    border-bottom: 1px solid var(--kz-rand-weich);
}
.start-vorschau-leiste span:not(.kz-mono) {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--kz-rand);
}
.start-vorschau-leiste .kz-mono {
    margin-left: 10px;
    font-size: 11.5px;
    color: var(--kz-text-4);
}
/* Die Animationen haben einen weissen Hintergrund - auch im Dunkelmodus
   bleibt die Flaeche hell, sonst stuende ein grelles Rechteck im Rahmen. */
.start .start-vorschau video.anim-video {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 460px;
    object-fit: contain;
    background: #fff;
    margin: 0;
}
.start .start-vorschau-breit video.anim-video.fkt { max-height: 340px; height: auto; }

/* --- Zitat --------------------------------------------------------------- */

.start-zitat {
    margin: 8px 0 0 0;
    padding: 18px 22px;
    background: var(--kz-panel);
    border: 1px solid var(--kz-rand);
    border-left: 3px solid var(--kz-rot);
    border-radius: 0 12px 12px 0;
}
.start-zitat p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--kz-text-2);
    font-style: italic;
}
.start-zitat cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 12px;
    color: var(--kz-rot);
}

/* --- Bloecke ------------------------------------------------------------- */

.start-block {
    margin: 52px 0 0 0;
    scroll-margin-top: calc(12px + var(--nav-hoehe, 92px) + 20px);
}
.start-block-kopf {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 1px solid var(--kz-rand);
}
.start .start-block-kopf h2 {
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

/* Bundeslaender */
.start-laender {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.start-laender .kz-karte {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 40px 14px 16px;
    background: var(--kz-panel);
    border: 1px solid var(--kz-rand);
    border-radius: 11px;
    box-shadow: var(--kz-schatten);
    text-decoration: none;
    text-align: left;
    white-space: normal;
    transition: border-color .15s ease, background-color .15s ease;
}
.start-land {
    font-size: 15px;
    font-weight: 600;
    color: var(--kz-text);
}
.start-land-info {
    font-size: 11.5px;
    color: var(--kz-text-3);
    font-weight: 400;
}
.start-laender .kz-karte svg {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 16px; height: 16px;
    transform: translateY(-50%);
    color: var(--kz-text-4);
    transition: transform .15s ease, color .15s ease;
}
.start-laender .kz-karte:hover,
.start-laender .kz-karte:focus-visible {
    border-color: var(--kz-akzent-rand);
    background: var(--kz-akzent-bg);
}
.start-laender .kz-karte:hover .start-land { color: var(--kz-akzent-text); }
.start-laender .kz-karte:hover svg { color: var(--kz-akzent); transform: translate(3px, -50%); }
.start-laender .start-karte-weitere { border-style: dashed; background: var(--kz-panel-2); }

/* Ablauf */
.start-ablauf {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: center;
}
.start-schritte {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.start-schritte li {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: var(--kz-panel);
    border: 1px solid var(--kz-rand);
    border-radius: 11px;
}
.start-nr {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--kz-akzent-rand);
    background: var(--kz-akzent-bg);
    color: var(--kz-akzent-text);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.start .start-schritte h3 { font-size: 15px; font-weight: 600; margin: 4px 0 4px 0; }
.start-schritte p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--kz-text-3); }

/* Karten */
.start-karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 52px 0 0 0;
}
.start-karte {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--kz-panel);
    border: 1px solid var(--kz-rand);
    border-radius: 12px;
    box-shadow: var(--kz-schatten);
}
.start .start-karte h2 { font-size: 1.1rem; font-weight: 650; margin-bottom: 2px; }
.start-karte p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--kz-text-3); }
.start-karte b { color: var(--kz-text); font-weight: 600; }
.start-karte .kz-knopf-zweit { margin-top: auto; align-self: flex-start; }

/* Video */
.start-video {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 880px;
    margin: 0 auto;
    background: var(--kz-panel);
    border: 1px solid var(--kz-rand);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--kz-schatten);
}
.start-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .start-held { grid-template-columns: 1fr; padding-top: 26px; gap: 28px; }
    .start-ablauf { grid-template-columns: 1fr; }
    .start-karten { grid-template-columns: 1fr; }
    .start-zahlen { gap: 20px; }
}

/* --- Rot-Akzent (Startseite) ---------------------------------------------- */

/* Blockkoepfe: roter Abschnitt auf der Trennlinie */
.start-block-kopf { position: relative; }
.start-block-kopf::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 56px; height: 3px;
    border-radius: 2px;
    background: var(--kz-rot);
}

/* Schritte: roter Rand links, Nummer als roter Chip */
.start-schritte li {
    border-left: 3px solid var(--kz-rot);
    border-radius: 4px 11px 11px 4px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.start-schritte li:hover {
    transform: translateX(3px);
    border-color: var(--kz-rot-rand);
    border-left-color: var(--kz-rot);
    box-shadow: var(--kz-schatten-gross);
}
.start-nr {
    background: var(--kz-rot);
    border-color: var(--kz-rot);
    color: var(--kz-panel);
}

/* Infokarten: roter Streifen oben, Heben beim Ueberfahren */
.start-karte {
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--kz-rot);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.start-karte:hover {
    transform: translateY(-3px);
    border-color: var(--kz-rot-rand);
    border-top-color: var(--kz-rot);
    box-shadow: var(--kz-schatten-gross);
}
.start-karte h2::before {
    content: "";
    display: block;
    width: 28px; height: 4px;
    margin: 0 0 12px 0;
    border-radius: 2px;
    background: var(--kz-rot);
}
