/* Conthrax (Typodermic, Fontspring Web EULA — self-hosted, arrowhacks license):
   NUR für den Brand-Schriftzug "taptime" (Logo-Charakter, Familienlook mit
   timedrop). Headings laufen über Manrope — Conthrax' Sci-Fi-Anmutung passt
   nicht zur Zielgruppe Handwerk & KMU. */
@font-face {
  font-family: 'Conthrax';
  src: url('/fonts/conthrax-hv-webfont.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
/* Manrope (SIL OFL, self-hosted): freundlich-geometrische Sans für Headings.
   Variable Font 400-800, latin + latin-ext. */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --display: 'Conthrax', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --fg: #0f172a;
  --muted: #5b6b82;
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --border: #e5e9f0;
  --pos: #0a7f43;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --bg-alt: #0f172a; --fg: #e6edf7; --muted: #93a4bd;
    --brand: #5b8cff; --brand-d: #3f6fe0; --border: #1e293b; --card: #111a2e;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg); background: var(--bg); line-height: 1.6;
}
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
code { background: var(--bg-alt); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--fg); }
.brand-accent { color: var(--brand); }
.foot-brand { font-family: var(--display); font-weight: 800; }
.foot-brand img { vertical-align: -0.28em; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a:not(.btn) { color: var(--muted); font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: .15s; }
.nav nav a:not(.btn):hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav nav .btn { margin-left: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 72px 24px;
}
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: .9rem; }

.hero-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.mock-head { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-head span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--bg-alt); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.k-label { color: var(--muted); font-size: .72rem; }
.k-val { font-weight: 700; font-size: 1.1rem; }
.k-val.pos { color: var(--pos); }
.mock-rows .row { display: flex; justify-content: space-between; padding: 10px 4px; border-top: 1px solid var(--border); font-size: .9rem; }

/* Sections */
section h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 32px; }
.features, .pricing { max-width: 1120px; margin: 0 auto; padding: 64px 24px; }
.features h2 { margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .fi { font-size: 1.8rem; }
.feature h3 { margin: 12px 0 6px; }
.feature p { color: var(--muted); margin: 0; }

/* Pricing */
.pricing { background: var(--bg-alt); max-width: none; }
.pricing > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0 0 8px; }
.price { font-size: 1.8rem; font-weight: 800; margin: 0 0 4px; }
.price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-sub { font-size: .82rem; color: var(--muted); margin: 0 0 16px; min-height: 2.4em; }
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 28px auto 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.plan li.muted { color: var(--muted); }

/* Signup */
.signup { padding: 64px 24px; }
.signup-box { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.signup-box h2 { text-align: left; }
.field { margin: 16px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--fg); font-size: 1rem; }
.slug-input { display: flex; align-items: stretch; }
.slug-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.slug-input .suffix { display: flex; align-items: center; padding: 0 12px; background: var(--bg-alt); border: 1px solid var(--border); border-left: 0; border-radius: 0 10px 10px 0; color: var(--muted); white-space: nowrap; }
.hint { display: block; margin-top: 6px; font-size: .85rem; min-height: 1.1em; }
.hint.ok { color: var(--pos); }
.hint.err { color: #c01c28; }
.form-note { color: var(--muted); font-size: .82rem; margin-top: 12px; }
.hp { position: absolute; left: -5000px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--muted); }
footer nav { display: flex; gap: 18px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }
.foot-brand { font-weight: 800; }
.copy { font-size: .85rem; }

/* Unterseiten (Preise, Docs, Vergleich, Rechtliches) */
.page { max-width: 860px; margin: 0 auto; padding: 56px 24px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 10px; }
.page .lead { max-width: none; margin-bottom: 28px; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
.breadcrumb a { color: var(--brand); }
.prose h2 { text-align: left; font-size: 1.3rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--fg); }
/* :not(.btn) ist wichtig — ohne das gewinnt .prose a (0,2,0) gegen .btn-primary
   (0,1,0) und färbt die Button-Schrift in dieselbe Farbe wie den Button-
   Hintergrund: blau auf blau, unlesbar. Gleiche Absicherung wie in der Nav. */
.prose a:not(.btn), .link { color: var(--brand); }
.prose a:not(.btn):hover, .link:hover { text-decoration: underline; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.stamp { color: var(--muted); font-size: .82rem; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.tbl td:first-child { font-weight: 600; }
table.tbl .hl { background: color-mix(in srgb, var(--brand) 7%, transparent); }
table.tbl .yes { color: var(--pos); }
table.tbl .no { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 4px; }

/* Docs-Übersicht */
.docs-grid { margin-top: 28px; }
.doc-card { display: block; transition: border-color .15s; }
.doc-card:hover { border-color: var(--brand); }
.doc-card p { color: var(--muted); }

/* Utilities */
.center { text-align: center; }
.mt-lg { margin-top: 24px; }
footer nav a:hover, footer a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px; }
  .grid { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
}

/* Coming-Soon-Seite (Launch-Gate, siehe netlify/edge-functions/basic-auth.ts) */
.coming-soon {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  max-width: 640px; margin: 0 auto; padding: 24px; text-align: center;
}
.coming-soon img { width: 130px; height: auto; }
.coming-soon h1 { font-size: 1.9rem; margin: 0; }
.coming-soon .links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 22px; margin-top: 10px; font-size: .95rem;
}
/* nowrap: Links brechen als Ganzes um, nie mitten im Label */
.coming-soon .links a { color: var(--muted); white-space: nowrap; }

/* Erklärvideo (Click-out zu YouTube, kein Embed — siehe index.astro) */
.video-thumb {
  position: relative; display: block; max-width: 760px; margin: 0 auto;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
}
.video-thumb img { display: block; width: 100%; height: auto; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0, 0, 0, 0.15); transition: background .15s;
}
.video-thumb:hover .video-play { background: rgba(0, 0, 0, 0.3); }
.video-play span {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand, #2563eb); color: #fff; font-size: 26px;
  padding-left: 6px; /* Dreieck optisch zentrieren */
}
.video-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Store-Badges (Mitarbeiter-App). Google-PNG ist auf den Inhalt getrimmt,
   deshalb reicht für beide dieselbe Höhe. */
.store-badges {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 16px; margin-top: 4px;
}
.store-badges .badge-apple,
.store-badges .badge-google { height: 54px; width: auto; display: block; }

/* Kontakt-Formular */
.field textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--fg); font-size: 1rem; font-family: inherit; resize: vertical; }
.mt-sm { margin-top: 12px; }

/* Zustimmungs-Häkchen im Signup (Unternehmer, AGB) */
.field.check { margin: 12px 0; }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.check-label input[type="checkbox"] { width: auto; margin-top: 3px; flex: 0 0 auto; }

/* Gesperrter Bestell-Button, solange die Zustimmungen fehlen */
.signup-box button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }

/* CTA-Kasten in Ratgeber-Artikeln */
.cta-panel {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border, #1e293b);
  border-left: 3px solid var(--brand, #2563eb);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--brand, #2563eb) 6%, transparent);
}
.cta-panel h3 { margin: 0 0 8px; }
.cta-panel p { margin: 0 0 14px; }
