/* Consulting Scope Builder — landing «Vertragsseite». Fonts are self-hosted (SIL OFL, see fonts/). */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fraunces-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fraunces-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f1eff2;
  --sheet: #ffffff;
  --sunk: #e6e2e8;
  --ink: #231a2b;
  --soft: #54485c;
  --faint: #675c70;
  --line: #d6d0da;
  --stone: #a79dae;
  --plum: #5b2a5e;
  --plum-dark: #431e46;
  --plum-tint: #ede1ee;
  --apricot: #e58a4e;
  --apricot-text: #8f4615;
  --pine: #2f6e5e;
  --brick: #a23b3b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "Courier New", monospace;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-dark); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(2.2rem, 6.2vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 600; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-family: var(--mono); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum); margin: 0 0 0.9em; overflow-wrap: anywhere; }
.note { color: var(--faint); font-size: 0.95rem; }

/* Header and the boundary line ("Grenzlinie") */
.top { padding-top: 18px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; text-decoration: none; color: var(--soft); border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); background: var(--plum-tint); }
.line { display: flex; align-items: center; max-width: 1140px; margin: 14px auto 0; padding: 0 var(--gutter); height: 14px; }
.line-solid { width: 56px; height: 3px; background: var(--plum); flex: none; }
.line-stone { width: 11px; height: 11px; border: 2px solid var(--plum); background: var(--paper); transform: rotate(45deg); margin: 0 6px; flex: none; }
.line-dash { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--apricot) 0 14px, transparent 14px 23px); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 span { color: var(--plum); display: block; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.28rem); color: var(--soft); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 22px; }
.text-link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.facts li { font-family: var(--mono); font-size: 0.82rem; color: var(--soft); border: 1px dashed var(--stone); padding: 4px 10px; border-radius: 3px; }

