/* IPX – Website-Stylesheet
   Farben, Radien und Schrift entsprechen dem Programm (src/IPX.Design.pas, Farbwelt „Signal“).
   Hell/dunkel über [data-scheme] am <html> (setzt das Kopf-Skript vor dem ersten Zeichnen).
   Kontraste nach WCAG 2.1 AA, Fokus sichtbar, Bewegung abschaltbar, Schriftgröße in drei Stufen. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-vf-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-vf-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ Design-Token */
:root {
  --font-text: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-head: var(--font-text);
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --bg: #F5F6FA; --surface: #FFFFFF; --surface-2: #F0F2F8; --mono-bg: #F7F8FC;
  --line: #E3E6EF; --line-strong: #C9CFDE;
  --text: #171A2B; --text-2: #4A5068; --text-3: #6F7590;
  --brand: #3457F5; --brand-hover: #2846D6; --brand-ink: #FFFFFF; --brand-soft: #E6EBFF; --brand-text: #2B48D9;
  --teal: #12B5C9; --teal-bg: #DDF6F9; --teal-text: #0B7F8E;
  --side: #0F1630; --side-text: #E8ECFF; --side-muted: #8F98C0; --side-line: #1F2850;
  --ok: #1C8A4C; --ok-soft: #DDF5E6; --warn: #B26A00; --warn-soft: #FFF1D6; --err: #C8262E; --err-soft: #FDE4E4;
  --focus: #3457F5;
  --shadow: 0 1px 2px rgba(20, 25, 60, .06), 0 8px 24px -12px rgba(20, 25, 60, .18);
  --shadow-lg: 0 2px 6px rgba(20, 25, 60, .08), 0 24px 60px -24px rgba(20, 25, 60, .28);
  --glow-1: rgba(52, 87, 245, .14); --glow-2: rgba(18, 181, 201, .14);
  --radius: 14px; --radius-lg: 22px; --radius-sm: 9px;
  --dur: .18s; --ease: cubic-bezier(.2, .7, .2, 1);
  --fs: 1rem;
  color-scheme: light;
}
:root[data-scheme="dark"] {
  --bg: #0F1220; --surface: #171B2E; --surface-2: #1E2338; --mono-bg: #12162A;
  --line: #2A3050; --line-strong: #3A4266;
  --text: #EEF0FA; --text-2: #B9BED6; --text-3: #8D93AF;
  --brand: #7B93FF; --brand-hover: #92A6FF; --brand-ink: #0E1330; --brand-soft: #26305A; --brand-text: #A9B8FF;
  --teal: #3FD3E4; --teal-bg: #14363C; --teal-text: #7FE3EF;
  --side: #0B0E1C; --side-text: #E6E9F7; --side-muted: #8A91B0; --side-line: #1C2140;
  --ok: #6FE3A0; --ok-soft: #173826; --warn: #FFC56B; --warn-soft: #3A2E15; --err: #FF8A8A; --err-soft: #3F1D22;
  --focus: #7B93FF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px -24px rgba(0, 0, 0, .6);
  --glow-1: rgba(123, 147, 255, .16); --glow-2: rgba(63, 211, 228, .12);
  color-scheme: dark;
}
:root[data-size="l"] { --fs: 1.125rem; }
:root[data-size="xl"] { --fs: 1.25rem; }

/* ------------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
:root[data-motion="reduce"] html, :root[data-motion="reduce"] { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs)/1.6 var(--font-text); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-text); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
:root[data-scheme="dark"] a:hover { color: #C5CFFF; }
img, svg, video { max-width: 100%; height: auto; display: block; }
img { color: var(--text-3); }
code, kbd, pre { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--mono-bg); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em; overflow-wrap: anywhere; }
pre { background: var(--mono-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow: auto; }
pre code { border: 0; background: none; padding: 0; }
kbd { display: inline-block; min-width: 1.7em; padding: .05em .45em; text-align: center; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 1.5px 0 var(--line-strong); font-weight: 600; font-size: .85em; }
.keys { white-space: nowrap; }
.kbd-plus { margin: 0 .2em; color: var(--text-3); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
strong { font-weight: 700; }
::selection { background: var(--brand-soft); color: var(--text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.only-dark { display: none !important; }
:root[data-scheme="dark"] .only-dark { display: block !important; }
:root[data-scheme="dark"] .only-light { display: none !important; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.container-wide { width: min(100% - 32px, 1280px); }
.container-narrow { width: min(100% - 32px, 760px); }
.small { font-size: .9em; }
.muted { color: var(--text-3); }
.lead { font-size: 1.15em; color: var(--text-2); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 14px; }
.eyebrow .icon { width: 16px; height: 16px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------ Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: 700 1rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-text); background: var(--surface); }
.btn-ghost { background: transparent; color: var(--brand-text); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-ghost.danger { color: var(--err); }
.btn-ghost.danger:hover { background: var(--err-soft); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-light { background: #fff; color: var(--side); }
.btn-light:hover { background: #E8ECFF; color: var(--side); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; font: inherit; list-style: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20, 25, 60, .3); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 1.3rem/1 var(--font-head); letter-spacing: -.02em; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-word { background: linear-gradient(90deg, var(--text) 0 60%, var(--teal-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 600; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav-list a:hover { background: var(--surface-2); color: var(--text); }
.nav-list a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.nav-toggle { display: none; }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-cta { margin-left: 8px; }
.icon-sun { display: none; }
:root[data-scheme="dark"] .icon-sun { display: block; }
:root[data-scheme="dark"] .icon-moon { display: none; }
.lang-menu { position: relative; }
.lang-menu summary { width: auto; padding: 0 10px; font-size: .8rem; font-weight: 700; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::marker { content: ""; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60; }
.lang-list a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-weight: 500; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current="true"] { color: var(--brand-text); font-weight: 700; background: var(--brand-soft); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav-menu { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
  .nav-menu.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a { min-height: 48px; }
  .nav-cta-mobile { display: inline-flex; width: 100%; margin-top: 8px; }
}

/* ------------------------------------------------------------------ Abschnitte */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
:root[data-scheme="dark"] .section-alt { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }

