/* ============================================================
   Rechenzentrum Saarbrücken-Güdingen - Seitenspezifische Styles
   ------------------------------------------------------------
   Namensraum: alle Klassen dieser Datei beginnen mit "rz-".
   Der Anfrage-Konfigurator nutzt das Präfix "rzk" und liegt
   in css/rz-config.css.
   Tokens kommen aus css/style.css.
   ============================================================ */

/* --- Hinweisband unter dem Hero --- */
.rz-hinweis-band {
    padding: 2.5rem 0 0;
}

.rz-hinweis {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.75rem;
}

.rz-hinweis__icon {
    color: var(--color-accent);
    font-size: 1.25rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.rz-hinweis__text strong {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.rz-hinweis__text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .rz-hinweis {
        padding: 1.25rem;
        gap: 0.75rem;
    }
}

/* --- Grundausstattung: Kartenraster --- */
.rz-incl {
    gap: 1.5rem;
}

.rz-incl__item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    transition: all var(--transition);
}

.rz-incl__item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.rz-incl__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(234, 178, 79, 0.12);
    color: var(--color-accent);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.rz-incl__item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.5;
}

/* --- Technische Eckdaten: Definitionsliste --- */
.rz-spec {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.rz-spec__row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    padding: 1.1rem 1.75rem;
    border-bottom: 1px solid var(--color-border);
}

.rz-spec__row:last-child {
    border-bottom: none;
}

.rz-spec dt {
    font-weight: 600;
    color: var(--color-primary);
}

.rz-spec dd {
    margin: 0;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .rz-spec__row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 1rem 1.25rem;
    }
}

/* --- Preisorientierung --- */
.rz-preis {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.rz-preis__lead {
    text-align: center;
}

.rz-preis__label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rz-preis__betrag {
    display: block;
    color: var(--color-accent);
    font-size: clamp(2.5rem, 7vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.rz-preis__einheit {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.rz-preis__enthalten {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rz-preis__enthalten li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
}

.rz-preis__enthalten li:last-child {
    margin-bottom: 0;
}

.rz-preis__enthalten li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

@media (max-width: 768px) {
    .rz-preis {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
}

/* --- Aufpreis-Tabelle --- */
.rz-tabelle__titel {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rz-tablewrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.rz-tabelle {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

/* Beschriftung bleibt für Screenreader erhalten; sichtbar steht sie als
   .rz-tabelle__hinweis unterhalb des scrollbaren Containers, damit sie
   auf schmalen Bildschirmen nicht mitscrollt und abgeschnitten wird. */
.rz-tabelle__caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rz-tabelle__hinweis {
    max-width: 900px;
    margin: 0.75rem auto 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.rz-tabelle thead th {
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-weight: 600;
    text-align: left;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.rz-tabelle tbody th,
.rz-tabelle tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.rz-tabelle tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.rz-tabelle tbody td {
    color: var(--color-text-light);
}

.rz-tabelle tbody tr:last-child th,
.rz-tabelle tbody tr:last-child td {
    border-bottom: none;
}

.rz-tabelle__num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--color-primary);
}

.rz-tabelle tbody td.rz-tabelle__num {
    color: var(--color-primary);
}

/* Auf schmalen Bildschirmen soll vor allem die Aufpreis-Spalte sichtbar
   bleiben. Deshalb entfällt die Mindestbreite und der Text bricht um,
   statt die Tabelle seitlich aus dem Bild zu schieben. */
@media (max-width: 700px) {
    .rz-tabelle {
        min-width: 0;
        font-size: 0.88rem;
    }

    .rz-tabelle thead th,
    .rz-tabelle tbody th,
    .rz-tabelle tbody td {
        padding: 0.75rem 0.7rem;
        white-space: normal;
        hyphens: auto;
    }

    /* Nur die Erläuterungsspalte darf notfalls innerhalb eines Wortes
       umbrechen, damit die Tabelle in die Breite passt. */
    .rz-tabelle tbody td {
        overflow-wrap: anywhere;
    }

    /* Die Beträge bleiben in einer Zeile. Höhere Spezifität als die
       Regeln oben, sonst gewinnt dort das white-space: normal. */
    .rz-tabelle thead th.rz-tabelle__num,
    .rz-tabelle tbody td.rz-tabelle__num {
        white-space: nowrap;
        overflow-wrap: normal;
        hyphens: none;
    }
}

.rz-preis__vorbehalt {
    max-width: 900px;
    margin: 1.5rem auto 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

.rz-preis__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* --- Leistungsdichte --- */
.rz-dichte {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.rz-dichte__wert {
    display: block;
    color: var(--color-accent);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.rz-dichte h3 {
    margin-bottom: 0.6rem;
}

.rz-dichte p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- Ablauf --- */
.rz-ablauf {
    list-style: none;
    counter-reset: rz-schritt;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.rz-ablauf__schritt {
    counter-increment: rz-schritt;
    position: relative;
    padding: 0 0 2.25rem 4.5rem;
}

.rz-ablauf__schritt::before {
    content: counter(rz-schritt);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rz-ablauf__schritt::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 56px;
    bottom: 0.5rem;
    width: 2px;
    background: var(--color-border);
}

.rz-ablauf__schritt:last-child {
    padding-bottom: 0;
}

.rz-ablauf__schritt:last-child::after {
    display: none;
}

.rz-ablauf__schritt h3 {
    margin-bottom: 0.4rem;
}

.rz-ablauf__schritt p {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .rz-ablauf__schritt {
        padding-left: 3.5rem;
    }

    .rz-ablauf__schritt::before {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .rz-ablauf__schritt::after {
        left: 18px;
        top: 46px;
    }
}

/* --- Häufige Fragen --- */
.rz-faq {
    max-width: 800px;
    margin: 0 auto;
}

.rz-faq__item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.rz-faq__item[open] {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.rz-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 3rem 1.1rem 1.5rem;
    position: relative;
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition);
}

.rz-faq__item summary::-webkit-details-marker {
    display: none;
}

.rz-faq__item summary:hover {
    color: var(--color-accent-hover);
}

.rz-faq__item summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.rz-faq__item summary::after {
    content: '\002B';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.rz-faq__item[open] summary::after {
    content: '\2212';
}

.rz-faq__inhalt {
    padding: 0 1.5rem 1.25rem;
}

.rz-faq__inhalt p {
    margin-bottom: 0;
    font-size: 0.97rem;
}

@media (max-width: 600px) {
    .rz-faq__item summary {
        padding: 1rem 2.5rem 1rem 1.1rem;
    }

    .rz-faq__item summary::after {
        right: 1.1rem;
    }

    .rz-faq__inhalt {
        padding: 0 1.1rem 1.1rem;
    }
}
