/* Shopserver – Gestaltung angelehnt an it-service-commander.de (Design "Leitstand").
   Schriften liegen im Shopserver selbst (public/fonts, SIL Open Font License): keine Verbindung zu Google oder anderen Dritten. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 100 700; font-display: swap;
  src: url(/static/fonts/ibm-plex-sans-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/space-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #141b29;
  --muted: #586273;
  --line: #dde3eb;
  /* Links und Umrandungen: die Hauptfarbe, fuer gute Lesbarkeit auf Weiss etwas abgedunkelt */
  --accent: color-mix(in srgb, var(--brand, #2a74a6) 85%, #00102e);
  --accent-ink: var(--brand-ink, #ffffff);
  --band: var(--brand-dark, #141b29);
  --band-ink: var(--brand-dark-ink, #ffffff);
  /* Signalfarbe auf dem dunklen Band (kleine Zeile, Punkt, Sinnbild) – wie das Logo-Blau der Website */
  --signal: var(--brand-signal, #468ebf);
  --tint: color-mix(in srgb, var(--brand, #2a74a6) 12%, transparent);
  --key: #ffd84a;
  --key-ink: #2a2200;
  --danger: #b42318;
  --ok: #17713f;
  --warn: #9a5b00;
  --radius: 10px;
  --radius-card: 18px;
  --shadow-card: 0 1px 2px rgba(20, 27, 41, 0.05), 0 12px 32px -18px rgba(20, 27, 41, 0.22);
  --sans: "IBM Plex Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1520;
    --surface: #182131;
    --ink: #e8edf4;
    --muted: #9eaabc;
    --line: #2b3749;
    --accent: color-mix(in srgb, var(--brand, #2a74a6) 45%, white);
    --accent-ink: #0d1730;
    --tint: color-mix(in srgb, var(--brand, #2a74a6) 24%, transparent);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -20px rgba(0, 0, 0, 0.6);
    --danger: #ff9b8f;
    --ok: #6fd39b;
    --warn: #f0b860;
  }
}
/* Von Hand gewaehlte dunkle Darstellung – dieselben Werte wie oben */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1520;
  --surface: #182131;
  --ink: #e8edf4;
  --muted: #9eaabc;
  --line: #2b3749;
  --accent: color-mix(in srgb, var(--brand, #2a74a6) 45%, white);
  --accent-ink: #0d1730;
  --tint: color-mix(in srgb, var(--brand, #2a74a6) 24%, transparent);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -20px rgba(0, 0, 0, 0.6);
  --danger: #ff9b8f;
  --ok: #6fd39b;
  --warn: #f0b860;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main, .site-header, .site-footer {
  width: min(100% - 2.5rem, 44rem);
  margin-inline: auto;
}
body.wide main, body.wide .site-header { width: min(100% - 2.5rem, 86rem); }
main { padding-block: 1.5rem 4rem; }

a { color: var(--accent); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, legend, .price, .tile-value, .summary-total, .brand-name, .footer-name { font-family: var(--display); }
h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 1.5rem; text-wrap: balance; }
h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 0.25rem; }
h3 { font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
small, .hint { font-size: 0.875rem; color: var(--muted); font-weight: 400; }

.site-header { padding-block: 1.5rem 1rem; }
.brand { font-weight: 750; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; font-size: 1.125rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.25rem 2.5rem; font-size: 0.9375rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); }

/* Lizenzschluessel in fuenf Segmenten */
.key { display: inline-flex; gap: 3px; font-family: var(--mono); font-weight: 600; font-size: clamp(0.72rem, 3.3vw, 1.05rem); letter-spacing: 0.05em; white-space: nowrap; }
.key-seg { background: var(--key); color: var(--key-ink); padding: 0.45em 0.5em; }
.key-seg:first-child { border-radius: 6px 0 0 6px; }
.key-seg:last-child { border-radius: 0 6px 6px 0; }
.key-sample { margin-top: 0.5rem; }
.key-sample .key-seg:not(:first-child) { background: var(--line); color: var(--muted); }

.hero { padding-block: 1.5rem 2.5rem; }

.products { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.product { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.product-text { flex: 1 1 18rem; }
.product-text p { color: var(--muted); margin: 0; }
.product-buy { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.price { margin: 0; font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: 0.8125rem; }

.button {
  display: inline-block; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--brand, #2a74a6); color: var(--brand-ink, #ffffff); /* Knoepfe behalten die Markenfarbe auch in dunkler Darstellung */
  font: inherit; font-weight: 600; text-decoration: none; letter-spacing: 0.005em;
  padding: 0.75rem 1.3rem; min-height: 46px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 16px -8px color-mix(in srgb, var(--brand, #2a74a6) 70%, transparent);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.button:hover { background: color-mix(in srgb, var(--brand, #2a74a6) 88%, #000); }
.button:active { transform: translateY(1px); }
.button-large { width: 100%; padding-block: 0.95rem; font-size: 1.125rem; }
.button-quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 55%, transparent); padding: 0.45rem 0.9rem; }
.button-quiet:hover { background: var(--tint); box-shadow: inset 0 0 0 1.5px currentColor; }
button.link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.875rem; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* Formular */
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend { font-weight: 700; font-size: 1.125rem; padding: 0; margin-bottom: 0.75rem; }
.field { margin-bottom: 1rem; flex: 1 1 0; min-width: 0; }
.field-short { max-width: 10rem; }
.row { display: flex; gap: 0 1rem; flex-wrap: wrap; }
.row .field { flex-basis: 12rem; }
.row-zip .field:first-child { flex: 0 1 8rem; }
label { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.3rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="date"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 46px; padding: 0.55rem 0.75rem;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
input:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--accent); }
.has-error input, .has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.875rem; margin: 0.3rem 0 0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; margin-bottom: 1rem; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.check label { font-weight: 400; margin: 0; }
.check .error { grid-column: 2; }

.summary { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.summary p { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.summary-total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 0.9rem; font-variant-numeric: tabular-nums; }
.summary .hint { display: block; margin: 0.9rem 0 0; text-align: center; }

.notice { padding: 0.9rem 1.1rem; border-radius: var(--radius); background: var(--surface); border-left: 5px solid var(--accent); }
.notice-error { border-left-color: var(--danger); }

/* Bestellseite */
.keys { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.keys li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.facts { margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

.tag { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 99px; border: 1.5px solid currentColor; color: var(--muted); white-space: nowrap; }
.tag-paid, .tag-aktiv { color: var(--ok); }
.tag-refunded, .tag-failed, .tag-gesperrt { color: var(--danger); }
.tag-abgelaufen { color: var(--warn); }

.legal h2 { margin-top: 2.5rem; font-size: 1.45rem; }
.legal h3 { margin: 1.6rem 0 0.5rem; font-size: 1.1rem; }
.legal ol { padding-left: 1.4rem; }
.legal .box ul { margin-bottom: 0.8rem; }

/* Verwaltung */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
td code { font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap; }
td code.revoked { text-decoration: line-through; color: var(--muted); }

/* Lizenzdatei auf der Bestellseite */
textarea { min-height: 0; resize: vertical; line-height: 1.4; }
textarea.mono, .mono { font-family: var(--mono); font-size: 0.8125rem; word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: center; margin-top: 0.7rem; }
.keys li.lic-file { display: block; }

/* Felder einer Offline-Lizenz */
fieldset.multi { margin-bottom: 1rem; }
fieldset.multi legend { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.3rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.choices label { font-weight: 400; display: flex; gap: 0.4rem; align-items: center; margin: 0; }
.choices input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.field .hint { margin: 0.3rem 0 0; }

/* Verwaltung */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.9rem; }
.admin-header .brand small { display: block; font-weight: 400; }
.admin-header nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; align-items: baseline; }
.admin-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: 0.2rem; border-bottom: 3px solid transparent; }
.admin-header nav a[aria-current="page"] { border-bottom-color: var(--brand, #2a74a6); }
.admin-header nav form { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar h1 { margin: 0; }
form.inline { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 1rem; }
form.inline select, form.inline input { width: auto; flex: 1 1 14rem; }
form.inline .button { flex: 0 0 auto; }
form.search input { max-width: 26rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin-bottom: 1rem; }
.tabs a { padding: 0.3rem 0.8rem; border-radius: 99px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); background: var(--surface); font-size: 0.9375rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs a[aria-current="page"] small { color: inherit; }
.narrow { max-width: 46rem; }
.narrow h2 { margin: 2rem 0 0.8rem; }
.box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.box summary { cursor: pointer; font-weight: 600; }
.box form { margin-top: 0.9rem; }
.box h2 { margin: 0 0 0.2rem; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1.5rem; }
form.danger { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
form.danger button.link, button.link[data-confirm] { color: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.button + .button { margin-left: 0.5rem; }
.actions .button + .button { margin-left: 0; }
.login { max-width: 22rem; margin: 12vh auto 0; }
.login h1 { margin-bottom: 0.2rem; }
.table-wrap + form.inline { margin-top: 1rem; }
td small { color: var(--muted); }
.facts dd { word-break: break-word; white-space: pre-wrap; }

/* Umschalter Darstellung */
.theme-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--surface); }
.theme-switch button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.8125rem; padding: 0.3rem 0.7rem; cursor: pointer; min-height: 32px; }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.site-footer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.login .theme-switch { margin-top: 2rem; }
[hidden] { display: none !important; }

/* Felder nebeneinander (Lizenzformular wie im Generator) */
.row .field-small { flex: 0 1 7.5rem; }
.row { align-items: flex-start; }

/* Mehrzeilige Lizenzfelder (ASCII-Signatur): feste Schrift, Leerzeichen und Umbrueche unveraendert */
textarea.ascii { white-space: pre; overflow-wrap: normal; word-break: normal; overflow-x: auto; }
.facts div.fact-block { display: block; }
.facts div.fact-block dd { text-align: left; margin-top: 0.4rem; white-space: normal; }
pre.ascii { margin: 0; padding: 0.7rem 0.9rem; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.25; white-space: pre; overflow-x: auto;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }

/* Anfragen */
.badge { display: inline-block; min-width: 1.5em; padding: 0.05em 0.45em; border-radius: 99px; background: var(--key); color: var(--key-ink); font-size: 0.75rem; font-weight: 700; line-height: 1.5; text-align: center; }
.message { white-space: pre-wrap; margin: 0.5rem 0 0; padding: 0.5rem 0.7rem; border-left: 3px solid var(--line); font-size: 0.9375rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions > a { font-size: 0.9375rem; }
.box > p:last-child, .box > form:last-child { margin-bottom: 0; }

/* Zwei-Faktor-Anmeldung */
.code-input { font-family: var(--mono); font-size: 1.3rem; letter-spacing: 0.2em; }
.qr { width: 14rem; max-width: 100%; background: #fff; border-radius: var(--radius); border: 1.5px solid var(--line); padding: 0.4rem; margin: 0.9rem 0; }
.qr svg { display: block; width: 100%; height: auto; }
ol.steps { padding-left: 1.3rem; }
ol.steps > li { margin-bottom: 1.5rem; }
ol.steps form { margin-top: 0.8rem; }

/* Produkte mit Versionen */
.product { display: block; }
.product > h2 { font-size: 1.4rem; }
.product-description { color: var(--muted); margin: 0 0 0.6rem; }
.offers { list-style: none; margin: 0; padding: 0; }
.offer { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; align-items: center; padding-block: 0.9rem; }
.offer + .offer { border-top: 1px dashed var(--line); }
.offer h3 { margin: 0 0 0.3rem; font-size: 1.125rem; }
.offer .product-text p { margin: 0; }
.choice-card { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.8rem; font-weight: 400; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 0.6rem; cursor: pointer; }
.choice-card input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--accent); }
.choice-card:has(input:checked) { border-color: var(--accent); }
.choice-card .includes { margin-top: 0.4rem; }
.choice-price { float: right; font-weight: 700; }

.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { margin-bottom: 0.2rem; }
.versions-bar { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; }
td .includes { margin: 0; }
h2[id] { scroll-margin-top: 1rem; margin-top: 2.5rem; }

.field-medium { max-width: 24rem; }

/* ===== Verkaufsseite: Kopfband im Design "Leitstand" der Website ===== */
/* Dunkle Flaeche mit feinem Raster und weichem Lichtschein in der Hauptfarbe */
.band {
  position: relative; overflow: hidden;
  background-color: var(--band); color: var(--band-ink);
  background-image:
    radial-gradient(52rem 24rem at 88% -14%, color-mix(in srgb, var(--brand, #2a74a6) 28%, transparent), transparent 72%),
    linear-gradient(color-mix(in srgb, var(--band-ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--band-ink) 5%, transparent) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  background-position: 0 0, -1px -1px, -1px -1px;
}
/* Genau zwei Rasterfelder hoch (80 px): So faellt die Trennlinie unter der Kopfzeile auf eine Linie des Rasters,
   statt knapp daneben eine zweite Linie zu bilden */
.band .site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; min-height: 80px; padding-block: 0.5rem; box-sizing: border-box; }
/* Trennlinie unter der Kopfzeile ueber die volle Breite, wenn darunter ein Einstieg folgt */
.band-hero .site-header::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: 0; height: 1px; background: color-mix(in srgb, var(--band-ink) 10%, transparent); }
.band .brand { color: inherit; display: inline-flex; align-items: center; min-width: 0; }
.band .brand img { display: block; height: 2.75rem; width: auto; max-width: min(52vw, 18rem); object-fit: contain; object-position: left center; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.band :focus-visible { outline-color: var(--signal); }
.band .hero { width: min(100% - 2.5rem, 44rem); margin-inline: auto; padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.75rem, 7vw, 4.75rem); }
.band .hero h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1.1rem; max-width: 22ch; }
.band .hero .lead { color: inherit; opacity: 0.8; font-size: clamp(1.0625rem, 2.4vw, 1.2rem); line-height: 1.6; margin-bottom: 1.75rem; max-width: 40rem; }
.band .key-sample .key-seg:not(:first-child) { background: color-mix(in srgb, var(--band-ink) 14%, transparent); color: color-mix(in srgb, var(--band-ink) 70%, transparent); }

/* Kleine Zeile ueber der Ueberschrift: Schreibmaschinenschrift in Grossbuchstaben mit Leuchtpunkt */
.eyebrow { display: flex; gap: 0.8rem; align-items: baseline; margin: 0 0 1.1rem; font: 500 0.875rem/1.55 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.band .eyebrow { color: var(--signal); }
.eyebrow::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); transform: translateY(-0.08rem); }

/* Startseite: breiter, Produkte als Karten, Versionen nebeneinander zum Vergleichen */
body.catalog main, body.catalog .band .hero { width: min(100% - 2.5rem, 64rem); }
/* Kopf- und Fusszeile auf allen Seiten des Shops so breit wie auf der Startseite – wie die durchgehende Kopfzeile der Website */
.band .site-header, .footer-band .site-footer { width: min(100% - 2.5rem, 64rem); }
/* In dunkler Darstellung trennt eine feine Linie Band und Seite */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--band-ink) 9%, transparent); } }
:root[data-theme="dark"] .band { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--band-ink) 9%, transparent); }
body.catalog main { padding-top: 2.25rem; }
.catalog .products { border-top: 0; }
.catalog .product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1.25rem, 3.5vw, 2rem) 0.75rem; margin-bottom: 1.5rem; transition: border-color 0.2s ease; }
.catalog li.product:hover { border-color: color-mix(in srgb, var(--brand, #2a74a6) 38%, var(--line)); }
.catalog .product h2 { font-size: clamp(1.4rem, 3.5vw, 1.7rem); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.catalog .product-description { max-width: 46rem; margin-bottom: 0; font-size: 1.0625rem; }
.catalog .offers { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.catalog .offer { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; padding-block: 1.4rem; }
.catalog .offer + .offer { border-top: 1px solid var(--line); }
.catalog .offer h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.catalog .offer-text { flex: 1; }
.catalog .offer-text p { margin: 0; }
.catalog .offer-buy .price { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.9rem; }
.catalog .offer-buy .price small { font-family: var(--sans); letter-spacing: 0; margin-top: 0.25rem; }
.catalog .offer-buy .button { display: block; text-align: center; }
/* Monatsbetrag gross, darunter gut lesbar der Betrag, der tatsaechlich im Voraus zu zahlen ist */
.price-monthly .per-month { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-monthly .price-total { display: block; margin-top: 0.35rem; font: 600 0.9375rem/1.4 var(--sans); letter-spacing: 0; color: var(--ink); }
.price-monthly small { margin-top: 0.15rem; }
.choice-price small { display: block; text-align: right; }
.price-equivalent { margin-top: 0.6rem; }
@media (min-width: 44rem) {
  .catalog .offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .catalog .offer + .offer { border-top: 0; border-left: 1px solid var(--line); padding-left: 1.75rem; }
  .catalog .offer:not(:last-child) { padding-right: 1.75rem; }
  /* Ein einzelnes Angebot: Beschreibung links, Preis und Knopf rechts */
  .catalog .offers-single { display: block; }
  .catalog .offers-single .offer { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .catalog .offers-single .offer-buy { flex: 0 0 17rem; }
}

/* Was enthalten ist: Haekchen im Kreis wie in den Listen der Website */
.includes { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.includes li { position: relative; padding-left: 2.1rem; margin-bottom: 0.5rem; }
.includes li::before { content: ""; position: absolute; left: 0; top: 0.12rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--tint); }
.includes li::after { content: ""; position: absolute; left: 0.52rem; top: 0.38rem; width: 0.36rem; height: 0.66rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
td .includes li { padding-left: 1.7rem; margin-bottom: 0.2rem; }
td .includes li::before { width: 1.15rem; height: 1.15rem; top: 0.15rem; }
td .includes li::after { left: 0.42rem; top: 0.36rem; width: 0.3rem; height: 0.55rem; }

/* Einstellungen: Vorschau des Kopfbands und Farbwahl */
.preview { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 2rem; background: var(--bg); }
.preview .band .site-header { width: auto; padding-inline: 1.25rem; }
.preview-body { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: center; padding: 1rem 1.25rem; }
.color-row { display: flex; gap: 0.6rem; align-items: center; }
.color-row input[type="color"] { flex: 0 0 3.5rem; width: 3.5rem; height: 46px; padding: 3px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.color-row input[type="text"] { max-width: 8rem; font-size: 1rem; word-break: normal; }
input[type="file"] { font: inherit; font-size: 0.9375rem; max-width: 100%; }
.narrow form + form { margin-top: 0.8rem; }

.product-download { margin: 0.4rem 0 0; font-size: 0.9375rem; }

/* Produktbilder auf der Verkaufsseite */
.catalog .product-head { display: grid; gap: 1rem 2rem; }
.product-cover { order: -1; }
.product-cover img { display: block; width: 100%; height: auto; max-height: 18rem; object-fit: contain; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); }
@media (min-width: 44rem) {
  .catalog .product-head.has-cover { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: start; }
  .product-cover { order: 0; }
}
.product-gallery { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0; margin: 1.25rem 0 0; }
/* Weitere Bilder: vollstaendig und im eigenen Seitenverhaeltnis, nicht beschnitten */
.product-gallery img { display: block; height: 11rem; width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); }
.catalog div.product .product-gallery img { height: 15rem; } /* auf der eigenen Produktseite groesser */
@media (max-width: 40rem) { .product-gallery img, .catalog div.product .product-gallery img { height: 8.5rem; } }
.image-list img { display: block; width: 8.5rem; height: 6.5rem; object-fit: contain; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); }
.product-gallery a:hover img, .product-cover:hover img { border-color: var(--accent); }

/* Bilder in der Verwaltung */
.image-list { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0 0 1.25rem; }
.image-list li { width: 8.5rem; font-size: 0.875rem; }
.image-list form { margin: 0.2rem 0 0; }
.image-list .tag { margin-top: 0.3rem; }

/* Sprachwahl im Kopfband */
.band-links { display: flex; align-items: center; gap: 0.6rem 1.25rem; flex-wrap: wrap; }
.band-links { flex-wrap: nowrap; gap: 0.5rem; }
/* Schmale Leiste ueber dem Kopf: zurueck zur Website. Genau ein Rasterfeld (40 px) hoch, damit die Linien
   des Hintergrundrasters weiter auf der Trennlinie unter der Kopfzeile liegen. Der Verweis ist eine deutlich
   sichtbare Schaltflaeche: heller Text, Rahmen und der Pfeil in einem Kreis in der Hauptfarbe */
.band-top { position: relative; height: 40px; box-sizing: border-box; background: color-mix(in srgb, #000 22%, var(--band));
  border-bottom: 1px solid color-mix(in srgb, var(--band-ink) 10%, transparent); font-size: 0.875rem; }
.band-top-inner { width: min(100% - 2.5rem, 64rem); height: 100%; margin-inline: auto; display: flex; align-items: center; }
.back-to-site { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; max-width: 100%; height: 30px; box-sizing: border-box; padding: 0 0.9rem 0 4px;
  border: 1px solid color-mix(in srgb, var(--band-ink) 26%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--band-ink) 8%, transparent);
  color: var(--band-ink); font-weight: 600; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease; }
.back-to-site span { overflow: hidden; text-overflow: ellipsis; }
.back-to-site svg { flex: none; box-sizing: border-box; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand, #2a74a6); color: var(--brand-ink, #fff); transition: transform 0.15s ease; }
.back-to-site:hover { border-color: color-mix(in srgb, var(--brand, #2a74a6) 80%, var(--band-ink)); background: color-mix(in srgb, var(--brand, #2a74a6) 28%, transparent); }
.back-to-site:hover svg { transform: translateX(-2px); }
.lang-switch { display: inline-flex; align-items: stretch; padding: 3px; gap: 2px; border: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); border-radius: 12px;
  background: color-mix(in srgb, var(--band-ink) 4%, transparent); font: 600 0.8125rem/1 var(--mono); letter-spacing: 0.06em; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.65rem; border-radius: 9px; color: inherit; text-decoration: none; }
.lang-switch a { opacity: 0.72; }
.lang-switch a:hover { opacity: 1; background: color-mix(in srgb, var(--band-ink) 10%, transparent); }
.lang-switch span { background: var(--brand, #2a74a6); color: var(--brand-ink, #fff); }

/* Laengere Texte (E-Mail-Vorlagen) */
.field textarea:not(.mono) { line-height: 1.45; }
details.box > .field:first-of-type, details.box > p:first-of-type { margin-top: 0.9rem; }

/* Produktbild im Fenster auf der Seite */
.product-cover, .product-gallery a { cursor: zoom-in; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 72rem); max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0, 16, 46, 0.78); }
.lightbox-frame { position: relative; display: grid; justify-items: center; }
.lightbox-frame img { display: block; max-width: min(94vw, 72rem); max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45); }
.lightbox-frame button { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.94); color: #00102e; font: 600 1.6rem/1 var(--sans); box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3); }
.lightbox-frame button:hover { background: #fff; }
.lightbox-close { top: -0.9rem; right: -0.9rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 0.6rem; }
.lightbox-next { right: 0.6rem; }
.lightbox-count { margin: 0.7rem 0 0; color: #fff; font-size: 0.9375rem; }
@media (max-width: 40rem) { .lightbox-close { top: 0.4rem; right: 0.4rem; } }

/* ===== Ausdruck (Bestellseite mit Lizenz) ===== */
.print-only, .facts .print-row { display: none; }
@media print {
  /* Immer hell und ohne Flaechen drucken, auch wenn am Bildschirm die dunkle Darstellung gewaehlt ist */
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    color-scheme: light; --bg: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #999; --accent: #000; --band: #fff; --band-ink: #000;
  }
  @page { margin: 18mm; }
  body { background: #fff; font-size: 11pt; }
  main, .site-header, .band .hero { width: auto !important; }
  main { padding-block: 6mm 0; }
  .band { background: none; color: #000; border-bottom: 1.5pt solid #000; }
  .band .site-header { padding-block: 0 4mm; }
  .band .brand img, .band-links, .band-top, .site-footer, .footer-band, .eyebrow, .no-print, .button, button, textarea { display: none !important; }
  .band { background-image: none; }
  .print-only { display: block; }
  span.print-only { display: inline; }
  .band .brand { font-size: 14pt; text-decoration: none; }
  h1 { font-size: 20pt; }
  .lead { color: #000; font-size: 12pt; max-width: none; }
  a { color: #000; text-decoration: none; }
  .key { font-size: 15pt; letter-spacing: 0.08em; }
  .key-seg { background: none !important; color: #000 !important; border: 1pt solid #000; border-radius: 0 !important; }
  .keys li { margin-bottom: 4mm; break-inside: avoid; }
  .license-print { font-family: var(--mono); font-size: 8.5pt; line-height: 1.35; white-space: pre-wrap; word-break: break-all; border: 1pt solid #000; padding: 3mm; margin: 0; }
  .facts { margin-top: 8mm; }
  .facts .print-row { display: flex; }
  .facts div { break-inside: avoid; }
  .facts dd { word-break: break-all; }
}

/* Software-Download */
.downloads { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.downloads li { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.downloads strong { word-break: break-word; }
form.upload progress { display: block; width: 100%; height: 0.6rem; margin-top: 0.9rem; accent-color: var(--brand, #2a74a6); }
.upload-status { min-height: 1.3em; margin-top: 0.4rem; }

/* Allgemeiner Shop */
.button-off { background: var(--line); color: var(--muted); cursor: default; box-shadow: none; }
.button-off:hover { background: var(--line); }
.choices-stack { flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
address { font-style: normal; margin: 0 0 1rem; padding: 0.7rem 1rem; border-left: 3px solid var(--line); }
.back { margin: 0 0 1rem; font-size: 0.9375rem; }
.catalog div.product { margin-bottom: 0; }
.catalog .product h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin-bottom: 0.5rem; }
.catalog .product h2 a { color: inherit; text-decoration: none; }
.catalog .product h2 a:hover { text-decoration: underline; }
.product-long { margin-top: 0.9rem; max-width: 46rem; }
.product-long p { margin: 0 0 0.8rem; }

.field-wrap { flex: 1 1 12rem; min-width: 0; }
.field-wrap .field { flex-basis: auto; }

/* ===== Warenkorb und Kategorien ===== */
.cart-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem; border-radius: 12px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); background: color-mix(in srgb, var(--band-ink) 4%, transparent);
  color: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.cart-link:hover { background: color-mix(in srgb, var(--band-ink) 10%, transparent); }
.cart-link .badge { background: var(--brand, #2a74a6); color: var(--brand-ink, #fff); }
@media (max-width: 40rem) {
  .cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cart-link { padding: 0 0.75rem; }
  .band .brand img { height: 2.4rem; max-width: 46vw; }
}
.add-to-cart { margin: 0.5rem 0 0; }
.add-to-cart .button { display: block; width: 100%; text-align: center; }
.categories { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0 0 1.5rem; }
.categories { gap: 0.5rem; margin-bottom: 1.75rem; }
.categories a { padding: 0.45rem 1rem; border-radius: 99px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem; font-weight: 600; transition: border-color 0.15s ease; }
.categories a:hover { border-color: color-mix(in srgb, var(--brand, #2a74a6) 45%, var(--line)); }
.categories a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cart { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem 1.25rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.cart-line form { margin: 0; }
.cart-qty { display: flex; gap: 0.5rem; align-items: center; }
.cart-qty select { width: auto; min-height: 40px; }
.cart-price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-line > form:last-child { grid-column: 1 / -1; }
@media (max-width: 30rem) {
  /* Schmale Handys: Name ueber die volle Breite, darunter Menge und Preis */
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-name { grid-column: 1 / -1; }
}
.order-lines { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.order-item { margin-bottom: 1.5rem; }
.order-item h2 { margin-bottom: 0.6rem; }
.category-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.category-list li { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; margin-bottom: 0.4rem; }
.category-list form.inline { margin: 0; flex: 1 1 30rem; }
.narrow-input { max-width: 5rem; flex: 0 0 5rem !important; }
.summary a.button-large { display: block; text-align: center; }
.summary + p { margin-top: 1.25rem; }

.facts-tight { margin-top: 0.6rem; }
.notice > p:last-child, .notice > dl:last-child { margin-bottom: 0; }
.lost-link { color: var(--muted); font-size: 0.9375rem; }

form.checkout > .notice { margin-bottom: 2rem; }

.withdraw-link { font-weight: 700; color: var(--ink) !important; }

/* ===== Fuss der Verkaufsseite: dunkel wie Kopfband und Fusszeile der Website ===== */
.footer-band { margin-top: 2rem; background-color: var(--band); color: var(--band-ink);
  background-image: linear-gradient(color-mix(in srgb, var(--band-ink) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--band-ink) 4%, transparent) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px; }
.footer-band .site-footer { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: flex-start; justify-content: space-between; border-top: 0; padding-block: 2.5rem 3rem; font-size: 0.9375rem; }
.footer-band p { margin: 0; }
.footer-brand { display: grid; gap: 0.2rem; }
.footer-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.footer-band nav, .footer-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1.4rem; }
.footer-band a { color: inherit; opacity: 0.75; text-decoration: none; }
.footer-band a:hover { opacity: 1; text-decoration: underline; }
.footer-band .withdraw-link { color: inherit !important; opacity: 1; }
.footer-band .theme-switch { background: color-mix(in srgb, var(--band-ink) 4%, transparent); border: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent); }
.footer-band .theme-switch button { color: inherit; opacity: 0.75; }
.footer-band .theme-switch button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); opacity: 1; }
.footer-band :focus-visible { outline-color: var(--signal); }

/* Uebersicht der Verwaltung */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 0.6rem; }
.tile { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.tile p { margin: 0; }
.tile-label { color: var(--muted); font-size: 0.9375rem; }
.tile-value { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 3rem; margin-top: 1rem; }
.columns h2 { margin-top: 1.5rem; }
.tasks { list-style: none; padding: 0; margin: 0 0 1rem; }
.tasks li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.tasks-warn li { padding-left: 0.9rem; border-left: 3px solid var(--warn); border-bottom: 0; margin-bottom: 0.5rem; }

/* ===== Bearbeitungsseiten mit Abschnitten (Produkt, Einstellungen) ===== */
.edit-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; }
.edit-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; }
.edit-nav a { padding: 0.35rem 0.8rem; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.9375rem; white-space: nowrap; }
.edit-nav a:hover { border-color: var(--accent); }
.edit-main { max-width: 52rem; min-width: 0; }
@media (min-width: 62rem) {
  .edit-layout { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .edit-nav { position: sticky; top: 1rem; flex-direction: column; flex-wrap: nowrap; gap: 0.15rem; }
  .edit-nav a { border-radius: 8px; border-color: transparent; background: none; white-space: normal; }
  .edit-nav a:hover { background: var(--surface); border-color: var(--line); }
}
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; scroll-margin-top: 1rem; }
.card > h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.card h3 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
.card > :last-child { margin-bottom: 0; }
.card input[type="text"], .card input[type="email"], .card input[type="date"], .card select, .card textarea { background: var(--bg); }
.card .table-wrap { background: var(--bg); }
.save-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; padding: 0.8rem 1rem; margin: 0 0 1.75rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 -0.3rem 1.2rem rgba(0, 16, 46, 0.08); }
.save-bar .hint { margin: 0; }
.toolbar > div > h1 { margin-bottom: 0.3rem; }

.narrow-input-wide { max-width: 10rem; }
.card .table-wrap select { width: auto; min-width: 14rem; }
.card .table-wrap input[type="text"] { min-height: 40px; }

/* Kopfgrafik: ein Sinnbild auf einer Kachel */
.motif { display: inline-flex; margin-top: 0.5rem; }
.motif-tile { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 12px; background: var(--tint); color: var(--accent); }
.band .motif-tile { width: 3.5rem; height: 3.5rem; border-radius: 14px; color: var(--signal); background: color-mix(in srgb, var(--brand, #2a74a6) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--signal) 35%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand, #2a74a6) 7%, transparent); }
.motif svg { width: 1.7rem; height: 1.7rem; }
/* dasselbe Sinnbild, klein, vor dem Namen in der Kategorienauswahl */
.categories a { display: inline-flex; align-items: center; gap: 0.45rem; }
.categories svg { width: 1.05rem; height: 1.05rem; flex: none; opacity: 0.8; }
/* Auswahl in der Verwaltung */
.motif-gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; padding: 1rem 1.1rem; margin: 0 0 1.25rem; border-radius: 12px; }
.motif-gallery li { display: grid; gap: 0.35rem; justify-items: start; }
.motif-gallery li > span:last-child { font-size: 0.8125rem; opacity: 0.85; }
.motif-gallery .motif, .motif-gallery .key-sample { margin-top: 0; }
.category-list select { width: auto; max-width: 17rem; min-height: 40px; flex: 0 1 auto; }

/* Pruefelement von Cloudflare Turnstile */
.cf-turnstile { margin: 0.2rem 0 0.9rem; } /* im Modus "Unsichtbar" bleibt es leer und nimmt keinen Platz ein */
.cf-turnstile:empty { margin: 0; }
.turnstile-status { margin: 0 0 0.8rem; }
form + .box { margin-top: 1.5rem; }
