/* ==========================================================================
   Apothekenagenten — Apothecary Petrol & Warm Copper Design System (2026)
   DSGVO-clean local typography (no external Google Fonts), WCAG AA+ contrast
   ========================================================================== */

:root {
  /* Distinct pharmacy-native palette (no generic SaaS blue, no navy) */
  --petrol: #0e3a3b;
  --petrol-deep: #082526;
  --petrol-mid: #165152;
  --copper: #c85a17;
  --copper-hover: #a74810;
  --copper-soft: #fdf2ea;
  --copper-border: #f0ccb3;
  --emerald: #177e65;
  --emerald-soft: #e9f6f2;
  --emerald-border: #bce2d7;
  --danger: #a82c2c;
  --danger-soft: #fdf0f0;

  --canvas: #faf9f6;
  --surface: #ffffff;
  --sand: #f2efe9;
  --sand-deep: #e8e2d7;
  --line: #dfd9ce;
  --ink: #132222;
  --ink-soft: #364746;
  --muted: #566867;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(14, 58, 59, 0.05);
  --shadow-md: 0 12px 34px rgba(14, 58, 59, 0.08);
  --shadow-lg: 0 22px 60px rgba(8, 37, 38, 0.14);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas,
    monospace;

  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -120px;
  left: 10px;
  z-index: 100;
  background: var(--petrol);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}
.skip:focus {
  top: 10px;
}

/* Layout container */
.wrap {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow-wrap: break-word;
  hyphens: auto;
}

code {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.09;
  font-weight: 800;
  margin-bottom: 22px;
}

h1 .accent {
  color: var(--copper);
}

h2 {
  font-size: clamp(23px, 3.1vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 10px;
}

p,
li,
summary {
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol-mid);
  margin-bottom: 16px;
}

.eyebrow-pill {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--petrol);
  padding: 6px 12px;
  border-radius: 999px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 64ch;
}

.micro {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0 0;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--petrol);
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--petrol);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  position: absolute;
}

.brand-dot {
  color: var(--copper);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.main-nav a {
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--petrol);
  border-bottom-color: var(--copper);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--petrol);
  cursor: pointer;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s,
    color 0.18s;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}
.btn-primary:hover {
  background: var(--copper-hover);
  transform: translateY(-1px);
}

.btn-petrol {
  background: var(--petrol);
  color: #fff;
}
.btn-petrol:hover {
  background: var(--petrol-mid);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--petrol);
  border-color: var(--petrol);
}
.btn-outline:hover {
  background: var(--emerald-soft);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-sm {
  padding: 10px 15px;
  font-size: 13.5px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--petrol);
  text-decoration: none;
  border-bottom: 1.5px solid var(--copper);
  padding-bottom: 3px;
}
.text-link:hover {
  color: var(--copper);
}

/* Sections */
.section {
  padding-block: 80px;
}
.section-sm {
  padding-block: 54px;
}
.section-sand {
  background: var(--sand);
  border-block: 1px solid var(--line);
}
.section-white {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-dark {
  background: var(--petrol-deep);
  color: #f3f7f6;
}
.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: #ffffff;
}
.section-dark p {
  color: #c2d4d3;
}
.section-dark .eyebrow {
  color: #f5b98c;
}
.section-dark .text-link {
  color: #ffffff;
  border-bottom-color: #f5b98c;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 40px;
}
.section-head > div {
  max-width: 680px;
}
.section-head > p {
  max-width: 390px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a {
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--petrol);
}

/* Hero */
.hero {
  padding-block: 56px 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Hero Telemetry Panel (replaces vague orbit visual) */
.hero-board {
  background: var(--petrol-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ec0bf;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(23, 126, 101, 0.28);
  color: #8ce4cd;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42d9b2;
}

.agent-queue {
  display: grid;
  gap: 11px;
}

.agent-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: rgba(200, 90, 23, 0.24);
  color: #ffc89f;
}

.agent-badge.ok {
  background: rgba(23, 126, 101, 0.34);
  color: #8ee8cf;
}

.agent-row strong {
  display: block;
  font-size: 14px;
  color: #fff;
  line-height: 1.3;
}

.agent-row small {
  display: block;
  font-size: 12px;
  color: #b4cccc;
  margin-top: 2px;
}

.agent-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #e2efee;
  white-space: nowrap;
}

.board-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #a9c5c4;
}

