/* ERPanda Webseite – gemeinsames Stylesheet (kein Build, kein Framework) */

:root {
  --bg: #f6f6f5;
  --surface: #ffffff;
  --ink: #1c1b22;
  --ink-soft: #5a5862;
  --ink-muted: #8a8891;
  --line: #e6e5e2;
  --line-strong: #d8d7d4;
  --accent: #1f8f85;
  --accent-dark: #176f67;
  --accent-soft: #e6f3f1;
  --accent-soft-line: #cfe6e2;
  --accent-light: #5fd0c4;
  --dark: #1c1b22;
  --on-dark: #fbfbfb;
  --on-dark-soft: rgba(251, 251, 251, 0.72);
  --on-dark-muted: rgba(251, 251, 251, 0.6);
  --on-dark-line: rgba(251, 251, 251, 0.14);
  --font-body: Geist, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", Geist, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--light { color: var(--accent-light); }

.big { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
.mono { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--accent { background: var(--accent); color: var(--on-dark); }
.btn--accent:hover { background: var(--accent-dark); color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(251,251,251,0.22); }
.btn--ghost:hover { border-color: rgba(251,251,251,0.5); color: var(--on-dark); }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: #2d2c35; color: var(--on-dark); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 16px; }

/* Dark sections */
.dark { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(31,143,133,0.35), transparent 60%),
    radial-gradient(600px 500px at 10% 90%, rgba(31,143,133,0.18), transparent 60%);
}
.dark > * { position: relative; }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 22px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { color: rgba(251,251,251,0.82); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--on-dark); padding: 8px; cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 56px; align-items: center; padding: 72px 0 120px; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.0; font-weight: 800; }
.hero__lead { font-size: 19px; line-height: 1.55; color: var(--on-dark-soft); max-width: 500px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 16px 22px; font-size: 13px; color: var(--on-dark-muted); }
.trust li { display: flex; align-items: center; gap: 6px; }
.hero__visual { position: relative; }
.hero__visual .shot { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.hero__visual .shot--phone { position: absolute; right: -20px; bottom: -60px; width: 180px; transform: none; }

/* Screenshots */
.shot {
  border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(28,27,34,0.45);
}
.shot--phone { border-radius: 28px; border-color: #34333c; }

/* Tick */
.tick {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dark .tick { background: rgba(95,208,196,0.18); color: var(--accent-light); }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; font-weight: 700; }
.section-head p { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Flow (5 steps) */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow .card { border-radius: 0; display: flex; flex-direction: column; gap: 14px; }
.flow .card + .card { border-left: none; }
.flow .card:first-child { border-radius: 20px 0 0 20px; }
.flow .card:last-child { border-radius: 0 20px 20px 0; background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.flow .card:last-child h3 { color: var(--on-dark); }
.flow .card:last-child p { color: var(--on-dark-soft); }
.flow__nr { font-size: 12px; font-weight: 600; color: var(--accent); }
.flow .card:last-child .flow__nr { color: var(--accent-light); }
.flow h3 { font-size: 20px; }
.flow p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* Feature blocks */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: center; }
.feature--reverse { grid-template-columns: 520px minmax(0, 1fr); }
.feature__text { display: flex; flex-direction: column; gap: 20px; }
.feature__text h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.08; font-weight: 700; }
.feature__text p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.dark .feature__text p { color: var(--on-dark-soft); }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tiles li { border: 1px solid var(--on-dark-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.tiles strong { font-size: 14px; font-weight: 600; }
.tiles span { font-size: 13px; color: var(--on-dark-muted); }
.phones { display: flex; gap: 24px; justify-content: flex-end; align-items: flex-end; }
.phones .shot--phone { width: 250px; }
.phones .shot--phone:nth-child(2) { transform: translateY(-40px); }

/* Doubts */
.doubt { display: flex; flex-direction: column; gap: 14px; }
.doubt__icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.doubt h3 { font-size: 19px; }
.doubt p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* Teaser cards */
.teaser { padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.teaser h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; font-weight: 700; }
.teaser p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.teaser--accent { background: var(--accent-soft); border-color: var(--accent-soft-line); }
.teaser--accent p { color: #3f5e5a; }
.price-hint { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.price-hint .big { font-size: 56px; line-height: 1; }
.price-hint .ab { font-size: 18px; color: var(--ink-soft); padding-bottom: 6px; }
.price-hint small { font-size: 15px; color: var(--ink-soft); padding-bottom: 6px; }

/* Final CTA */
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 96px 0; }
.cta h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; font-weight: 800; max-width: 820px; }
.cta p { font-size: 18px; color: var(--on-dark-soft); max-width: 560px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(251,251,251,0.12); padding: 40px 0 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; font-size: 14px; color: var(--on-dark-muted); }
.site-footer > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer strong { color: var(--on-dark); font-weight: 600; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--on-dark); }

/* Page hero (Preise / Vergleich) */
.page-hero { padding: 64px 0 72px; display: flex; flex-direction: column; gap: 18px; max-width: 800px; }
.page-hero h1 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.0; font-weight: 800; }
.page-hero p { font-size: 18px; line-height: 1.55; color: var(--on-dark-soft); max-width: 680px; }

/* Calculator */
.calc-layout { margin-top: -100px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.calc { padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.calc h2 { font-size: 26px; font-weight: 700; }
.calc__intro { font-size: 14px; color: var(--ink-soft); }
.field { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.field--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
.field__label { display: flex; flex-direction: column; gap: 4px; }
.field__label strong { font-size: 15px; font-weight: 600; }
.field__label span { font-size: 13px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.stepper button:hover { background: #f1f1ef; }
.stepper output { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: 34px; min-width: 56px; text-align: center; }
.stepper output.small { font-size: 24px; min-width: 96px; }
.addons { display: flex; flex-direction: column; gap: 4px; }
.addons__head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.addon {
  display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin: 0 -10px; border-radius: 12px;
  cursor: pointer; user-select: none;
}
.addon:hover { background: #f6f6f5; }
.addon.is-on { background: var(--accent-soft); }
.addon input { position: absolute; opacity: 0; width: 0; height: 0; }
.addon__box {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #c9c8cf; background: var(--surface); color: var(--on-dark);
}
.addon.is-on .addon__box { border-color: var(--accent); background: var(--accent); }
.addon__box svg { display: none; }
.addon.is-on .addon__box svg { display: block; }
.addon__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.addon__text strong { font-size: 14px; font-weight: 600; }
.addon__text span { font-size: 12px; color: var(--ink-soft); }
.addon__price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.breakdown { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid #ecebe9; }
.breakdown li { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; }
.breakdown li span:first-child { color: var(--ink-soft); }
.breakdown li span:last-child { font-weight: 600; }
.breakdown small { font-size: 13px; }
.summary-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.summary { padding: 32px; background: var(--dark); color: var(--on-dark); border-color: var(--dark); display: flex; flex-direction: column; gap: 22px; }
.summary__total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.summary__total .big { font-size: 56px; line-height: 1; }
.summary__total small { font-size: 15px; color: var(--on-dark-muted); }
.summary__hint { font-size: 14px; line-height: 1.5; color: rgba(251,251,251,0.65); }
.summary .checks { font-size: 14px; color: rgba(251,251,251,0.8); }
.included { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.included h2 { font-size: 22px; font-weight: 700; }
.included ul { display: grid; gap: 10px; font-size: 14px; }
.included li { display: flex; align-items: center; gap: 8px; }
.included p { font-size: 13px; color: var(--ink-soft); padding-top: 4px; }

/* Comparison table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 900px; }
.compare th { text-align: left; font-weight: 600; padding: 18px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.compare td { padding: 14px 16px; border-bottom: 1px solid #ecebe9; vertical-align: middle; background: var(--surface); }
.compare tr.group td { background: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); padding: 22px 16px 10px; border-bottom: 1px solid var(--line); }
.compare .us { background: var(--accent-soft); }
.compare tr.group .us { background: #dcece9; }
.compare th small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.compare th.us small { color: #3f5e5a; }
.compare th .big { font-size: 18px; color: var(--accent); }
.compare .cell-label { display: flex; flex-direction: column; gap: 2px; }
.compare .cell-label small { font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.yes { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-dark); align-items: center; justify-content: center; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #fff4e0; color: #8a5a00; font-size: 12px; font-weight: 600; white-space: nowrap; }
.todo { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1.5px dashed #b9b7c4; color: var(--ink-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 4px 0; font-size: 13px; color: var(--ink-muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.fit { display: flex; flex-direction: column; gap: 10px; }
.fit h3 { font-size: 18px; }
.fit p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* Logos + Kundenstimme */
.logos { padding: 40px 0 8px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logos__row { display: flex; gap: 16px; flex: 1; min-width: 0; flex-wrap: wrap; }
.logos__row .placeholder { height: 40px; flex: 1 1 120px; }
.testimonial { padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; }

/* Rechtsseiten (Impressum, Datenschutz, AGB, AVV) */
.legal { max-width: 760px; padding: 56px 0 96px; font-size: 15px; line-height: 1.7; color: #333238; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; font-weight: 800; color: var(--ink); margin: 0 0 28px; }
.legal h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 36px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 26px 0 8px; }
.legal h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 18px 0 6px; }
.legal p { margin: 0 0 14px; text-wrap: pretty; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; list-style: revert; }
.legal li { margin: 0 0 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink); }
.legal strong { color: var(--ink); }

/* Placeholders (bewusst sichtbar, bis echte Inhalte da sind) */
.placeholder {
  border: 1.5px dashed #b9b7c4; color: var(--ink-muted); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-align: center; padding: 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 100px; }
  .hero__visual .shot { transform: none; }
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature--reverse .feature__text { order: -1; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .flow .card, .flow .card:first-child, .flow .card:last-child { border-radius: 20px; }
  .flow .card + .card { border-left: 1px solid var(--line); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-layout { grid-template-columns: 1fr; margin-top: -60px; }
  .summary-col { position: static; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .phones { justify-content: center; }
}
@media (max-width: 720px) {
  .nav, .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--dark); padding: 8px 24px 16px; border-bottom: 1px solid var(--on-dark-line); z-index: 10; }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--on-dark-line); }
  .hero { padding-top: 40px; }
  .hero__visual .shot--phone { display: none; }
  .section { padding: 64px 0; }
  .flow, .grid--2, .grid--3, .grid--4, .tiles { grid-template-columns: 1fr; }
  .teaser { padding: 28px; }
  .calc { padding: 24px; }
  .field--row { flex-direction: column; align-items: flex-start; }
  .phones { gap: 12px; }
  .phones .shot--phone { width: calc(50% - 6px); max-width: 200px; }
  .phones .shot--phone:nth-child(2) { transform: none; }
  .testimonial { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .price-hint .big { font-size: 44px; }
  .summary__total .big { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
