/* McSync — eigenes Stylesheet, Farben aus dem App-Symbol gemessen.
   Bewusst kein CDN, keine Web-Fonts, kein Framework: Eine App, die ohne Netz
   arbeitet und nichts sammelt, kann ihre Website nicht bei Dritten laden. */

:root {
  /* Die Hauptfarbe — aus den gelieferten Aufnahmen gemessen, nicht gewählt.
     Jedes Video und das Board-Foto zeigen ein Fenster auf einem schmalen Feld
     in genau diesem Ton. Die Tafel, in der eine Aufnahme sitzt, trägt ihn
     deshalb ebenfalls: Feld und Tafel gehen ineinander über, die Kante der
     Aufnahme verschwindet. Flächen mit einer Aufnahme bleiben einfarbig —
     ein Verlauf träfe den Ton nur an einer Stelle. */
  --grund: #0a0084;

  /* Aus dem Logo gemessen: elektrisches Blau, tiefes Indigo, die zwei Ordner,
     die zwei Pfeile. --tief ist nur noch Referenz; es war bis zur Einführung
     von --grund die Farbe der dunklen Flächen. */
  --elektro: #0028f5;
  --tief: #000472;
  --tiefer: #180260;
  --blau: #0a6ffd;
  --cyan: #20aafc;
  --cyan-hell: #7fd4ff;
  --violett: #6a0ae8;
  --magenta: #f856fb;

  --paper: #ffffff;
  --paper-2: #f4f6ff;
  --text: #10133a;
  --muted: #565d84;
  --muted-2: #8a90b4;
  --line: #e0e4f5;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--magenta) 100%);
  --grad-folder: linear-gradient(135deg, var(--blau) 0%, var(--violett) 100%);
  --ok: #12a150;
  --warn: #c2740a;
  --bad: #d92d2d;
  --radius: 16px;
  --radius-lg: 26px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(16, 19, 58, .05), 0 16px 40px rgba(16, 19, 58, .09);
  --glow: 0 14px 40px rgba(248, 86, 251, .28), 0 6px 18px rgba(32, 170, 252, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17.5px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { letter-spacing: -.025em; line-height: 1.1; margin: 0; font-weight: 750; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -.012em; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--violett); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
strong { font-weight: 680; }
code {
  font: 500 .87em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: .1em .4em; border-radius: 6px; word-break: break-word;
}

/* ---------- Kopfzeile ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px; padding-block: 9px;
}
.brand {
  display: flex; align-items: center; gap: 11px; font-weight: 750;
  letter-spacing: -.03em; font-size: 1.18rem; color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 40, 245, .3); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550;
  padding: 7px 12px; border-radius: 10px;
}
.site-nav a:hover { color: var(--text); background: var(--paper-2); }
.site-nav a[aria-current="page"] { color: var(--violett); background: var(--paper-2); }
.lang-link {
  border: 1px solid var(--line); border-radius: 10px; margin-left: 6px;
  font-variant-caps: all-small-caps; letter-spacing: .07em;
}

/* ---------- Bausteine ---------- */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .eyebrow { background: none; color: var(--cyan-hell); -webkit-text-fill-color: currentColor; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 60ch; }
.hero .lead { color: rgba(255, 255, 255, .8); }

.pills { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 26px 0 0; list-style: none; }
.pills li {
  font-size: .87rem; font-weight: 560; color: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07);
  padding: 6px 13px; border-radius: 999px;
}

.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1.02rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn-quiet { border-color: var(--line); color: var(--text); background: var(--paper); }
.btn-quiet:hover { color: var(--text); background: var(--paper-2); }
.btn-soon {
  background: rgba(255, 255, 255, .09); color: #fff; border-color: rgba(255, 255, 255, .22);
  cursor: default; flex-direction: column; align-items: flex-start; gap: 1px;
}
.btn-soon .sub { font-size: .75rem; font-weight: 500; opacity: .7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 74px 0 84px;
  background:
    radial-gradient(1200px 620px at 8% -12%, var(--elektro) 0%, transparent 58%),
    radial-gradient(900px 560px at 96% 4%, rgba(106, 10, 232, .85) 0%, transparent 60%),
    radial-gradient(700px 500px at 70% 108%, rgba(248, 86, 251, .38) 0%, transparent 62%),
    linear-gradient(165deg, var(--grund) 0%, var(--tiefer) 100%);
}
.hero h1 { color: #fff; margin: 16px 0 20px; }
.hero .grad {
  background: linear-gradient(100deg, var(--cyan-hell), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

/* ---------- Das Sinnbild: zwei Ordner, zwei Pfeile, laufend ---------- */
.motif { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.motif .arc { fill: none; stroke-width: 13; stroke-linecap: round; }
.motif .arc-cyan { stroke: var(--cyan); }
.motif .arc-mag { stroke: var(--magenta); }
.motif .flow {
  fill: none; stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: 26 300; stroke-dashoffset: 0;
  animation: flow 3.4s linear infinite;
}
.motif .flow-cyan { stroke: #eaf9ff; }
.motif .flow-mag { stroke: #ffe9ff; animation-delay: 1.7s; }
@keyframes flow { to { stroke-dashoffset: -326; } }
.motif .folder { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); }
.motif .pack { animation: pack 3.4s ease-in-out infinite; }
.motif .pack-2 { animation-delay: 1.7s; }
@keyframes pack {
  0%, 74% { opacity: 0; transform: scale(.6); }
  8%, 60% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.6); }
}
.motif .glow { animation: glow 3.4s ease-in-out infinite; transform-origin: center; }
.motif .glow-2 { animation-delay: 1.7s; }
@keyframes glow { 0%, 100% { opacity: .22; } 50% { opacity: .6; } }

/* ---------- Der Platz für Aufnahmen: Foto wie Video ----------
   Jede Aufnahme zeigt ein Fenster auf einem schmalen Feld in var(--grund).
   Die Tafel trägt denselben Ton, damit die Kante der Aufnahme nicht sichtbar
   wird — dort, wo der runde Zuschnitt die Aufnahme wegnimmt, kommt genau
   dieselbe Farbe zum Vorschein. Sitzt die Tafel in einem hellen Abschnitt, ist
   sie als dunkle Bühne gewollt sichtbar; unsichtbar bleibt die Naht.

   Weicht das Feld einer einzelnen Aufnahme minimal ab, nennt die Seite den Ton
   über --feld direkt an der Tafel. */
.shot {
  margin: 0; background: var(--feld, var(--grund));
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 60, .2), 0 26px 60px rgba(0, 0, 60, .3);
}
.shot > img, .shot > video {
  display: block; width: 100%; height: auto;
  background: var(--feld, var(--grund));   /* vor dem Laden und hinter Balken */
}
/* Die Videos laufen stumm in der Schleife, sobald sie auf dem Schirm sind —
   das erledigt assets/js/media.js. Ohne Javascript bleibt das Posterbild
   stehen und die Bedienelemente funktionieren; deshalb sind sie immer da.
   WCAG 2.2.2 verlangt sie ohnehin, sobald etwas länger als fünf Sekunden
   von allein läuft. */
.shot > video { cursor: pointer; }
/* Auf den dunklen Flächen ist die Tafel derselbe Ton wie der Grund. Dann
   trägt nur noch ein Schimmer die Tiefe, kein Schlagschatten. */
section.deep .shot, .hero .shot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 70px rgba(0, 0, 0, .34);
}

/* ---------- Abschnitte ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
section.deep {
  /* Einfarbig, nicht als Verlauf: Hier sitzt das Protokollbild, und sein
     eigenes Feld ist einfarbig var(--grund). */
  background: var(--grund); color: #fff;
}
section.deep h2, section.deep h3 { color: #fff; }
section.deep .lead, section.deep p { color: rgba(255, 255, 255, .78); }
section.deep .ticks li::before { border-color: var(--cyan-hell); }
.section-head { max-width: 64ch; margin-bottom: 44px; }
.section-head h2 { margin: 12px 0 16px; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,19,58,.05), 0 26px 54px rgba(16,19,58,.14); }
.card h3 { margin-bottom: 9px; }
.card p:last-child { margin-bottom: 0; }
section.deep .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; }

