/* ERechnung – Website im Stil von marcomaltschik.dev. Schrift liegt auf dem eigenen Server, keine Cookies, kein Tracking. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}

/* Farben wie marcomaltschik.dev: hell = Schwarz auf Weiß, dunkel = Weiß auf Fast-Schwarz */
:root {
  --base: #fff;
  --panel: #fff;
  --line: #e6eaef;
  --ink: #0e1419;
  --ink-muted: #59636e;
  --accent: #0a0a0a;
  --accent-ink: #fff;
  --glow: #0a0a0a4d;
  --soft: #f6f7f9;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --base: #070707;
    --panel: #101013;
    --line: #26262b;
    --ink: #f4f2ef;
    --ink-muted: #989298;
    --accent: #fff;
    --accent-ink: #070707;
    --glow: #ffffff59;
    --soft: #0c0c0e;
    color-scheme: dark;
  }
}
:root[data-mode="dark"] {
  --base: #070707;
  --panel: #101013;
  --line: #26262b;
  --ink: #f4f2ef;
  --ink-muted: #989298;
  --accent: #fff;
  --accent-ink: #070707;
  --glow: #ffffff59;
  --soft: #0c0c0e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.display, h1, h2, h3, .logo { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 56rem; }
h2 { font-size: clamp(1.875rem, 4.5vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 48rem; }
h3 { font-size: 1.125rem; line-height: 1.55; }
p { margin: 0; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px; line-height: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent);
}
.lead { margin-top: 24px; max-width: 42rem; font-size: 1.125rem; line-height: 1.625; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.tiny { font-size: 12px; line-height: 18px; }

/* ---------- Kopfzeile ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--base) 70%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-size: 18px; font-weight: 700; letter-spacing: -0.025em; text-decoration: none; white-space: nowrap; }
.logo .dot { color: var(--accent); }
.logo .by { margin-left: 8px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); }
/* Unterzeile nur, wenn neben den Menüpunkten Platz ist (unter 900 px gibt es keine Menüpunkte) */
@media (max-width: 767px), (min-width: 900px) and (max-width: 1099px) { .logo .by { display: none; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link {
  padding: 6px 12px; border-radius: 999px; font-size: 14px; line-height: 20px;
  color: var(--ink-muted); text-decoration: none; white-space: nowrap;
}
.nav a.link:hover { color: var(--ink); }
@media (max-width: 899px) { .nav a.link { display: none; } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 4px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 80%, transparent);
  color: var(--ink-muted); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .sun { display: none; }
:root[data-mode="dark"] .icon-btn .sun { display: block; }
:root[data-mode="dark"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) .icon-btn .sun { display: block; }
  :root:not([data-mode="light"]) .icon-btn .moon { display: none; }
}

/* ---------- Knöpfe, Pillen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 600;
  text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer;
  transition: filter .15s, border-color .15s;
}
.btn.sm { white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.outline:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag {
  border: 1px solid var(--line); background: var(--base); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; line-height: 16px; color: var(--ink-muted);
}
.badge {
  display: inline-block; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  padding: 2px 10px; font-size: 10px; line-height: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.arrow-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Abschnitte ---------- */
section { padding: 96px 0; scroll-margin-top: 64px; }
@media (max-width: 639px) { section { padding: 72px 0; } }
section + section { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.hero { padding-top: 152px; }
@media (max-width: 639px) { .hero { padding-top: 120px; } }
.section-head { margin-bottom: 40px; }

/* Bildschirmfotos und Video in großen, runden Rahmen mit leichtem Schein */
.frame {
  margin-top: 56px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--panel);
  box-shadow: 0 0 60px -20px var(--glow);
}
.frame img, .frame video { width: 100%; }
.frame.video { max-width: 56rem; margin-left: auto; margin-right: auto; background: #000; }
.caption { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink-muted); }

/* Karten */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.card.strong { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: var(--panel); box-shadow: 0 0 60px -20px var(--glow); }
.card.big { border-radius: 24px; padding: 32px; }
.card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

/* Zeitleiste der E-Rechnungspflicht */
.year { font-family: "Space Grotesk", sans-serif; font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; }
.what { margin: 12px 0 6px; font-weight: 600; }

/* Text + Bild nebeneinander */
.split { display: grid; gap: 40px; align-items: center; margin-top: 80px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 56px; }
  .split.reverse { grid-template-columns: 7fr 5fr; }
  .split.reverse .split-text { order: 2; }
}
.split .frame { margin-top: 0; }
.split h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; }

/* Liste mit Haken (wie bei den Preiskarten auf marcomaltschik.dev) */
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Vergleichstabelle */
.table-wrap { margin-top: 40px; border: 1px solid var(--line); border-radius: 24px; overflow-x: auto; background: color-mix(in srgb, var(--panel) 70%, transparent); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: "Space Grotesk", sans-serif; font-size: 16px; }
td:first-child { color: var(--ink-muted); }
td:last-child, th:last-child { font-weight: 600; }

/* Ablauf */
.step .num { font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 700; color: var(--ink-muted); letter-spacing: 0.05em; margin-bottom: 20px; }

/* Fragen */
.faq { max-width: 48rem; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
details[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 24px; position: relative;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ink-muted); }
details[open] summary::after { content: "–"; }
details p { padding: 0 24px 20px; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }

/* Download */
.download-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .download-grid { grid-template-columns: 7fr 5fr; } }
.version { font-family: "Space Grotesk", sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 12px 0 4px; }
.hash { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11px; color: var(--ink-muted); word-break: break-all; margin-top: 16px; }

/* Kontakt */
.contact-big { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: -0.02em; text-decoration: none; word-break: break-word; }
.contact-big:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
address { font-style: normal; color: var(--ink-muted); line-height: 1.6; }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding: 48px 0 40px; font-size: 14px; }
.footer .cols { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); }
.footer a { color: var(--ink-muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .links { display: grid; gap: 6px; }
.footer .copy { margin-top: 40px; color: var(--ink-muted); font-size: 12px; }

/* ---------- Rechtstexte ---------- */
.legal { padding-top: 136px; max-width: 48rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p { color: var(--ink-muted); line-height: 1.7; margin-bottom: 12px; }
.legal p strong { color: var(--ink); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

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