/* Arcolune – Webseite arcolune.com
   Gestaltung wie die Schwester-App (hell/dunkel, schwarze Tinte, Linien, Kartenzeilen);
   Akzent aus dem App-Symbol: Nachtblau (hell) bzw. Gold (dunkel).
   Systemschrift, keine externen Quellen, keine Inline-Styles (CSP style-src 'self').
   build.py hängt einen Inhalts-Hash an den Dateinamen (lange Cache-Zeit). */

:root {
  color-scheme: light dark;
  --ink: #111;
  --paper: #fff;
  --line: #111;
  --muted: #6e6e73;
  --rule: #e5e5ea;
  --fill: #f5f5f7;
  --focus: #0a64d6;
  --accent: #1b2a6b;
  --rim: #2a2a2c;
  --offen-bg: #fff1a8;
  --offen-ink: #4a3b00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --paper: #000;
    --line: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #2c2c2e;
    --fill: #1c1c1e;
    --focus: #5fa8ff;
    --accent: #e8c27d;
    --rim: #3a3a3c;
    --offen-bg: #4a3d00;
    --offen-ink: #ffe58a;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, video, svg { max-width: 100%; }

/* Fokus sichtbar (Tastatur) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
header.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand .icon { width: 28px; height: 28px; border-radius: 7px; display: block; }
nav.lang { font-size: 14px; color: var(--muted); }
nav.lang b { color: var(--ink); }
nav.lang a { text-decoration: underline; text-underline-offset: 3px; }

/* Start: Kopfbereich */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
h1 { font-size: 56px; line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700; }
.sub { font-size: 26px; color: var(--muted); margin: 0 0 24px; font-weight: 400; }
.lead { font-size: 19px; line-height: 1.5; margin: 0 0 28px; max-width: 480px; }
.soon { display: inline-block; margin: 0; height: 48px; line-height: 45px; padding: 0 22px; border: 1.5px solid var(--accent); border-radius: 10px; color: var(--accent); font-weight: 600; font-size: 16px; }

/* Uhren mit echten App-Bildern (nur Schmuck, aria-hidden) – schlichter Rahmen aus CSS */
.devices { position: relative; height: 420px; }
.watch { position: absolute; border: 7px solid var(--rim); border-radius: 46px; background: #000; overflow: hidden; }
.watch.main { width: 230px; left: 40px; top: 16px; }
.watch.second { width: 210px; left: 250px; top: 170px; }
.watch img { display: block; width: 100%; height: auto; }

/* Breites Bild unter dem Kopfbereich */
.band { margin: 24px 0 64px; }
.band img { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--fill); }
.band .label { margin: 10px auto 0; max-width: 640px; text-align: center; font-size: 14px; color: var(--muted); }

h2 { font-size: 34px; letter-spacing: -0.01em; margin: 0 0 20px; }

/* Geschichte mit Kartenfoto */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.story img { width: 100%; max-width: 360px; height: auto; border-radius: 22.4%; display: block; margin: 0 auto; }
.story p { font-size: 18px; line-height: 1.6; margin: 0 0 16px; }
.story .sig { color: var(--muted); font-size: 15px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 24px; margin-bottom: 72px; }
.shot { grid-column: span 2; }
.shot:nth-child(4) { grid-column: 2 / span 2; }
.shot:nth-child(5) { grid-column: 4 / span 2; }
.shot { text-align: center; margin: 0; }
.shot img { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 12px; border-radius: 40px; border: 6px solid var(--rim); background: #000; }
.shot h3 { font-size: 17px; margin: 0 0 4px; }
.shot p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.4; }

/* Funktionsliste als Kartenzeilen */
.funktionen { border-top: 1px solid var(--rule); padding: 48px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.karte { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.karte.eine { columns: 1; }
.karte li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--rule); break-inside: avoid; line-height: 1.4; font-size: 16px; }
.karte li::before { content: ""; position: absolute; left: 0; top: 12px; width: 11px; height: 11px; border: 1.2px solid var(--accent); border-radius: 50%; box-shadow: inset -5px 0 0 0 var(--accent); }

/* Abschnitte mit Überschrift links, Liste oder Text rechts */
.funktionen h2 { margin-bottom: 12px; }
.funktionen .intro { color: var(--muted); line-height: 1.5; margin: 0; font-size: 16px; }
.fliess p { font-size: 18px; line-height: 1.6; margin: 0 0 16px; }
.uebersicht { margin: 28px 0 0; }
.uebersicht img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 18px; background: #f5f5f7; }
.uebersicht figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Support / FAQ */
.faq { border-top: 1px solid var(--rule); padding: 48px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 24px; }
.faq.seite { border-top: 0; padding-top: 32px; }
.faq h1 { font-size: 40px; }
.faq .intro p { color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.faq .intro a, .faq dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq dl { margin: 0; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.faq dd p { margin: 0 0 8px; }

/* Textseiten (Datenschutz, Impressum, Presse) */
.prose { max-width: 760px; padding: 32px 0 56px; line-height: 1.6; font-size: 17px; }
.prose h1 { font-size: 40px; margin-bottom: 20px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .tabelle { overflow-x: auto; margin: 0 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; }
.prose [lang="en"], .prose [lang="de"] { margin-top: 8px; }

/* Offene Punkte in Rechtstext-Entwürfen – sichtbar, aber dezent */
mark.offen {
  background: var(--offen-bg); color: var(--offen-ink);
  padding: 0 0.35em; border-radius: 4px; font-size: 0.85em; font-weight: 500;
}

/* Fuß */
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
footer nav a { margin-right: 22px; color: var(--ink); }
footer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .hero, .story, .faq, .funktionen { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  h1 { font-size: 38px; } .sub { font-size: 20px; } .lead { font-size: 17px; }
  .devices { height: 330px; } .watch.main { left: 10px; width: 200px; } .watch.second { display: none; }
  .shots { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .shot, .shot:nth-child(4), .shot:nth-child(5) { grid-column: auto; }
  .shot:last-child { grid-column: 1 / -1; }
  .karte { columns: 1; }
  h2 { font-size: 28px; }
  .prose h1, .faq h1 { font-size: 32px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