/* ------------------------------------------------------------------ Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 14px; }
.card-icon .icon { width: 24px; height: 24px; }
.card-icon.teal { background: var(--teal-bg); color: var(--teal-text); }
.card-icon.ok { background: var(--ok-soft); color: var(--ok); }
.card-icon.warn { background: var(--warn-soft); color: var(--warn); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.note { padding: 14px 18px; border-radius: var(--radius); background: var(--brand-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); margin: 0 0 20px; }
.note a { color: var(--brand-text); }
.note-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.note-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.note-err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.pill-brand { background: var(--brand-soft); color: var(--brand-text); }
.pill-teal { background: var(--teal-bg); color: var(--teal-text); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-muted { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--line); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.status-dot.warn { background: var(--warn); }
.status-dot.err { background: var(--err); }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 55% at 72% 20%, var(--glow-1), transparent 70%), radial-gradient(38% 50% at 18% 70%, var(--glow-2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { background: linear-gradient(90deg, var(--brand) 0, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges .icon { width: 18px; height: 18px; color: var(--ok); }
.hero-shot { position: relative; }
.hero-shot .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); }
.hero-shot img { width: 100%; }
.hero-shot .float { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 600; }
.hero-shot .float .icon { width: 18px; height: 18px; }
.float-a { left: -18px; bottom: 40px; color: var(--ok); }
.float-b { right: -14px; top: 28px; color: var(--brand-text); }
.hero .input-demo { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); max-width: 520px; font-family: var(--font-mono); color: var(--text-2); font-size: .95rem; }
.hero .input-demo .icon { color: var(--brand-text); }
.hero .input-demo .pill { margin-left: auto; font-family: var(--font-text); white-space: nowrap; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-shot .float { display: none; } .hero { padding-top: 40px; } }

/* Logo-Zeile mit Stichwörtern */
.ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding: 0; margin: 0; list-style: none; }
.ticker li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--text-2); font-weight: 600; }

/* ------------------------------------------------------------------ Werkzeuge */
.group-card { display: grid; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.group-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.group-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.group-card h3 .card-icon { margin: 0; width: 40px; height: 40px; }
.group-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--text-2); font-size: .95rem; }
.group-card li { display: flex; align-items: center; gap: 8px; }
.group-card li .icon { width: 16px; height: 16px; color: var(--teal-text); }
.group-card .more { color: var(--brand-text); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.group-card .more .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.group-card:hover .more .icon { transform: translateX(3px); }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .groups { grid-template-columns: 1fr; } }

