/* pencad.de – alles lokal, keine fremden Quellen. Schriften: Inter, Space Grotesk (SIL OFL, fonts/). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-wght-normal.woff2) format('woff2');
}

:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --text: #1c1f23;
  --muted: #3c444d;
  --muted2: #4b5560;
  --border: #dfe3e8;
  --border2: #c9ced6;
  --ink: #1c1f23;
  --on-ink: #f3f4f6;
  --on-ink-muted: #c9ced6;
  --accent: #1f5fd1;
  --accent-text: #1f5fd1;
  --accent-hover: #17479c;
  --ok: #178a43;
  --warn: #f6a93b;
  --error: #b3261e;
  --shadow: rgba(28, 31, 35, 0.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #16181c;
    --panel: #1e2126;
    --text: #eceef1;
    --muted: #b4bac3;
    --muted2: #9aa2ad;
    --border: #2e333b;
    --border2: #454c56;
    --ink: #2a2f37;
    --accent-text: #7fa8f5;
    --accent-hover: #a9c4f8;
    --ok: #3fb56c;
    --error: #f2857d;
    --shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #16181c;
  --panel: #1e2126;
  --text: #eceef1;
  --muted: #b4bac3;
  --muted2: #9aa2ad;
  --border: #2e333b;
  --border2: #454c56;
  --ink: #2a2f37;
  --accent-text: #7fa8f5;
  --accent-hover: #a9c4f8;
  --ok: #3fb56c;
  --error: #f2857d;
  --shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
.display { font-family: 'Space Grotesk', Inter, system-ui, sans-serif; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hide { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.small { font-size: 15px; color: var(--muted2); }

/* Kopf */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.brand-name span { font-weight: 500; color: var(--accent-text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--text); font-weight: 500; }
.nav a.btn { color: #fff; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn.sm { min-height: 44px; border-radius: 10px; }
.btn.ghost { background: var(--panel); border: 1px solid var(--border2); color: var(--text); }
.btn.ghost:hover { background: var(--bg); color: var(--text); }
.btn.light { background: #fff; color: #17479c; }
.btn.light:hover { background: #e3ecfb; color: #17479c; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.theme { display: flex; margin: 0; padding: 3px; border: 1px solid var(--border2); border-radius: 999px; background: var(--panel); }
.theme button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.theme button[aria-pressed='true'] { background: var(--ink); color: #fff; }

/* Start */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.hero-text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.8px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 520px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shot { flex: 1 1 460px; min-width: 0; }
.frame { padding: 14px; border-radius: 30px; background: var(--ink); box-shadow: 0 30px 60px var(--shadow); }
.frame img { width: 100%; border-radius: 18px; }
/* Startseite: zwei Tablets versetzt, hinten dunkler, vorn heller Modus */
.hero-duo { display: grid; }
.hero-duo .frame { grid-area: 1 / 1; width: 68%; }
.hero-duo .back { justify-self: end; align-self: start; }
.hero-duo .front { justify-self: start; margin-top: 30%; position: relative; box-shadow: 0 30px 70px var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08); }

.band { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.three { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.three > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.three svg { width: 32px; height: 32px; color: var(--accent-text); }
.three h2 { font-size: 23px; }

.features { display: flex; flex-direction: column; gap: 72px; padding-top: 80px; padding-bottom: 40px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.feature.rev { flex-wrap: wrap-reverse; }
.feature-img { flex: 1 1 460px; min-width: 0; }
.feature-img img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }
.feature-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); }
.feature h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.5px; }
.checks { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--ok); }

.more { padding-top: 40px; padding-bottom: 80px; }
.more h2 { margin-bottom: 28px; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.5px; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 250px; padding: 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); }
.card h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.card p { font-size: 16px; color: var(--muted); }

/* Preise */
.prices { display: flex; flex-direction: column; gap: 36px; padding-top: 80px; padding-bottom: 80px; }
.prices-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.prices-head h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.8px; }
.prices-head p { font-size: 19px; color: var(--muted); }
.plans { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.plan { flex: 1 1 320px; padding: 32px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 20px; }
.plan h3 { font-size: 26px; }
.plan .price { font-size: 48px; line-height: 1; }
.plan .checks { flex-grow: 1; }
.plan.pro { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan.pro .muted { color: var(--on-ink-muted); }
.plan.pro .checks svg { color: var(--warn); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.price-row .per { font-size: 18px; color: var(--on-ink-muted); }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--warn); color: #1c1f23; font-size: 15px; font-weight: 600; }

.cta { padding-top: 80px; padding-bottom: 80px; }
.cta-box { padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: var(--accent); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-box > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.cta-box h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.8px; }
.cta-box p { font-size: 19px; }

/* Fuß */
.foot { border-top: 1px solid var(--border); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 48px; font-size: 15px; color: var(--muted2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot nav a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); }

/* Textseiten */
.doc { max-width: 780px; margin: 0 auto; padding: 32px 24px 96px; }
.doc h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.8px; margin-bottom: 16px; }
.doc h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; line-height: 1.2; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 26px; }
.doc li { margin-bottom: 6px; }
.doc a { overflow-wrap: anywhere; }

/* Kontakt */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border2); background: var(--panel); color: var(--text); font: inherit; }
.field textarea { min-height: 180px; resize: vertical; }
.field textarea.short { min-height: 90px; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choice legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.receipt { margin: 18px 0; padding: 16px; border-radius: 10px; border: 1px solid var(--border2); background: var(--panel); white-space: pre-wrap; font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
@media print { .head, .foot, #cancel-print { display: none; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border2); background: var(--panel); }
.form-msg.ok { border-color: var(--ok); }
.form-msg.bad { border-color: var(--error); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .doc { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 24px; padding-bottom: 48px; gap: 32px; }
  .frame { padding: 8px; border-radius: 20px; }
  .frame img { border-radius: 12px; }
  .plan { padding: 24px; }
  .nav a { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
