/* ============================================================
   RAID-Rechner
   Baut auf ../css/style.css auf und benutzt deren Farbvariablen.
   Eigenes Präfix rr-, damit nichts in die übrige Seite ausläuft.
   ============================================================ */

.rr-hero {
    background: var(--grad-hero);
    border-bottom: 1px solid var(--border-soft);
    padding: 132px 0 56px;
}
.rr-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 14px;
}
.rr-hero p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 60ch;
    line-height: 1.75;
}
.rr-hero .breadcrumb {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.rr-hero .breadcrumb a { color: var(--indigo-deep); }
.rr-hero .breadcrumb span { margin: 0 6px; color: var(--muted-2); }

.rr-seite { padding: 56px 0 96px; }

/* ---------- Blöcke ------------------------------------------ */
.rr-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 30px;
    box-shadow: var(--sh-sm);
}
.rr-block + .rr-block { margin-top: 24px; }

.rr-block-kopf {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-soft);
}
.rr-block-kopf h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
}
.rr-block-kopf p {
    font-size: .82rem;
    color: var(--muted);
}

/* ---------- Schächte: das Gehäuse ----------------------------- */
.rr-schaechte-kopf {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px dashed var(--border);
}
.rr-schaechte-kopf label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
}
.rr-alle-label { margin-left: auto; }

.rr-select {
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 9px 12px;
    min-height: 44px;
    cursor: pointer;
    transition: border-color var(--t);
}
.rr-select:hover { border-color: var(--indigo-light); }

/* ---------- Ergebnis ----------------------------------------- */
.rr-block--ergebnis { scroll-margin-top: 96px; }
.rr-ergebnis[aria-busy="true"] { opacity: .55; }

.rr-zahlen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}
.rr-zahl {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px 20px;
}
.rr-zahl--haupt {
    background: var(--indigo-xlight);
    border-color: var(--indigo-border);
}
.rr-zahl-label {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.rr-zahl strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    line-height: 1.15;
}
.rr-zahl--haupt strong { color: var(--indigo-deep); font-size: 1.75rem; }
.rr-zahl-zusatz {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.55;
    margin-top: 6px;
}

.rr-untertitel {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.rr-untertitel span {
    font-weight: 400;
    color: var(--muted);
    font-size: .85rem;
    margin-left: 8px;
}

/* ---------- Balken je Platte --------------------------------- */
.rr-diagramm { margin-bottom: 28px; }
.rr-balken {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 210px;
    padding: 14px 16px 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow-x: auto;
}
.rr-platte {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    height: 100%;
    min-width: 44px;
    flex: 1 1 44px;
}
.rr-saeule {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 62px;
    min-height: 4px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border);
}
.rr-teil { display: block; width: 100%; }
.rr-teil--daten     { background: var(--indigo); }
.rr-teil--schutz    { background: var(--indigo-light); }
.rr-teil--ungenutzt { background: #cbd2e0; }

.rr-platte-name {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
    white-space: nowrap;
}

.rr-legende {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: .8rem;
    color: var(--muted);
}
.rr-legende li { display: flex; align-items: center; gap: 8px; }
.rr-punkt {
    width: 11px; height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}
.rr-punkt--daten     { background: var(--indigo); }
.rr-punkt--schutz    { background: var(--indigo-light); }
.rr-punkt--ungenutzt { background: #cbd2e0; }

/* ---------- Hinweise ----------------------------------------- */
.rr-warnung {
    background: var(--amber-xlight);
    border: 1px solid var(--amber-border);
    border-left: 3px solid var(--amber);
    border-radius: var(--r);
    padding: 14px 18px;
    margin-bottom: 16px;
}
.rr-warnung p {
    font-size: .87rem;
    color: var(--amber-deep);
    line-height: 1.65;
}
.rr-warnung--stop {
    background: var(--indigo-xlight);
    border-color: var(--indigo-border);
    border-left-color: var(--indigo);
}
.rr-warnung--stop h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--indigo-deep);
    margin-bottom: 8px;
}
.rr-warnung--stop p { color: var(--text-2); }
.rr-warnung-tipp { color: var(--muted) !important; margin-top: 6px; }

/* ---------- Erklärung ---------------------------------------- */
.rr-erklaerung {
    padding-top: 26px;
    border-top: 1px solid var(--border-soft);
}
.rr-erklaerung-kurz {
    font-size: .95rem;
    font-weight: 600;
    color: var(--indigo-deep);
    margin-bottom: 12px;
}
.rr-erklaerung p {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 76ch;
}
.rr-eckdaten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 28px;
    margin-top: 22px;
    border-top: 1px solid var(--border);
}
.rr-eckdaten > div {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.rr-eckdaten dt {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.rr-eckdaten dd {
    font-size: .87rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ---------- Grundlagen --------------------------------------- */
.rr-wissen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 40px;
}
@media (max-width: 760px) {
    .rr-wissen-grid { grid-template-columns: minmax(0, 1fr); }
}
.rr-wissen-grid h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.rr-wissen-grid p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.75;
}

.rr-noscript {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.rr-noscript p { font-size: .84rem; color: var(--muted); }

@media (max-width: 900px) {
    .rr-hero { padding: 116px 0 44px; }
    .rr-block { padding: 22px 20px; }
    .rr-seite { padding: 40px 0 72px; }
    .rr-alle-label { margin-left: 0; }
}

/* In schmalen Fenstern blendet app.css die Hauptnavigation aus, weil dort
   ein Menüknopf erwartet wird. Diese Seite hat keinen – deshalb bleibt die
   Navigation hier stehen und bricht einfach um. */
@media (max-width: 700px) {
    .site-header .main-nav {
        display: flex;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 16px;
        background: none;
        border: 0;
        padding: 0;
        justify-content: flex-end;
    }
    .site-header .main-nav a { font-size: .82rem; min-height: 36px; }
    .site-header .header-inner { height: auto; padding: 12px 0; gap: 12px; flex-wrap: wrap; }
    /* Der Kopf ist jetzt zweizeilig und liegt fest – der Einstieg braucht
       entsprechend Platz darunter. */
    .rr-hero { padding: 132px 0 36px; }
}


/* ---------- Übersicht der Werkzeuge -------------------------- */
.tl-liste {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 16px;
}
.tl-karte {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 28px;
    box-shadow: var(--sh-sm);
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.tl-karte:hover {
    border-color: var(--indigo-border);
    transform: translateY(-2px);
    box-shadow: var(--sh);
}
.tl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: var(--r);
    background: var(--indigo-xlight);
    color: var(--indigo-deep);
}
.tl-icon svg { width: 26px; height: 26px; }
.tl-text { flex: 1; min-width: 0; }
.tl-name {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
    margin-bottom: 4px;
}
.tl-kurz {
    display: block;
    font-size: .93rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 4px;
}
.tl-lang {
    display: block;
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.6;
}
.tl-pfeil {
    color: var(--muted-2);
    flex-shrink: 0;
    transition: color var(--t), transform var(--t);
}
.tl-karte:hover .tl-pfeil { color: var(--indigo); transform: translateX(3px); }

.tl-hinweis h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}
.tl-hinweis p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 76ch;
}
.tl-hinweis p + p { margin-top: 12px; }

@media (max-width: 640px) {
    .tl-karte { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
    .tl-pfeil { display: none; }
}