.tool-filter { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto 10px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); }
.tool-filter .icon { color: var(--text-3); }
.tool-filter input { flex: 1; min-height: 50px; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.tool-group { padding: 40px 0 8px; }
.tool-group h2 { display: flex; align-items: center; gap: 12px; }
.tool-group h2 .card-icon { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { display: grid; grid-template-columns: 1fr minmax(0, 220px); gap: 18px; align-items: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.tool-card:hover { box-shadow: var(--shadow-lg); }
.tool-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.08rem; }
.tool-card h3 .icon { color: var(--brand-text); }
.tool-card p { color: var(--text-2); font-size: .95rem; margin-bottom: 10px; }
.tool-card .pill { font-size: .72rem; }
.tool-card a.zoom { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.tool-card a.zoom img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
@media (max-width: 520px) { .tool-card { grid-template-columns: 1fr; } }

/* Merkmale */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { display: grid; gap: 10px; }
.feature h3 { margin: 0; }
.feature p { color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Schritte */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 26px 24px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; font-weight: 800; }
.steps h3 { margin-bottom: 6px; font-size: 1.08rem; }
.steps p { color: var(--text-2); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Bildstreifen / Galerie */
.shots-toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
.segment { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.segment [role="radio"] { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 .92rem/1 var(--font-text); cursor: pointer; }
.segment [role="radio"][aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shots-grid.big { grid-template-columns: 1fr; }
@media (max-width: 760px) { .shots-grid { grid-template-columns: 1fr; } }
.shot-card { display: grid; gap: 10px; }
.shot-card a.zoom { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.shot-card a.zoom:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.shot-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: .92rem; padding: 0 4px; }
.shot-card figcaption strong { color: var(--text); }
/* Galerie-Modus: hell / dunkel / wie Website */
[data-shots="light"] .only-dark { display: none !important; }
[data-shots="light"] .only-light { display: block !important; }
[data-shots="dark"] .only-light { display: none !important; }
[data-shots="dark"] .only-dark { display: block !important; }
img.is-placeholder { opacity: .9; }
.zoom img { cursor: zoom-in; }

/* ------------------------------------------------------------------ Preise */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { position: relative; display: grid; gap: 16px; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-lg); }
.price-card .tag { position: absolute; top: -14px; left: 26px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--teal)); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.price-card h3 { margin: 0; font-size: 1.25rem; }
.price-card .for { color: var(--text-3); margin: -8px 0 0; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font: 800 2.4rem/1 var(--font-head); letter-spacing: -.03em; }
.price span { color: var(--text-3); font-size: .9rem; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--text-2); }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 4px; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--text-3); font-size: .92rem; margin-top: 22px; }
.compare { font-size: .95rem; }
.compare .icon { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--text-3); }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--text-3); transition: transform var(--dur) var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 18px; color: var(--text-2); }
.faq .answer p:last-child { margin: 0; }

/* ------------------------------------------------------------------ Abschluss */
.final { padding: 0 0 80px; }
.final-inner { position: relative; overflow: hidden; padding: 56px 32px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #2440C9 0%, #3457F5 55%, #12B5C9 100%); box-shadow: var(--shadow-lg); }
.final-inner h2 { color: #fff; }
.final-inner p { color: rgba(255, 255, 255, .88); max-width: 56ch; margin: 0 auto 26px; }
.final-inner .btn-row { justify-content: center; }
.final-inner .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.final-inner .btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------------ Seitenköpfe, Prosa */
.page-head { padding: 56px 0 24px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand-text); }
.prose table { width: 100%; }
.prose address { font-style: normal; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
.legal-meta { color: var(--text-3); font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }

/* Download */
.dl-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { display: grid; gap: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-3); font-size: .9rem; margin: 0; padding: 0; list-style: none; }
.dl-hash { font-size: .78rem; overflow-wrap: anywhere; }
.req-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.req-list li { display: flex; gap: 10px; align-items: flex-start; }
.req-list .icon { width: 20px; height: 20px; color: var(--teal-text); margin-top: 2px; }

/* Versionen */
.release { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; }
.release time { color: var(--text-3); font-size: .9rem; }
.release h2 { font-size: 1.3rem; margin: 0 0 8px; }
.release ul { margin: 0; padding-left: 1.2em; color: var(--text-2); }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------------ Formulare */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; }
.field .hint { color: var(--text-3); font-size: .9rem; }
.field-error { color: var(--err); font-size: .9rem; font-weight: 600; margin: 0; min-height: 0; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--err); }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="date"], input[type="number"], input[type="url"], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.err { background: var(--err-soft); color: var(--err); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 10px; }