/* Symbol im farbigen Feld */
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 16px; box-shadow: 0 8px 20px rgba(106, 10, 232, .22);
}
.ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.folder { background: var(--grad-folder); }
.card:hover .ico { animation: nudge .5s ease; }
@keyframes nudge { 50% { transform: translateY(-4px) rotate(-4deg); } }

.split { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } }
.split.flip > :first-child { order: 2; }
@media (max-width: 939px) { .split.flip > :first-child { order: 0; } }

/* ---------- Listen ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0 0 13px 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 5px; top: .45em; width: 12px; height: 6.5px;
  border-left: 2.6px solid var(--cyan); border-bottom: 2.6px solid var(--cyan);
  transform: rotate(-45deg); border-radius: 1px;
}
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -3px;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 750; font-size: 1rem;
  box-shadow: 0 8px 18px rgba(106, 10, 232, .25);
}
.steps h3 { margin-bottom: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 560;
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 15px;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); }
.chip.ok::before { background: var(--ok); }
.chip.warn::before { background: var(--warn); }
.chip.bad::before { background: var(--bad); }

/* ---------- Preise ---------- */
.price-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price { padding: 32px; }
.price.full { border: 0; background: var(--grad-folder); color: #fff; box-shadow: var(--glow); }
.price.full h3, .price.full .tag { color: #fff; }
.price.full .ticks li::before { border-color: #fff; }
.price.full .note { color: rgba(255, 255, 255, .78); }
.price .tag { font-size: 1.12rem; font-weight: 700; color: var(--violett); margin: 8px 0 18px; }
.note { font-size: .93rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 3px 22px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; font-weight: 640; padding: 17px 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 3px;
  border-right: 2.2px solid var(--violett); border-bottom: 2.2px solid var(--violett);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > :not(summary) { margin-bottom: 17px; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.42rem; margin: 42px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted-2); font-size: .92rem; margin-top: 46px; }
.callout {
  border-left: 4px solid transparent;
  border-image: var(--grad) 1;
  background: var(--paper-2); padding: 20px 22px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.page-head { padding: 66px 0 28px; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }

/* ---------- Fußzeile ---------- */
.site-foot {
  background: linear-gradient(170deg, var(--grund), var(--tiefer));
  color: rgba(255, 255, 255, .68); padding: 62px 0 34px;
}
.site-foot .cols { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .site-foot .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot h4 { color: #fff; font-size: .95rem; margin: 0 0 13px; letter-spacing: -.01em; }
.site-foot a { color: rgba(255, 255, 255, .74); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot .made { max-width: 44ch; font-size: .96rem; }
.site-foot .base {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 22px;
  font-size: .88rem; color: rgba(255, 255, 255, .5);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
}

/* ---------- Fehlerseite ---------- */
.mid { min-height: 76vh; display: grid; place-items: center; text-align: center; }

/* ---------- Sprunglink und Fokus ---------- */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 16px; font-weight: 620; text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }
:where(a, summary, button, details):focus-visible {
  outline: 2.5px solid var(--magenta); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Einblenden beim Scrollen, ohne JavaScript ----------
   Scroll-getriebene Animation; wo der Browser sie nicht kennt, steht alles
   einfach sichtbar da. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      /* Fertig, sobald das Element vollständig eingetreten ist. */
      animation-range: entry 0% entry 70%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(26px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* ---------- Ruhe, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Dunkles Erscheinungsbild ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0c22; --paper-2: #11142f; --text: #eceefb;
    --muted: #a6abd0; --muted-2: #7c82a8; --line: #22264a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .34), 0 16px 40px rgba(0, 0, 0, .4);
  }
  .site-head { background: rgba(10, 12, 34, .84); }
  .brand { color: var(--text); }
  .btn-quiet { background: transparent; }
  a { color: var(--cyan); }
  a:hover { color: var(--magenta); }
  .faq summary::after { border-color: var(--cyan); }
  .price .tag { color: var(--cyan); }
  .shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 26px 60px rgba(0, 0, 0, .5); }
}