/* Hero 3-KPI Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--petrol);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.kpi-card.copper {
  border-top-color: var(--copper);
}
.kpi-card.emerald {
  border-top-color: var(--emerald);
}

.kpi-value {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--petrol);
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-card.copper .kpi-value {
  color: var(--copper);
}

.kpi-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.kpi-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 10px;
}

.kpi-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* Pain / Reality 4-Card Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--copper);
  background: var(--copper-soft);
  border: 1px solid var(--copper-border);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.card-impact {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink);
}

/* Infographics (original pharmacy visual style, animated bars + replay) */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.infographic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.kpi-strip > *,
.infographic-grid > *,
.pilot-box > *,
.pilot-step > *,
.calc-shell > *,
.gen-grid > *,
.scenario-panel > *,
.team-grid > *,
.faq-grid > *,
.contact-grid > *,
.footer-grid > *,
.wawi-strip > *,
.agent-row > * {
  min-width: 0;
}

.info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.info-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  display: block;
  margin-bottom: 5px;
}

.info-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper);
  border: 1px solid var(--copper-border);
  white-space: nowrap;
}

.info-badge.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.replay-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.replay-btn:hover {
  border-color: var(--petrol);
  color: var(--petrol);
}

.bar-list {
  display: grid;
  gap: 15px;
  margin-block: 14px 18px;
}

.bar-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.bar-item-head strong {
  color: var(--ink);
}

.bar-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--petrol);
  white-space: nowrap;
}

.bar-val.copper {
  color: var(--copper);
}

.bar-track {
  height: 11px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--petrol);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.copper {
  background: var(--copper);
}
.bar-fill.emerald {
  background: var(--emerald);
}
.bar-fill.muted {
  background: #8da19f;
}

.infographic.is-animated .bar-fill {
  width: var(--target-w, 50%);
}

/* Fallback if JS is disabled: bars render immediately at target width */
noscript + .bar-fill,
.no-js .bar-fill {
  width: var(--target-w, 50%);
}

.bar-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.info-takeaway {
  margin-top: auto;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--sand);
  font-size: 13px;
  color: var(--ink);
  border-left: 3px solid var(--copper);
}

.info-source {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

/* Donut / Stat Split Box inside Infographic */
.split-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 14px 18px;
}

.metric-tile {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.metric-tile .big {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--petrol);
  line-height: 1.15;
}

.metric-tile.copper .big {
  color: var(--copper);
}
.metric-tile.emerald .big {
  color: var(--emerald);
}

.metric-tile span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Service / Module Cards */
.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.module-card:hover {
  border-color: var(--petrol-mid);
  box-shadow: var(--shadow-md);
}

.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sprint-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  padding: 4px 10px;
  border-radius: 999px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}

.check-list li {
  position: relative;
  padding-left: 22px;
  min-width: 0;
  overflow-wrap: break-word;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 900;
}

.module-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Pilot Proof Showcase */
.pilot-box {
  background: var(--petrol-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.pilot-steps {
  display: grid;
  gap: 12px;
}

.pilot-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pilot-step-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--copper);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.pilot-step strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 3px;
}

.pilot-step p {
  margin: 0;
  font-size: 13.5px;
  color: #bdd1d0;
}

/* Interactive Calculator Widget */
.calc-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.calc-inputs {
  padding: 32px;
  display: grid;
  gap: 22px;
}

.calc-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.calc-val-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--copper);
  background: var(--copper-soft);
  padding: 2px 9px;
  border-radius: 6px;
}

.calc-range {
  width: 100%;
  accent-color: var(--copper);
  height: 8px;
  cursor: pointer;
}

.calc-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}

.calc-results {
  background: var(--petrol-deep);
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.calc-hero-num {
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffca9f;
  line-height: 1.05;
  margin-block: 6px 8px;
}

.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px;
}

.calc-tile strong {
  display: block;
  font-size: 20px;
  color: #8ee8cf;
  line-height: 1.2;
}

.calc-tile span {
  display: block;
  font-size: 12px;
  color: #bdd1d0;
  margin-top: 4px;
}

/* Tool Tabs & Assistant Output (Retax / Lieferengpass Generator) */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tool-tab {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.tool-tab[aria-selected="true"] {
  background: var(--petrol);
  color: #fff;
  border-color: var(--petrol);
}

.pilot-box .check-list li,
.section-dark .check-list li {
  color: #dceae9;
}
.pilot-box .check-list strong,
.section-dark .check-list strong {
  color: #ffffff;
}
.calc-results p {
  color: #c7d9d8;
}

.gen-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.gen-grid[hidden] {
  display: none;
}

.gen-output {
  background: var(--petrol-deep);
  color: #edf5f4;
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Scenario Tabs (Homepage Offizin-Engpässe) */
.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.scenario-tabs button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.scenario-tabs button small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--copper);
  font-weight: 700;
}