/* Kasse */
.buy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr; } }
.edition-list { display: grid; gap: 12px; }
.edition { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.edition:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.edition input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; }
.edition strong { display: block; }
.edition .muted { font-size: .9rem; }
.edition .price-tag { font: 800 1.2rem/1 var(--font-head); white-space: nowrap; }
.summary { position: sticky; top: 90px; display: grid; gap: 14px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.15rem; font-weight: 800; }
.consents { display: grid; gap: 12px; }
.paypal-box { display: grid; gap: 10px; }
.paypal-box.is-locked #paypal-buttons { opacity: .45; pointer-events: none; }
.paypal-box .consent-error { color: var(--err); font-weight: 600; min-height: 1.4em; }
.key-box { padding: 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); text-align: center; }
.key-box .label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.key-box code { display: block; margin: 8px 0 12px; font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; background: none; border: 0; color: var(--text); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--text-3); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { width: 16px; height: 16px; color: var(--ok); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Hilfe */
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .help-layout { grid-template-columns: 1fr; gap: 20px; } }
.help-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.help-toc summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.help-toc summary::-webkit-details-marker { display: none; }
.help-toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.help-toc a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: .93rem; }
.help-toc a:hover { background: var(--surface-2); color: var(--text); }
.help-toc a.is-active { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.help-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.help-search input { border: 0; min-height: 48px; padding: 0; background: none; }
.help-search input:focus-visible { box-shadow: none; }
.help-status { min-height: 1.5em; color: var(--text-3); font-size: .92rem; margin-bottom: 10px; }
.help-section { padding: 8px 0 24px; scroll-margin-top: 100px; }
.help-section.is-hidden { display: none; }
.help-section h2 { position: relative; margin-top: 1em; }
.help-section h2 .anchor { position: absolute; left: -1.1em; color: var(--text-3); text-decoration: none; opacity: 0; font-weight: 400; }
.help-section h2:hover .anchor, .help-section h2 .anchor:focus { opacity: 1; }
.help-section ul.sub { margin: 4px 0 0; }
.help-figure { margin: 18px 0 26px; }
.help-figure a.zoom { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
mark { background: var(--warn-soft); color: var(--text); border-radius: 3px; padding: 0 2px; }
.help-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* ------------------------------------------------------------------ Fuß */
.site-footer { margin-top: 40px; padding: 56px 0 32px; background: var(--side); color: var(--side-text); }
.site-footer a { color: var(--side-text); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-word { background: none; color: #fff; }
.footer-brand p { color: var(--side-muted); margin: 14px 0 8px; }
.footer-brand .footer-maker a { color: var(--side-text); }
.footer-title { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); margin-bottom: 14px; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--side-line); border-bottom: 1px solid var(--side-line); }
.segmented { display: flex; align-items: center; gap: 6px; }
.segmented legend { float: left; margin: 0 10px 0 0; font-size: .85rem; color: var(--side-muted); font-weight: 600; }
.segmented label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--side-line); font-size: .88rem; cursor: pointer; }
.segmented label:has(input:checked) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.segmented input { accent-color: var(--teal); margin: 0; }
.switch-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.switch-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--side-line); transition: background var(--dur) var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--dur) var(--ease); }
.switch-label input:checked + .switch { background: var(--teal); }
.switch-label input:checked + .switch::after { transform: translateX(20px); }
.switch-label input:focus-visible + .switch { outline: 3px solid var(--teal); outline-offset: 2px; }
.footer-bottom { margin-top: 24px; color: var(--side-muted); font-size: .88rem; }
.footer-bottom p { margin: 0 0 8px; }
.fineprint { font-size: .8rem; }

/* ------------------------------------------------------------------ Toast, Dialog */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
.dialog::backdrop { background: rgba(11, 14, 28, .75); backdrop-filter: blur(6px); }
.dialog-lightbox img { max-height: 86vh; width: auto; max-width: 96vw; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: fixed; top: 16px; right: 16px; background: var(--surface); color: var(--text); }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; font-size: .95rem; }

/* ------------------------------------------------------------------ 404, Status */
.status-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.status-page .big { font: 900 clamp(4rem, 10vw, 7rem)/1 var(--font-head); background: linear-gradient(90deg, var(--brand), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ Bewegung */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
:root[data-motion="reduce"] .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Hoher Kontrast */
@media (prefers-contrast: more) {
  :root { --line: #9AA0B5; --text-3: #4A5068; }
  .btn-primary { outline: 2px solid var(--text); outline-offset: -2px; }
}
@media (forced-colors: active) {
  .btn, .card, .tool-card, .price-card, .note { border: 1px solid CanvasText; }
  .brand-word, .hero h1 .accent, .status-page .big { background: none; color: CanvasText; }
}

/* ------------------------------------------------------------------ Druck */
@media print {
  .site-header, .site-footer, .toast-region, .help-toc, .help-search, .final, .hero-shot, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .only-dark { display: none !important; }
}

/* ------------------------------------------------------------------ Hilfsklassen (auch für den Admin-Bereich) */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-2); font-size: 1.1em; max-width: 62ch; margin: 0; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.page-section { padding: 24px 0 56px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }
.h3 { font-size: 1.2rem; font-weight: 700; }
.req { color: var(--err); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.num-list { padding-left: 1.3em; display: grid; gap: 8px; }
.status-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 18px; }
.status-icon .icon { width: 30px; height: 30px; }
.status-icon.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-icon.status-err { background: var(--err-soft); color: var(--err); }
.tile-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); }
.tile-icon .icon { width: 26px; height: 26px; }
.section-soft { background: var(--surface); border-top: 1px solid var(--line); }
:root[data-scheme="dark"] .section-soft { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.icon-sm { width: 16px; height: 16px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; text-decoration: underline; cursor: pointer; }
