/* OER Services · Stylesheet
   Rolf Reinhardt Consulting · Schriften lokal (SIL Open Font License), keine externen Dienste */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #efece3;
  --ink: #16182d;
  --ink-2: #3a3d58;
  --muted: #676a82;
  --line: #e1ddd1;
  --brand: #2f3bbf;
  --brand-ink: #ffffff;
  --brand-soft: #e7e8fb;
  --accent: #ff6b3d;
  --accent-soft: #ffe7dd;
  --mint: #1f9e8f;
  --mint-soft: #dcf3ef;
  --night: #14152b;
  --night-2: #1f2140;
  --night-ink: #eceaf6;
  --code: #1b1d36;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-s: 8px;
  --r: 14px;
  --r-l: 22px;
  --shadow: 0 1px 2px rgba(22, 24, 45, .06), 0 8px 24px -8px rgba(22, 24, 45, .12);
  --shadow-l: 0 2px 4px rgba(22, 24, 45, .05), 0 24px 48px -16px rgba(22, 24, 45, .22);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1020;
    --surface: #17192e;
    --surface-2: #1d1f38;
    --ink: #eceaf6;
    --ink-2: #c5c4da;
    --muted: #9a9bb6;
    --line: #2a2c48;
    --brand: #8d96ff;
    --brand-ink: #10112a;
    --brand-soft: #23264d;
    --accent: #ff8a62;
    --accent-soft: #3a2420;
    --mint: #4fd1bf;
    --mint-soft: #15322f;
    --night: #0a0b18;
    --night-2: #15172e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-l: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-variation-settings: "opsz" 96, "SOFT" 30; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 520; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-variation-settings: "opsz" 36; }
