/* qr.ci8.de: gleicher Look wie ci8.de (Farben, Schriften, Komponenten aus ci8_de/public/_s/app.css). */
/* Fonts: latin plus latin-ext (Polish, Turkish, …); browsers only load the subset a page needs. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/schibsted-grotesk-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: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/schibsted-grotesk-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+0304, U+0308, U+0329, 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: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/schibsted-grotesk-latin-500-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: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/schibsted-grotesk-latin-700-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: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/schibsted-grotesk-latin-800-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: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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("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("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+0304, U+0308, U+0329, 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("fonts/ibm-plex-mono-latin-500-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: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-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: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }

/* Farben und Maße wie auf ci8.de */
:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #12181c;
  --muted: #56636b;
  --line: #d9e0e3;
  --accent: #0b7480;
  --accent-ink: #ffffff;
  --accent-soft: #e0f1f2;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --warn: #8a5300;
  --warn-soft: #fdf1dc;
  --ok: #1b6b3a;
  --ok-soft: #e3f3e8;
  --shadow: 0 1px 0 rgba(18,24,28,.04), 0 12px 32px -16px rgba(18,24,28,.18);
  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --wrap: 76rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1214; --surface: #151c1f; --ink: #e8eef0; --muted: #93a3aa; --line: #263236;
    --accent: #4fc6cf; --accent-ink: #062226; --accent-soft: #12323a;
    --danger: #ff8a80; --danger-soft: #3a1a18;
    --warn: #f3c178; --warn-soft: #3a2c12;
    --ok: #7fd59b; --ok-soft: #133022;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1214; --surface: #151c1f; --ink: #e8eef0; --muted: #93a3aa; --line: #263236;
  --accent: #4fc6cf; --accent-ink: #062226; --accent-soft: #12323a;
  --danger: #ff8a80; --danger-soft: #3a1a18;
  --warn: #f3c178; --warn-soft: #3a2c12;
  --ok: #7fd59b; --ok-soft: #133022;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Kopfzeile */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; font: 800 1.6rem/1 var(--font-display); letter-spacing: -.04em; white-space: nowrap; }
