/* =========================================================
   ERGO Agentur an der Zeche Ludwig – gemeinsames Stylesheet
   Modernes Design-System · zahnschutzberater.de
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

:root {
  /* Markenfarben */
  --rot: #bf1528;
  --rot-dunkel: #8e0038;
  --beige: #ebe6d8;
  --gold: #f6cb00;
  --eisblau: #0f94a7;
  --gruen: #2d8a4e;
  --text: #1a2b30;
  --text-grau: #5a6b6f;

  /* Abgeleitete Töne */
  --eisblau-dunkel: #0b6d7c;
  --card-border: #e7e2d4;
  --beige-soft: #f6f4ee;
  --gruen-soft: #eaf6ee;
  --gruen-border: #bfe3cb;

  /* System */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(26, 43, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 43, 48, 0.09);
  --shadow-lg: 0 20px 45px rgba(15, 148, 167, 0.18);
  --font-head: "Poppins", "Manrope", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

img {
  max-width: 100%;
}

a {
  color: var(--eisblau);
}

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Sticky Top-Bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 43, 48, 0.96);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-family: var(--font-head);
}

.topbar .brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.topbar a.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.topbar a.phone:hover {
  background: rgba(255, 255, 255, 0.22);
}

.topbar svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(246, 203, 0, 0.28), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(191, 21, 40, 0.3), transparent 46%),
    linear-gradient(135deg, var(--eisblau), var(--eisblau-dunkel) 65%, #093f4a);
  color: #fff;
  padding: 3.25rem 0 3rem;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-agency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 0.9rem;
}

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

.hero p {
  font-size: 1.05rem;
  margin: 0 auto 1.75rem;
  max-width: 500px;
  color: #eafcff;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  padding: 1rem;
  text-align: center;
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--beige-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.trust-bar svg {
  width: 16px;
  height: 16px;
  color: var(--eisblau);
  flex-shrink: 0;
}

.trust-bar .star-icon {
  color: var(--gold);
}

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eisblau);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  color: var(--text);
}

section {
  margin: 2.75rem 0;
}

section.section-shaded {
  background: var(--beige-soft);
  margin: 2.75rem -1.25rem;
  padding: 2rem 1.25rem;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- Pain point comparison (Balken-Vergleich) ---------- */
.compare-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}

.compare-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-grau);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--card-border);
}

.compare-meta strong {
  color: var(--text);
  font-weight: 700;
}

.bar-row {
  margin-bottom: 1.4rem;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.bar-label span:first-child {
  min-width: 0;
}

.bar-label .bar-value {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.bar-label.bad .bar-value {
  color: var(--rot);
}

.bar-label.good .bar-value {
  color: var(--gruen);
}

.bar-track {
  background: var(--beige-soft);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

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

.bar-fill.bad {
  background: linear-gradient(90deg, var(--rot), var(--rot-dunkel));
}

.bar-fill.good {
  background: linear-gradient(90deg, var(--gruen), #1f6b3a);
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: linear-gradient(135deg, var(--eisblau), var(--eisblau-dunkel));
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(15, 148, 167, 0.35);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.42rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Auszeichnungen / Badges ---------- */
.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  flex: 1 1 200px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.badge .badge-score {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold);
}

.badge .badge-score.testnote {
  color: var(--gruen);
}

.badge p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--text-grau);
}

/* ---------- Aktions-Banner ---------- */
.banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gold), #ffe680);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  text-align: center;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 1.05rem;
  box-shadow: 0 14px 30px rgba(246, 203, 0, 0.35);
}

.banner span {
  display: block;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-size: 1.03rem;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(120deg, var(--rot), var(--rot-dunkel));
  color: #fff;
  box-shadow: 0 12px 26px rgba(191, 21, 40, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(191, 21, 40, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--eisblau);
  border-color: var(--eisblau);
}

.btn-secondary:hover {
  background: rgba(15, 148, 167, 0.08);
  transform: translateY(-2px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

/* ---------- Preisboxen ---------- */
.price-box {
  position: relative;
  background: var(--gruen-soft);
  border: 1px solid var(--gruen-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.price-box .price {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gruen);
}

.price-box .price small {
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-grau);
}

.price-box .price-sub {
  margin-top: 0.5rem;
  color: var(--text-grau);
  font-size: 0.95rem;
}

.result-line {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gruen-border);
  font-size: 0.95rem;
}

.result-line:last-of-type {
  border-bottom: none;
}

.result-line .amount {
  color: var(--gruen);
  font-weight: 800;
  font-family: var(--font-head);
}

/* ---------- Formular (check.html / rechner.html / beratung.html) ---------- */
.question {
  margin-bottom: 1.6rem;
}

.question label.q-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.7rem;
  font-family: var(--font-head);
}

.options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.option-btn {
  flex: 1 1 140px;
}

.option-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-btn label {
  display: block;
  padding: 1rem 1rem;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.option-btn label:hover {
  transform: translateY(-2px);
}

.option-btn input:checked + label {
  border-color: var(--eisblau);
  background: rgba(15, 148, 167, 0.1);
  color: var(--eisblau);
  box-shadow: var(--shadow-sm);
}

.hidden {
  display: none !important;
}

form .field {
  margin-bottom: 1.15rem;
}

form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--beige-soft);
  color: var(--text);
}

