/*
 * Nexthosting Börse – Seite /boerse (Support/Boerse/*, Resources/views/boerse/page.twig).
 * Leitbild: ruhige Kursübersicht eines etablierten Anbieters. Eine helle Tabelle im Seitenrahmen, klare Zeilen, tabellarische
 * Ziffern, der Preis ist das Lauteste der Zeile. Schrift, Farben und Knöpfe sind die der Website (DM Sans, Nexthosting-Blau).
 * Bewegung nur als kurzes Ein-/Ausblenden einer Zeile beim Wechsel (bei „Bewegung reduzieren“ aus).
 * Alles unter .nhb; Dunkelmodus über html.nh-dark (Shop und Vorschau).
 */
.nhb, .nhb * { box-sizing: border-box; }
.nhb {
    --ink: #0b1020; --ink-2: #353c50; --muted: #5a6478; --faint: #8a93a6; --line: #e3e6ef; --row: #eceef4; --mist: #f6f7fb;
    --page: #ffffff; --card: #ffffff; --head: #f8f9fc; --mine: #f3f6ff;
    --indigo: #2459E8; --indigo-d: #1c47bd; --btn: #2459E8; --btn-h: #1c47bd; --navy: #131E3E; --tint: #EAF0FF;
    --save: #146c43; --soon: #a15c07; --bar: #2459E8; --track: #e6e9f1; --bad: #b42318; --ok: #146c43;
    --sans: "NH Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-family: var(--sans); color: var(--ink); background: transparent;
}
html.nh-dark .nhb {
    --ink: #ececee; --ink-2: #c2c2c8; --muted: #a0a0a7; --faint: #7a7a82; --line: #2a2a2e; --row: #232326; --mist: #18181a;
    --page: #121213; --card: #161617; --head: #1a1a1c; --mine: #1a1d2b;
    --indigo: #8b9cff; --indigo-d: #a9b6ff; --btn: #2459E8; --btn-h: #3366f0; --tint: #1f2235;
    --save: #7fd3a4; --soon: #f0b43c; --bar: #8b9cff; --track: #2c2c31; --bad: #ff8a80; --ok: #7fd3a4;
}
.nhb a { color: var(--indigo-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.nhb a:hover { text-decoration-thickness: 2px; }
.nhb :focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.nhb-in { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.nhb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- Kopf */
.nhb-top { padding: 2rem 0 2rem; }
.nhb-crumb { display: flex; gap: .5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.nhb-crumb a { color: inherit; text-decoration: none; }
.nhb-crumb a:hover { text-decoration: underline; }
.nhb-crumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.nhb-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 4rem; align-items: end; }
.nhb-eyebrow { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nhb-h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.nhb-lead { margin: .9rem 0 0; max-width: 40rem; font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); }
.nhb-facts { margin: 0; display: grid; grid-template-columns: auto auto; gap: 0; font-size: .92rem; color: var(--ink-2); }
.nhb-facts dt, .nhb-facts dd { padding: .4rem 0; border-bottom: 1px solid var(--row); }
.nhb-facts dt { color: var(--muted); }
.nhb-facts dd { margin: 0; padding-left: 2.5rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.nhb-facts--below, .nhb-lead--short { display: none; }

/* ---------------------------------------------------------------- Angebotstabelle */
.nhb-board-wrap { padding: 0 0 1rem; }
.nhb-board {
    position: relative; overflow: hidden; margin: 0; padding: 0; background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(11, 16, 32, .04);
}
html.nh-dark .nhb-board { box-shadow: none; }
.nhb-board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding: 1rem 1.5rem; }
.nhb-board-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .9rem; }
.nhb-board-name b { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
.nhb-board-name span { font-size: .9rem; color: var(--muted); }
/* Ein Countdown für die ganze Tafel: „Neue Angebote in 07:32 · bis 20:50 Uhr“, Balken = verbleibender Anteil der Runde */
.nhb-count { display: grid; grid-template-columns: auto auto; grid-template-areas: "l t" "u t" "bar bar"; align-items: center; gap: .1rem 1rem; }
.nhb-count[hidden] { display: none; }
.nhb-count-l { grid-area: l; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-align: right; }
.nhb-count-u { grid-area: u; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.nhb-count-t { grid-area: t; font-size: 2.1rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 3.3em; text-align: right; }
.nhb-count-bar { grid-area: bar; display: block; position: relative; height: 4px; margin-top: .45rem; border-radius: 2px; background: var(--track); overflow: hidden; }
.nhb-count-bar > i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 2px; background: var(--bar); transition: width 1s linear; }
.nhb-cols, .nhb-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 11rem 13rem; gap: 0 2.5rem; align-items: center; padding: 0 1.5rem; }
.nhb-cols .is-c { text-align: center; }
.nhb-cols {
    padding-top: .6rem; padding-bottom: .6rem; 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);
}
.nhb-cols .is-r, .nhb-c--price { text-align: right; }
.nhb-list { list-style: none; margin: 0; padding: 0; }
.nhb-row { position: relative; min-height: 6rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.nhb-row + .nhb-row { border-top: 1px solid var(--row); }
.nhb-c { min-width: 0; }
.nhb-sub { display: block; margin-top: .3rem; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.nhb-nw { white-space: nowrap; }

/* Kennung */
.nhb-code { display: block; font-size: .9rem; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
/* Server */
.nhb-name { display: block; font-size: 1.07rem; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
/* Preis: das Lauteste der Zeile */
.nhb-price { display: block; font-size: 1.55rem; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.nhb-per { display: block; margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.nhb-was { display: block; margin-top: .15rem; font-size: .86rem; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nhb-was s { text-decoration-thickness: 1px; }
.nhb-save { margin-left: .4rem; font-weight: 600; color: var(--save); }
/* Zustände */
.nhb-row.is-gone .nhb-c:not(.nhb-c--act) { opacity: .45; }
.nhb-row.is-mine { background: var(--mine); box-shadow: inset 3px 0 0 var(--btn); }
.nhb-row.is-new { animation: nhb-in .5s ease-out both; }
.nhb-row.is-leaving { opacity: 0; transition: opacity .3s ease-in; }
@keyframes nhb-in { from { opacity: 0; } to { opacity: 1; } }

/* Handeln */
.nhb-c--act { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
.nhb-c--act form { margin: 0; }
.nhb-take, .nhb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 44px; padding: .6rem 1rem; text-align: center;
    border: 0; border-radius: 8px; background: var(--btn); color: #fff; font: 600 .98rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
    transition: background-color .15s;
}
.nhb .nhb-take, .nhb .nhb-btn { color: #fff; text-decoration: none; }
.nhb-take:hover, .nhb-btn:hover { background: var(--btn-h); }
.nhb .nhb-take:focus-visible, .nhb .nhb-btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 8px; }
.nhb-note { font-size: .8rem; line-height: 1.35; color: var(--muted); }
.nhb-state { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 600; color: var(--muted); }

/* Leer / Fehler */
.nhb-empty { padding: 2.5rem 1.5rem; border-top: 1px solid var(--row); color: var(--muted); }
/* Leere Tafel: keine Spaltenköpfe über nichts */
.nhb-board:has(.nhb-empty:not([hidden])) .nhb-cols { display: none; }
.nhb-empty b { display: block; margin-bottom: .35rem; color: var(--ink); font-weight: 600; }

/* Fuß der Tabelle */
.nhb-legal { margin: 1rem 0 0; max-width: 60rem; font-size: .86rem; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------------- Abschnitte unter der Tabelle */
.nhb-sec { padding: 3rem 0; border-top: 1px solid var(--line); }
.nhb-sec:first-of-type { border-top: 0; }
.nhb-h2 { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.nhb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; }
.nhb-steps { list-style: none; margin: 0; padding: 0; }
.nhb-steps li { display: grid; grid-template-columns: 4.5rem 1.25rem minmax(0, 1fr); gap: 0 .75rem; position: relative; padding: 0 0 1.4rem; }
.nhb-steps li::before { content: ""; position: absolute; left: calc(4.5rem + .75rem + .56rem); top: .5rem; bottom: -.2rem; width: 2px; background: var(--line); }
.nhb-steps li:last-child::before { display: none; }
.nhb-steps .t { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; padding-top: .1rem; }
.nhb-steps .s { position: relative; z-index: 1; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 50%; border: 2px solid var(--indigo); background: var(--page); }
.nhb-steps li:last-child .s { background: var(--indigo); }
.nhb-steps b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .2rem; }
.nhb-steps p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.nhb-rules { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.nhb-rules li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--ink-2); }
.nhb-rules b { color: var(--ink); font-weight: 600; }

/* Preiswecker */
.nhb-alarm { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 4rem; align-items: start; }
.nhb-alarm p { margin: 0 0 .9rem; color: var(--ink-2); line-height: 1.55; }
.nhb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.nhb-form .full { grid-column: 1 / -1; }
.nhb-form label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.nhb-form input[type=email], .nhb-form input[type=number], .nhb-form select {
    width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid #c3c8dc; border-radius: 8px; background: var(--page); color: var(--ink); font: 1rem/1.3 var(--sans);
}
html.nh-dark .nhb-form input, html.nh-dark .nhb-form select { border-color: #3a3a40; }
.nhb-check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.nhb-form label.nhb-check { display: grid; margin: 0; font-weight: 400; }
.nhb-check input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--btn); }
.nhb-form .nhb-btn { width: auto; }
.nhb-msg { padding: .8rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--page); color: var(--ink); line-height: 1.45; }
.nhb-msg.is-bad { border-color: var(--bad); color: var(--bad); }
.nhb-msg.is-ok { border-color: var(--ok); }
.nhb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fragen */
.nhb-faq { border-top: 1px solid var(--line); }
.nhb-faq details { border-bottom: 1px solid var(--line); }
.nhb-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.nhb-faq summary::-webkit-details-marker { display: none; }
.nhb-faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.nhb-faq details[open] summary::after { content: "–"; }
.nhb-faq details p { margin: 0 0 1.1rem; max-width: 46rem; color: var(--ink-2); line-height: 1.6; }

/* Verweise auf die Landingpages (boerse/page.twig) und von dort weiter (boerse-seo/page.twig) */
.nhbl-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 2.5rem; }
.nhbl-more li { border-top: 1px solid var(--line); }
.nhb .nhbl-more a { display: grid; gap: .15rem; padding: .9rem 1.6rem .9rem 0; position: relative; text-decoration: none; color: var(--ink); min-height: 44px; }
.nhb .nhbl-more a::after { content: "→"; position: absolute; right: .2rem; top: .9rem; color: var(--muted); transition: transform .15s; }
.nhb .nhbl-more a:hover::after { transform: translateX(3px); color: var(--indigo-d); }
.nhbl-more b { font-weight: 600; color: var(--indigo-d); }
.nhbl-more span { font-size: .9rem; line-height: 1.45; color: var(--muted); }

/* ---------------------------------------------------------------- Mittel */
@media (max-width: 1100px) {
    .nhb-cols, .nhb-row { grid-template-columns: 6rem minmax(0, 1fr) 9.5rem 12rem; gap: 0 1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
    .nhb-board-bar { padding-left: 1.25rem; padding-right: 1.25rem; }
    .nhb-price { font-size: 1.4rem; }
}
@media (max-width: 900px) {
    .nhb-head { grid-template-columns: 1fr; }
    .nhb-facts { grid-template-columns: auto 1fr; max-width: 30rem; }
    .nhb-facts dd { text-align: right; }
    .nhb-two, .nhb-alarm { grid-template-columns: 1fr; }
    .nhb-cols { display: none; }
    .nhb-board-bar { border-bottom: 1px solid var(--line); }
    .nhb-row {
        grid-template-columns: minmax(0, 1fr); grid-template-areas: "code" "what" "price" "act";
        gap: 0; padding: 1.1rem 1.25rem 1.2rem; min-height: 0;
    }
    .nhb-c--code { grid-area: code; display: flex; align-items: baseline; gap: .45rem; margin-bottom: .2rem; }
    .nhb-c--code .nhb-code { font-size: .8rem; color: var(--muted); }
    .nhb-c--code .nhb-sub { margin: 0; font-size: .8rem; }
    .nhb-c--code .nhb-sub::before { content: "·"; margin-right: .45rem; }
    .nhb-c--what { grid-area: what; }
    .nhb-c--price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; margin-top: .7rem; text-align: left; }
    .nhb-c--price .nhb-per { margin: 0; }
    .nhb-c--price .nhb-was { flex-basis: 100%; margin: .1rem 0 0; }
    .nhb-c--act { grid-area: act; margin-top: .8rem; }
    .nhb-state { justify-content: center; min-height: 40px; }
    /* Countdown unter dem Namen über die ganze Breite: Text links, Zeit rechts */
    .nhb-board-bar { display: block; }
    .nhb-count { margin-top: .75rem; grid-template-columns: minmax(0, 1fr) auto; }
    .nhb-count-l, .nhb-count-u { text-align: left; }
}
/* ---------------------------------------------------------------- Handy */
@media (max-width: 520px) {
    .nhb-in { padding: 0 1rem; }
    .nhb-top { padding: 1rem 0 1.25rem; }
    .nhb-crumb { margin: 0 0 .9rem; font-size: .85rem; }
    .nhb-eyebrow { margin: 0 0 .3rem; font-size: .78rem; }
    .nhb-h1 { font-size: 1.75rem; }
    .nhb-lead { margin-top: .55rem; font-size: 1rem; line-height: 1.5; }
    .nhb-lead--long, .nhb-head > .nhb-facts { display: none; }
    .nhb-lead--short { display: block; }
    .nhb-facts--below { display: grid; margin: 1.5rem 0 0; max-width: none; }
    .nhb-board { border-radius: 10px; }
    .nhb-board-bar { padding: .8rem 1rem; gap: .25rem 1rem; }
    .nhb-board-name span { display: none; }
    .nhb-count { margin-top: .5rem; }
    .nhb-count-t { font-size: 1.8rem; }
    .nhb-row { padding: 1rem 1rem 1.1rem; gap: .15rem .75rem; }
    .nhb-name { font-size: 1.02rem; }
    .nhb-sub { font-size: .84rem; }
    .nhb-price { font-size: 1.35rem; }
    .nhb-rules li { grid-template-columns: 1fr; gap: .2rem; }
    .nhb-form { grid-template-columns: 1fr; padding: 1.1rem; }
    .nhb-form .nhb-btn { width: 100%; }
    .nhb-steps li { grid-template-columns: 3.6rem 1.25rem minmax(0, 1fr); }
    .nhb-steps li::before { left: calc(3.6rem + .75rem + .56rem); }
    .nhbl-more ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .nhb-row.is-new { animation: none; }
    .nhb-count-bar > i { transition: none; }
    .nhb-row.is-leaving { transition: none; }
}
