/* NextRB Commander – Produktseite im Design von nextrb.eu
   Kopf, Menü, Sprachen und Fuß kommen aus dem gemeinsamen Seitenrahmen (/nextrb-seite.css, /nextrb-seite.js).
   Hier nur der Inhalt – Farben und Schrift wie die Seite der Warenwirtschaft, nur hell (wie die ganze Webseite). */
:root {
  --petrol: #0D4D55;
  --petrol-tief: #0A3A40;
  --blau: #277092;
  --nebel: #F3F6F6;
  --papier: #FFFFFF;
  --fuellung: #E3EFF0;
  --linie: #CFDFE1;
  --tinte: #10333A;
  --grau: #516d73;
  --markiert: #8a5b00;
  --zeile-wahl: #DCEBF1;
  --schrift: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--nebel); color: var(--tinte); font-family: var(--schrift); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--blau); }
svg { display: block; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.nur-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rahmen { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
section[id] { scroll-margin-top: calc(var(--nx-kopf-hoehe, 68px) + 60px); }
h1, h2, h3 { color: var(--petrol); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; max-width: 22ch; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--fuellung); border-radius: 5px; padding: 0.05em 0.35em; }

/* Knöpfe (wie auf der Seite der Warenwirtschaft) */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.knopf { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.35rem; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.knopf[hidden] { display: none; }
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf.voll { background: var(--blau); color: #fff; }
.knopf.voll:hover { background: #2b7da0; }
.knopf.rand { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.knopf.rand:hover { background: var(--petrol); color: #fff; }
.knopf-unter { display: block; font-size: 0.8rem; font-weight: 500; opacity: 0.9; margin-top: 0.15rem; }

/* ---------- Bühne: Text links, Programmfenster rechts ---------- */
.buehne { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.buehne .rahmen { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.vorzeile { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blau); margin-bottom: 0.9rem; }
.buehne h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; text-wrap: balance; }
.buehne h1 em { font-style: normal; color: var(--blau); }
.buehne .unter { font-size: 1.15rem; margin-top: 1.4rem; max-width: 36ch; }
.eckdaten { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.95rem; color: var(--grau); }
.eckdaten li { display: flex; align-items: center; gap: 0.4rem; }
.eckdaten svg { width: 16px; height: 16px; color: #2E9E5B; }
@media (max-width: 900px) { .buehne .rahmen { grid-template-columns: minmax(0, 1fr); } }

/* Programmfenster zum Ausprobieren – hell, wie das Programm im Design „Modern hell“ */
.demo { background: var(--papier); border-radius: 12px; box-shadow: 0 1px 0 var(--linie), 0 30px 60px -20px rgba(13, 77, 85, .35); overflow: hidden; font-size: 14px; outline-offset: 4px; }
.demo:focus-visible { outline: 3px solid var(--blau); }
.demo-titel { display: flex; align-items: center; gap: 0.5rem; background: var(--petrol); color: #fff; padding: 0.55rem 0.9rem; font-weight: 600; font-size: 0.85rem; }
.demo-titel img { width: 16px; height: 16px; }
.demo-titel .hinweis { margin-left: auto; font-weight: 400; color: #cfe2e5; font-size: 0.78rem; text-align: right; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.6rem; background: #EEF3F4; }
.panel { background: var(--papier); border: 1.5px solid var(--linie); border-radius: 8px; display: flex; flex-direction: column; min-width: 0; position: relative; }
.panel.aktiv { border-color: var(--blau); }
.pfad { font-family: var(--mono); font-size: 12px; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--linie); color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel.aktiv .pfad { background: var(--fuellung); color: var(--petrol); font-weight: 600; }
.zeilen { list-style: none; margin: 0; padding: 0.25rem; min-height: 15.5rem; }
.zeile { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; padding: 0.22rem 0.4rem; border: 1px solid transparent; border-radius: 4px; cursor: default; }
.zeile svg { width: 16px; height: 16px; color: var(--grau); }
.zeile .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .groesse { color: var(--grau); font: 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.panel.aktiv .zeile.cursor { background: var(--zeile-wahl); border-color: var(--blau); }
.panel:not(.aktiv) .zeile.cursor { background: #EEF3F4; }
.zeile.markiert .name, .zeile.markiert .groesse { color: var(--markiert); font-weight: 700; }
.zeile.neu { animation: neu 1.2s ease-out; }
@keyframes neu { from { background: #fff3c4; } to { background: transparent; } }
.fortschritt { height: 3px; background: transparent; }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--blau); transition: width .9s ease-in-out; }
.status { font-size: 12px; color: var(--grau); padding: 0.35rem 0.6rem; border-top: 1px solid var(--linie); }
.tastenleiste { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--linie); }
.tastenleiste button { font: inherit; font-size: 0.8rem; background: var(--papier); color: var(--tinte); border: 0; border-right: 1px solid var(--linie); padding: 0.55rem 0.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }
.tastenleiste button:last-child { border-right: 0; }
.tastenleiste button:hover { background: var(--fuellung); }
.tastenleiste b { font-family: var(--mono); font-size: 0.72rem; color: var(--petrol); border: 1px solid var(--linie); border-radius: 4px; padding: 0 0.3rem; background: #F7FAFA; }
@media (max-width: 520px) {
  .demo-titel .hinweis { display: none; }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel[data-panel="1"] .zeilen { min-height: 0; }
  .tastenleiste span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } /* nur für Bildschirmleser */
  .tastenleiste button { position: relative; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 8vw, 6rem) 0; }
.abschnitt.hell { background: var(--papier); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.einleitung { margin-top: 1rem; max-width: 56ch; font-size: 1.1rem; color: var(--grau); }

/* Tasten */
.tasten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.8rem; margin-top: 2.6rem; }
.taste { display: flex; flex-direction: column; gap: 0.8rem; }
.kappe { align-self: flex-start; font-family: var(--mono); font-weight: 700; font-size: 0.95rem; color: var(--petrol); background: var(--nebel); border: 1.5px solid var(--linie); border-bottom-width: 4px; border-radius: 9px; padding: 0.35rem 0.75rem; min-width: 3rem; text-align: center; }
.taste p { display: flex; flex-direction: column; gap: 0.2rem; }
.taste strong { color: var(--petrol); }
.taste span { color: var(--grau); font-size: 0.95rem; }
@media (max-width: 900px) { .tasten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tasten { grid-template-columns: minmax(0, 1fr); } }

/* Funktionen */
.gruppen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.gruppe { background: var(--papier); border: 1.5px solid var(--linie); border-radius: 18px; padding: 1.5rem 1.4rem; }
.gruppe .sym { width: 30px; height: 30px; color: var(--petrol); margin-bottom: 0.9rem; }
.gruppe p { margin-top: 0.5rem; color: var(--grau); font-size: 0.97rem; }
.gruppe ul { margin: 0.7rem 0 0; padding-left: 1.1rem; font-size: 0.93rem; color: var(--tinte); }
.gruppe li { margin-top: 0.2rem; }
@media (max-width: 900px) { .gruppen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gruppen { grid-template-columns: minmax(0, 1fr); } }

.sprachen { margin-top: 3.2rem; }
.sprachen p { margin-top: 0.4rem; color: var(--grau); }
.flaggen { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.flaggen li { display: flex; align-items: center; gap: 0.5rem; background: var(--papier); border: 1px solid var(--linie); border-radius: 999px; padding: 0.35rem 0.85rem 0.35rem 0.5rem; font-size: 0.92rem; }
.flaggen svg { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* Preis: dunkles Band wie „Branchen“ auf der Seite der Warenwirtschaft */
.abschnitt.dunkel { background: var(--petrol); color: #e3eff0; }
.abschnitt.dunkel h2 { color: #fff; }
.preis-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.preis-karte { background: var(--papier); color: var(--tinte); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.abschnitt.dunkel .preis-karte h2 { color: var(--petrol); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.preis { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin-top: 1.2rem; }
.preis span { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; color: var(--petrol); letter-spacing: -0.03em; line-height: 1; }
.preis small { color: var(--grau); font-size: 0.95rem; }
.haken { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 0.5rem; }
.haken li { display: flex; align-items: center; gap: 0.55rem; }
.haken svg { width: 18px; height: 18px; color: #2E9E5B; flex: none; }
.preis-karte .knoepfe { margin-top: 1.6rem; }
.kauf-hinweis { margin-top: 1rem; font-size: 0.9rem; color: var(--grau); }
.kauf-hinweis[hidden] { display: none; }
.zeitstrahl { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 2px solid rgba(255, 255, 255, .25); }
.zeitstrahl li { position: relative; padding: 0 0 1.8rem 1.6rem; }
.zeitstrahl li::before { content: ''; position: absolute; left: -7px; top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: #8FD0EA; }
.zeitstrahl .tag { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8FD0EA; }
.zeitstrahl p { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 0.25rem; }
.zeitstrahl strong { color: #fff; font-size: 1.1rem; }
.zeitstrahl span { color: #cfe2e5; }
@media (max-width: 900px) { .preis-raster { grid-template-columns: minmax(0, 1fr); } }

/* Fragen */
.fragen { margin-top: 2.2rem; display: grid; gap: 0.7rem; max-width: 820px; }
.fragen details { background: var(--papier); border: 1.5px solid var(--linie); border-radius: 14px; }
.fragen summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--petrol); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--blau); }
.fragen details[open] summary::after { content: '–'; }
.fragen details p { padding: 0 1.2rem 1.1rem; color: var(--tinte); }

/* Produktleiste: bei sehr schmalen Handys (320 px) passen Name und Knopf sonst nicht nebeneinander */
@media (max-width: 380px) {
  .nx-leiste-innen { gap: 0.6rem; }
  .nx-leiste-name { font-size: 0.95rem; }
  .nx-leiste-aktion { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
}

/* Knöpfe als <button> (Fenster „in wenigen Tagen“) */
button.knopf { font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
