/* ronvo. — gemeinsame Grundlage aller Seiten
   Welt der App: Papier, Sand, Tinte, ein Lime-Textmarker.
   Schriften selbst gehostet (kein Request an Dritte). */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F5EF;
  --card: #FBFAF6;
  --sand: #ECE7DB;
  --sand-deep: #E2DCCD;
  --ink: #1C1B16;
  --ink2: #57534A;
  --ink3: #6E6A5F;
  --night: #14130F;
  --paper-on-ink: #F1EEE4;
  --muted-on-ink: #B5AF9F;
  --hair: rgba(28, 27, 22, 0.13);
  --hair-on-ink: rgba(241, 238, 228, 0.15);
  --lime: #D9F23F;
  --lime-ink: #3A4409;
  --warn: #B25A2B;
  --good: #1B5E3F;
  --lead: #8B5CF6;
  --prospect: #3B82F6;
  --customer: #10B981;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rand: clamp(16px, 5vw, 48px);
  --max: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 3px; border-radius: 6px; }
.on-ink :focus-visible { outline-color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a.sr-only:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip-path: none; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper-on-ink); font-weight: 600; text-decoration: none; }

.inner { max-width: var(--max); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }

/* ---------- Typografie ---------- */
.display, h1, h2 {
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 em, h2 em, .display em { font-style: italic; font-weight: 380; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: -0.005em; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink3);
}
.eyebrow time, .eyebrow .num { color: var(--lime-ink); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.eyebrow .neu {
  background: var(--lime); color: var(--lime-ink);
  padding: 3px 8px 2px; border-radius: 999px; letter-spacing: 0.1em;
}
.on-ink .eyebrow { color: var(--muted-on-ink); }
.on-ink .eyebrow time, .on-ink .eyebrow .num { color: var(--lime); }

/* Der Textmarker — das Markenzeichen der App */
.mark {
  background-image: linear-gradient(transparent 10%, var(--lime) 10%, var(--lime) 90%, transparent 90%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.12em; margin: 0 -0.06em;
  border-radius: 0.12em 0.3em 0.14em 0.26em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  color: inherit;
}
.mark.zieht { background-size: 0% 100%; transition: background-size 0.9s var(--ease-out); }
.mark.zieht.an { background-size: 100% 100%; }
.on-ink .mark { color: var(--ink); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper-on-ink);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.knopf:hover { background: #2C2A22; }
.knopf:active { transform: scale(0.97); }
.knopf svg { width: 17px; height: 17px; flex: 0 0 auto; }
.knopf.hell { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.knopf.hell:hover { background: rgba(28, 27, 22, 0.05); }
.knopf.lime { background: var(--lime); color: var(--lime-ink); }
.knopf.lime:hover { background: #E3F76A; }
.on-ink .knopf { background: var(--paper-on-ink); color: var(--ink); }
.on-ink .knopf:hover { background: #fff; }
.on-ink .knopf.lime { background: var(--lime); color: var(--lime-ink); }
.on-ink .knopf.hell { background: transparent; color: var(--paper-on-ink); box-shadow: inset 0 0 0 1.5px var(--paper-on-ink); }
.knopf.klein { min-height: 40px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Kopfleiste ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background-color 400ms ease, color 400ms ease;
}
.masthead.scrolled { border-bottom-color: var(--hair); }
.masthead .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 64px;
}
.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px;
  text-decoration: none; color: inherit; letter-spacing: -0.01em; line-height: 1;
}
.wordmark b { color: var(--lime); font-style: normal; }
.masthead nav { display: flex; align-items: center; gap: 26px; }
.masthead nav a:not(.knopf) {
  font-size: 15px; text-decoration: none; color: var(--ink2);
  transition: color 160ms ease;
}
.masthead nav a:not(.knopf):hover, .masthead nav a[aria-current="page"] { color: var(--ink); }
.masthead nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.masthead .knopf { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
@media (max-width: 960px) { .masthead nav a:not(.knopf) { display: none; } }

/* Abend: über dunklen Abschnitten wird auch die Kopfleiste dunkel */
.masthead.abend {
  background: rgba(20, 19, 15, 0.8);
  color: var(--paper-on-ink);
  border-bottom-color: var(--hair-on-ink);
}
.masthead.abend nav a:not(.knopf) { color: var(--muted-on-ink); }
.masthead.abend nav a:not(.knopf):hover { color: var(--paper-on-ink); }
.masthead.abend .knopf { background: var(--paper-on-ink); color: var(--ink); }
.masthead.abend :focus-visible { outline-color: var(--lime); }

/* ---------- Fußzeile ---------- */
.footer { background: var(--night); color: var(--muted-on-ink); padding: clamp(48px, 7vw, 80px) 0 40px; }
.footer .spalten {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
@media (max-width: 760px) { .footer .spalten { grid-template-columns: 1fr 1fr; } .footer .marke { grid-column: 1 / -1; } }
.footer .wordmark { font-size: 30px; color: var(--paper-on-ink); }
.footer .marke p { margin-top: 14px; font-size: 14.5px; max-width: 26em; }
.footer h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-on-ink); margin-bottom: 14px;
}
.footer ul { list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.footer a { color: var(--muted-on-ink); text-decoration: none; transition: color 160ms ease; }
.footer a:hover { color: var(--paper-on-ink); }
.footer :focus-visible { outline-color: var(--lime); }
.rs-marke {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.footer .rs-marke { color: var(--muted-on-ink); }
.rs-marke img { height: 24px; width: auto; opacity: 0.88; transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.rs-marke:hover img { opacity: 1; }
.rs-marke:active img { transform: scale(0.97); }
.footer .copy {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair-on-ink);
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Auftritt beim Scrollen ---------- */
.js [data-auftritt] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-auftritt].da { opacity: 1; transform: none; filter: none; }

/* ---------- Telefonrahmen (nur Website — im Store sind Rahmen verboten) ---------- */
.telefon {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 886 / 1920;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2E2C26, #0E0D0A 55%, #24221D);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09),
    inset 0 0 0 3px #0B0A08,
    0 50px 80px -40px rgba(28, 27, 22, 0.55),
    0 18px 30px -18px rgba(28, 27, 22, 0.35);
}
.telefon .schirm {
  position: relative; width: 100%; height: 100%;
  border-radius: 38px; overflow: hidden; background: var(--paper);
  isolation: isolate;
}
.telefon video, .telefon .schirm > img { width: 100%; height: 100%; object-fit: cover; }
.telefon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10), transparent 30%);
}

/* ---------- Film-Fenster ---------- */
.film-dialog {
  border: 0; padding: 0; background: transparent; color: var(--paper-on-ink);
  width: min(1100px, calc(100vw - 2 * var(--rand))); max-width: none; max-height: none;
  margin: auto; overflow: visible;
}
.film-dialog::backdrop { background: rgba(14, 13, 10, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.film-dialog[open] { animation: film-auf 420ms var(--ease-out); }
.film-dialog[open]::backdrop { animation: film-schleier 420ms ease; }
@keyframes film-auf { from { opacity: 0; transform: scale(0.96) translateY(12px); } }
@keyframes film-schleier { from { opacity: 0; } }
.film-dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8); }
.film-dialog .zu {
  position: absolute; top: -52px; right: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--paper-on-ink); padding: 8px 4px;
}
.film-dialog .zu svg { width: 18px; height: 18px; }

/* ---------- Unterseiten ---------- */
.seitenkopf { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.seitenkopf h1 { font-size: clamp(44px, 7vw, 88px); margin: 18px 0 20px; }
.seitenkopf .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink2); max-width: 36em; }
.prosa { max-width: 44em; }
.prosa p, .prosa li { color: var(--ink2); }
.prosa p + p { margin-top: 12px; }
.prosa a, a.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.on-ink a.link { color: var(--paper-on-ink); }
.prosa a:hover, a.link:hover { text-decoration-color: var(--lime-ink); }
.on-ink a.link:hover { text-decoration-color: var(--paper-on-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-auftritt] { opacity: 1; transform: none; filter: none; }
}
