/* ToCard – Webseite tocard-task.com
   Gestaltung nach Web/mockup/index.html (weiße Karte, schwarze Tinte, Schreiblinien).
   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;
  --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;
    --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: 1.5px solid var(--ink); border-radius: 7px; position: relative; background: var(--paper); }
.brand .icon::after { content: ""; position: absolute; left: 6px; right: 6px; top: 9px; height: 0; border-top: 1.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
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; }
.badge { display: inline-block; line-height: 0; border-radius: 8px; }
.badge img { height: 48px; width: auto; display: block; }

/* Gezeichnete Geräte mit Karte (nur Schmuck, aria-hidden) */
.devices { position: relative; height: 420px; }
.phone { position: absolute; border: 2px solid var(--ink); border-radius: 36px; background: var(--paper); overflow: hidden; }
.phone.main { width: 250px; height: 400px; left: 60px; top: 10px; }
.phone.ipad { width: 300px; height: 230px; left: 230px; top: 160px; border-radius: 22px; }
.card { position: absolute; inset: 20px 16px 16px; }
.card .title { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; margin-bottom: 8px; }
.card .title em { font-style: normal; color: var(--muted); font-weight: 400; }
.row { position: relative; height: 34px; color: var(--ink); }
.row::before { content: ""; position: absolute; left: 0; top: 10px; width: 11px; height: 11px; border: 1.2px solid var(--ink); border-radius: 50%; }
.row::after { content: ""; position: absolute; left: 20px; right: 0; top: 23px; border-top: 1px solid var(--line); }
.row.done::before { background: var(--ink); }
.row svg { position: absolute; left: 22px; top: 2px; height: 26px; width: 160px; }

/* Vorschauvideo */
.video { margin: 24px 0 64px; }
.video video { display: block; width: 100%; height: auto; max-height: 80vh; border-radius: 18px; background: var(--fill); }
.video .label { margin: 10px 0 0; 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%; height: auto; border-radius: 14px; display: block; }
.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(3, 1fr); gap: 28px 24px; margin-bottom: 72px; }
.shot { text-align: center; margin: 0; }
.shot img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto 12px; border-radius: 24px; border: 1px solid var(--rule); background: var(--fill); }
.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 li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); 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(--ink); border-radius: 50%; }

/* 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; } .phone.main { left: 10px; width: 200px; height: 320px; } .phone.ipad { display: none; }
  .shots { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .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; }
}