form input:focus {
  outline: 2px solid var(--eisblau);
  outline-offset: 1px;
  background: #fff;
}

/* ---------- Geburtsdatum-Auswahl (Tag / Monat / Jahr) ---------- */
.date-select-row {
  display: flex;
  gap: 0.6rem;
}

.date-select-row select {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 2rem 0.8rem 0.9rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  background: var(--beige-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b6f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 0.65rem center;
  background-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.date-select-row select:invalid {
  color: var(--text-grau);
  font-weight: 500;
}

.date-select-row select:focus {
  outline: 2px solid var(--eisblau);
  outline-offset: 1px;
  background-color: #fff;
}

.date-select-row.error select {
  border-color: var(--rot);
}

/* ---------- Ergebnis-Preis (Rechner) ---------- */
.price-eyebrow {
  font-size: 0.88rem;
  color: var(--text-grau);
  margin-bottom: 0.75rem;
}

.price-badge {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold), #ffe680);
  color: var(--text);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.price-after {
  font-size: 0.95rem;
  color: var(--text-grau);
  margin-top: 0.6rem;
}

.price-after strong {
  color: var(--text);
  font-weight: 700;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.checkbox-field input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--eisblau);
}

.checkbox-field label {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-grau);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: 0.2s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.switch input:checked + .slider {
  background: var(--eisblau);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

/* ---------- Info / Danke boxen ---------- */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #eafaff;
  border: 1px solid #bfe6ee;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
  font-size: 0.95rem;
}

.info-box svg {
  width: 20px;
  height: 20px;
  color: var(--eisblau);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.thanks-box {
  background: var(--gruen-soft);
  border: 1px solid var(--gruen-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.thanks-box .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--gruen);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-box .icon svg {
  width: 28px;
  height: 28px;
}

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-grau);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--eisblau);
}

/* ---------- Disclaimer / Footer ---------- */
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-grau);
  border-top: 1px solid var(--card-border);
  margin-top: 2.5rem;
  padding: 1.5rem 0 2.5rem;
  line-height: 1.6;
}

footer {
  background: var(--text);
  color: #b9c6c8;
  padding: 2rem 0;
  font-size: 0.85rem;
  text-align: center;
}

footer a {
  color: #fff;
}

footer .footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ---------- Page header (Unterseiten ohne Hero) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--eisblau), var(--eisblau-dunkel));
  color: #fff;
  padding: 2.25rem 0 2rem;
  text-align: center;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.3;
  pointer-events: none;
}

.page-header .wrap {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  font-weight: 800;
}

.page-header p {
  margin: 0;
  color: #eafcff;
  font-size: 0.95rem;
}

/* Kompakter Hero-CTA (kleiner als Standard-Button) */
.btn-hero {
  padding: 0.72rem 1.3rem;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .btn-stack {
    flex-direction: row;
  }
}

/* Auf schmalen Handys den Hero kompakter halten, damit der Kosten-Vergleich
   ("Schmerzpunkt") früher ins Bild kommt. */
@media (max-width: 479px) {
  .hero {
    padding: 1.75rem 0 1.9rem;
  }

  .hero-agency {
    margin-bottom: 0.85rem;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: 0.7rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  /* Trust-Bar kompakter, damit sie nicht so hoch umbricht. */
  .trust-bar {
    padding: 0.6rem 0.75rem;
    gap: 0.4rem 0.5rem;
  }

  .trust-bar span {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  /* Ersten Inhaltsblock (Kosten-Vergleich) näher heranrücken. */
  main > section:first-of-type {
    margin-top: 1.5rem;
  }

  .compare-card {
    padding: 1.15rem;
  }

  .compare-meta {
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
  }
}