h4 { font-family: var(--font); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.hl { font-style: italic; color: var(--accent); }
code, kbd, pre, .tree, .diff { font-feature-settings: "liga" 0, "calt" 0; }
code, kbd { font-family: var(--font-mono); font-size: .88em; }
:not(pre) > code { background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(44px, 6vw, 72px) 0; }
.section.alt { background: var(--surface-2); }
.section.night { background: var(--night); color: var(--night-ink); }
.section.night h2, .section.night h3 { color: #fff; }
.section.night .lead, .section.night p { color: #c3c2dc; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; padding-top: env(safe-area-inset-top); }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-cta { margin-left: 8px; }
.nav-links .nav-cta a.btn-primary, .nav-links .nav-cta a.btn-primary:hover { color: var(--paper); background: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav-links { position: fixed; inset: calc(72px + env(safe-area-inset-top)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 .98rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 6px 18px -6px rgba(22, 24, 45, .5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(22, 24, 45, .55); text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-accent:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }
.night .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.night .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* Hero */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -15vw; bottom: -30vw; width: 50vw; height: 50vw; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; z-index: 1; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 480; }
.hero .lead { margin-top: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--mint); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .liberate { margin-top: 40px; } }
@media (max-width: 560px) { .win pre { font-size: .74rem; padding: 18px 16px 22px; } }

/* Hero visual: Paket wird zu Markdown und Repository */
.liberate { position: relative; }
.win { background: var(--code); color: #d9d8f0; border-radius: var(--r-l); box-shadow: var(--shadow-l); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); font: 500 .78rem var(--font-mono); color: #8e90b5; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3c62; display: inline-block; }
.win-bar i:nth-child(1) { background: #ff6b3d; } .win-bar i:nth-child(2) { background: #f5c04a; } .win-bar i:nth-child(3) { background: #4fd1bf; }
.win-bar b { margin-left: auto; font-weight: 500; }

.win pre { margin: 0; padding: 20px 22px 24px; font: .84rem/1.75 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.win .c { color: #6f72a0; } .win .k { color: #ff9a76; } .win .s { color: #7fe0d0; } .win .h { color: #ffffff; font-weight: 600; } .win .m { color: #a8adff; }
.win pre .ln { display: block; opacity: 0; transform: translateY(6px); animation: lnIn .5s ease forwards; }
@keyframes lnIn { to { opacity: 1; transform: none; } }
.chip-zip { position: absolute; left: -26px; top: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-l); font-size: .85rem; z-index: 2; animation: float 6s ease-in-out infinite; }
.chip-zip .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.chip-zip .ico svg { width: 22px; height: 22px; }
.chip-zip b { display: block; font-size: .88rem; }
.chip-zip small { color: var(--muted); font-size: .76rem; }
.chip-merge { position: absolute; right: -18px; bottom: -30px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-l); font-size: .85rem; z-index: 2; animation: float 7s ease-in-out -2s infinite; }
.chip-merge .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; }
.chip-merge .dot svg { width: 18px; height: 18px; }
.chip-merge b { display: block; font-size: .88rem; }
.chip-merge small { color: var(--muted); font-size: .76rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .chip-zip { left: 8px; top: -30px; } .chip-merge { right: 8px; } }

/* Formatband */
.formats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--surface); }
.formats .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; text-align: center; margin-bottom: 14px; }
.marquee { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✳"; color: var(--accent); font-size: .9rem; }
.formats:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Grids und Karten */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card .ico.accent { background: var(--accent-soft); color: var(--accent); }
.card .ico.mint { background: var(--mint-soft); color: var(--mint); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--brand); font-size: .95rem; }
.card-link .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .more svg { transform: translateX(4px); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 650; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.ok { background: var(--mint-soft); color: var(--mint); }
.tag.new { background: var(--accent-soft); color: var(--accent); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9e8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Problem / Lösung */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .versus { grid-template-columns: 1fr; } }
.versus .col { border-radius: var(--r-l); padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.versus .col.bad { background: transparent; border-style: dashed; }
.versus h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.versus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.versus .bad li { color: var(--muted); padding-left: 24px; position: relative; }
.versus .bad li::before { content: "×"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.versus .good li { padding-left: 24px; position: relative; }
.versus .good li::before { content: "✓"; position: absolute; left: 2px; color: var(--mint); font-weight: 700; }

/* Prozess / Kreislauf */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px); }
.flow .st { position: relative; padding: 0 16px; text-align: center; }
.flow .num { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: transform .3s, background .3s; }
.flow .num svg { width: 28px; height: 28px; }
.flow .st:hover .num { transform: scale(1.08); background: var(--accent); }
.flow .st h3 { font-size: 1.3rem; }
.flow .st p { font-size: .95rem; }
.flow .st .k { display: block; font: .74rem var(--font-mono); color: #8e90b5; margin-bottom: 6px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 33px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px); }
  .flow .st { display: grid; grid-template-columns: 68px 1fr; gap: 0 20px; text-align: left; padding: 0; }
  .flow .num { margin: 0; grid-row: span 3; }
}
.loop-note { margin-top: 40px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: #c3c2dc; }

/* Review-Mockup */
.mr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-l); overflow: hidden; font-size: .92rem; }
.mr-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mr-head .tag { flex: none; }
.mr-head b { font-weight: 600; }
.diff { font: .8rem/1.7 var(--font-mono); }
.diff div { padding: 1px 20px; white-space: pre-wrap; word-break: break-word; }
.diff .del { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink-2); }
.diff .del::before { content: "- "; color: var(--accent); }
.diff .add { background: color-mix(in srgb, var(--mint) 14%, transparent); }
.diff .add::before { content: "+ "; color: var(--mint); }
.diff .ctx { color: var(--muted); }
.diff .ctx::before { content: "  "; }
.comment { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; background: var(--brand); }
.avatar.a2 { background: var(--mint); }
.comment p { margin: 2px 0 0; font-size: .9rem; }
.comment small { color: var(--muted); }

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.facts div { background: var(--surface); padding: 28px 24px; }
.facts b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 520; line-height: 1; letter-spacing: -0.03em; color: var(--brand); margin-bottom: 10px; }
.facts span { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* Produkte */
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product:nth-of-type(even) .p-visual { order: -1; }
.product h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.product .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.p-visual { border-radius: var(--r-l); background: var(--surface-2); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); min-height: 280px; display: grid; place-items: center; position: relative; overflow: hidden; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } .product:nth-of-type(even) .p-visual { order: 0; } }
.drop { width: 100%; max-width: 420px; border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 18px; padding: 28px; text-align: center; background: var(--surface); }
.drop svg { width: 40px; height: 40px; color: var(--brand); margin: 0 auto 10px; }
.drop .files { display: grid; gap: 8px; margin-top: 18px; text-align: left; }
.drop .f { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.drop .f code { background: none; padding: 0; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree { font: .84rem/1.9 var(--font-mono); background: var(--code); color: #d9d8f0; border-radius: 16px; padding: 22px 26px; width: 100%; max-width: 440px; box-shadow: var(--shadow-l); }
.tree .d { color: #a8adff; } .tree .n { color: #6f72a0; }
.pipe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pipe .job { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; box-shadow: var(--shadow); }
.pipe .job i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.pipe .arr { color: var(--muted); }
.pipe-out { display: flex; gap: 10px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }

/* Leistungen */
.svc { display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(16px, 3vw, 40px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .no { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--accent); font-weight: 400; font-style: italic; }
.svc h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc .ticks { margin-top: 0; }
.svc .out { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.svc .out b { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) { .svc { grid-template-columns: 1fr; } .svc .no { font-size: 2.2rem; } }

/* Preise */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px 28px; box-shadow: var(--shadow); position: relative; }
.plan.featured { background: var(--night); color: var(--night-ink); border-color: var(--night); box-shadow: var(--shadow-l); }
.plan.featured h3, .plan.featured .price b { color: #fff; }
.plan.featured .muted, .plan.featured .price small { color: #a9a8c6; }
.plan.featured .ticks li::before { background-color: rgba(79, 209, 191, .16); }
.plan .ribbon { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price small { font-size: .9rem; color: var(--muted); }
.price b { font-family: var(--font-display); font-size: 2.8rem; font-weight: 520; letter-spacing: -0.03em; line-height: 1; }
.plan .ticks { flex: 1; margin-bottom: 28px; font-size: .95rem; }
.plan .btn { justify-content: center; }
.addons { margin-top: 28px; }
.addons table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.addons th, .addons td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.addons th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.addons td:last-child, .addons th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }

/* Rechner */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: clamp(24px, 3vw, 36px); display: grid; gap: 26px; }
.calc-out { padding: clamp(24px, 3vw, 36px); background: var(--night); color: var(--night-ink); display: flex; flex-direction: column; gap: 14px; }
.calc-out h3 { color: #fff; }
.field label, .field .lbl { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.field output { font-family: var(--font-mono); color: var(--brand); font-weight: 400; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 28px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; cursor: pointer; transition: all .2s; background: var(--surface); }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field label.check { justify-content: flex-start; font-weight: 400; margin-bottom: 0; }
.field .seg label { display: inline-block; margin: 0; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 3px; flex: none; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: #c3c2dc; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.sum-row b { color: #fff; font-weight: 500; font-family: var(--font-mono); white-space: nowrap; }
.total { margin-top: auto; padding-top: 18px; }
.total small { color: #a9a8c6; display: block; }
.total b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); color: #fff; font-weight: 520; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 6px; transition: color .3s; }
.total b.bump { color: var(--accent); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--font-display); font-size: 1.2rem; font-weight: 520; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* Prinzipien */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principles article { padding: clamp(28px, 4vw, 44px) clamp(0px, 3vw, 40px) clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.principles article:nth-child(even) { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); }
.principles .n { font: .8rem var(--font-mono); color: var(--accent); margin-bottom: 12px; display: block; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles article:nth-child(even) { border-left: 0; padding-left: 0; } }
.manifest { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; font-weight: 420; letter-spacing: -0.02em; max-width: 24ch; }
.manifest em { color: var(--accent); }
.quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--ink-2); }

.person { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 720px) { .person { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4/5; border-radius: var(--r-l); background: linear-gradient(150deg, var(--brand) 0%, var(--night) 100%); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 4rem; font-weight: 500; position: relative; overflow: hidden; max-width: 260px; }
.portrait::after { content: ""; position: absolute; inset: auto -30% -30% auto; width: 80%; height: 80%; border-radius: 50%; border: 18px solid var(--accent); opacity: .85; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 28px; background: var(--night); color: var(--night-ink); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; right: -170px; top: -230px; width: 380px; height: 380px; border-radius: 50%; border: 40px solid var(--accent); opacity: .9; }
.cta::after { content: ""; position: absolute; left: 35%; bottom: -200px; width: 260px; height: 260px; border-radius: 50%; background: var(--brand); opacity: .55; filter: blur(10px); }
.cta > * { position: relative; z-index: 1; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(20, 21, 43, .55); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: #c3c2dc; margin: 0; }
.cta .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } .cta::before { width: 240px; height: 240px; border-width: 28px; right: -100px; top: -100px; } }

/* Seitenkopf Unterseiten */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -8vw; top: -12vw; width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; border-radius: 50%; border: clamp(18px, 3vw, 44px) solid color-mix(in srgb, var(--accent) 22%, transparent); pointer-events: none; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-l); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.form .hint { font-size: .82rem; color: var(--muted); margin: 0; }
.mailbox { display: grid; gap: 14px; margin-top: 28px; }
.mailbox a.big { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); width: fit-content; word-break: break-all; }

/* Rechtstexte */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; font-family: var(--font); font-weight: 650; letter-spacing: 0; }
.prose address { font-style: normal; }
.prose ul { padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--night); color: #a9a8c6; padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); margin-top: clamp(64px, 9vw, 120px); font-size: .93rem; }
.site-footer.flush { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #8e90b5; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c3c2dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .84rem; }
.badge-cc { display: inline-flex; gap: 8px; align-items: center; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .big { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--accent); font-style: italic; }

@media print {
  .site-header, .site-footer, .btn, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
