/*
  Komovi — shared styles for the studio pages (/, /about, /privat, /werkstatt/, their /en/
  pages, /impressum, 404). The Katun pages build on this file too (with /katun/landing.css
  and /katun/katun.css), so the classes they use (.bar, .site-header, .site-nav, .lang,
  .site-footer, .footer-*, .hero, .section*, .legal, .box …) keep their behaviour. The studio
  pages use their own header (.sh) and footer (.sf); the app switcher is in /assets/frame.css.
  No external requests: system font stack, inline SVG, no web fonts, no CDNs.
  The FinanzPilot pages under /finanzpilot/ have their own stylesheets.
  Contrast (WCAG): every text colour below is >= 4.5:1 on the background it sits on.
  Motion: assets/motion.js sets html.motion (never with "reduce motion" or without JS);
  every rule that hides or moves content needs that class, see "Motion" at the end.
*/
:root {
  color-scheme: light dark;
  --bg: #F6F4EF;          /* limestone */
  --surface: #FFFFFF;
  --surface-2: #EAE6DC;
  --ink: #111318;
  --ink-2: #353A42;
  --muted: #575D67;
  --line: #D9D3C6;
  --accent: #B53A09;      /* alpenglow: the one accent colour */
  --on-accent: #FFFFFF;
  --accent-soft: #F9E1D3;
  --accent-ink: #9A3409;
  --ridge-back: #EFECE5;
  --ridge-line: #C9C1B2;
  --shadow: 0 1px 2px rgba(17, 19, 24, .05), 0 18px 40px -12px rgba(17, 19, 24, .14);
  --radius: 20px;
  --maxw: 1120px;
  --gutter: 16px;
  --bar-bg: rgba(246, 244, 239, .8);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0E11;
    --surface: #15171B;
    --surface-2: #1A1C21;
    --ink: #F3F1EC;
    --ink-2: #D2CFC8;
    --muted: #A2A7B0;
    --line: #2B2F36;
    --accent: #FF7A45;
    --on-accent: #160803;
    --accent-soft: #3B1C0F;
    --accent-ink: #FFA47E;
    --ridge-back: #121317;
    --ridge-line: #2F333B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -12px rgba(0, 0, 0, .6);
    --bar-bg: rgba(13, 14, 17, .74);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: var(--gutter); top: -200px; z-index: 40;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { position: fixed; top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding: 18px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.025em;
}
.brand svg { width: 36px; height: 24px; color: var(--accent); flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.lang {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.lang:hover { border-color: var(--ink); }
@media (max-width: 599px) {
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 0 20px; }
  .lang { margin-left: auto; }
}

/* Sticky, translucent header bar (pages that wrap the header in .bar). Solid where
   the browser has no backdrop blur, so the text never sits on unblurred content. */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bar { background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.bar .site-header { padding: 10px 0; min-height: 64px; flex-wrap: nowrap; gap: 6px 22px; }
.bar .site-nav { flex-wrap: nowrap; }
.bar .site-nav a { white-space: nowrap; }
@media (max-width: 599px) {
  .bar .site-nav { gap: 0 16px; }
  .bar .site-nav a.nav-apps { display: none; } /* phones: three nav links + language don't fit */
  .bar .site-header { gap: 6px 16px; }
  .bar .brand { font-size: 1.2rem; gap: 8px; }
  .bar .brand svg { width: 30px; height: 20px; }
  .bar .site-nav { order: 0; width: auto; margin-left: auto; gap: 0 16px; }
  .bar .lang { margin-left: 0; }
}
@media (max-width: 359px) {
  /* Smallest phones: two rows, and the bar scrolls away instead of covering the page. */
  .bar { position: static; }
  .bar .site-header { flex-wrap: wrap; }
  .bar .site-nav { order: 3; width: 100%; margin-left: 0; }
  .bar .lang { margin-left: auto; }
}

/* ---------- Studio header (.bar.sbar > .wrap > header.sh) ----------
   Brand · app switcher (frame.css) · Privat / Werkstatt / Über · language. One sticky row
   from 880 px; narrower, two rows (brand + apps, then links + language) that scroll away
   with the page. The Katun pages keep .site-header above; nothing here touches it. */
.sh { display: flex; align-items: center; gap: 8px 18px; min-height: 64px; padding: 10px 0; }
.sh .brand { white-space: nowrap; }
.sh .kf-apps { padding-left: 18px; border-left: 1px solid var(--line); }
.sh .kf-app { color: var(--ink-2); }
.sh .kf-app:hover { color: var(--ink); }
.sh-nav { display: flex; gap: 0 22px; margin-left: auto; }
.sh-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 0; white-space: nowrap; }
.sh-nav a:hover { color: var(--ink); text-decoration: underline; }
.sh-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.sh .lang { white-space: nowrap; }
@media (max-width: 1039px) { .sh-long { display: none; } }
@media (max-width: 879px) {
  /* Two rows: brand + apps, then links + language. The ::after is a zero-height line break. */
  .sbar { position: static; }
  .sh { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding: 8px 0 4px; }
  .sh .brand { order: 1; }
  .sh .kf-apps { order: 2; margin-left: auto; padding-left: 0; border-left: 0; }
  .sh::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .sh-nav { order: 4; margin-left: 0; gap: 0 18px; }
  .sh .lang { order: 5; margin-left: auto; }
}
@media (max-width: 599px) {
  .sh .brand { font-size: 1.2rem; gap: 8px; }
  .sh .brand svg { width: 30px; height: 20px; }
  .sh-nav { gap: 0 16px; }
  .sh-nav a { font-size: .92rem; }
}
@media (max-width: 369px) {
  /* Smallest phones: the apps get a row of their own. */
  .sh .kf-apps { order: 3; margin-left: -4px; flex-basis: 100%; }
  .sh::after { display: none; }
  .sh .lang { order: 2; }
}

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--accent); }
.display { font-size: clamp(2.75rem, 10.5vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: .98; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 40rem; margin: 26px 0 0; }
/* Home hero (privacy first, 30 Oct 2026): a longer headline, so a smaller display size; the precise line as lead */
.hero-home .display { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1; }
.hero-home .lead { max-width: 44rem; color: var(--ink); text-wrap: pretty; }
.hero-fine { margin: 18px 0 0; max-width: 40rem; color: var(--muted); font-size: 1rem; }
.h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head .lead { margin-top: 16px; }
.fine { font-size: .9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .35s var(--ease-out), border-color .2s ease, background-color .2s ease, box-shadow .35s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.arrow { transition: transform .35s var(--ease-out); }
a:hover .arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .arrow { transition: none; }
  .btn:hover, .btn:active, a:hover .arrow { transform: none; }
}

/* ---------- Hero + ridge ---------- */
.hero { padding: clamp(36px, 9vw, 112px) 0 0; }
/* Fills run below the viewBox (clipped) and only the top edges are stroked, so no seam shows at the bottom. */
.ridge { display: block; width: 100%; height: clamp(150px, 13vw, 340px); margin-top: clamp(40px, 7vw, 88px); }
.ridge .back { fill: var(--ridge-back); }
.ridge .back-edge { fill: none; stroke: var(--ridge-line); stroke-width: 1.25; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ridge .front { fill: var(--surface-2); }
.ridge .edge { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ridge .glow { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-alt { background: var(--surface-2); }

/* ---------- App tiles (home): the two apps side by side, same weight ---------- */
.apps-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: stretch; }
.app-tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
/* Each app's own colours behind its phone: FinanzPilot navy, Katun paper by day and night by night. */
.app-media { display: flex; justify-content: center; align-items: flex-start; height: clamp(250px, 30vw, 330px); padding-top: 34px; overflow: hidden; margin: 0; }
.app-media > img, .app-media > picture { display: block; width: min(240px, 62%); flex: none; }
.app-media picture img { width: 100%; }
.app-media img { height: auto; border-radius: 26px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .28), 0 26px 50px -18px rgba(0, 0, 0, .5); }
.app-media-fp { background: radial-gradient(520px 300px at 85% 0%, rgba(0, 196, 140, .22), transparent 70%), #0A1628; }
.app-media-katun { background: linear-gradient(180deg, #F6F4EF, #ECE7DC); }
@media (prefers-color-scheme: dark) { .app-media-katun { background: linear-gradient(180deg, #0E1426, #151C33); } }
.app-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 4vw, 36px); }
.app-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-icon { width: 56px; height: 56px; border-radius: 12.6px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.app-id h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.035em; }
.app-meta { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: .75rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
}
a.badge { text-decoration: none; }
a.badge:hover, a.badge:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.app-body .lead { font-size: clamp(1.02rem, 1.6vw, 1.12rem); margin-top: 20px; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; font-size: .9rem; color: var(--ink-2); }
.app-body .fine { margin: 18px 0 0; }
.app-body .actions { margin-top: auto; padding-top: 26px; align-items: center; }
.more { margin: 28px 4px 0; color: var(--muted); }

/* ---------- Dark band (Privat aus Prinzip on the home page; always dark) ---------- */
.invert {
  --ink: #F3F1EC; --ink-2: #D2CFC8; --muted: #A2A7B0; --line: #30343C;
  --accent: #FF7A45; --on-accent: #160803; --accent-soft: #3B1C0F; --accent-ink: #FFA47E; --surface: #1B1E23;
  background: #111318; color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .invert { --surface: #24272D; background: #1A1D22; border-block: 1px solid #2B2F36; }
}
.promise-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.promise-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.promise-grid svg { display: block; width: 30px; height: 30px; color: var(--accent); }
.promise-grid h3 { font-size: 1.25rem; font-weight: 750; margin: 14px 0 8px; }
.promise-grid p { margin: 0; color: var(--ink-2); }
.leaves { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); margin-top: 40px; }
.leaves-app { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.leaves-app h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 750; }
.leaves-app h3 img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.leaves-kicker { margin: 14px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.leaves-app ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 9px; }
.leaves-app li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: .975rem; }
.leaves-app li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.leaves-app li b { color: var(--ink); }
.band-foot { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; color: var(--ink-2); }
.band-foot .btn { flex: 0 1 auto; max-width: 100%; }

/* ---------- About, Werkstatt notes ---------- */
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; margin: 52px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin: 0 0 1em; }
.prose-app { display: flex; align-items: center; gap: 12px; }
.prose-app img { width: 34px; height: 34px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.tagline-block { padding-top: 28px; border-top: 2px solid var(--ink); }
.tagline { font-size: clamp(2.1rem, 6.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 0; }
.notes-head { margin: 48px 0 16px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Legal (Impressum) ---------- */
.legal { max-width: 46rem; padding-bottom: 24px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; margin: 28px 0 10px; }
.legal h2 { font-size: 1.25rem; font-weight: 750; margin: 36px 0 8px; }
.legal p { margin: 8px 0; color: var(--ink-2); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 22px 0 8px; }
.box b { color: var(--ink); }
address { font-style: normal; }
.placeholder { background: var(--accent-soft); color: var(--accent-ink); padding: 0 .3em; border-radius: 4px; font-weight: 650; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 56px 0 0; }
.jump { font-size: .9rem; font-weight: 600; }
/* One section per app after the studio part (30 Oct 2026); the jump nav under «Apps» reuses .jumps. */
.legal-jumps { margin: 14px 0 6px; }
.legal-app { margin-top: 44px; padding-top: 4px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.legal-app > h2 { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.legal-app > h2 img { width: 36px; height: 36px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.legal-app h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin: 22px 0 4px; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(40px, 10vw, 120px) 0 0; }
.notfound .display { font-size: clamp(4rem, 18vw, 9rem); }

/* ---------- Footer: .site-footer (Katun pages) and the studio footer .sf ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 52px; color: var(--muted); font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand { font-size: 1.15rem; }
.footer-note { margin: 22px 0 0; font-size: .875rem; }

.sf { border-top: 1px solid var(--line); padding: 48px 0 52px; color: var(--muted); font-size: .95rem; }
.sf-top { display: grid; gap: 30px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .sf-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.sf-id { grid-column: 1 / -1; }
@media (min-width: 760px) { .sf-id { grid-column: auto; } }
.sf-id .brand { font-size: 1.15rem; }
.sf-id p { margin: 12px 0 0; font-size: .9rem; max-width: 18rem; }
.sf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sf-h { margin: 0 0 6px; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sf-col > a:not(.kf-app) { color: var(--ink-2); text-decoration: none; padding: 5px 0; }
.sf-col > a:not(.kf-app):hover { color: var(--ink); text-decoration: underline; }
.sf-col a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.sf-col .kf-app { margin-left: -4px; color: var(--ink-2); }
.sf-col .kf-app:hover { color: var(--ink); }
.sf-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; }
.sf-note p { margin: 0; }
.sf-note a { color: var(--ink-2); font-weight: 600; }

/* ---------- Teaser cards (Werkstatt notes, about) ---------- */
.tcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tcard {
  display: flex; flex-direction: column; height: 100%; padding: 24px 22px 22px; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .2s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ridge-line); }
.tcard:active { transform: translateY(-1px) scale(.99); transition-duration: .1s; }
.tcard-topic { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.tcard-topic img { width: 22px; height: 22px; border-radius: 5px; }
.tcard-title { display: block; margin: 12px 0 8px; font-size: 1.3rem; font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.tcard-text { color: var(--ink-2); font-size: .975rem; flex: 1; }
.tcard-more { margin-top: 16px; font-weight: 700; color: var(--accent); }
.tcard:hover .tcard-title { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .18em; }
.tcards-foot { margin: 28px 4px 0; color: var(--muted); }
/* A note that is still to come (Werkstatt: «Katun: erste Notiz folgt»): not a link, no hover, dashed. */
.tcard-soon { background: transparent; border-style: dashed; border-color: var(--ridge-line); }
.tcard-soon:hover, .tcard-soon:active { transform: none; box-shadow: none; }
.tcard-soon:hover .tcard-title { text-decoration: none; }
.tcard-soon .tcard-topic { color: var(--muted); }
.tcard-soon .tcard-title { color: var(--ink-2); }
.tcard-soon .tcard-more { text-decoration: none; }
.tcard-soon .tcard-more:hover { text-decoration: underline; text-underline-offset: .18em; }
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } .tcard:hover, .tcard:active { transform: none; } }

/* ---------- Privacy page (/privat, /en/privacy) ---------- */
.jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jumps a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650;
}
.jumps a:hover { border-color: var(--ink); }
.jumps img { width: 30px; height: 30px; border-radius: 7px; }
.jumps .jump-plain { padding-left: 16px; }
.app-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.app-head img { width: 64px; height: 64px; border-radius: 14.4px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.app-head .h2 { flex: 1 1 auto; }
.app-head p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .95rem; }
.app-head p a { font-weight: 650; }
.sub-h { font-size: clamp(1.3rem, 2.6vw, 1.65rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.sub-h + .sub-lead { margin: -6px 0 20px; color: var(--ink-2); max-width: 44rem; }
.stays { list-style: none; padding: 0; margin: 0 0 clamp(32px, 5vw, 56px); display: grid; gap: 10px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.stays li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2); scroll-margin-top: 84px; }
.stays li::before {
  content: ""; position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.stays li::after { content: ""; position: absolute; left: 25px; top: 20px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.stays summary, .flow summary { cursor: pointer; list-style: none; }
.stays summary::-webkit-details-marker { display: none; }
.stays summary { position: relative; padding: 14px 48px 14px 56px; border-radius: 16px; }
.stays summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--muted); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .25s var(--ease-out);
}
.stays details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.stays summary:hover b { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .18em; }
.stays details > p { margin: 0; padding: 0 20px 16px 56px; }
.stays b { color: var(--ink); }
.stays.facts li::before { top: 20px; left: 22px; width: 12px; height: 12px; background: var(--accent); box-shadow: none; }
.stays.facts li::after { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.flows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 84px; }
.flow summary {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px 52px 14px 20px; border-radius: var(--radius);
}
@media (max-width: 639px) { .flow details:not([open]) > summary .when { display: none; } }
.flow summary::-webkit-details-marker { display: none; }
.flow summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--muted); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .25s var(--ease-out);
}
.flow details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.flow summary:hover h4 { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .18em; }
.flow summary .when { order: 2; }
.flow h4 { order: 1; margin: 0; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.25; }
.flow dl { margin: 0; padding: 4px 22px 22px; font-size: .97rem; }
.flow dt { margin-top: 10px; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.flow dt:first-child { margin-top: 0; }
.flow dd { margin: 2px 0 0; color: var(--ink-2); }
.flow dd b { color: var(--ink); }
@media (min-width: 640px) {
  .flow summary { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 16px 56px 16px 22px; }
  .flow summary .when { order: 0; flex: none; min-width: 0; }
  .flow h4 { order: 1; flex: 1 1 14rem; }
  .flow dl { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 8px 14px; padding: 4px 28px 24px; }
  .flow dt { margin-top: 0; padding-top: .25em; }
  .flow dd { margin: 0; }
}
.flows-ctl { margin: 0 0 22px; }
.flows-ctl[hidden] { display: none; }
.flows-ctl .btn { min-height: 40px; padding: 6px 16px; font-size: .95rem; }

/* Summary table: what leaves, to whom, when, can you switch it off. Stacked rows on phones. */
.glance-cap { margin: 0 0 14px; font-size: .95rem; }
.glance { width: 100%; border-collapse: collapse; margin: 0 0 clamp(36px, 5vw, 56px); font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 10px 14px; color: var(--ink-2); }
.glance thead th { font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.glance tbody tr + tr > * { border-top: 1px solid var(--line); }
.glance tbody th { font-weight: 700; color: var(--ink); }
.glance tbody th a { color: var(--ink); text-decoration-color: var(--line); }
.glance tbody th a:hover { color: var(--accent); }
@media (max-width: 859px) {
  .glance, .glance tbody { display: block; }
  .glance { border-radius: var(--radius); }
  .glance thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .glance tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 10px 16px; }
  .glance tbody th { flex: 1 1 auto; }
  .glance td[data-label="When"], .glance td[data-label="Wann"] { flex: none; order: 1; }
  .glance td[data-label="When"]::before, .glance td[data-label="Wann"]::before { display: none; }
  .glance td:not([data-label="When"]):not([data-label="Wann"]) { flex: 1 1 100%; order: 2; }
  .glance tbody tr + tr { border-top: 1px solid var(--line); }
  .glance tbody tr + tr > * { border-top: 0; }
  .glance th, .glance td { display: block; padding: 0; font-size: .875rem; line-height: 1.35; }
  .glance tbody th { font-size: 1rem; }
  .glance td::before { content: attr(data-label) ": "; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .glance td .when { font-size: .66rem; padding: 1px 8px; }
}
@media (min-width: 860px) {
  .glance th, .glance td { padding: 11px 16px; }
  .glance tbody th { width: 24%; }
}
@media print {
  .flows-ctl { display: none; }
  .flow details::details-content { content-visibility: visible; display: block; }
  .flow summary::after { display: none; }
  .flow { break-inside: avoid; }
}
.when { align-self: flex-start; display: inline-block; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 750; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
.when-auto { background: var(--accent-soft); color: var(--accent-ink); }
.when-opt { background: #DCEFE3; color: #1E5A35; }
.when-tap { background: #E2E8F5; color: #2A4878; }
@media (prefers-color-scheme: dark) {
  .when-opt { background: #15301F; color: #93D9AC; }
  .when-tap { background: #19233C; color: #AFC5F2; }
}
.note-box { margin: 20px 0 0; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-2); font-size: .95rem; max-width: 52rem; }
.note-box b { color: var(--ink); }
.policy-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Motion ----------
   assets/motion.js adds html.motion only when the visitor has not asked for reduced
   motion and JavaScript runs. Everything below is inside the no-preference query as
   well, so switching "reduce motion" on mid-visit stops it at once. Only opacity,
   transform and clip-path change: no layout shift. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Scroll reveal (data-reveal / data-stagger) */
  .motion [data-reveal] {
    opacity: 0; transform: translate3d(0, 32px, 0);
    transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .motion [data-reveal].in { opacity: 1; transform: none; }

  /* Hero entrance: the intro lines rise in one after another */
  .motion .hero-intro > * { animation: k-rise 1.1s var(--ease-out) both; }
  .motion .hero-intro > :nth-child(2) { animation-delay: .08s; }
  .motion .hero-intro > :nth-child(3) { animation-delay: .2s; }
  .motion .hero-intro > :nth-child(4) { animation-delay: .32s; }
  .motion .hero-intro > :nth-child(5) { animation-delay: .42s; }

  /* Hero ridge (data-draw): once in view, the ridge line draws itself and then the
     alpenglow lights the peak */
  .motion .ridge[data-draw]:not(.in) .back, .motion .ridge[data-draw]:not(.in) .front, .motion .ridge[data-draw]:not(.in) .glow { opacity: 0; }
  .motion .ridge[data-draw]:not(.in) .edge, .motion .ridge[data-draw]:not(.in) .back-edge { clip-path: inset(0 100% 0 0); }
  .motion .ridge.in .back, .motion .ridge.in .front { animation: k-fade 1.4s ease .1s both; }
  .motion .ridge.in .back-edge { animation: k-draw 2.2s cubic-bezier(.65, 0, .35, 1) .15s both; }
  .motion .ridge.in .edge { animation: k-draw 1.9s cubic-bezier(.65, 0, .35, 1) .3s both; }
  .motion .ridge.in .glow { animation: k-glow 1.2s var(--ease-out) 1.55s both; }

  /* Scroll parallax (--hero-p from motion.js: 0 at the top, 1 when the hero has left) */
  .motion [data-hero] .hero-copy {
    transform: translate3d(0, calc(var(--hero-p, 0) * -56px), 0);
    opacity: calc(1 - var(--hero-p, 0) * .8);
  }
  .motion [data-hero] .ridge .back, .motion [data-hero] .ridge .back-edge { transform: translate3d(0, calc(var(--hero-p, 0) * 56px), 0); }
  .motion [data-hero] .ridge .front, .motion [data-hero] .ridge .edge, .motion [data-hero] .ridge .glow { transform: translate3d(0, calc(var(--hero-p, 0) * 18px), 0); }

  /* App tile: the phone rises a little later than the card */
  .motion .app-tile[data-reveal] .app-media img { transform: translate3d(0, 48px, 0); opacity: 0; transition: transform 1.4s var(--ease-out) .15s, opacity 1s var(--ease-out) .15s; }
  .motion .app-tile[data-reveal].in .app-media img { transform: none; opacity: 1; }
}
@keyframes k-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes k-fade { from { opacity: 0; } }
@keyframes k-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes k-glow { from { opacity: 0; } }
@media print { .motion [data-reveal], .motion [data-reveal] * { opacity: 1 !important; transform: none !important; } .bar { position: static; } }

/* Privacy page: the four promises as compact rows on phones */
@media (max-width: 639px) {
  .promise-compact { gap: 10px; }
  .promise-compact li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 14px; padding: 16px 16px; }
  .promise-compact svg { grid-row: 1 / span 2; margin-top: 2px; }
  .promise-compact h3 { margin: 0; }
  .promise-compact p { font-size: .95rem; line-height: 1.5; }
}
@media (max-width: 639px) {
  .privacy .section { padding: 36px 0; }
  .privacy .hero { padding-top: 28px; }
  .privacy .ridge { margin-top: 28px; height: 110px; }
  .privacy .lead { margin-top: 18px; }
  .privacy .jumps { margin-top: 22px; }
  .privacy .app-head { margin-bottom: 22px; }
  .privacy .glance tr { padding: 9px 16px; }
  .privacy .flow summary { padding-top: 12px; padding-bottom: 12px; }
  .privacy .stays summary { padding-top: 12px; padding-bottom: 12px; }
  .privacy .stays li::before { top: 13px; } .privacy .stays li::after { top: 18px; }
  .privacy .stays.facts li::before { top: 18px; }
}

/* ---------- Home hero: the two apps on the first screen ---------- */
.hero-grid { display: block; }
.hero-visual { display: none; }
.hero-actions { gap: 10px; }
.btn-app { gap: 9px; padding-left: 12px; }
.btn-app img { width: 28px; height: 28px; border-radius: 6.5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); flex: none; }
@media (max-width: 899px) {
  .hero-home { padding-top: 28px; }
  .hero-home .display { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero-home .lead { margin-top: 16px; font-size: 1.05rem; }
  .hero-home .hero-fine { margin-top: 12px; font-size: .95rem; }
  .hero-home .ridge { margin-top: 26px; height: 100px; }
  .hero-home .hero-actions { margin-top: 20px; }
  .hero-home .hero-actions .btn-app { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 12px 14px 12px 10px; }
  .hero-home .hero-actions .btn-app .arrow { display: none; }
  .hero-home .hero-actions .btn-ghost { flex: 1 1 100%; justify-content: center; }
  #apps.section { padding-top: 40px; }
}
@media (min-width: 900px) {
  .hero-home { padding-top: clamp(32px, 4.5vw, 64px); }
  .hero-home .display { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
  .hero-home .lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); margin-top: 22px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
  .hero-visual { display: flex; justify-content: center; align-items: flex-start; gap: 20px; position: relative; padding: 8px 0 0; }
  .hero-visual::before {
    content: ""; position: absolute; inset: 6% 2% 0; z-index: 0; border-radius: 40px;
    background: radial-gradient(60% 50% at 30% 20%, var(--accent-soft), transparent 70%);
  }
  .hero-phone { position: relative; z-index: 1; display: block; flex: 0 1 220px; min-width: 0; border-radius: 28px; transition: transform .5s var(--ease-out); }
  .hero-phone img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .28), 0 30px 60px -20px rgba(0, 0, 0, .5); }
  .hero-phone-katun { margin-top: 64px; }
  .hero-phone:hover { transform: translateY(-6px); }
  .hero-home .ridge { margin-top: 36px; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) { .hero-phone { transition: none; } .hero-phone:hover { transform: none; } }
@media (min-width: 1100px) { .hero-phone { flex-basis: 250px; } }

/* ---------- About: alternating text and picture rows from 900 px ---------- */
.about-rows { display: grid; gap: clamp(44px, 7vw, 88px); }
.about-row { display: grid; gap: 28px; align-items: center; }
.about-fig { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.about-fig img { display: block; width: 100%; height: auto; }
.about-fig-valley img, .about-fig-katun img { aspect-ratio: 4 / 3; object-fit: cover; }
.about-fig-fp { background: radial-gradient(520px 300px at 85% 0%, rgba(0, 196, 140, .22), transparent 70%), #0A1628; display: flex; justify-content: center; padding: 32px 0 0; height: 420px; }
.about-fig-fp img { width: min(220px, 62%); height: auto; align-self: flex-start; border-radius: 26px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .28), 0 26px 50px -18px rgba(0, 0, 0, .5); }
.about-rows .prose { max-width: 40rem; font-size: 1.125rem; }
.about-rows .prose p { line-height: 1.65; }
@media (min-width: 900px) {
  .about-row { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); }
  .about-row-rev .about-fig { order: -1; }
  .about-rows .prose { font-size: 1.25rem; max-width: none; }
  .about-row-solo { grid-template-columns: minmax(0, 1fr); }
  .about-row-solo .prose { max-width: 46rem; }
  .about-fig-fp { height: 460px; padding-top: 36px; }
}
