@font-face { font-family: "Knewave"; src: url("fonts/knewave.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #FBFAF6;
  --card: #FFFFFF;
  --ink: #15171A;
  --muted: #565B63;
  --line: #DEDCD3;
  --blue: #1E63E9;
  --blue-dark: #174FC4;
  --green: #1B8A34;
  --graphite: #16181C;
  --graphite-soft: #A9ADB5;
  --amber: #FFD694;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 "Figtree", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

h1, h2, .brush { font-family: "Knewave", "Figtree", sans-serif; font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 66px); }
h2 { font-size: clamp(32px, 3.6vw, 44px); }
h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--muted); }
.underline { display: inline-block; padding-bottom: 14px; background: url("underline.svg") no-repeat left bottom / 100% 12px; }

.logo { display: inline-flex; align-items: center; font-family: "Knewave", sans-serif; line-height: 1; color: inherit; text-decoration: none; }
.logo img { width: .74em; height: .74em; margin: .15em .005em 0 .005em; flex-shrink: 0; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 16px; }
/* Logo: bündig mit dem Inhalt, Navigation steht auf seiner Grundlinie */
.site-header .logo { font-size: clamp(96px, 8.4vw, 120px); margin-left: -.04em; }
.site-header .wrap { align-items: flex-end; }
.site-nav { padding-bottom: 18px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 600; font-size: 17px; }
.site-nav a { display: inline-block; padding-block: 10px; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--blue-dark); }
.site-nav a[aria-current="page"] { background: url("underline.svg") no-repeat center bottom 4px / 100% 8px; }

.lang-switch { display: flex; align-items: center; margin-left: 4px; }
.site-nav .lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; color: var(--muted); font-size: 15px; }
.site-nav .lang-switch a:hover { color: var(--blue-dark); }
.site-nav .lang-switch a[aria-current="true"] { color: var(--ink); background: url("underline.svg") no-repeat center bottom 6px / 24px 7px; }

