/*
 * Landingpages der Nexthosting Börse (Resources/views/boerse-seo/page.twig). Ergänzt boerse.css (Tafel, Kopf, Fragen, Preiswecker)
 * um Erklärung, Vergleichstabellen mit den Shop-Preisen und Verweise. Gleiche Farbwerte (.nhb-Variablen, Dunkelmodus über
 * html.nh-dark), gleiche Schrift; Linien statt Karten, keine Pills, keine Zahlenkacheln.
 */
.nhbl-h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); max-width: 22ch; }

/* Unter der Tafel: Preisangabe links, Weg zur ganzen Börse rechts */
.nhbl-under { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: start; margin-top: 1rem; }
.nhbl-under .nhb-legal { margin: 0; }
.nhb a.nhbl-all { display: grid; gap: .1rem; padding: .7rem 1rem; min-width: 16rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--card); }
.nhb a.nhbl-all b { font-weight: 600; color: var(--indigo-d); }
.nhb a.nhbl-all b::after { content: " →"; }
.nhb a.nhbl-all span { font-size: .86rem; color: var(--muted); }
.nhb a.nhbl-all:hover { border-color: var(--indigo); }

/* Erklärung: Überschrift links, Text rechts */
.nhbl-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 1rem 4rem; align-items: start; }
.nhbl-intro .nhb-h2 { margin: 0; }
.nhbl-prose p { margin: 0 0 1rem; max-width: 44rem; font-size: 1.04rem; line-height: 1.65; color: var(--ink-2); }
.nhbl-prose p:last-child { margin-bottom: 0; }

/* Vergleich */
.nhbl-sub { margin: -.4rem 0 1.5rem; max-width: 46rem; line-height: 1.6; color: var(--ink-2); }
.nhbl-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .97rem; }
.nhbl-table thead th { padding: .6rem .9rem !important; background: var(--head); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap; }
.nhbl-table tbody th, .nhbl-table td { padding: .62rem .9rem !important; border-bottom: 1px solid var(--row); text-align: left; vertical-align: baseline; }
.nhbl-table tbody th { font-weight: 600; color: var(--ink); }
.nhbl-table .is-r { text-align: right; }
.nhbl-table td b { font-weight: 700; color: var(--ink); }
.nhbl-table small { font-size: .82rem; color: var(--muted); }
.nhbl-none { color: var(--faint); }
.nhbl-table .nhbl-go { text-align: right; white-space: nowrap; width: 1%; }
.nhb .nhbl-table .nhbl-go a { text-decoration: none; font-weight: 600; }
.nhb .nhbl-table .nhbl-go a:hover { text-decoration: underline; }
.nhbl-table tbody tr:hover { background: var(--mist); }
.nhbl-table--ways tbody th { white-space: nowrap; }
.nhbl-table--ways tr.is-main th { box-shadow: inset 3px 0 0 var(--btn); }
.nhbl-table--ways td { line-height: 1.5; }
.nhbl-compare .nhb-legal { margin-top: .9rem; }

/* So funktioniert's: nummerierte Schritte */
.nhbl-how { list-style: none; margin: 0; padding: 0; counter-reset: nhbl; border-top: 1px solid var(--line); }
.nhbl-how li { counter-increment: nhbl; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: .5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.nhbl-how li::before { content: counter(nhbl, decimal-leading-zero); grid-row: span 2; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: .05rem; }
.nhbl-how b { color: var(--ink); font-weight: 600; }
.nhbl-how p { margin: .2rem 0 0; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 900px) {
    .nhbl-intro { grid-template-columns: 1fr; }
    .nhbl-under { grid-template-columns: 1fr; }
    .nhb a.nhbl-all { min-width: 0; }
}

/* Schmale Bildschirme: Tabellen als Blöcke (Name oben, Werte mit Bezeichnung darunter) */
@media (max-width: 720px) {
    .nhbl-table, .nhbl-table tbody, .nhbl-table tr, .nhbl-table th, .nhbl-table td { display: block; }
    .nhbl-table thead { display: none; }
    .nhbl-table tbody tr { position: relative; padding: .8rem 0; border-bottom: 1px solid var(--row); }
    .nhbl-table tbody tr:first-child { border-top: 1px solid var(--line); }
    .nhbl-table tbody tr:hover { background: none; }
    .nhbl-table tbody th, .nhbl-table td { padding: .1rem 0 !important; border: 0; text-align: left; }
    .nhbl-table tbody th { padding-right: 5.5rem; margin-bottom: .2rem; }
    .nhbl-table td[data-label] { display: flex; justify-content: space-between; gap: 1rem; }
    .nhbl-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .88rem; flex: 0 1 auto; }
    .nhbl-table .is-r { text-align: right; }
    .nhbl-table td[data-label] > * { text-align: right; }
    .nhbl-table .nhbl-go { position: absolute; top: .8rem; right: 0; width: auto; padding: 0 !important; }
    .nhbl-table--packages td[data-label]:nth-of-type(1), .nhbl-table--vps td[data-label]:nth-of-type(1) { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
    .nhbl-table--packages td[data-label]:nth-of-type(1)::before, .nhbl-table--vps td[data-label]:nth-of-type(1)::before { content: none; }
    .nhbl-table--ways tr.is-main th { box-shadow: none; }
    .nhbl-table--ways td[data-label] { display: block; padding: .25rem 0 !important; line-height: 1.45; }
    .nhbl-table--ways td[data-label]::before { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
    .nhbl-table--ways tbody th { padding-right: 0; white-space: normal; font-size: 1.05rem; }
}
@media (max-width: 520px) {
    .nhbl-h1 { font-size: 1.7rem; }
    .nhbl-prose p { font-size: 1rem; }
}