.brand .sub { color: var(--muted); font-weight: 600; letter-spacing: -.02em; }
.brand .eight { color: var(--accent); }
.brand .tld { color: var(--muted); font-weight: 500; letter-spacing: -.02em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.pill-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font: 600 .9rem/1 var(--font-body); white-space: nowrap;
}
.pill-link:hover { border-color: var(--accent); color: var(--accent); }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font: 500 .9rem/1 var(--font-body);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .15s;
}
.lang-menu[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--accent); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 12rem;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.lang-menu li a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.lang-menu li a:hover { background: var(--bg); }
.lang-menu li a[aria-current="true"] { background: var(--accent-soft); font-weight: 600; }
.lang-menu .flag { font-size: 1.1rem; line-height: 1; }
.theme-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); cursor: pointer;
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* Hero */
.hero { padding-block: clamp(20px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.hero h1 {
  font: 800 clamp(2.1rem, 5.4vw, 3.9rem)/1.02 var(--font-display);
  letter-spacing: -.035em;
  margin: 0 0 16px;
  max-width: 16ch;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* Arbeitsfläche: links Eingabe und Gestaltung, rechts die Vorschau */
.studio {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  grid-template-areas: "inputs preview";
  padding-bottom: clamp(40px, 6vw, 72px);
}
.inputs { grid-area: inputs; display: grid; gap: 20px; min-width: 0; }
.preview { grid-area: preview; position: sticky; top: 16px; min-width: 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow); padding: clamp(16px, 2.4vw, 24px); min-width: 0;
}
.card h2 { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 16px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.label { display: block; font: 500 .72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0; margin: 0 0 6px; }
legend.label { margin-bottom: 8px; }
.small { font-size: .875rem; color: var(--muted); margin: 0; max-width: 62ch; }
.note { margin: 0; font-size: .9rem; color: var(--ink); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }

/* Auswahl-Chips (Inhaltstyp, Formen) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .chip svg { pointer-events: none; }
.chip {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 500 .92rem/1 var(--font-body); color: var(--ink); transition: border-color .15s, background .15s;
}
.chip svg { width: 16px; height: 16px; fill: currentColor; color: var(--muted); }
.chip:hover { border-color: var(--accent); }
.chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip:has(input:checked) svg { color: var(--accent-ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.types { margin-bottom: 20px; }
.chips + .chips { margin-top: 14px; }

/* Formulare */
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-form > .wide, .grid-form > .small.wide, .grid-form > .note, .grid-form > .shorten-box { grid-column: 1 / -1; }
.form-row { display: grid; gap: 0; align-content: start; min-width: 0; }
.input {
  width: 100%; min-width: 0; font: 400 1rem/1.4 var(--font-mono); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; min-height: 46px;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { font-family: var(--font-body); resize: vertical; }
select.input { font-family: var(--font-body); cursor: pointer; }
.check-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; min-height: 32px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.check-cell { align-content: end; }

.color { display: flex; align-items: center; gap: 10px; }
.color input[type="color"] { width: 46px; height: 46px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; flex: none; }
.color output { font: 500 .95rem/1 var(--font-mono); color: var(--ink); }
.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; min-width: 0; accent-color: var(--accent); }
.range output { font: 500 .9rem/1 var(--font-mono); color: var(--ink); min-width: 6.5em; text-align: right; }

.btn {
  border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
  font: 700 1rem/1 var(--font-body); padding: 0 20px; min-height: 48px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none;
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); min-height: 44px; padding: 0 16px; font: 600 .92rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-ghost.small { min-height: 38px; font-size: .88rem; padding: 0 12px; }
.copy {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--radius); min-height: 48px; padding: 0 16px; cursor: pointer;
  font: 600 .95rem/1 var(--font-body); display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s, border-color .15s;
}
.copy:hover { border-color: var(--accent); }
.copy[disabled] { opacity: .55; cursor: not-allowed; }
.copy.done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.copy.small { min-height: 38px; font-size: .85rem; }

.error { margin: 12px 0 0; background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: .92rem; }
.error:empty { display: none; }

/* Kürzen mit ci8.de */
.shorten-box { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; }
.shorten-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.turnstile-slot:empty { display: none; }
.shorten-result { display: grid; gap: 10px; background: var(--accent-soft); border-radius: var(--radius); padding: 14px; }
.short-link { margin: 0; font: 600 1.35rem/1.2 var(--font-mono); overflow-wrap: anywhere; }
.short-link a { color: var(--ink); text-decoration: none; }
.edit-box { display: grid; gap: 8px; }
.edit-box .label { margin: 0; }
.edit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.edit-row code { font: 400 .82rem/1.4 var(--font-mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; flex: 1 1 16rem; min-width: 0; user-select: all; }
.edit-warn { margin: 0; font-size: .9rem; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; }

/* Gestaltung */
.design { display: grid; gap: 4px; }
.design h2 { margin-bottom: 8px; }
.design-group { padding-bottom: 12px; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: 10px; }
.template {
  display: grid; gap: 6px; justify-items: center; padding: 10px 6px 8px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
  font: 500 .85rem/1.2 var(--font-body);
}
.template:hover { border-color: var(--accent); }
.template[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.template-img { width: 56px; height: 56px; display: block; }
.template-img img { width: 100%; height: 100%; display: block; border-radius: 6px; }
.design-sec { border-top: 1px solid var(--line); }
.design-sec > summary {
  list-style: none; cursor: pointer; padding: 14px 32px 14px 0; position: relative;
  font: 700 1rem/1.3 var(--font-display); color: var(--ink);
}
.design-sec > summary::-webkit-details-marker { display: none; }
.design-sec > summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s;
}
.design-sec[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.design-sec > :last-child { margin-bottom: 18px; }
.design-sec > .form-row, .design-sec > .small, .design-sec > .logo-row { margin-bottom: 12px; }
.grad-only { display: none; }
.has-gradient .grad-only { display: grid; }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-btn { cursor: pointer; }
.logo-thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 4px; }
.design-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.design-foot .small { flex-basis: 100%; }

/* Vorschau */
.preview-card { display: grid; gap: 14px; }
.stage {
  min-height: 18rem; display: grid; place-items: center; border-radius: var(--radius);
  background-color: var(--bg);
  background-image: linear-gradient(45deg, var(--line) 25%, transparent 25%), linear-gradient(-45deg, var(--line) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--line) 75%), linear-gradient(-45deg, transparent 75%, var(--line) 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  padding: 16px; overflow: hidden;
}
.stage img { width: 100%; height: auto; max-height: min(70vh, 34rem); object-fit: contain; display: block; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.stage.empty { background-image: none; border: 1px dashed var(--line); }
.placeholder { color: var(--muted); text-align: center; max-width: 22ch; margin: 0; }
.check { margin: 0; font-weight: 600; font-size: .92rem; border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.check:empty { display: none; }
.check.ok { background: var(--ok-soft); color: var(--ok); }
.check.bad { background: var(--danger-soft); color: var(--danger); font-size: 1rem; border: 2px solid var(--danger); }
.check.pending { background: var(--bg); color: var(--muted); font-weight: 500; }
.warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.warnings:empty { display: none; }
.warnings li { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: .9rem; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.size-pick { display: grid; gap: 0; margin-left: auto; }
.size-pick .input { min-height: 48px; padding-block: 8px; width: auto; }
.encoded summary { cursor: pointer; font: 500 .72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 4px 0; }
.encoded pre { margin: 8px 0; max-height: 14rem; overflow: auto; font: 400 .82rem/1.45 var(--font-mono); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Split-Button wie auf ci8.de: Hauptaktion PNG, weitere Formate ausklappbar */
.split { display: inline-flex; align-items: stretch; position: relative; }
.split .split-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-menu { position: static; }
.split-menu summary {
  list-style: none; height: 100%; padding: 0 14px; margin-left: 1px;
  border-top-left-radius: 0; border-bottom-left-radius: 0;
}
.split-menu summary::-webkit-details-marker { display: none; }
.split-menu summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform .15s;
}
.split-menu[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.split-list {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 100%;
  display: grid; padding: 6px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.split-list button {
  border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap;
  padding: 10px 12px; border-radius: 10px; font: 500 .92rem/1.2 var(--font-body);
}
.split-list button:hover, .split-list button:focus-visible { background: var(--bg); }
.split.disabled summary { pointer-events: none; opacity: .55; }

/* Abschnitte */
.section { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.section h2 { font: 700 1.6rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 24px; text-wrap: balance; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(s); font: 600 .9rem/1 var(--font-mono); color: var(--accent);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
}
.steps h3 { font: 700 1.05rem/1.3 var(--font-display); margin: 4px 0 0; }
.steps p { margin: 0; color: var(--muted); }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.promo-inner > div { max-width: 46rem; }
.promo h2 { margin-bottom: 10px; }
.promo p { margin: 0; color: var(--muted); }

.legal { padding-block: 24px 72px; }
.legal h1 { font: 800 clamp(2rem, 5vw, 3rem)/1.1 var(--font-display); letter-spacing: -.03em; margin: 24px 0 16px; }
.legal p { color: var(--muted); }

/* Fußzeile */
.foot { padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "preview" "inputs"; }
  .preview { position: static; }
  .preview-card { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 26rem; width: 100%; justify-self: center; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pill-link { display: none; }
}
@media (max-width: 520px) {
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .brand { font-size: 1.35rem; }
  .size-pick { margin-left: 0; }
  .actions .split { flex: 1 1 auto; }
  .actions .split-main { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.design-sec.muted > :not(summary) { opacity: .5; }
.form-row > .btn-ghost, .design-foot > .btn-ghost { justify-self: start; flex: none; width: auto; }