.button { display: inline-block; padding: 13px 28px; border: 2.5px solid var(--ink); border-radius: var(--wobble); background: var(--blue); color: #FFF; font-weight: 700; text-decoration: none; transition: transform .15s ease; }
.button:hover { transform: rotate(-1deg) translateY(-1px); background: var(--blue-dark); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: #FFF; }
.button.on-dark { border-color: var(--amber); background: var(--amber); color: var(--graphite); }
.button.on-dark:hover { background: #FFE2B3; }
.button[aria-disabled="true"], .button[aria-disabled="true"]:hover { border: 2px dashed var(--muted); background: transparent; color: var(--muted); transform: none; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

section { padding-block: clamp(56px, 8vw, 96px); }

.hero { padding-block: clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-logo { font-size: clamp(84px, 11vw, 148px); margin-bottom: 34px; }
.hero h1 { margin-bottom: 18px; font-family: "Figtree", sans-serif; font-size: clamp(38px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 30em; }
.scribble { display: inline-block; padding-right: .06em; font-family: "Knewave", sans-serif; font-weight: 400; letter-spacing: 0; color: var(--blue); transform: rotate(-2deg); }
.shot { border-radius: 12px; box-shadow: 0 18px 44px rgba(21, 23, 26, .22); }
.hero .shot { transform: rotate(1.2deg); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 2.5px solid var(--ink); border-radius: var(--wobble); background: var(--card); }
.post time, .meta { color: var(--muted); font-size: 15px; }
.post p { color: var(--muted); }
.post a { color: inherit; text-decoration: none; }
.post a:hover { color: var(--blue-dark); }
.post.empty { justify-content: center; min-height: 230px; border: 2px dashed var(--line); background: transparent; color: var(--muted); text-align: center; }

.dark { background: var(--graphite); color: #FFF; }
.dark .lead, .dark .meta { color: var(--graphite-soft); }
.dark h2, .dark h1 { color: #FFF; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.wave { display: block; width: 100%; height: 200px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: #09090A; }
.dark .underline { background-image: url("underline-amber.svg"); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.features h3 { margin-bottom: 8px; }
.features p { color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.note { margin-top: 14px; font-size: 15px; }

.eyebrow { margin-bottom: 6px; color: var(--blue-dark); font-weight: 600; }
.brush-title { margin-bottom: 16px; font-family: "Knewave", sans-serif; font-weight: 400; letter-spacing: 0; line-height: 1.1; font-size: clamp(44px, 5.4vw, 66px); }
.hero h1.brush-title { font-family: "Knewave", sans-serif; font-weight: 400; letter-spacing: 0; line-height: 1.1; font-size: clamp(44px, 5.4vw, 66px); }
.tight { padding-block: clamp(28px, 4vw, 48px); }
.narrow { max-width: 780px; }
.spaced { margin-top: 18px; }
.notes, .steps { padding-left: 22px; }
.notes { margin: 18px 0 0; }
.steps { margin-bottom: 0; }
.notes li, .steps li { padding-block: 7px; color: var(--muted); }
.steps li::marker { color: var(--blue-dark); font-weight: 700; }
.notes strong, .steps strong { color: var(--ink); }
.notes strong { display: block; }
.tilted { transform: rotate(-1deg); }
.brush-note { margin-top: 44px; font-family: "Knewave", sans-serif; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; color: var(--blue); transform: rotate(-1deg); transform-origin: left; }
.brush-note + .actions { margin-top: 16px; }
.post { transform: rotate(-.35deg); }
.post:nth-child(even) { transform: rotate(.35deg); }
code { font: 500 .88em ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.specs.single { grid-template-columns: minmax(0, 1fr); }
.specs dd { overflow-wrap: anywhere; }

.article { max-width: 720px; }
.article h1 { margin-block: 8px 24px; }
.article p + p { margin-top: 18px; }
.md > p + p, .md > p + ul, .md > ul + p, .md > dl + p { margin-top: 18px; }
.md > p:first-child { font-size: clamp(19px, 2vw, 22px); color: var(--muted); }
.md-bild { margin: 22px 0; }
.md-bild img { display: block; width: 100%; height: auto; }
.plain .md > p:first-child { font-size: inherit; color: inherit; }
.plain h1 { margin-bottom: 28px; font-size: clamp(34px, 5vw, 56px); hyphens: auto; overflow-wrap: anywhere; }
.doc h2 { margin: 40px 0 12px; font-size: clamp(26px, 3vw, 32px); hyphens: auto; overflow-wrap: anywhere; }
.doc ol, .doc ul { margin: 0; padding-left: 22px; }
.doc li { padding-block: 4px; }
.doc dl { margin: 0 0 16px; }
.doc dl div { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 4px 24px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.doc dt { font-weight: 700; }
.doc dd { margin: 0; }
@media (max-width: 560px) { .doc dl div { grid-template-columns: minmax(0, 1fr); } }

.site-footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer .logo { font-size: 28px; color: var(--ink); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { display: inline-block; padding-block: 8px; color: inherit; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .posts, .features { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .post.empty { min-height: 120px; }
}
/* Skizzenbuch: feines Punktraster als Papier */
body { background-color: var(--paper); background-image: radial-gradient(circle, rgba(21, 23, 26, .085) 1px, transparent 1.4px); background-size: 24px 24px; }

/* Kopf und Fuß trennt ein gezeichneter Filzstift-Strich */
.site-header { position: relative; border-bottom: 0; background: var(--paper); }
.site-footer { position: relative; border-top: 0; background: var(--paper); }
.site-header::after, .site-footer::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: 12px; background: url("rule.svg") no-repeat center / 100% 100%; pointer-events: none; }
.site-header::after { bottom: -6px; }
.site-footer::before { top: -6px; transform: scaleX(-1); }
.site-header .logo { position: relative; z-index: 2; }

/* Textmarker hinter dem Pinselwort */
.home-hero .scribble { padding: .02em .16em .06em; background: url("marker.svg") no-repeat center 60% / 104% 135%; }

/* Gezeichneter Schatten, Knöpfe lassen sich drücken */
.button { box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.button:hover { transform: translate(-1px, -1px) rotate(-.6deg); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button[aria-disabled="true"], .button[aria-disabled="true"]:hover { box-shadow: none; }
.sketch-card, .post { box-shadow: 4px 5px 0 rgba(21, 23, 26, .16); }

/* Patchkabel vom Text in die Demo */
.home-hero .wrap { position: relative; }
.cable { display: none; position: absolute; left: 0; top: 0; width: 1160px; height: 460px; overflow: visible; pointer-events: none; }
.cable path { fill: none; stroke-linecap: round; }
.cable-line { stroke: var(--ink); stroke-width: 8; }
.cable-core { stroke: var(--amber); stroke-width: 3.5; }
.cable-plug rect { fill: var(--ink); }
@media (min-width: 1208px) {
  /* Linke Spalte fest ausrichten, damit das Kabel am Knopf steckt */
  .home-hero .wrap { align-items: start; }
  .home-hero .wrap > div:not(.hero-doodles) { margin-top: 36px; }
  .cable { display: block; }
  .cable path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cable-draw 1.4s .35s ease-out forwards; }
  .cable-plug { opacity: 0; animation: cable-plug .25s 1.5s forwards; }
  .cable-plug:first-of-type { animation-delay: .2s; }
}
@keyframes cable-draw { to { stroke-dashoffset: 0; } }
@keyframes cable-plug { to { opacity: 1; } }

/* Demo lässt sich im Bild verstellen */
.scope canvas { cursor: ew-resize; touch-action: pan-y; }
.scope canvas.dragging { cursor: grabbing; }

/* Lesefortschritt als kleines Stimmgerät */
.read-strip { display: none; position: fixed; z-index: 10; left: 0; right: 0; top: 0; height: 8px; background: #16181C; }
.read-strip.active { display: block; }
.read-strip span { position: absolute; top: 1.5px; left: 0; width: 22px; height: 5px; margin-left: -11px; border-radius: 3px; background: #B2B2B2; transition: background-color .25s ease; }
.read-strip.done span { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* Nulllinie auf der Fehlerseite */
.flatline { display: block; width: 100%; max-width: 720px; height: 60px; margin-bottom: 18px; overflow: visible; }
.flatline path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Großer Titel */
.home-hero h1 { font-family: "Knewave", sans-serif; font-weight: 400; letter-spacing: 0; font-size: clamp(46px, 6vw, 76px); }
.home-hero .lead { font-size: clamp(20px, 2.1vw, 24px); }
.intro { max-width: 760px; margin-top: 20px; }

/* Unterstreichung und Wellenlinie zeichnen sich beim Scrollen */
.underline.to-draw { background-size: 0 12px; transition: background-size .9s cubic-bezier(.3, .7, .2, 1); }
.underline.to-draw.drawn { background-size: 100% 12px; }
.divider { display: block; width: 100%; height: 34px; overflow: visible; }
.divider path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .75; }
.divider.to-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s ease-out; }
.divider.to-draw.drawn path { stroke-dashoffset: 0; }

/* Live-Demo */
.scope { margin: 0; transform: rotate(.8deg); }
.scope-screen { position: relative; overflow: hidden; aspect-ratio: 1440 / 880; border-radius: 12px; background: #16181C; box-shadow: 0 18px 44px rgba(21, 23, 26, .28), 0 0 0 1px rgba(21, 23, 26, .35); }
.scope-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.scope.live canvas { display: block; }
.scope.live .scope-fallback { visibility: hidden; }
.scope-controls { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 14px; }
.scope.live .scope-controls { display: flex; }
.scope-waves { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-waves button { min-height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 225px 15px 255px 15px / 15px 255px 15px 225px; background: #FFF; color: var(--ink); font: 600 15px "Figtree", sans-serif; cursor: pointer; transition: transform .15s ease; }
.scope-waves button:hover { transform: rotate(-2deg); }
.scope-waves button[aria-pressed="true"] { background: var(--ink); color: #FFF; }
.scope-detune { display: flex; flex: 1 1 190px; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; font-size: 15px; font-weight: 600; }
.scope-detune input { flex: 1 1 110px; min-width: 110px; height: 44px; margin: 0; accent-color: var(--blue); cursor: pointer; }

/* Skizzenkarten */
.sketch-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.sketch-card { padding: 22px 24px 24px; border: 2.5px solid var(--ink); border-radius: var(--wobble); background: #FFF; transition: transform .2s ease; }
.sketch-card:nth-child(1) { transform: rotate(-.5deg); }
.sketch-card:nth-child(2) { transform: rotate(.4deg); }
.sketch-card:nth-child(3) { transform: rotate(-.25deg); }
.sketch-card:hover { transform: translateY(-3px) rotate(0); }
.sketch-card h3 { margin: 10px 0 6px; }
.sketch-card p { color: var(--muted); }
.doodle { display: block; width: 66px; height: 56px; }
.doodle path { fill: none; stroke: var(--blue); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.doodle path.thin { stroke: var(--ink); stroke-width: 1.8; opacity: .5; }
.doodle path.fill { fill: var(--amber); stroke: var(--ink); stroke-width: 2.2; }
.sketch-cards + .actions { margin-top: 28px; }

/* Blogkarten mit Klebestreifen */
.post { position: relative; transition: transform .2s ease; }
.post:hover { transform: translateY(-3px) rotate(0); }
.posts { margin-top: 12px; }

/* Plugin erklärt */
.anatomy { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 28px 40px; margin-top: 28px; }
.anatomy-shot { position: relative; border-radius: 12px; box-shadow: 0 14px 34px rgba(21, 23, 26, .24); }
.anatomy-shot img { width: 100%; border-radius: 12px; }
.pin { position: absolute; display: flex; align-items: center; justify-content: center; width: clamp(22px, 2.6vw, 32px); height: clamp(22px, 2.6vw, 32px); margin: calc(clamp(22px, 2.6vw, 32px) / -2) 0 0 calc(clamp(22px, 2.6vw, 32px) / -2); border: 2px solid var(--ink); border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%; background: var(--amber); color: var(--ink); font: 400 clamp(12px, 1.4vw, 17px) "Knewave", sans-serif; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); transform: rotate(-4deg); }
.anatomy-list { margin: 0; padding: 0; list-style: none; counter-reset: pin; }
.anatomy-list li { position: relative; padding: 6px 0 6px 40px; counter-increment: pin; color: var(--muted); font-size: 17px; }
.anatomy-list li::before { content: counter(pin); position: absolute; left: 0; top: 5px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%; background: var(--amber); color: var(--ink); font: 400 15px "Knewave", sans-serif; }

/* Installation mit Pinselziffern */
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 10px 0 10px 54px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 4px; top: 2px; font: 400 34px/1.2 "Knewave", sans-serif; color: var(--blue); transform: rotate(-4deg); }

.specs div { border-bottom-style: dashed; border-bottom-color: #B9B6AA; }

/* ---------- Filzstift: Rahmen, gemalte Flächen, Gekritzel ---------- */
html, body { overflow-x: clip; }
body::after { content: ""; position: absolute; width: 0; height: 0; background: url("frame2.svg"), url("frame3.svg"); }

/* Rahmen zittern beim Überfahren wie gezeichnete Trickfilm-Linien */
@keyframes boil {
  0%, 100% { border-image-source: url("frame1.svg"); }
  33% { border-image-source: url("frame2.svg"); }
  66% { border-image-source: url("frame3.svg"); }
}

/* Kopf- und Fußlinie: von Hand gezogen, so breit wie der Inhalt */
.site-header::after, .site-footer::before { content: none; }
.site-header .wrap { position: relative; padding-bottom: 26px; }
.site-header .wrap::after, .site-footer .wrap::before { content: ""; position: absolute; left: -2px; right: -2px; height: 28px; background: url("rule.svg") center / 100% 100% no-repeat; pointer-events: none; }
.site-header .wrap::after { bottom: -8px; }
.site-footer .wrap { position: relative; }
.site-footer .wrap::before { top: -36px; transform: scaleX(-1); }
.site-footer { padding-top: 44px; }

.underline { padding-bottom: 18px; background-size: 100% 18px; }
.underline.to-draw { background-size: 0 18px; }
.underline.to-draw.drawn { background-size: 100% 18px; }

/* Textmarker liegt nur unter der unteren Hälfte */
.home-hero .scribble { padding: 0 .12em; background: url("marker.svg") center 88% / 108% 62% no-repeat; }

/* Gemeinsamer Rahmen */
.button::after, .scope-waves button::after, .sketch-card::after, .post::after, .scope-screen::after, .anatomy-shot::after {
  content: ""; position: absolute; inset: -7px; border: 14px solid transparent; border-image: url("frame1.svg") 40 stretch; pointer-events: none;
}

/* Knöpfe: mit dem Stift ausgemalt */
.button, .button:hover, .button:active, .button.ghost, .button.ghost:hover { position: relative; isolation: isolate; border-color: transparent; border-radius: 0; background: none; box-shadow: none; }
.button::before { content: ""; position: absolute; z-index: -1; inset: -1px; background: url("fill-blue.svg") center / 100% 100% no-repeat; pointer-events: none; transition: inset .12s ease; }
.button.ghost::before { background-image: url("paper.svg"); }
.button:hover { transform: translate(-1px, -2px) rotate(-.7deg); }
.button:hover::after { animation: boil .36s steps(1) infinite; }
.button:active { transform: translate(1px, 2px); }

/* Wellenform-Knöpfe */
.scope-waves { gap: 10px; }
.scope-waves button, .scope-waves button[aria-pressed="true"] { position: relative; isolation: isolate; border-color: transparent; border-radius: 0; background: none; }
.scope-waves button::before { content: ""; position: absolute; z-index: -1; inset: -1px; background: url("paper.svg") center / 100% 100% no-repeat; pointer-events: none; }
.scope-waves button[aria-pressed="true"]::before { background-image: url("fill-ink.svg"); }
.scope-waves button:hover::after { animation: boil .36s steps(1) infinite; }

/* Karten: Papier, Schraffur als Stiftschatten, Rahmen */
.sketch-card, .post { position: relative; isolation: isolate; border-color: transparent; border-radius: 0; background: none; box-shadow: none; }
.sketch-card::before, .post::before { content: ""; position: absolute; z-index: -2; inset: 9px -8px -8px 9px; background: url("hatch.svg") 0 0 / 16px 16px; pointer-events: none; }
.sketch-card::after, .post::after { z-index: -1; background: url("paper.svg") center / calc(100% - 14px) calc(100% - 14px) no-repeat; background-origin: border-box; background-clip: border-box; }
.post::after { background: url("tape.svg") center 0 / 92px 26px no-repeat, url("paper.svg") center / calc(100% - 14px) calc(100% - 14px) no-repeat; background-origin: border-box; background-clip: border-box; }
.sketch-card:hover::after, .post:hover::after { animation: boil .36s steps(1) infinite; }

/* Demo: liegt auf großem Gekritzel, gerahmt, die Linie lebt */
.scope { position: relative; isolation: isolate; }
.scope-screen { overflow: visible; }
.scope canvas, .scope-fallback, .scope-screen { border-radius: 6px; }
.scope-screen::before { content: ""; position: absolute; z-index: -1; inset: -30px -26px -26px -30px; background: url("scribble.svg") center / 100% 100% no-repeat; pointer-events: none; }
.scope-screen::after { inset: -6px; animation: boil .6s steps(1) infinite; }
.scope-controls { margin-top: 42px; }
.scope-screen { box-shadow: none; }

/* Plugin im Überblick: gleicher Rahmen */
.anatomy-shot { box-shadow: none; }
.anatomy-shot::after { inset: -6px; }
.anatomy-shot, .anatomy-shot img { border-radius: 6px; }

/* Doodles im Kopf der Startseite */
.hero .wrap { position: relative; }
.hero-doodles { position: absolute; inset: 0; pointer-events: none; }
.hero-doodles svg { position: absolute; overflow: visible; }
.hero-doodles path { fill: none; stroke: var(--blue); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-draw .8s ease-out forwards; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
.doodle-note { left: 42%; top: 3%; width: 58px; transform: rotate(9deg); }
.doodle-note path { stroke: var(--ink); animation-delay: .3s; }
.doodle-star { left: 2%; top: 1%; width: 44px; }
.doodle-star path { stroke: #1B8A34; fill: rgba(47, 179, 68, .3); animation-delay: .6s; }
.doodle-knob { left: 1%; bottom: 0; width: 70px; transform: rotate(-6deg); }
.doodle-knob path { stroke: var(--ink); animation-delay: .9s; }
.doodle-wave { left: 9%; bottom: 4%; width: 104px; }
.doodle-wave path { animation-delay: 1.15s; }
.doodle-spark { left: 22%; top: 2%; width: 44px; transform: rotate(-8deg); }
.doodle-spark path { stroke: #E0A23C; animation-delay: 1.3s; }

/* Skizzen auf den Karten: mit Textmarker unterlegt, je Karte eigene Farbe */
.doodle { width: 82px; height: 64px; background: url("marker.svg") center 88% / 100% 60% no-repeat; }
.doodle path { stroke-width: 4; }
.sketch-card:nth-child(2) .doodle path:not(.fill) { stroke: #1B8A34; }
.sketch-card:nth-child(3) .doodle path { stroke: var(--ink); }
.sketch-cards { gap: 34px; }
.sketch-cards + .actions { margin-top: 36px; }

/* Schritt-Ziffern im gezeichneten Kreis */
.steps li { padding-left: 60px; }
.steps li::before { left: 0; top: 2px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: url("ring.svg") center / 100% 100% no-repeat; font-size: 24px; line-height: 1; transform: none; }

/* Wellenlinie: kräftiger Stift mit grünem Nachzug */
.divider path { stroke-width: 5; opacity: 1; }
.divider path.echo { stroke: var(--green); stroke-width: 1.8; opacity: .8; }

/* Navigation: Stiftstrich auch beim Überfahren */
.site-nav > a:hover { background: url("underline.svg") no-repeat center bottom 2px / 100% 9px; color: var(--ink); }
.site-nav a[aria-current="page"] { background: url("underline.svg") no-repeat center bottom 2px / 100% 9px; }
.site-nav .lang-switch a[aria-current="true"] { background: url("underline.svg") no-repeat center bottom 6px / 26px 8px; }

/* Abschlusszeile mit Textmarker */
.brush-note { position: relative; display: inline-block; padding-inline: 6px; background: url("marker.svg") center 90% / 100% 62% no-repeat; }

/* Bedienfeld wie auf alten Synthesizern, mit dem Filzstift gezeichnet */
.synth.scope-controls { position: relative; display: none; flex-wrap: wrap; align-items: flex-start; justify-content: space-around; gap: 6px 8px; margin-top: 44px; padding: 14px 20px 16px; background: url("screw.svg") 12px 10px / 13px 13px no-repeat, url("screw.svg") calc(100% - 12px) 10px / 13px 13px no-repeat, url("screw.svg") 12px calc(100% - 10px) / 13px 13px no-repeat, url("screw.svg") calc(100% - 12px) calc(100% - 10px) / 13px 13px no-repeat, url("fill-ink.svg") center / 100% 100% no-repeat; color: #F4F2EA; }
.scope.live .synth.scope-controls { display: flex; }
.synth::before, .synth::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 13px; background: url("wood.svg") center / 100% 100% no-repeat; pointer-events: none; }
.synth::before { left: -7px; }
.synth::after { right: -7px; }
.synth-module { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.synth-legend { display: flex; align-items: center; gap: 8px; min-height: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.led { width: 11px; height: 11px; border: 1.5px solid #F4F2EA; border-radius: 50%; background: rgb(calc(70 + 185 * var(--lock, 0)) calc(50 + 164 * var(--lock, 0)) calc(30 + 118 * var(--lock, 0))); box-shadow: 0 0 calc(10px * var(--lock, 0)) #FFD694; }

/* Drehschalter: Knopf unten mittig, Symbole auf einem Bogen */
.rotary { position: relative; width: 158px; height: 122px; }
.rotary button { position: absolute; left: calc(50% - 22px); top: 60px; width: 44px; height: 44px; padding: 5px; border: 0; border-radius: 50%; background: none; color: #F4F2EA; cursor: pointer; transform: rotate(var(--a)) translateY(-58px) rotate(calc(-1 * var(--a))); transition: color .15s ease; }
.rotary button svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rotary button path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.rotary button:hover { color: #FFD694; }
.rotary button[aria-pressed="true"] { color: #FFD694; }
.rotary-knob { position: absolute; left: calc(50% - 30px); top: 52px; width: 60px; height: 60px; transform: rotate(var(--wave-angle, -75deg)); transition: transform .28s cubic-bezier(.3, 1.5, .5, 1); cursor: grab; touch-action: none; -webkit-user-drag: none; user-select: none; }
.rotary-knob.dragging { cursor: grabbing; }

/* Tune-Regler */
.dial { position: relative; display: block; width: 128px; height: 122px; }
.dial input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.dial-scale { position: absolute; left: calc(50% - 56px); top: 4px; width: 112px; height: 112px; }
.dial-knob { position: absolute; left: calc(50% - 38px); top: 22px; width: 76px; height: 76px; transform: rotate(var(--tune-angle, 0deg)); cursor: grab; touch-action: none; }
.dial-knob.dragging { cursor: grabbing; }
.dial input:focus-visible ~ .dial-knob { outline: 2px solid #FFD694; outline-offset: 2px; border-radius: 50%; }
.dial-min, .dial-max { position: absolute; bottom: 0; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dial-min { left: 2px; }
.dial-max { right: 0; }

/* Filter: zwei kleine Knöpfe übereinander zwischen Tune und Sound */
.synth-filter { align-items: flex-start; justify-content: center; align-self: stretch; }
.mini-dial { position: relative; display: flex; align-items: center; gap: 7px; height: 50px; margin-top: 2px; }
.mini-dial + .mini-dial { margin-top: 0; }
.mini-dial input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.mini-knob { position: relative; flex: none; width: 48px; height: 48px; }
.mini-scale { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-dial .dial-knob { left: 9px; top: 9px; width: 30px; height: 30px; transform: rotate(var(--angle, 0deg)); }
.mini-dial input:focus-visible + .mini-knob .dial-knob { outline: 2px solid #FFD694; outline-offset: 2px; border-radius: 50%; }
.mini-caption { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Kippschalter für den Ton */
.synth-sound { width: 70px; }
.rocker { position: relative; width: 44px; height: 76px; margin-top: 16px; padding: 0; border: 2.5px solid #F4F2EA; border-radius: 45% 55% 50% 50% / 14% 16% 14% 16%; background: #2A2E34; cursor: pointer; }
.rocker span { position: absolute; left: 4px; right: 4px; top: 36px; height: 30px; border-radius: 5px; background: #BFC3C8; transition: top .14s ease, background-color .14s ease; }
.rocker[aria-pressed="true"] span { top: 5px; background: #FFD694; box-shadow: 0 0 10px #FFD694; }
.rotary button:focus-visible, .rocker:focus-visible { outline: 2px solid #FFD694; outline-offset: 1px; }

@media (max-width: 1100px) {
  .doodle-knob, .doodle-wave { display: none; }
}
@media (max-width: 860px) {
  .sketch-cards, .anatomy { grid-template-columns: minmax(0, 1fr); }
  .scope { transform: none; }
  .scope-screen::before { inset: -20px -16px -18px -18px; }
  .scope-controls { margin-top: 34px; }
  .doodle-note { left: auto; right: 6px; top: -8px; width: 46px; }
  .doodle-star { left: auto; right: 62px; top: 42px; width: 30px; }
  .doodle-spark { display: none; }
  .home-hero .wrap > div:not(.hero-doodles) { margin-bottom: 20px; }
}
@media (max-width: 560px) {
  .synth.scope-controls { padding: 14px 10px 14px; gap: 10px 2px; }
  .rotary { width: 156px; }
  .dial { width: 130px; }
  .site-header .wrap { padding-block: 10px 20px; }
  .site-header .wrap::after { bottom: -8px; }
  .hero-doodles { display: none; }
  .site-nav { width: 100%; gap: 0 14px; font-size: 16px; align-items: center; padding-bottom: 0; margin-top: 8px; }
  .lang-switch { margin-left: auto; }
  .site-nav .lang-switch a { min-width: 34px; padding: 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .sketch-card, .post, .scope-waves button, .read-strip span { transition: none; }
  .cable path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .cable-plug { animation: none; opacity: 1; }
  .rotary-knob, .rocker span { transition: none; }
  .button:hover::after, .scope-waves button:hover::after, .sketch-card:hover::after, .post:hover::after, .scope-screen::after { animation: none; }
  .button::before { transition: none; }
  .hero-doodles path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* Startseite: OsZillator oben, PatchSketch darunter; beide Titel gleich gesetzt */
.home-hero h1.home-title, .home-title { font-family: "Knewave", sans-serif; font-weight: 400; letter-spacing: 0; line-height: 1.1; font-size: clamp(40px, 4.8vw, 60px); margin-bottom: 18px; }
.hero-note { display: inline-block; margin: 10px 0 0; font: 400 clamp(24px, 2.6vw, 30px)/1.2 "Knewave", sans-serif; color: var(--blue); transform: rotate(-3deg); transform-origin: left; }
.product-split .lead { max-width: 30em; }
.modules-art { display: block; width: 100%; height: auto; transform: rotate(-.6deg); }
/* Kopf der Startseite endet mit Regler, Welle und Plugin-Bedienfeld auf einer Linie; weniger Luft zu den Karten */
.home-hero { padding-bottom: clamp(24px, 3vw, 40px); }

/* Web-Demo: Umschalter Kurve / Spektrum oben links im Bild, wie im Plugin */
.scope-view { position: absolute; z-index: 2; top: 15.5%; left: 2.2%; display: none; gap: 4px; }
.scope.live .scope-view { display: flex; }
.scope-view button { display: grid; place-items: center; width: clamp(28px, 4.2vw, 34px); height: clamp(22px, 3.2vw, 26px); padding: 0; border: 0; border-radius: 4px; background: rgba(9, 9, 10, .8); color: rgba(255, 255, 255, .42); cursor: pointer; }
.scope-view button:hover { color: rgba(255, 255, 255, .7); background: rgba(40, 40, 42, .85); }
.scope-view button[aria-pressed="true"] { color: #FFD694; background: rgba(60, 52, 38, .9); }
.scope-view button:focus-visible { outline: 2px solid #FFD694; outline-offset: 1px; }
.scope-view svg { width: 62%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

