/* ------------------------------------------------------------------
   BendUp-Website. Farben, Schriften und Formen kommen aus dem
   Design-System der App (BendUp-App/src/renderer/src/styles.css,
   Vault: Features/Design-System.md): ember, wood, sand.
   Gitarre · Holz · Rock - warm, erdig, kein kuehles Tech-Blau.

   Jede Farbe steht genau einmal, als Token. Der dunkle Satz wird
   zweimal gesetzt: per Systemeinstellung und per Schalter
   (data-theme), ohne dass sich die Werte unterscheiden duerfen.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Bitter';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/bitter-latin.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: 'Bitter';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/bitter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pacifico-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #faf7f2;
  --bg-panel: #fffdfa;
  --bg-panel-2: #f7f5f2;
  --bg-inset: #f2efe9;
  --line: #dcd6cd;
  --line-soft: #ece9e4;
  --text: #221e19;
  --text-dim: #564d41;
  --text-faint: #6f6556;
  --accent: #c76a12;
  --accent-text: #a4560f;
  --accent-line: #e7ab6a;
  --accent-soft: rgba(199, 106, 18, 0.1);
  --accent-fill: #a4560f;
  --accent-fill-hover: #80430d;
  --on-accent: #fffdfa;
  --wood: #b27336;
  --schatten-farbe: rgba(94, 52, 17, 0.16);
  --glut: rgba(199, 106, 18, 0.14);

  --radius: 8px;
  --radius-lg: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --script: "Pacifico", "Brush Script MT", cursive;
  --breite: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15120e;
    --bg-panel: #221e19;
    --bg-panel-2: #2e2822;
    --bg-inset: #100d0a;
    --line: #3b342c;
    --line-soft: #2b251f;
    --text: #f2efe9;
    --text-dim: #c4bcae;
    --text-faint: #a89e8c;
    --accent: #df9544;
    --accent-text: #e7ab6a;
    --accent-line: #b27336;
    --accent-soft: rgba(231, 171, 106, 0.15);
    --accent-fill: #a4560f;
    --accent-fill-hover: #c76a12;
    --wood: #d19c69;
    --schatten-farbe: rgba(0, 0, 0, 0.5);
    --glut: rgba(223, 149, 68, 0.12);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15120e;
  --bg-panel: #221e19;
  --bg-panel-2: #2e2822;
  --bg-inset: #100d0a;
  --line: #3b342c;
  --line-soft: #2b251f;
  --text: #f2efe9;
  --text-dim: #c4bcae;
  --text-faint: #a89e8c;
  --accent: #df9544;
  --accent-text: #e7ab6a;
  --accent-line: #b27336;
  --accent-soft: rgba(231, 171, 106, 0.15);
  --accent-fill: #a4560f;
  --accent-fill-hover: #c76a12;
  --wood: #d19c69;
  --schatten-farbe: rgba(0, 0, 0, 0.5);
  --glut: rgba(223, 149, 68, 0.12);
}

/* Screenshots: hell oder dunkel, passend zum Farbmodus der Seite.
   !important, weil .fenster img sonst display:block erzwingt. */
.nur-dunkel { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nur-hell { display: none !important; }
  :root:not([data-theme="light"]) .nur-dunkel { display: block !important; }
}
:root[data-theme="dark"] .nur-hell { display: none !important; }
:root[data-theme="dark"] .nur-dunkel { display: block !important; }

/* Schalter: Sonne im dunklen Modus (zurueck ins Helle), sonst Mond. */
.icon-sonne { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sonne { display: block; }
  :root:not([data-theme="light"]) .icon-mond { display: none; }
}
:root[data-theme="dark"] .icon-sonne { display: block; }
:root[data-theme="dark"] .icon-mond { display: none; }

/* ------------------------------ Grund ------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }

img { max-width: 100%; height: auto; }

a { color: var(--accent-text); }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-inset);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.akzent { color: var(--accent-text); }

/* ------------------------------ Kopf ------------------------------ */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.kopf__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent-text);
}

.marke__schrift {
  font-family: var(--script);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-text);
  padding-bottom: 4px;
}
.marke__schrift--klein { font-size: 1.4rem; }

.kopf__nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.kopf__nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.kopf__nav a:hover { color: var(--text); background: var(--bg-panel-2); }

.theme-schalter {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-dim);
  cursor: pointer;
}
.theme-schalter:hover { color: var(--accent-text); border-color: var(--accent-line); }
.theme-schalter svg { width: 18px; height: 18px; }

/* ------------------------------ Knoepfe ------------------------------ */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.knopf:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.knopf svg { width: 20px; height: 20px; stroke-width: 2.2; }

.knopf--primaer {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
}
.knopf--primaer:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }

/* ------------------------------ Hero ------------------------------ */

