/* Devkonzept – styles.css · Kapitel-Layout, hell links, Farbe rechts */

@font-face { font-family: 'Geist'; src: url('fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --panel: #ececea;
  --panel-2: #f6f6f4;
  --ink: #0f0f0f;
  --slate: #26303b;
  --text: #4a5460;
  --text-2: #5f6873;
  --line: #ffffff;
  --accent: #e8611c;
  --navy: #1b2633;
  --bar: #1f2a36;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(24px, 5vw, 80px);
  --bar-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-io: cubic-bezier(.76,0,.24,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.topbar { display: none; }
html.jumping { scroll-snap-type: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (min-width: 901px) and (min-height: 560px) {
  html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
  .intro, .chapter { scroll-snap-align: start; scroll-snap-stop: always; }
}
body {
  background: var(--panel); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--bar-h);
}
::selection { background: var(--slate); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Kopf: Menü links, Logo rechts ---------- */
.menu-btn {
  position: fixed; right: var(--gutter); top: 20px; z-index: 80; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: background .2s, transform .3s var(--ease);
}
.menu-btn:hover { background: var(--accent); transform: scale(1.06); }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px 0; transition: transform .35s var(--ease), opacity .2s; }
.menu-btn span:nth-child(2) { width: 14px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.logo { position: fixed; left: var(--gutter); top: 30px; z-index: 80; color: var(--slate); }
.logo svg { height: 30px; width: auto; }
.logo .box { fill: var(--ink); }
.logo .dash { fill: #faf8f5; }
.logo .word { fill: currentColor; }

/* Menü-Overlay */
.menu {
  position: fixed; inset: 0; z-index: 71; background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io); visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu ol { list-style: none; counter-reset: m; }
.menu ol li { counter-increment: m; }
.menu ol a {
  display: grid; grid-template-columns: 56px 1fr; align-items: center;
  font-weight: 700; font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.2;
  color: #fff; transition: color .2s;
}
.menu ol a::before { content: "0" counter(m); font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--accent); }
.menu ol a:hover { color: var(--accent); }
.menu .side { justify-self: end; text-align: right; font-size: 15px; color: #9aa1aa; }
.menu .side a { display: block; margin-top: 10px; color: #fff; }
.menu .side .mail { font-size: 22px; font-weight: 500; }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr; align-content: center; gap: 48px; } .menu .side { justify-self: start; text-align: left; } }

/* ---------- Untere Leiste ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar-h); z-index: 50;
  background: #fff; color: var(--text-2); display: grid; grid-template-columns: auto 1fr auto; border-top: 1px solid #e2e2df;
}
.bar .segs { display: flex; align-items: center; gap: 6px; padding-left: var(--gutter); }
.bar .segs i { display: block; width: 28px; height: 3px; background: #dcdcd9; border-radius: 2px; transition: background .3s, width .3s var(--ease); }
.bar .segs i.on { background: var(--accent); width: 44px; }
.bar nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 64px); font-weight: 600; font-size: 15px; }
.bar nav a { position: relative; padding: 6px 0; color: #5f6873; transition: color .2s; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar nav a:hover, .bar nav a.active { color: var(--slate); }
.bar nav a.active::after { transform: scaleX(1); }
.bar .kontakt { background: var(--accent); color: #fff; font-weight: 700; padding: 0 clamp(24px, 3vw, 48px); display: flex; align-items: center; transition: background .2s; }
.bar .kontakt:hover { background: var(--ink); }
.bar .count { display: none; }
@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .bar nav { gap: clamp(14px, 2.6vw, 28px); font-size: 14px; }
  .bar .segs { padding-left: 20px; } .bar .segs i { width: 14px; } .bar .segs i.on { width: 24px; }
  .bar .kontakt { padding: 0 20px; }
}

/* ---------- Kapitel-Grundgerüst ---------- */
.chapter, .intro {
  position: relative; height: calc(100svh - var(--bar-h)); min-height: 560px;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.panel-text { position: relative; background: var(--panel); padding: 120px var(--gutter) 96px; display: grid; align-content: center; }
.panel-art { position: relative; overflow: hidden; perspective: 1200px; }
@media (min-width: 901px) {
  .panel-art { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); margin-left: -9%; }
  .panel-text { padding-right: calc(var(--gutter) + 4%); }
}
.panel-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.14), transparent 60%), radial-gradient(80% 60% at 80% 100%, rgba(0,0,0,.35), transparent 60%); pointer-events: none; }
.panel-art .art { position: absolute; inset: 0; margin: auto; width: min(70%, 620px); aspect-ratio: 1; transform-style: flat; }
.panel-art .art > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; transform-style: flat; }