.scenario-tabs button span {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.scenario-tabs button[aria-selected="true"] {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}

.scenario-tabs button[aria-selected="true"] small {
  color: #ffca9f;
}

.scenario-tabs button[aria-selected="true"] span {
  color: #fff;
}

.scenario-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.scenario-panel[hidden] {
  display: none;
}

.flow-box {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  gap: 10px;
  align-self: center;
}

.flow-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
}

.flow-step .step-idx {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--emerald-soft);
  color: var(--petrol);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.flow-step.final {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}

.flow-step.final .step-idx {
  background: var(--emerald);
  color: #fff;
}

.flow-step strong {
  display: block;
  font-size: 14px;
}

.flow-step small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* WaWi Strip */
.wawi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wawi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.18s,
    transform 0.18s;
}

.wawi-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}

.wawi-card strong {
  font-size: 16px;
  color: var(--petrol);
}

.wawi-card span {
  font-size: 13px;
  color: var(--muted);
}

/* Comparison Tables (Money Pages) */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 680px;
}

table.compare th,
table.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.compare thead th {
  background: var(--petrol);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}

table.compare thead th.highlight {
  background: var(--copper);
}

table.compare tbody tr:nth-child(even) td {
  background: #faf9f6;
}

table.compare td.highlight {
  background: var(--copper-soft) !important;
  font-weight: 600;
  color: var(--ink);
}

/* Callout / Summary Box (GEO Answer Block) */
.answer-box {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-block: 26px;
}

.answer-box > strong {
  display: block;
  color: var(--petrol);
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.answer-box p {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
}

.warn-box {
  background: var(--copper-soft);
  border: 1px solid var(--copper-border);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-block: 24px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.team-list {
  display: grid;
  gap: 14px;
}

.team-member {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--petrol);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 17px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.avatar.copper {
  background: var(--copper);
}
.avatar.emerald {
  background: var(--emerald);
}

.team-member h3 {
  font-size: 17px;
  margin-bottom: 2px;
}
.team-member p {
  font-size: 13.5px;
  margin: 0;
  color: var(--ink-soft);
}
.team-member small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 52px;
  align-items: start;
}

.faqs details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 10px;
}

.faqs summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faqs summary::-webkit-details-marker {
  display: none;
}

.faqs summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--copper);
  flex-shrink: 0;
}

.faqs details[open] summary::after {
  content: "−";
}

.faqs details p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* Contact / Lead Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.form-field small {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 400;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--petrol);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 18px;
  cursor: pointer;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--petrol);
  flex-shrink: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status {
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 600;
}
#form-status[data-state="error"] {
  color: var(--danger);
}
#form-status[data-state="success"] {
  color: var(--emerald);
}

/* Footer */
.site-footer {
  background: var(--petrol-deep);
  color: #c2d4d3;
  padding-block: 56px 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #c2d4d3;
}

.footer-links a:hover {
  color: #ffca9f;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #93adad;
}

/* Prose Articles (Money Pages & Report) */
.prose h2 {
  margin-top: 44px;
}
.prose h3 {
  margin-top: 28px;
}
.prose ul,
.prose ol {
  padding-left: 20px;
  color: var(--ink-soft);
}
.prose li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .pilot-box,
  .calc-shell,
  .gen-grid,
  .scenario-panel,
  .team-grid,
  .contact-grid,
  .faq-grid,
  .infographic-grid {
    grid-template-columns: 1fr;
  }
  .kpi-strip,
  .grid-3,
  .grid-4,
  .wawi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 780px) {
  .wrap,
  .wrap-narrow {
    width: calc(100% - 32px);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .section {
    padding-block: 54px;
  }
  .hero {
    padding-block: 36px 46px;
  }
  .kpi-strip,
  .grid-2,
  .grid-3,
  .grid-4,
  .wawi-strip,
  .scenario-tabs,
  .field-grid,
  .calc-breakdown,
  .split-metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pilot-box,
  .calc-inputs,
  .calc-results,
  .contact-form,
  .scenario-panel,
  .infographic,
  .hero-board,
  .card,
  .module-card {
    padding: 20px;
  }
  .agent-row {
    grid-template-columns: auto 1fr;
    padding: 12px;
  }
  .agent-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  .btn {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
  .calc-group label {
    flex-wrap: wrap;
  }
  .eyebrow-pill {
    white-space: normal;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bar-fill {
    transition: none;
  }
  .btn:hover,
  .wawi-card:hover {
    transform: none;
  }
}

img.avatar {
  object-fit: cover;
  border: 2px solid var(--line);
  background: var(--sand);
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
