/* ══════════════════════════════════════════════════════════════════════════
   Preisseite (/preise, Views/Home/Preise.cshtml)

   Eigenes Stylesheet statt custom.css: die Seite bringt rund 150 Regeln mit,
   die sonst nirgends gebraucht werden. Alles haengt unter .nh-preise bzw.
   .nh-preise-reels, damit nichts mit Webster oder Bootstrap kollidiert.
   Farben kommen aus den Marken-Variablen in custom.css (--kh-*).
   ══════════════════════════════════════════════════════════════════════════ */

/* Webster setzt im Seitentitel text-transform: capitalize — fuer einen
   deutschen Satz („Kostenlos Für Jedes Team") falsch. Nur hier aufheben. */
.page-title.nh-preise-hero h1,
.page-title.nh-preise-hero p { text-transform: none; }
.page-title.nh-preise-hero .nh-hero-sub { max-width: 640px; }

.nh-preise {
    --p-paper: #ffffff;
    --p-paper-2: #f6f5f1;
    --p-ink: var(--kh-text, #1B2620);
    --p-muted: #66746d;
    --p-line: #e2dfd6;
    --p-line-stark: #c3bfb2;
    --p-akzent: var(--kh-dunkel, #0F4230);
    --p-akzent-weich: rgba(15, 66, 48, .07);
    --p-orange: var(--kh-aktion, #D96A24);
    --p-orange-d: var(--kh-aktion-d, #B4551A);
    --p-schatten: 0 20px 40px -24px rgba(15, 66, 48, .35);
    color: var(--p-ink);
    font-family: Poppins, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
.nh-preise.page-section-ptb { padding-top: 40px; }
.nh-preise-unten.page-section-ptb { padding-top: 10px; }
.nh-preise *, .nh-preise-reels * { box-sizing: border-box; }
.nh-preise a:focus-visible, .nh-preise button:focus-visible { outline: 2px solid var(--p-orange); outline-offset: 2px; }
.nh-preise [hidden] { display: none !important; }

/* ── Zielgruppen-Umschalter ──────────────────────────────────────────────── */
.nh-preise .segment { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--p-paper-2); border: 1px solid var(--p-line); max-width: 100%; margin: 0 auto 26px; }
.nh-preise .segment-wrap { text-align: center; }
.nh-preise .segment button { appearance: none; border: 0; background: transparent; color: var(--p-muted); font: 600 .9rem Poppins, sans-serif; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nh-preise .segment button.aktiv { background: var(--p-paper); color: var(--p-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ── Karten ─────────────────────────────────────────────────────────────── */
.nh-preise .karten { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.nh-preise .karte { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.nh-preise .karte.empfohlen { border: 2px solid var(--p-akzent); box-shadow: var(--p-schatten); }
.nh-preise .karte .marke { background: var(--p-akzent); color: #fff; font: 700 .7rem/1 Poppins, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 9px 22px; }
.nh-preise .karte .innen { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.nh-preise .karte .name { font: 700 1.25rem/1.15 Montserrat, sans-serif; letter-spacing: -.01em; margin: 0; color: var(--p-ink); }
.nh-preise .karte .tagline { color: var(--p-muted); font-size: .9rem; margin: 6px 0 0; min-height: 3.6em; }
.nh-preise .abrechnung { display: inline-flex; margin-top: 16px; border: 1px solid var(--p-line-stark); border-radius: 8px; overflow: hidden; align-self: flex-start; }
.nh-preise .abrechnung button { appearance: none; border: 0; background: var(--p-paper); color: var(--p-muted); font: 600 .78rem Poppins, sans-serif; padding: 7px 11px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.nh-preise .abrechnung button + button { border-left: 1px solid var(--p-line-stark); }
.nh-preise .abrechnung button.aktiv { background: var(--p-akzent); color: #fff; }
.nh-preise .abrechnung em { font-style: normal; color: var(--p-orange-d); font-weight: 700; }
.nh-preise .abrechnung button.aktiv em { color: #ffd9c2; }
.nh-preise .preis { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.nh-preise .preis b { font: 800 2.3rem/1 Montserrat, sans-serif; letter-spacing: -.03em; color: var(--p-ink); }
.nh-preise .preis span { color: var(--p-muted); font-size: .88rem; }
.nh-preise .preis-note { color: var(--p-muted); font-size: .82rem; margin-top: 4px; min-height: 1.3em; }
.nh-preise .zaehler { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .82rem; color: var(--p-muted); }
.nh-preise .zaehler .rahmen { display: inline-flex; border: 1px solid var(--p-line-stark); border-radius: 8px; overflow: hidden; }
.nh-preise .zaehler button { appearance: none; border: 0; background: var(--p-paper); width: 34px; height: 32px; font: 600 1.05rem Poppins, sans-serif; color: var(--p-ink); cursor: pointer; }
.nh-preise .zaehler output { min-width: 36px; text-align: center; font: 700 .95rem Montserrat, sans-serif; color: var(--p-ink); line-height: 32px; font-variant-numeric: tabular-nums; }
.nh-preise .rechnung { margin-top: 8px; font-size: .84rem; color: var(--p-ink); font-weight: 500; }
.nh-preise .cta { margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 8px; font: 600 .92rem Poppins, sans-serif; text-decoration: none; background: var(--p-akzent); color: #fff; transition: background .15s; }
.nh-preise .cta:hover, .nh-preise .cta:focus { background: var(--p-orange-d); color: #fff; }
.nh-preise .cta.leise { background: transparent; color: var(--p-akzent); border: 1px solid var(--p-line-stark); }
.nh-preise .cta.leise:hover, .nh-preise .cta.leise:focus { background: var(--p-akzent-weich); color: var(--p-akzent); }
.nh-preise .karte hr { border: 0; border-top: 1px solid var(--p-line); margin: 20px 0 14px; opacity: 1; }
.nh-preise .karte .liste-titel { font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.nh-preise ul.punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.nh-preise ul.punkte li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; line-height: 1.4; }
.nh-preise ul.punkte li::before { content: "✓"; color: var(--p-akzent); font-weight: 700; }
.nh-preise ul.punkte li small { display: block; color: var(--p-muted); font-size: .8rem; }
.nh-preise .karte .mehr { margin-top: 10px; font-size: .84rem; color: var(--p-akzent); text-decoration: none; }
.nh-preise .karte .mehr:hover { text-decoration: underline; }

/* ── Vergleich ──────────────────────────────────────────────────────────── */
.nh-preise .abschnitt { margin-top: 60px; }
.nh-preise .abschnitt h2 { font: 800 clamp(1.5rem, 3vw, 2rem)/1.15 Montserrat, sans-serif; letter-spacing: -.02em; margin: 0 0 6px; color: var(--p-ink); }
.nh-preise .abschnitt .sub { color: var(--p-muted); margin: 0 0 22px; max-width: 60ch; }
.nh-preise .vgl-kopf { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 15%); align-items: end; border-bottom: 2px solid var(--p-ink); padding: 0 14px 12px; position: sticky; top: 0; background: var(--p-paper); z-index: 1; }
.nh-preise .vgl-kopf.sp2 { grid-template-columns: minmax(0, 1fr) repeat(2, 18%); }
.nh-preise .vgl-kopf-leer { font: 700 .95rem Montserrat, sans-serif; }
.nh-preise .vgl-plan { text-align: center; font: 700 .95rem Montserrat, sans-serif; }
.nh-preise .vgl-plan small { display: block; font: 400 .78rem Poppins, sans-serif; color: var(--p-muted); margin-top: 2px; }
.nh-preise details.vgl { border-bottom: 1px solid var(--p-line); }
.nh-preise details.vgl summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 12px; padding: 16px 14px; }
.nh-preise details.vgl summary::-webkit-details-marker { display: none; }
.nh-preise .vgl-titel { font: 700 .78rem/1 Poppins, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--p-ink); }
.nh-preise .vgl-anzahl { font-size: .82rem; color: var(--p-muted); }
.nh-preise .vgl-pfeil { width: 22px; height: 22px; border-radius: 50%; background: var(--p-akzent-weich); position: relative; }
.nh-preise .vgl-pfeil::before { content: ""; position: absolute; left: 7px; top: 6px; width: 6px; height: 6px; border-right: 2px solid var(--p-akzent); border-bottom: 2px solid var(--p-akzent); transform: rotate(45deg); transition: transform .15s; }
.nh-preise details.vgl[open] .vgl-pfeil::before { transform: rotate(225deg); top: 9px; }
.nh-preise .vgl-zeile { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 15%); align-items: center; padding: 0 14px; border-top: 1px solid var(--p-line); }
.nh-preise .vgl-zeilen.sp2 .vgl-zeile { grid-template-columns: minmax(0, 1fr) repeat(2, 18%); }
.nh-preise .vgl-zeile .merkmal { padding: 11px 0; }
.nh-preise .vgl-zeile .merkmal b { font-weight: 600; display: block; }
.nh-preise .vgl-zeile .merkmal small { display: block; color: var(--p-muted); font-size: .8rem; line-height: 1.4; }
.nh-preise .vgl-zeile .mitte { text-align: center; }
.nh-preise .vgl-alle { margin-top: 16px; appearance: none; border: 1px solid var(--p-line-stark); background: transparent; color: var(--p-akzent); font: 600 .86rem Poppins, sans-serif; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.nh-preise .vgl-alle:hover { background: var(--p-akzent-weich); }
.nh-preise .ja { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--p-akzent); color: #fff; font: 700 .85rem/22px Poppins, sans-serif; }
.nh-preise .nein { color: var(--p-line-stark); }
.nh-preise .zahl { font-weight: 600; font-size: .85rem; }

/* ── Reels (dunkler Block) ──────────────────────────────────────────────── */
.nh-preise-reels { background: var(--kh-dunkel, #0F4230); color: #f2efe6; padding: 56px 0; font-family: Poppins, system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
.nh-preise-reels h2 { font: 800 clamp(1.6rem, 3.2vw, 2.2rem)/1.1 Montserrat, sans-serif; letter-spacing: -.025em; margin: 0 0 8px; color: #fff; }
.nh-preise-reels .sub { color: #b6c9bf; margin: 0 0 26px; max-width: 60ch; }
.nh-preise-reels .regal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.nh-preise-reels .regal figure { margin: 0; }
.nh-preise-reels .regal video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; display: block; background: #0b3125; }
.nh-preise-reels .regal figcaption { margin-top: 8px; font-size: .82rem; color: #b6c9bf; line-height: 1.4; }
.nh-preise-reels .regal figcaption b { display: block; color: #f2efe6; font-weight: 600; }
.nh-preise-reels .weitere { display: flex; flex-direction: column; justify-content: center; gap: 8px; aspect-ratio: 9 / 16; border: 1px dashed rgba(255,255,255,.35); border-radius: 12px; padding: 18px; color: #f2efe6; text-decoration: none; transition: border-color .15s; }
.nh-preise-reels .weitere:hover, .nh-preise-reels .weitere:focus { border-color: rgba(255,255,255,.75); color: #fff; }
.nh-preise-reels .weitere-plus { font: 800 2.2rem/1 Montserrat, sans-serif; color: var(--kh-aktion, #D96A24); }
.nh-preise-reels .weitere b { font: 700 1.05rem/1.2 Montserrat, sans-serif; }
.nh-preise-reels .weitere span:not(.weitere-plus) { color: #b6c9bf; font-size: .8rem; line-height: 1.45; }
.nh-preise-reels .weitere em { font-style: normal; font-weight: 600; font-size: .84rem; color: var(--kh-aktion, #D96A24); margin-top: 4px; }
.nh-preise-reels .reel-preise { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nh-preise-reels .reel-preise > div { border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 16px; }
.nh-preise-reels .reel-preise b { display: block; font-weight: 600; }
.nh-preise-reels .reel-preise .p { font: 700 1.3rem/1.2 Montserrat, sans-serif; margin-top: 6px; font-variant-numeric: tabular-nums; }
.nh-preise-reels .reel-preise .p span { font: 400 .78rem Poppins, sans-serif; color: #b6c9bf; }
.nh-preise-reels .reel-preise small { display: block; color: #b6c9bf; font-size: .8rem; margin-top: 4px; }
.nh-preise-reels .hinweis { margin: 18px 0 0; color: #b6c9bf; font-size: .86rem; }

/* ── Fragen, Abschluss ──────────────────────────────────────────────────── */
.nh-preise .fragen { max-width: 760px; margin-top: 30px; }
.nh-preise .fragen details { border-bottom: 1px solid var(--p-line); }
.nh-preise .fragen details:first-of-type { border-top: 1px solid var(--p-line); }
.nh-preise .fragen summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.nh-preise .fragen summary::-webkit-details-marker { display: none; }
.nh-preise .fragen summary::after { content: "+"; color: var(--p-akzent); font-size: 1.3rem; line-height: 1; }
.nh-preise .fragen details[open] summary::after { content: "–"; }
.nh-preise .fragen details p { margin: 0 0 16px; color: var(--p-muted); max-width: 62ch; }
.nh-preise .abschluss { margin: 56px 0 24px; background: var(--p-paper-2); border-radius: 16px; padding: 30px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.nh-preise .abschluss p { margin: 0; font: 700 1.25rem/1.3 Montserrat, sans-serif; letter-spacing: -.01em; max-width: 34ch; color: var(--p-ink); }
.nh-preise .abschluss small { display: block; color: var(--p-muted); font: 400 .9rem Poppins, sans-serif; margin-top: 4px; }
.nh-preise .abschluss .knopf { display: inline-block; padding: 13px 22px; border-radius: 8px; background: var(--p-orange-d); color: #fff; text-decoration: none; font: 600 .95rem Poppins, sans-serif; white-space: nowrap; transition: background .15s; }
.nh-preise .abschluss .knopf:hover, .nh-preise .abschluss .knopf:focus { background: var(--p-akzent); color: #fff; }
.nh-preise .fuss { color: var(--p-muted); font-size: .8rem; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 1023.98px) {
    .nh-preise .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nh-preise .karten .karte:nth-child(3):last-child { grid-column: 1 / -1; }
    .nh-preise-reels .regal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nh-preise-reels .reel-preise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Handy: nichts scrollt seitlich ─────────────────────────────────────── */
@media (max-width: 639.98px) {
    .nh-preise .segment { display: flex; width: 100%; }
    .nh-preise .segment button { flex: 1; padding: 9px 6px; font-size: .8rem; white-space: normal; line-height: 1.2; }
    .nh-preise .karten { grid-template-columns: 1fr; }
    .nh-preise .karten .karte:nth-child(3):last-child { grid-column: auto; }
    .nh-preise .karte .tagline { min-height: 0; }
    .nh-preise .preis b { font-size: 2rem; }
    .nh-preise .vgl-kopf { display: none; }
    .nh-preise .vgl-zeile, .nh-preise .vgl-zeilen.sp2 .vgl-zeile { grid-template-columns: minmax(0, 1fr) 52px 52px 52px; column-gap: 4px; padding: 0; }
    .nh-preise .vgl-zeilen.sp2 .vgl-zeile { grid-template-columns: minmax(0, 1fr) 60px 60px; }
    .nh-preise details.vgl summary { padding: 14px 0; }
    .nh-preise .vgl-zeile .mitte { padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
    .nh-preise .vgl-zeile .mitte::before { content: attr(data-plan); font: 600 .58rem/1.2 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); text-align: center; }
    .nh-preise .vgl-zeile .mitte .zahl { font-size: .72rem; text-align: center; }
    .nh-preise-reels .regal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .nh-preise-reels .weitere { aspect-ratio: auto; }
    .nh-preise-reels .reel-preise { grid-template-columns: 1fr; }
    .nh-preise .abschluss { padding: 22px 18px; }
    .nh-preise .abschluss .knopf { width: 100%; text-align: center; }
}