/* Google Play button (no badge: neutral wording, disabled until the store URL is known) */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); }
.play:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
.play-icon { width: 22px; height: 24px; position: relative; flex: none; }
.play-icon i { position: absolute; left: 0; width: 22px; height: 6px; border-radius: 2px; }
.play-icon i:nth-child(1) { top: 0; background: #fff; }
.play-icon i:nth-child(2) { top: 9px; background: #fff; width: 15px; }
.play-icon i:nth-child(3) { top: 18px; background: var(--apricot); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; opacity: 0.85; }
.play-big { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.play-soon { background: transparent; color: var(--ink); border: 2px dashed var(--stone); cursor: default; }
.play-soon .play-icon i:nth-child(1), .play-soon .play-icon i:nth-child(2) { background: var(--plum); }

/* The sheet: a page of the specification with a folded corner and a perforated edge */
.sheet { margin: 0; }
.sheet-page { position: relative; background: var(--sheet); border: 1px solid var(--stone); padding: 22px 22px 0; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.sheet-page::before { content: ""; position: absolute; top: 0; right: 0; width: 40px; height: 40px; background: linear-gradient(225deg, transparent 50%, var(--plum-tint) 50%); border-left: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.sheet-page::after { content: ""; position: absolute; top: -1px; right: -1px; width: 57px; height: 1px; background: var(--stone); transform-origin: right top; transform: rotate(45deg) translateX(0); }
.sheet .shot { width: 100%; aspect-ratio: 800 / 1180; object-fit: cover; object-position: top; border: 1px solid var(--line); border-bottom: 0; }
.sheet figcaption { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); padding-top: 12px; margin-top: 0; border-top: 2px dashed var(--stone); letter-spacing: 0.03em; }
.sheet-hero { max-width: 430px; justify-self: end; width: 100%; }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }

/* Four tools as clauses */
.tools { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.clause { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px dashed var(--stone); }
.clause:last-child { border-bottom: 0; }
.clause-flip .clause-text { order: 2; }
.clause-flip .sheet { order: 1; }
.clause .sheet { max-width: 380px; width: 100%; justify-self: center; }
.clause-no { font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 7vw, 4.8rem); line-height: 1; color: var(--apricot); margin: 0 0 12px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 6px 0 6px 30px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 18px; height: 3px; background: var(--plum); }

/* The app's own scope boundary */
.scope { padding: clamp(48px, 7vw, 96px) 0; background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 0 clamp(16px, 3vw, 36px); }
.scope-col h3 { display: flex; align-items: center; gap: 10px; }
.scope-in h3::before, .scope-out h3::before { content: ""; width: 14px; height: 14px; border-radius: 2px; flex: none; }
.scope-in h3::before { background: var(--plum); }
.scope-out h3::before { background: var(--brick); }
.scope-col ul { list-style: none; padding: 0; margin: 0; }
.scope-col li { padding: 12px 0; border-top: 1px solid var(--line); }
.scope-out li strong { display: block; font-weight: 600; }
.scope-out li span { color: var(--faint); font-size: 0.95rem; }
.scope-divider { position: relative; background: repeating-linear-gradient(180deg, var(--apricot) 0 14px, transparent 14px 23px) center / 2px 100% no-repeat; }
.scope-divider::before { content: ""; position: absolute; left: 50%; top: 6px; width: 14px; height: 14px; border: 2px solid var(--plum); background: var(--sheet); transform: translateX(-50%) rotate(45deg); }

/* Method */
.method { padding: clamp(48px, 7vw, 96px) 0; }
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.calc { background: var(--sheet); border: 1px solid var(--stone); border-left: 6px solid var(--plum); padding: clamp(20px, 3vw, 32px); }
.calc-title { font-family: var(--mono); font-size: 0.85rem; color: var(--plum); text-transform: uppercase; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.calc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.calc-row div { border: 1px solid var(--line); padding: 10px 12px; border-radius: 4px; }
.calc-row dt { font-size: 0.85rem; color: var(--faint); overflow-wrap: anywhere; }
.calc-row dd { margin: 0; font-family: var(--mono); font-size: 1.3rem; font-weight: 500; }
.calc-formula { font-family: var(--mono); font-size: clamp(0.95rem, 1.6vw, 1.08rem); border-top: 1px dashed var(--stone); padding-top: 12px; overflow-wrap: anywhere; }
.calc-formula strong { color: var(--plum); font-weight: 500; }
.calc-foot { color: var(--faint); font-size: 0.92rem; margin: 0; }

/* Screen strip */
.gallery { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.strip { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - 1140px) / 2 + var(--gutter))) 20px; }
.strip-item { flex: 0 0 auto; width: min(62vw, 240px); margin: 0; scroll-snap-align: start; }
.strip-shot { width: 100%; border: 1px solid var(--stone); background: var(--sheet); }
.strip-item figcaption { font-family: var(--mono); font-size: 0.82rem; color: var(--soft); padding-top: 8px; }

/* More functions */
.more { padding: clamp(48px, 7vw, 96px) 0; background: var(--sunk); }
.more-list { list-style: none; counter-reset: clause; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.more-list li { counter-increment: clause; padding: 22px 0; border-top: 2px solid var(--ink); }
.more-list li::before { content: "§ " counter(clause); font-family: var(--mono); font-size: 0.85rem; color: var(--apricot-text); display: block; margin-bottom: 6px; }
.more-list h3 { font-size: 1.25rem; }
.more-list p { color: var(--soft); margin: 0; }

/* Download band */
.download { background: var(--plum); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.download-inner > div { max-width: 640px; }
.download h2 { color: #fff; }
.download p { color: #ebddec; margin: 0; }
.download a { color: #fff; }
.download .play { background: #fff; color: var(--ink); border-color: #fff; }
.download .play-soon { background: transparent; color: #fff; border-color: #c9a6cb; }
.download .play-soon .play-icon i:nth-child(1), .download .play-soon .play-icon i:nth-child(2) { background: #fff; }
.download .play:not(.play-soon) .play-icon i:nth-child(1), .download .play:not(.play-soon) .play-icon i:nth-child(2) { background: var(--plum); }

/* Footer */
.foot { background: var(--ink); color: #d9d1de; padding: 36px 0 44px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-name { font-family: var(--serif); font-weight: 700; color: #fff; margin: 0; font-size: 1.1rem; }
.foot-small { margin: 0; font-size: 0.9rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 0; }
.foot-links a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }

/* Text pages */
.doc { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc-wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.doc h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 1.8em; padding-top: 0.6em; border-top: 1px dashed var(--stone); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.step-no { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--apricot); line-height: 1.1; }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--soft); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; padding: 8px 0; }
.faq details p { color: var(--soft); }

@media (max-width: 900px) {
  .hero-grid, .clause, .method-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet-hero { justify-self: start; max-width: 380px; }
  .clause-flip .clause-text { order: 1; }
  .clause-flip .sheet { order: 2; }
  .clause .sheet { justify-self: start; }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .scope-divider { height: 40px; background: repeating-linear-gradient(90deg, var(--apricot) 0 14px, transparent 14px 23px) center / 100% 2px no-repeat; margin: 16px 0; }
  .scope-divider::before { left: 6px; top: 50%; transform: translateY(-50%) rotate(45deg); }
  .more-list { grid-template-columns: minmax(0, 1fr); }
  .calc-row { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 0 8px; }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); }
  .play { padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.nohy { hyphens: manual; -webkit-hyphens: manual; }
