/* Chordora — Produktseite.
   Handgeschrieben statt Framework: Die Seite muss statisch auf S3 laufen, ohne
   Build-Schritt und ohne fremdes CDN. Zwei Dateien laden, mehr nicht. */

:root {
  --accent: #4C1DB5;
  --accent-soft: #7C4DFF;
  --grad-a: #C084FC;
  --grad-b: #38BDF8;
  --ink: #241C3E;
  --ink-soft: #5B5580;
  --line: #E6E1F5;
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(76, 29, 181, .10);
  --wrap: 1120px;
  /* Höhe des Logos im Kopfbereich. Der Kopf richtet sich danach, statt eine
     eigene feste Höhe zu haben — sonst müssten beide Zahlen im Gleichschritt
     geändert werden, und eine davon würde vergessen. */
  --logo: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI",
               system-ui, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #E9DEFC 0%, #DCEAFD 40%, #FFFFFF 100%) no-repeat;
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

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

header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: calc(var(--logo) + 22px);
  padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { height: var(--logo); width: auto; }
.brand span {
  font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em;
  color: var(--accent); line-height: 1;
}
nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
nav.main a:hover { color: var(--accent); background: rgba(124, 77, 255, .09); }
nav.main a.active { color: var(--accent); background: rgba(124, 77, 255, .12); }
.lang {
  margin-left: 6px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.lang:hover { background: rgba(124, 77, 255, .09); }

/* ---------- Held ---------- */

.hero { padding: 58px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px); line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -.03em; font-weight: 800;
}
.grad {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--accent); background: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; }
.note { font-size: 14px; color: var(--ink-soft); }

.shot { width: 100%; height: auto; display: block; border-radius: 26px; }
/* Begrenzt, aus zwei Gründen: Ein Telefon-Bildschirmfoto über eine halbe
   Bildschirmbreite gezogen wirkt plump — und die Datei müsste für ein
   Retina-Display doppelt so breit sein wie die Darstellung, was die Seite
   unnötig schwer machte. 330 pt Darstellung, 660 px Bild. */
.shot-frame {
  border-radius: 30px; padding: 0; overflow: hidden;
  max-width: 330px; margin: 0 auto;
  box-shadow: 0 30px 60px rgba(76, 29, 181, .18);
  border: 1px solid rgba(255,255,255,.7);
}

/* ---------- Abschnitte ---------- */

section { padding: 54px 0; }
h2 { font-size: clamp(27px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 20px; margin: 30px 0 8px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--accent); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; margin-bottom: 26px; }
.feature.flip .txt { order: 2; }
.feature h2 { margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 17px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .09em; font-size: 12.5px; font-weight: 700;
  color: var(--accent-soft); margin: 0 0 8px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 8px 22px rgba(76, 29, 181, .06);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Inhaltsseiten ---------- */

.page { padding: 48px 0 70px; }
.page h1 { font-size: clamp(32px, 4.6vw, 44px); letter-spacing: -.02em; margin: 0 0 10px; font-weight: 800; }
.page .updated { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 30px; }
.page h2 { font-size: 26px; margin: 40px 0 10px; }
.page h3 { font-size: 18.5px; }
.page ul, .page ol { color: var(--ink-soft); padding-left: 22px; }
.page li { margin-bottom: 7px; }
.page p { color: var(--ink-soft); }
.page strong { color: var(--ink); }

.toc {
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 34px;
}
.toc h2 { font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.toc ol { margin: 0; columns: 2; column-gap: 30px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

code, .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px;
}
code { background: rgba(124, 77, 255, .10); padding: 2px 6px; border-radius: 6px; color: var(--accent); }
pre {
  background: #241C3E; color: #EDE7FF; padding: 18px 20px; border-radius: 14px;
  overflow-x: auto; font-size: 14.5px; line-height: 1.6;
}
pre code { background: none; color: inherit; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; }
td { color: var(--ink-soft); }

.callout {
  background: rgba(255,255,255,.8); border: 1px solid var(--line); border-left: 4px solid var(--accent-soft);
  border-radius: 12px; padding: 15px 18px; margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

figure { margin: 26px 0; }
figure img { width: 100%; max-width: 330px; height: auto; border-radius: 22px; box-shadow: var(--shadow); }
figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Fuß ---------- */

footer.site {
  border-top: 1px solid var(--line); background: rgba(255,255,255,.7);
  padding: 34px 0; margin-top: 40px; font-size: 15px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site .made { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .txt { order: 0; }
  .toc ol { columns: 1; }
  header.site .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  nav.main { margin-left: 0; width: 100%; }
  /* Auf dem Telefon nimmt der Kopf sonst ein Drittel des Bildschirms ein. */
  :root { --logo: 56px; }
  .hero { padding-top: 40px; }
}