/* Panel-Farben */
.c-navy  .panel-art { background: #1b2633; }
.c-orange .panel-art { background: #e8611c; }
.c-teal  .panel-art { background: #1d4a47; }
.c-steel .panel-art { background: #2c4462; }
.c-ink   .panel-art { background: #15181c; }

/* Inhalt links */
.excerpt { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; color: #4f5862; max-width: 30ch; }
.rule { height: 4px; background: var(--line); width: min(100%, 560px); margin: 36px 0 44px; transform-origin: left; }
.panel-text h2 {
  color: var(--slate); font-weight: 700; font-size: clamp(44px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.03em;
}
.more {
  margin-top: 56px; display: inline-flex; align-items: center; gap: 28px;
  font-weight: 500; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate);
}
.more { gap: 16px; text-transform: none; letter-spacing: 0; font-size: 18px; font-weight: 600; }
.more .arrow { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.more .arrow polyline { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.more .arrow line { display: none; }
.more:hover .arrow { transform: translateX(6px); }
.more[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.count-line { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; color: var(--slate); }
.count-line { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--text-2); }
.count-line i { flex: 0 0 120px; height: 2px; background: #d7d7d4; position: relative; display: block; }
.count-line i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 20%); background: var(--accent); transition: width .6s var(--ease); }

/* Details (aufklappbar) */
.detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.detail > div { overflow: hidden; }
.detail.open { grid-template-rows: 1fr; }
.detail-inner { padding-top: 36px; max-width: 54ch; font-size: 16px; color: var(--text); }
.detail-inner ul, .detail-inner ol { list-style: none; border-top: 2px solid var(--line); }
.detail-inner li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.7fr); gap: 6px 24px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.detail-inner li b { font-weight: 600; color: var(--slate); }
.detail-inner li small { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-2); margin-top: 2px; }
.detail-inner ol { counter-reset: s; }
.detail-inner ol li { grid-template-columns: 32px minmax(0,1fr) auto; counter-increment: s; }
.detail-inner ol li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.detail-inner ol li em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.detail-inner p + p { margin-top: 12px; }
.detail-inner p.agency { margin-top: 20px; }
.chapter.has-open .panel-text { align-content: start; overflow-y: auto; scrollbar-width: none; }
.chapter.has-open .panel-text::-webkit-scrollbar { display: none; }
.chapter.has-open .count-line { display: none; }

/* ---------- Kapitel-Cover (große Ziffer) ---------- */
.cover {
  position: absolute; inset: 0; z-index: 5; background: var(--panel-2); display: grid; place-items: center;
  pointer-events: none; clip-path: inset(0 0 0 0); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), clip-path .75s var(--ease-io), visibility 0s linear .75s;
}
.cover .num {
  font-weight: 700; font-size: clamp(200px, 40vw, 600px); line-height: 1; letter-spacing: -0.06em; position: relative;
  color: transparent; -webkit-text-stroke: 2px var(--accent); paint-order: stroke;
  transform: scale(1.08) translateY(20px); opacity: 0; transition: transform .8s var(--ease), opacity .5s var(--ease);
}
.cover .name {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 700; font-size: clamp(36px, 6vw, 100px); letter-spacing: -0.03em; color: var(--slate); -webkit-text-stroke: 0;
  transform: translateY(28px); opacity: 0; transition: transform .6s var(--ease) .18s, opacity .6s var(--ease) .18s;
}
.chapter.covering .cover { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); transition: opacity .3s var(--ease), clip-path 0s; }
.chapter.covering .cover .num { transform: none; opacity: 1; }
.chapter.covering .cover .name { transform: none; opacity: 1; }
.chapter.uncovering .cover { opacity: 1; visibility: hidden; clip-path: inset(0 0 100% 0); }
.chapter.uncovering .cover .num { transform: translateY(-60px) scale(.96); opacity: 1; transition: transform .75s var(--ease-io); }
.chapter.uncovering .cover .name { transform: translateY(-60px); opacity: 1; transition: transform .75s var(--ease-io); }

/* Inhalt einblenden nach Cover */
.reveal .excerpt, .reveal h2, .reveal .more, .reveal .count-line, .reveal .note { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal .rule { transform: scaleX(0); transition: transform .6s var(--ease); }
.reveal .art { opacity: 0; transform: translateY(60px) scale(.92); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.shown .excerpt { opacity: 1; transform: none; }
.reveal.shown .rule { transform: scaleX(1); transition-delay: .15s; }
.reveal.shown h2 { opacity: 1; transform: none; transition-delay: .25s; }
.reveal.shown .more { opacity: 1; transform: none; transition-delay: .38s; }
.reveal.shown .note { opacity: 1; transform: none; transition-delay: .46s; }
.reveal.shown .count-line { opacity: 1; transform: none; transition-delay: .5s; }
.reveal.shown .art { opacity: 1; transform: none; transition-delay: .2s; }

/* ---------- Einstieg ---------- */
.intro .panel-text { align-content: end; padding-bottom: 96px; }
.intro .kicker { font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
.intro h1 { color: var(--slate); font-weight: 700; font-size: clamp(44px, 5.6vw, 92px); max-width: 9ch; line-height: .98; letter-spacing: -0.04em; }
.intro p { margin-top: 28px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; color: var(--text); max-width: 36ch; }
.intro .scroll { position: absolute; left: var(--gutter); bottom: 40px; display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.intro .scroll i { display: block; width: 1px; height: 36px; background: #cfcfcc; position: relative; overflow: hidden; }
.intro .scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--accent); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { to { top: 100%; } }
.intro .panel-art { background: var(--navy); }
.intro .chev { stroke: var(--accent); fill: none; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.2s var(--ease) .3s forwards; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.intro .cur { fill: #fff; opacity: 0; animation: blink 1.1s steps(1) 1.4s infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Kontakt ---------- */
.mail-big.more { text-transform: none; letter-spacing: -0.02em; gap: 0; display: inline-block; margin-top: 40px; color: var(--slate); font-weight: 700; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.02em; border-bottom: 3px solid var(--slate); padding-bottom: 4px; word-break: break-all; transition: color .2s, border-color .2s; }
.mail-big:hover { color: var(--accent); border-color: var(--accent); }
.note { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }


/* ---------- Mobil und Tablet: gleiche Erfahrung wie Desktop ---------- */
@media (max-width: 900px) {
  :root { --top-h: calc(64px + env(safe-area-inset-top, 0px)); --bar-h: 56px; }
  html { scroll-snap-type: y mandatory; scroll-padding-top: var(--top-h); }
  body { overscroll-behavior-y: none; }
  .topbar { display: block; position: fixed; left: 0; right: 0; top: 0; height: var(--top-h); background: var(--panel); z-index: 70; box-shadow: 0 1px 0 rgba(0,0,0,.05); transform: translateZ(0); }
  body::before { content: none; }
  .logo { top: calc(19px + env(safe-area-inset-top, 0px)); left: 20px; }
  .logo svg { height: 26px; }
  .menu-btn { right: 14px; top: calc(12px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; box-shadow: none; }
  .menu-btn span { width: 16px; margin: 3px 0; }
  .menu-btn span:nth-child(2) { width: 11px; }
  main { padding-top: var(--top-h); }
  .chapter, .intro {
    height: calc(100vh - var(--bar-h) - var(--top-h));
    height: calc(100dvh - var(--bar-h) - var(--top-h)); min-height: 0;
    grid-template-columns: 1fr; grid-template-rows: minmax(0, 42%) minmax(0, 1fr);
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  .panel-art { order: -1; aspect-ratio: auto; max-height: none; clip-path: none; margin: 0; }
  .panel-art .art { width: min(60%, 300px); }
  .panel-text { padding: 22px var(--gutter) 20px; align-content: start; overflow-y: auto; scrollbar-width: none; }
  .panel-text::-webkit-scrollbar { display: none; }
  .intro .panel-text { align-content: start; padding-bottom: 20px; }
  .intro .kicker { margin-bottom: 12px; font-size: 12px; }
  .intro h1 { font-size: clamp(34px, 9.5vw, 48px); max-width: none; }
  .intro p { margin-top: 14px; font-size: 16px; }
  .intro .scroll { position: static; margin-top: 18px; }
  .excerpt { font-size: 16px; line-height: 1.45; max-width: none; }
  .rule { height: 3px; margin: 16px 0 16px; }
  .panel-text h2, .chapter.single .panel-text h1 { font-size: clamp(32px, 9vw, 44px); }
  .more { margin-top: 18px; font-size: 16px; }
  .count-line { position: static; margin-top: 18px; }
  .cover .num { font-size: clamp(160px, 52vw, 260px); -webkit-text-stroke: 1.5px var(--accent); }
  .cover .name { font-size: clamp(30px, 8vw, 44px); }
  .bar { grid-template-columns: auto 1fr auto; }
  .bar nav { display: none; }
  .bar .count { display: flex; align-items: center; padding-left: 12px; font-family: var(--mono); font-size: 13px; }
  .bar .segs { padding-left: 16px; } .bar .segs i { width: 14px; } .bar .segs i.on { width: 24px; }
  .bar .kontakt { padding: 0 20px; }
  .kontakt-note, .note { font-size: 12px; }
  /* Kapitelseiten: Inhalt darunter scrollt frei */
  html:has(.chapter.single), html:has(.sub) { scroll-snap-type: none; }
  .chapter.single { height: calc(100dvh - var(--bar-h) - var(--top-h)); }
  .sub { padding-top: 40px; }
}
@media (max-width: 900px) and (min-height: 900px) {
  .chapter, .intro { grid-template-rows: minmax(0, 46%) minmax(0, 1fr); }
  .panel-art .art { width: min(60%, 360px); }
}

/* ---------- Unterseiten ---------- */
.sub { max-width: 780px; margin: 0 auto; padding: 140px var(--gutter) 120px; }
.sub h1 { color: var(--slate); font-weight: 700; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 16px; }
.sub .lede { color: var(--text-2); max-width: 60ch; margin-bottom: 40px; font-size: 18px; }
.sub section { border-top: 2px solid var(--line); padding: 28px 0; }
.sub h2 { color: var(--slate); font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.sub h3 { color: var(--slate); font-weight: 600; font-size: 16px; margin: 18px 0 8px; }
.sub p, .sub li { font-size: 16px; line-height: 1.65; max-width: 66ch; }
.sub p + p, .sub ul + p, .sub p + ul { margin-top: 12px; }
.sub ul { padding-left: 20px; }
.sub address { font-style: normal; font-family: var(--mono); font-size: 14px; line-height: 1.8; color: var(--slate); }
.sub a { color: var(--slate); border-bottom: 1px solid #bfbfbc; }
.sub a:hover { border-color: var(--slate); }
.sub dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 24px; }
.sub dt { font-family: var(--mono); font-size: 13px; color: var(--text-2); padding-top: 3px; }
.sub dd { color: var(--slate); }
.sub .back { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--text-2); border: 0; }
.sub .back:hover { color: var(--slate); }
@media (max-width: 560px) { .sub dl { grid-template-columns: 1fr; } }
.faq { border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 24px; align-items: center; padding: 20px 0; color: var(--slate); font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 22px; height: 22px; border: 1.5px solid var(--slate); position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--slate); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq summary .plus::before { width: 10px; height: 1.5px; }
.faq summary .plus::after { width: 1.5px; height: 10px; }
.faq details[open] summary .plus { background: var(--accent); border-color: var(--accent); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq .answer { padding: 0 48px 24px 0; max-width: 60ch; }

/* ---------- Kapitelseiten ---------- */
.chapter.single .panel-text h1 { color: var(--slate); font-weight: 700; font-size: clamp(44px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.03em; }
.reveal h1 { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.shown h1 { opacity: 1; transform: none; transition-delay: .25s; }
.content { background: var(--panel-2); padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(80px, 10vw, 140px); }
.content .block { max-width: 1100px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 0; border-top: 2px solid #fff; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px; }
.content .block:first-child { border-top: 0; padding-top: 0; }
.content .block h2 { color: var(--slate); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.content .block h3 { color: var(--slate); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.content .block p { max-width: 62ch; }
.content .block a { color: var(--slate); border-bottom: 1.5px solid var(--accent); }
.content .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.content .cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content .tags { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.content .steps { list-style: none; counter-reset: s; border-top: 2px solid #fff; }
.content .steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 220px) minmax(0, 1fr) auto; gap: 8px 28px; padding: 20px 0; border-bottom: 2px solid #fff; align-items: baseline; }
.content .steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent); }
.content .steps li b { font-weight: 600; color: var(--slate); }
.content .steps li em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.content .next { max-width: 1100px; margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 24px; padding: 32px 0 0; border-top: 2px solid #fff; color: var(--slate); }
.content .next .mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); grid-column: 1 / -1; }
.content .next b { font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.03em; }
.content .next .arrow { width: 32px; height: 32px; transition: transform .35s var(--ease); }
.content .next .arrow polyline { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.content .next:hover .arrow { transform: translateX(8px); }
@media (max-width: 900px) {
  .content .block { grid-template-columns: 1fr; }
  .content .cols, .content .cols.two { grid-template-columns: 1fr; gap: 24px; }
  .content .steps li { grid-template-columns: 32px 1fr; }
  .content .steps li span, .content .steps li em { grid-column: 2; }
}
/* Kapitelseiten scrollen frei, nur die Startseite rastet ein */
html:has(.chapter.single), html:has(.sub) { scroll-snap-type: none; }
.content { scroll-snap-align: start; }

/* Agenturen */
.c-graphite .panel-art { background: #2e3440; }
.menu .side a.hl { color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 0 36px; align-items: center; }
.more.sub-link { color: var(--text-2); }
.more.sub-link:hover { color: var(--slate); }
.reveal .links .more { transition-delay: 0s; }
.reveal.shown .links .sub-link { transition-delay: .46s; }
.cover .num .name { -webkit-text-stroke: 0; }

/* ---------- Kontaktformular ---------- */
.kform { max-width: 640px; display: grid; gap: 18px; }
.kform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kform label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; color: var(--slate); }
.kform input, .kform textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--slate); background: #fff;
  border: 0; border-bottom: 2px solid #dcdcd9; padding: 14px 16px; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.kform input:focus, .kform textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.kform textarea { resize: vertical; min-height: 140px; }
.kform .hp { position: absolute; left: -9999px; }
.kform .row.send { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
.kform .btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; padding: 16px 22px; transition: background .2s; }
.kform .btn:hover { background: var(--accent); }
.kform .btn[disabled] { opacity: .6; cursor: default; }
.kform .btn .arrow { width: 18px; height: 18px; }
.kform .btn .arrow polyline { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kform .hint { font-size: 13px; color: var(--text-2); max-width: 40ch; }
.kform .hint a { border-bottom: 1px solid #bfbfbc; }
.kform .status { min-height: 1.4em; font-size: 15px; color: var(--slate); }
.kform .status.ok { color: #1d6b3a; font-weight: 600; }
.kform .status.err { color: #b3361c; }
.kform.sent .row, .kform.sent label, .kform.sent .send { display: none; }
.alt { margin-top: 32px; display: grid; gap: 8px; }
.alt .mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.copy-row { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-row code { font-family: var(--mono); font-size: 18px; color: var(--slate); background: #fff; padding: 10px 14px; }
.copy { font-size: 14px; font-weight: 600; color: var(--slate); border: 1.5px solid var(--slate); padding: 9px 14px; transition: background .2s, color .2s; }
.copy:hover { background: var(--slate); color: #fff; }
.copy.done { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .kform .row, .kform .row.send { grid-template-columns: 1fr; } }

/* ---------- Kapitelseiten: eigener Auftritt statt Cover ---------- */
.chapter.single .cover { display: none; }
.chapter.single .panel-art { clip-path: inset(0 0 0 100%); transition: clip-path .9s var(--ease-io); }
.chapter.single.shown .panel-art { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
.chapter.single .art { opacity: 0; transform: translateY(80px) scale(.9); transition: opacity .8s var(--ease) .45s, transform .9s var(--ease) .45s; }
.chapter.single.shown .art { opacity: 1; transform: none; }
.chapter.single .excerpt, .chapter.single h1, .chapter.single .more, .chapter.single .count-line, .chapter.single .note {
  opacity: 0; transform: translateX(-28px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.chapter.single .rule { transform: scaleX(0); transition: transform .6s var(--ease); }
.chapter.single.shown .excerpt { opacity: 1; transform: none; transition-delay: .2s; }
.chapter.single.shown .rule { transform: scaleX(1); transition-delay: .3s; }
.chapter.single.shown h1 { opacity: 1; transform: none; transition-delay: .38s; }
.chapter.single.shown .more { opacity: 1; transform: none; transition-delay: .5s; }
.chapter.single.shown .note { opacity: 1; transform: none; transition-delay: .58s; }
.chapter.single.shown .count-line { opacity: 1; transform: none; transition-delay: .62s; }
@media (max-width: 900px) {
  .chapter.single .panel-art { clip-path: inset(0 0 100% 0); }
  .chapter.single.shown .panel-art { clip-path: inset(0 0 0 0); }
}

/* ---------- Preise ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.price { background: #fff; padding: 28px 26px 26px; border-top: 3px solid #dcdcd9; }
.price.featured { border-top-color: var(--accent); }
.price h3 { margin: 0 0 6px; }
.price .amount { font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: var(--slate); margin-bottom: 14px; max-width: none; }
.price .amount small { font-weight: 400; font-size: 14px; color: var(--text-2); letter-spacing: 0; }
.price p { font-size: 15px; }
.price-note { margin-top: 20px; font-size: 14px; color: var(--text-2); max-width: 70ch; }
.konditionen { list-style: none; border-top: 2px solid #fff; max-width: 640px; }
.konditionen li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 2px solid #fff; }
.konditionen li b { font-weight: 600; color: var(--slate); }
.konditionen li span { font-family: var(--mono); font-size: 14px; color: var(--slate); white-space: nowrap; }
@media (max-width: 760px) { .prices, .prices.two { grid-template-columns: 1fr; } .konditionen li { grid-template-columns: 1fr; gap: 4px; } .konditionen li span { white-space: normal; } }

/* Warum Devkonzept */
.why { list-style: none; border-top: 2px solid #fff; }
.why li { display: grid; grid-template-columns: 28px minmax(0, 220px) minmax(0, 1fr); gap: 6px 24px; padding: 14px 0; border-bottom: 2px solid #fff; align-items: baseline; }
.why li::before { content: ""; width: 12px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(1px); }
.why li b { font-weight: 600; color: var(--slate); }
@media (max-width: 760px) { .why li { grid-template-columns: 28px 1fr; } .why li span { grid-column: 2; } }
/* Logo im offenen Menü sichtbar */
body.menu-open .logo { color: #fff; }
body.menu-open .logo .box { fill: #fff; }
body.menu-open .logo .dash { fill: var(--ink); }
body.menu-open .menu-btn { background: #fff; color: var(--ink); }

/* ---------- Foto-Panels ---------- */
.panel-art .art.photo { inset: 0; margin: 0; width: auto; height: auto; aspect-ratio: auto; }
.panel-art .art.photo img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; max-height: none; object-fit: cover; will-change: transform; }
.reveal .art.photo { transform: scale(1.04); }
.reveal.shown .art.photo { transform: none; }
.chapter.single .art.photo { transform: translateY(40px) scale(1.06); }
.chapter.single.shown .art.photo { transform: none; }
@media (max-width: 900px) { .panel-art .art.photo { width: auto; } }


/* ---------- Beispielprojekte ---------- */
.examples-lede { margin-bottom: 24px; }
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.example { display: grid; background: #fff; border-top: 3px solid #dcdcd9; border-bottom: 0 !important; transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.example:hover { border-top-color: var(--accent); box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.example .frame { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--tone, var(--navy)); overflow: hidden; margin: 18px 18px 0; }
.example .frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.12), transparent 60%); pointer-events: none; }
.example .dots { position: absolute; top: 10px; left: 12px; display: flex; gap: 5px; z-index: 2; }
.example .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.example .frame img { position: absolute; left: 0; top: 30px; width: 100%; height: auto; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.example:hover .frame img { transform: translateY(-5%); }
.example .meta { display: grid; gap: 4px; padding: 18px 20px 20px; }
.example .meta b { font-weight: 600; color: var(--slate); font-size: 17px; }
.example .meta > span { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.example .meta em { margin-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--slate); display: inline-flex; align-items: center; gap: 8px; }
.example .meta em .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.example .meta em .arrow polyline { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.example:hover .meta em .arrow { transform: translateX(5px); }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }
