/* Webshop Phoenix Data Systems – hell und modern (design/README.md) */

/* Schriften: Geist / Geist Mono selbst hosten (DSGVO). Die woff2-Dateien fehlen noch – sobald sie in wwwroot/fonts liegen,
   @font-face einkommentieren. Bis dahin greift die Systemschrift.
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
*/

:root {
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --ink: #0B0D12;
    --ink-2: #3A404D;
    --muted: #4A5160;
    --border: #E6E4DF;
    --border-feld: #DAD7D0;
    --border-feld-2: #CFCBC2;
    --subtle: #F1EFEA;
    --accent: #FF7A1A;
    --accent-text: #B84E00;
    --accent-hover: #8A3A00;
    --accent-logo: #D45A00;
    --accent-soft: #FFF4EC;
    --accent-soft-2: #FFD9BF;
    --success: #166534;
    --success-bg: #E8F3EC;
    --warning: #8A3A00;
    --warning-bg: #FFE8D6;
    --grid: #EFEDE8;
    --dunkel-text: #EDEFF3;
    --dunkel-neben: #B4BCCA;
    --dunkel-neben-2: #9AA3B2;
    --schluessel: #FFA25C;
    --haken: #4ADE80;
    --schrift: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, Consolas, monospace;
    --breite: 1240px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--schrift); font-size: 16px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.05em; line-height: 1; }
h2 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -0.04em; line-height: 1.08; }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.h-mittel { font-size: clamp(26px, 3.5vw, 34px); letter-spacing: -0.03em; }
.h-klein { font-size: 24px; letter-spacing: -0.03em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--subtle); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.gedaempft { color: var(--muted); }
.gross { font-size: 18px; line-height: 1.6; }
.klein { font-size: 13px; }
.mono { font-family: var(--mono); }
.rechts { text-align: right; }
.mitte { text-align: center; }
.text-ok { color: var(--success); }
.orange-logo { color: var(--accent-logo); }
.unsichtbar, .sprungmarke:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprungmarke:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--surface); padding: 10px 16px; border-radius: 999px; }
.inline { display: inline; }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.label.akzent { color: var(--accent-text); }
.label.orange { color: var(--accent); }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 26px;
    border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: background-color .15s, border-color .15s; }