.hero {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  gap: 56px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px -40% auto;
  height: 620px;
  background: radial-gradient(ellipse at 50% 40%, var(--glut), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.hero__text { max-width: 760px; margin: 0 auto; text-align: center; }

.hero__lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin: 24px auto 0;
  max-width: 620px;
}

.hero__aktionen {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__hinweis { margin-top: 16px; font-size: 0.9rem; color: var(--text-faint); }

/* Ein Screenshot als Fenster: dezenter Rahmen, Schatten, runde Ecken. */
.fenster {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: 0 1px 2px var(--schatten-farbe), 0 24px 60px -12px var(--schatten-farbe);
  overflow: hidden;
}
.fenster img { display: block; width: 100%; }
.fenster figcaption {
  font-size: 0.85rem;
  color: var(--text-faint);
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
}

.hero__bild { position: relative; }

[data-zoom] { cursor: zoom-in; }
[data-zoom]:hover { border-color: var(--accent-line); }

/* ------------------------------ Bausteine ------------------------------ */

.bausteine {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.baustein {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.baustein:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.baustein svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 14px;
}
.baustein h3 { margin-bottom: 6px; }
.baustein p { color: var(--text-dim); font-size: 0.95rem; }

/* ------------------------------ Features ------------------------------ */

.feature {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 88px 24px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.feature--gedreht .feature__text { order: 2; }

.feature__text h2 { margin-bottom: 18px; }
.feature__text > p { color: var(--text-dim); }

.liste {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.liste li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.liste strong { color: var(--text); font-weight: 600; }

/* ------------------------- Alles an einem Ort ------------------------- */

.ort {
  max-width: var(--breite);
  margin: 56px auto 0;
  padding: 72px 24px;
  position: relative;
}
.ort::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  background: var(--bg-panel);
  border-block: 1px solid var(--line-soft);
  z-index: -1;
}

.ort__kopf { max-width: 760px; margin: 0 auto; text-align: center; }
.ort__kopf h2 { margin-bottom: 18px; }
.ort__kopf p { color: var(--text-dim); font-size: 1.1rem; }
.ort__kopf strong, .ort__fuss strong { color: var(--text); }

.schritte {
  list-style: none;
  padding: 0;
  margin: 48px 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: schritt;
}
.schritt {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
}
.schritt__nr {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 14px;
}
.schritt h3 { margin-bottom: 6px; }
.schritt p { color: var(--text-dim); font-size: 0.95rem; }

.ort__bilder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ort__fuss {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-dim);
}

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-panel);
  color: var(--text);
  white-space: nowrap;
}

/* ------------------------------ Signalweg ------------------------------ */

.kette {
  max-width: calc(var(--breite) - 48px);
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}
.kette h3 { font-size: 0.78rem; font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }

.kette__glieder {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
}
.kette__glieder li {
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-inset);
  color: var(--text-dim);
  white-space: nowrap;
}
.kette__glieder li + li { margin-left: 28px; position: relative; }
.kette__glieder li + li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--accent-line);
}
.kette__glieder .kette__haupt {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text);
  font-weight: 600;
}

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 24px;
}
.kennzahl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-inset);
}
.kennzahl__wert { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--accent-text); line-height: 1.1; }
.kennzahl__name { font-size: 0.9rem; color: var(--text-faint); }

.kette__text { color: var(--text-dim); max-width: 820px; }
.kette__text strong { color: var(--text); }

/* ------------------------------ Formate ------------------------------ */

.formate {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.formate h2 { margin-bottom: 32px; }
.formate__raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}
.format {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
}
.format h3 { margin-bottom: 8px; }
.format p { font-size: 0.93rem; color: var(--text-dim); line-height: 1.9; }

/* ------------------------------ Download ------------------------------ */

.download {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 72px 24px 96px;
  text-align: center;
}
.download__icon { margin-bottom: 16px; filter: drop-shadow(0 12px 24px var(--schatten-farbe)); }
.download__lead { color: var(--text-dim); font-size: 1.15rem; margin: 14px auto 32px; }

.plattformen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.plattform {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  text-decoration: none;
  color: var(--text);
}
.plattform:first-child { border-color: var(--accent-line); background: var(--accent-soft); }
.plattform[aria-disabled="true"] { cursor: default; }
.plattform__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.plattform__detail { font-size: 0.88rem; color: var(--text-faint); }

.download__klein { margin-top: 14px; font-size: 0.88rem; color: var(--text-faint); }

.faq { margin-top: 56px; text-align: left; display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--text-dim); }

/* ------------------------------ Fuss ------------------------------ */

.fuss { border-top: 1px solid var(--line-soft); background: var(--bg-panel); }
.fuss__innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.fuss__dank { max-width: 620px; text-align: right; }

/* ------------------------------ Lupe ------------------------------ */

.lupe {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(96vw, 1800px);
  max-height: 94vh;
  overflow: visible;
}
.lupe::backdrop { background: rgba(21, 18, 14, 0.82); backdrop-filter: blur(4px); }
.lupe img { display: block; max-height: 94vh; width: auto; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.lupe__zu {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-panel);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ------------------------------ Schmal ------------------------------ */

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 64px 24px; }
  .feature--gedreht .feature__text { order: 0; }
  .bausteine, .formate__raster { grid-template-columns: repeat(2, 1fr); }
  .schritte, .ort__bilder { grid-template-columns: 1fr; }
  .kopf__nav { display: none; }
  .theme-schalter { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .kopf__innen, .hero, .bausteine, .feature, .formate, .download, .ort { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; gap: 36px; }
  .bausteine, .formate__raster, .plattformen, .kennzahlen { grid-template-columns: 1fr; }
  .kette { margin-left: 16px; margin-right: 16px; padding: 22px; }
  .kette__glieder { flex-direction: column; align-items: flex-start; gap: 18px; }
  .kette__glieder li + li { margin-left: 0; }
  .kette__glieder li + li::before { left: 22px; top: -14px; width: 2px; height: 10px; }
  .fuss__innen { flex-direction: column; }
  .fuss__dank { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
