:root {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --ink: #1c1c1a;
  --ink-soft: #5a5a54;
  --line: #e2e2dc;
  --accent: #2b6a4f;
  --accent-ink: #ffffff;
  --danger: #b3402f;
  --warn: #a5730f;
  font-size: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 18px; }
h1 { font-size: 1.5rem; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.muted { color: var(--ink-soft); font-size: 0.9rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px 20px; }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar nav a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 7px; font-size: 0.88rem; text-decoration: none; color: var(--ink-soft); }
.topbar nav a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar nav a:hover { color: var(--ink); background: var(--bg); }
.topbar nav a.active { color: var(--accent); background: #eaf5ee; font-weight: 600; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.95rem; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; }
button, .btn { display: inline-block; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 0.92rem; cursor: pointer; text-decoration: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
th { color: var(--ink-soft); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; background: #eee; }
.badge-completed { background: #dcf0e4; color: var(--accent); }
.badge-draft { background: #f3ecd8; color: var(--warn); }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #fbe6e2; color: var(--danger); }
.alert-warn { background: #f7ecd2; color: var(--warn); }
.alert-ok { background: #dcf0e4; color: var(--accent); }
.field-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 120px; }
.field-row label { margin-top: 0; }
.consent-box { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 14px 0; background: #fbfbf9; }
.sig-pad { border: 1px solid var(--line); border-radius: 6px; background: #fff; touch-action: none; width: 100%; max-width: 420px; height: 160px; }

/* Site header (landing page only) */
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px;
  padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.site-header .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.site-header .brand img { width: 28px; height: 28px; }
.site-header .main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-header .main-nav a:not(.btn) { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.site-header .main-nav a:not(.btn):hover { color: var(--accent); }
.site-header .header-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lang-links { font-size: 0.78rem; }
.lang-links a { color: var(--ink-soft); text-decoration: none; margin: 0 3px; }
.lang-links a:hover { color: var(--accent); }
.lang-links strong { margin: 0 3px; color: var(--accent); }

/* Section kicker labels */
.kicker { display: block; color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

/* Hero product mockup */
.hero-mockup { max-width: 440px; margin: 36px auto 0; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(30,50,40,.4); border: 1px solid var(--line); background: #fff; text-align: left; }
.hero-mockup .chrome { background: #eef1ee; padding: 9px 12px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.hero-mockup .dot { width: 9px; height: 9px; border-radius: 50%; background: #d7dad6; }
.hero-mockup .url { margin-left: 8px; font-size: 0.72rem; color: var(--ink-soft); background: #fff; border-radius: 5px; padding: 3px 10px; flex: 1; }
.hero-mockup .screen { padding: 22px; }
.hero-mockup .screen h4 { margin: 0 0 16px; font-size: 1rem; }
.hero-mockup .mock-field { margin-bottom: 12px; }
.hero-mockup .mock-field span { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 4px; }
.hero-mockup .mock-field .box { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fbfbf9; }
.hero-mockup .mock-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.76rem; color: var(--ink-soft); background: #fbfbf9; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.hero-mockup .mock-consent input { margin-top: 2px; }
.hero-mockup .mock-sig { height: 46px; border: 1.5px dashed var(--line); border-radius: 6px; margin-bottom: 14px; }
.hero-mockup .mock-sig svg { width: 100%; height: 100%; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; }
.hero-mockup .mock-submit { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 9px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }

/* FAQ accordion (native details/summary, no JS) */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 14px 4px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 4px 16px; color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* Bold gradient CTA band (replaces a plain white panel at page end) */
.cta-band { background: linear-gradient(135deg, var(--accent), #1a4433); color: #fff; text-align: center; padding: 48px 32px; border-radius: 10px; margin-bottom: 18px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 22px; }
.cta-band .btn { background: #fff; color: var(--accent); border-color: #fff; }

/* Landing page */
.hero {
  text-align: center; padding: 60px 32px;
  background: radial-gradient(ellipse at top, #eaf5ee 0%, var(--panel) 70%);
}
.hero-logo-wrap {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 22px;
  background: radial-gradient(circle, #ffffff 55%, #dcf0e4 100%);
  box-shadow: 0 8px 24px -8px rgba(43,106,79,.35);
  display: flex; align-items: center; justify-content: center;
}
.hero-logo { width: 56px; height: 56px; display: block; }
.hero h1 { font-size: 2.1rem; }
.hero p.lead { font-size: 1.1rem; max-width: 560px; margin: 10px auto 26px; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.badge-row .badge { background: #eef6f1; color: var(--accent); font-size: 0.78rem; padding: 4px 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #eef6f1; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; font-size: 0.82rem; padding: 6px 12px; }
.chip svg { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.icon-badge {
  width: 42px; height: 42px; border-radius: 10px; background: #eaf5ee;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1rem; margin: 0 0 6px; }
.feature-card p { margin: 0; }

/* "Wie es funktioniert" steps (numbered rows, replaces a plain table) */
.step-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step-row:last-child { border-bottom: none; padding-bottom: 4px; }
.step-badge {
  width: 30px; height: 30px; min-width: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.88rem;
}
.step-row h3 { font-size: 0.95rem; margin: 2px 0 4px; }
.step-row p { margin: 0; }

.price-card { text-align: center; }
.price-card .price { font-size: 1.8rem; font-weight: 700; margin: 6px 0; }
.price-card .price small { font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }
.price-card.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card ul { text-align: left; list-style: none; padding: 0; margin: 14px 0; font-size: 0.9rem; }
.price-card ul li { margin-bottom: 8px; padding-left: 24px; position: relative; }
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .price-card ul li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .price-card ul li::before { left: auto; right: 0; }
[dir="rtl"] .hero-mockup { text-align: right; }
[dir="rtl"] .hero-mockup .url { margin-left: 0; margin-right: 8px; }

/* App shell (dashboard/admin) */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.page-head h1 { margin-bottom: 2px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.stat-card .icon-badge { width: 38px; height: 38px; margin-bottom: 0; flex-shrink: 0; }
.stat-card .icon-badge svg { width: 19px; height: 19px; }
.stat-card .label { font-size: 0.75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.stat-card .value { font-size: 1.05rem; font-weight: 700; }

.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.panel-head h2 { margin-bottom: 0; }

table.data { width: 100%; border-collapse: collapse; }
table.data th { color: var(--ink-soft); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #fbfbf9; }

.channel-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.channel-badge svg { width: 15px; height: 15px; stroke: var(--ink-soft); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.empty-state { text-align: center; padding: 36px 20px; }
.empty-state .icon-badge { margin: 0 auto 14px; width: 46px; height: 46px; }
.empty-state .icon-badge svg { width: 24px; height: 24px; }
.empty-state p { margin: 0 0 14px; }

.table-wrap { overflow-x: auto; }

[dir="rtl"] .topbar nav a { flex-direction: row-reverse; }