.knopf-klein { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.knopf-primaer { background: var(--accent); color: var(--ink); }
.knopf-primaer:hover { background: #F06A0A; color: var(--ink); }
.knopf-dunkel { background: var(--ink); color: #FFFFFF; }
.knopf-dunkel:hover { background: #22262F; color: #FFFFFF; }
.knopf-rand { background: var(--surface); color: var(--ink); border-color: var(--border-feld); font-weight: 500; }
.knopf-rand:hover { border-color: var(--ink); color: var(--ink); }
.knopf[aria-disabled="true"] { opacity: .55; cursor: default; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Kopf und Fuß ---------- */
.kopf { position: sticky; top: 0; z-index: 5; background: rgba(250, 250, 248, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.marke:hover { color: var(--ink); }
.tiger { color: var(--ink); flex: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1; }
.marke-name { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.marke-zusatz { font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: var(--muted); margin-top: 3px; }
.hauptnavigation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.hauptnavigation > a:not(.knopf) { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 12px; }
.hauptnavigation > a:not(.knopf):hover { color: var(--ink); }
.hauptnavigation .knopf { margin-left: 8px; }

.fuss { background: var(--ink); color: var(--dunkel-neben-2); margin-top: 0; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px; }
.fuss a { color: #D6D9E0; text-decoration: none; padding: 12px 10px; }
.fuss a:hover { color: #FFFFFF; }

.hinweisband { background: var(--warning-bg); color: var(--warning); text-align: center; font-family: var(--mono); font-size: 13px; padding: 10px 16px; }

/* ---------- Hero ---------- */
.hero { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px; border-bottom: 1px solid var(--border); }
.hero-innen { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(48px, 8vw, 88px); }
.hero-text { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-unterzeile { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--muted); max-width: 620px; }
.brotkrumen { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.brotkrumen a { color: var(--muted); }
.pille { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-2);
    border: 1px solid var(--border-feld); border-radius: 999px; padding: 8px 14px; background: var(--surface); }
.punkt { width: 8px; height: 8px; border-radius: 999px; background: #16A34A; flex: none; }

.konsole { flex: 1 1 380px; min-width: 0; background: var(--ink); color: var(--dunkel-neben); border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(11, 13, 18, .5); }
.konsole-kopf { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #232836; }
.konsole-kopf > span[aria-hidden] { width: 10px; height: 10px; border-radius: 999px; background: #343A4A; }
.konsole-titel { margin-left: 10px; font-family: var(--mono); font-size: 13px; color: var(--dunkel-neben-2); }
.konsole-inhalt { list-style: none; margin: 0; padding: 20px 24px; font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.konsole-inhalt li { padding: 2px 0; }
.konsole-icon img { display: block; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 8px; }
.haken { color: var(--haken); }
.pfeil { color: var(--accent); }
.hell { color: var(--dunkel-text); }
.schluessel { color: var(--schluessel); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-top: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 28px; }
[id] { scroll-margin-top: 72px; } /* Anker nicht unter der fixierten Kopfzeile */
.abschnitt[id] { scroll-margin-top: 24px; }
.abschnitt-ende, main > .abschnitt:last-child { padding-bottom: clamp(64px, 9vw, 112px); }
.kopfzeile-abschnitt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.raster { display: grid; gap: 16px; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.raster-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; }
.zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: start; }

.karte { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.karte-gestrichelt { border-style: dashed; border-color: var(--border-feld-2); }
.nummeriert { display: flex; flex-direction: column; gap: 6px; }
.nummeriert strong { font-size: 17px; }
.nummeriert .gedaempft { font-size: 15px; }
.nummer { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }

.zeitplan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.zeitplan .karte { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; }

.hakenliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.hakenliste li { position: relative; padding-left: 26px; }
.hakenliste li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent-logo);
    border-bottom: 2px solid var(--accent-logo); transform: rotate(-45deg); }
.zweispaltig-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px 32px; }

.option-box { background: var(--accent-soft); border: 1px solid var(--accent-soft-2); border-radius: 20px; padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.option-box strong { font-size: 18px; }

/* ---------- Preise ---------- */
.kaufbox { display: flex; flex-direction: column; gap: 10px; }
.kaufbox-akzent { border-color: var(--accent-soft-2); box-shadow: 0 24px 48px -32px rgba(11, 13, 18, .35); }
.kaufbox-titel { font-size: 26px; letter-spacing: -0.03em; }
.preis { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 14px 0 6px; border-top: 1px solid #ECEAE4; margin-top: 6px; }
.preis-betrag { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.preis-offen { font-size: 20px; font-weight: 600; }
.lizenzmodelle { gap: 28px; }
.akzentlinie { padding-left: 28px; border-left: 2px solid var(--accent); }

/* ---------- Testversion (dunkler Akzent) ---------- */
.dunkle-karte { background: var(--ink); color: var(--dunkel-neben); border-radius: 24px; padding: clamp(28px, 5vw, 48px);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.dunkle-karte h2 { color: #FFFFFF; font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.03em; }
.dunkle-karte .stapel { max-width: 720px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-text); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

.hinweisliste { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Startseite ---------- */
.produktkachel { min-height: 300px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
    padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: border-color .15s; }
.produktkachel:hover { color: var(--ink); border-color: var(--border-feld-2); }
.produktkachel h3 { font-size: clamp(28px, 3.5vw, 36px); letter-spacing: -0.04em; }
.produktkachel p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.produktkachel-dunkel { background: var(--ink); color: var(--dunkel-text); border-color: var(--ink); }
.produktkachel-dunkel:hover { color: var(--dunkel-text); border-color: #343A4A; }
.produktkachel-dunkel p { color: var(--dunkel-neben); }
.produktkachel-dunkel .label:not(.orange) { color: var(--dunkel-neben-2); }
.kachel-kopf { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kachel-fuss { font-weight: 600; color: var(--accent-text); }
.produktkachel-dunkel .kachel-fuss { color: var(--accent); }
.kontaktbox { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 40px); }
.kontaktbox .stapel { max-width: 640px; }

/* ---------- Formulare und Meldungen ---------- */
.formular label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input:not([type=checkbox]):not([type=radio]), textarea, select { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
    border: 1px solid var(--border-feld); border-radius: 12px; min-height: 48px; padding: 10px 14px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-logo); outline: 2px solid var(--accent-soft-2); outline-offset: 0; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent-logo); margin: 0; }
.schmal { max-width: 440px; margin: 0 auto; width: 100%; }
.meldung { border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.meldung-ok { background: var(--success-bg); color: var(--success); }
.meldung-warnung { background: var(--warning-bg); color: var(--warning); }
.meldung-fehler { background: #FDECEC; color: #9B1C1C; }
.validierung.validation-summary-valid { display: none; }
.feldraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.feldfehler { color: #9B1C1C; font-size: 13px; font-weight: 400; }
.feldfehler:empty { display: none; }
.input-validation-error { border-color: #C53030 !important; }
.formular label.ankreuzen { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; line-height: 1.45; cursor: pointer; }
.ankreuzen input { margin-top: 1px !important; flex: none; }
.honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Testversion anfordern ---------- */
.hero-kompakt { padding: 24px 0 20px; }
.h-gross { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -0.05em; line-height: 1.02; }
.formular-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; align-items: start; }
.formular-layout > form, .bestaetigung { box-shadow: 0 24px 48px -32px rgba(11, 13, 18, .35); }
.formular-text { gap: 18px; }
.validierung ul { margin: 0; padding-left: 18px; }

/* ---------- Bestellung ---------- */
fieldset.wahlgruppe { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
fieldset.wahlgruppe legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.formular label.wahl { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-feld); border-radius: 14px;
    background: var(--surface); cursor: pointer; font-weight: 400; }
.formular label.wahl:has(input:checked) { border-color: var(--accent-logo); background: var(--accent-soft); }
.wahl input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent-logo); margin: 0; flex: none; }
.wahl-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.wahl-preis { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.formular label.menge { max-width: 200px; }
.summe { width: 100%; border-collapse: collapse; font-size: 15px; }
.summe td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.summe td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 16px; }
.summe tr.gesamt td { font-weight: 700; font-size: 17px; border-bottom: 0; padding-top: 12px; }
.angaben { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; font-size: 15px; line-height: 1.5; }
.angaben h3 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.knopfzeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kaufbox .knopf { align-self: flex-start; margin-top: 8px; }

@media (max-width: 640px) {
    .rahmen { padding-left: 16px; padding-right: 16px; }
    .kopf { position: static; } /* zweizeilig am Handy – nicht über dem Inhalt fixieren */
    [id] { scroll-margin-top: 0; }
    .hauptnavigation > a:not(.knopf) { padding: 10px 8px; }
    .karte { padding: 22px; }
    .konsole-inhalt { font-size: 13px; padding: 16px 18px; }
    .akzentlinie { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
.bestaetigung dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.bestaetigung dd { margin: 0; }

/* Rechtstexte (Impressum, AGB, Datenschutz) */
.rechtstext { max-width: 820px; gap: 16px; font-size: 16px; line-height: 1.65; }
.rechtstext h2 { font-size: 20px; letter-spacing: -0.02em; margin: 20px 0 0; }
.rechtstext p, .rechtstext ol, .rechtstext ul { margin: 0; }
.rechtstext ol, .rechtstext ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.rechtstext a { color: var(--accent-text); overflow-wrap: anywhere; }
.angabenliste { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.angabenliste dt { color: var(--muted); }
.angabenliste dd { margin: 0; }
@media (max-width: 560px) { .angabenliste { grid-template-columns: 1fr; gap: 0; } .angabenliste dd { margin-bottom: 10px; } }
