/* ==========================================================================
   Tarifwechselfuchs — Design System
   Palette sampled directly from the logo set.
   ========================================================================== */

:root {
  /* Brand — copper (from logo) */
  --copper-light: #d9a06a;
  --copper: #b9743a;
  --copper-dark: #8c4e20;
  --copper-tint: #f7ecdf;
  --copper-tint-strong: #f0dcc5;

  /* Brand — ink (from logo) */
  --ink: #23282d;
  --ink-soft: #39424b;
  --slate: #5a6570;
  --slate-light: #8a949e;

  /* Surfaces */
  --cream: #fbf8f4;
  --cream-alt: #f4eee6;
  --white: #ffffff;

  /* Semantic */
  --success: #2f7d5b;
  --success-tint: #e6f2ec;
  --alert: #b4402f;
  --alert-tint: #fbecea;

  /* Lines & shadows */
  --line: rgba(35, 40, 45, 0.1);
  --line-strong: rgba(35, 40, 45, 0.18);
  --shadow-sm: 0 1px 2px rgba(35, 40, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(35, 40, 45, 0.08);
  --shadow-lg: 0 16px 48px rgba(35, 40, 45, 0.12);
  --shadow-copper: 0 8px 28px rgba(185, 116, 58, 0.28);

  /* Typography */
  --font-display: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1140px;
  --container-narrow: 760px;
  --nav-height: 76px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper-dark);
  text-decoration-color: rgba(185, 116, 58, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Typography ──────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  font-weight: 300;
}

/* Mirrors the logo lockup: light wordmark, bold accent syllable. */
h1 strong,
.display-accent {
  font-weight: 900;
  color: var(--copper-dark);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 300;
}

h2 strong {
  font-weight: 900;
  color: var(--copper-dark);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--slate);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-dark);
  background: var(--copper-tint);
  border: 1px solid var(--copper-tint-strong);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

.eyebrow--onDark {
  color: var(--copper-light);
  background: rgba(217, 160, 106, 0.12);
  border-color: rgba(217, 160, 106, 0.3);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ── Layout primitives ───────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(56px, 7vw, 104px);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 68px);
}

.section--alt {
  background: var(--cream-alt);
}

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--ink h2 strong {
  color: var(--copper-light);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Main column + narrower aside; collapses below the tablet breakpoint. */
.grid--sidebar {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

/* Checklist rows that pair a .check bullet with text. */
.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.checklist .check {
  margin-top: 3px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 17px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-copper);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(185, 116, 58, 0.38);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--copper);
  color: var(--copper-dark);
}

.btn--onDark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--copper-light);
  color: var(--white);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

.btn .arrow {
  transition: transform 0.16s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Header / Navigation ─────────────────────────────────────────────── */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar a:hover {
  color: var(--copper-light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* Excludes .btn so the CTA keeps its own colours — a bare `.nav a`
   selector outranks the single-class button rules. */
.nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:not(.btn):hover {
  color: var(--copper-dark);
  background: var(--copper-tint);
}

/* The CTA keeps its button styling even when it marks the current page. */
.nav a[aria-current='page']:not(.btn) {
  color: var(--copper-dark);
  box-shadow: inset 0 -2px 0 var(--copper);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px);
  background: radial-gradient(
      ellipse 70% 90% at 88% 8%,
      var(--copper-tint) 0%,
      transparent 62%
    ),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-block: 20px 20px;
}

.hero .lead {
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-trust li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
}

.check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
}

/* Decorative fox watermark behind the hero visual. */
.hero-figure {
  position: relative;
}

.hero-figure::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  background: url('../img/tarifwechselfuchs-signet.png') no-repeat center / contain;
  opacity: 0.06;
  transform: rotate(-6deg);
  pointer-events: none;
}

/* ── Cards ───────────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--copper-tint-strong);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--slate);
  font-size: 0.98rem;
}

.card--onDark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.card--onDark p {
  color: rgba(255, 255, 255, 0.66);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--copper-tint);
  color: var(--copper-dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card--onDark .card-icon {
  background: rgba(217, 160, 106, 0.14);
  color: var(--copper-light);
}

.card-metric {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--copper-dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.card-metric--alert {
  color: var(--alert);
}

.card-metric-label {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-top: 4px;
}

/* ── Stat band ───────────────────────────────────────────────────────── */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: var(--white);
  padding: 30px 24px;
  text-align: center;
}

.section--ink .stat-band {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--ink .stat {
  background: var(--ink);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 900;
  color: var(--copper-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.section--ink .stat-value {
  color: var(--copper-light);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 6px;
}

.section--ink .stat-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Steps ───────────────────────────────────────────────────────────── */

.steps {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 56px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--copper) 0%,
    var(--copper-tint-strong) 100%
  );
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding-block: 20px;
}

.step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(185, 116, 58, 0.3);
}

.step-body h3 {
  margin-bottom: 8px;
}

.step-body p {
  color: var(--slate);
}

.step-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-dark);
  background: var(--copper-tint);
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

/* ── Calculator ──────────────────────────────────────────────────────── */

.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.calc-inputs {
  background: var(--white);
  padding: clamp(28px, 3.5vw, 44px);
}

.calc-result {
  background: linear-gradient(160deg, var(--ink) 0%, #171b1f 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.field {
  margin-bottom: 26px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 10px;
}

.field-head label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.field-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--copper-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: auto;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin-top: 8px;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--copper-tint-strong);
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--copper);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(185, 116, 58, 0.45);
  cursor: grab;
}

input[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--copper);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(185, 116, 58, 0.45);
  cursor: grab;
  border-radius: 50%;
}

.segmented {
  display: flex;
  gap: 6px;
  background: var(--cream-alt);
  padding: 5px;
  border-radius: var(--radius);
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  flex: 1;
  text-align: center;
  padding: 11px 8px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.segmented input:checked + label {
  background: var(--white);
  color: var(--copper-dark);
  box-shadow: var(--shadow-sm);
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.result-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.result-big {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 3.5vw, 4.2rem);
  font-weight: 900;
  color: var(--copper-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.result-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 28px;
}

.result-rows {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 28px;
}

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.result-row span:last-child {
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.result-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
  line-height: 1.55;
}

/* ── Testimonials ────────────────────────────────────────────────────── */

.stars {
  color: var(--copper);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.quote {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}

.quote::before {
  content: '„';
}

.quote::after {
  content: '“';
}

.author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
}

.author-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.author-meta {
  font-size: 0.83rem;
  color: var(--slate-light);
}

.author-saving {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--success);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-q:hover {
  color: var(--copper-dark);
}

.faq-q .chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--copper);
  transition: transform 0.25s ease;
}

.faq-q[aria-expanded='true'] .chevron {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-a[data-open='true'] {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--slate);
  font-size: 0.98rem;
}

/* ── Forms ───────────────────────────────────────────────────────────── */

.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group .req {
  color: var(--copper-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(185, 116, 58, 0.14);
}

.form-group input[aria-invalid='true'],
.form-group select[aria-invalid='true'],
.form-group textarea[aria-invalid='true'] {
  border-color: var(--alert);
  background: var(--alert-tint);
}

.form-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--alert);
  min-height: 0;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--copper);
  cursor: pointer;
}

.checkbox label {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.55;
  cursor: pointer;
}

.form-note {
  font-size: 0.8rem;
  color: var(--slate-light);
  line-height: 1.6;
}

/* ── File upload ─────────────────────────────────────────────────────── */

.form-group .opt {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

/* Kept focusable and in flow rather than display:none, so the keyboard and
   screen readers still reach it through the styled label. The .form-group
   selector matches the generic input rules above, which would otherwise win. */
.form-group .upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
}

.upload__drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 20px;
  text-align: center;
  background: var(--cream);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.upload__drop:hover,
.upload__drop[data-dragging='true'] {
  border-color: var(--copper);
  background: var(--copper-tint);
}

.form-group .upload__input:focus-visible + .upload__drop {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(185, 116, 58, 0.14);
}

.upload__icon {
  width: 26px;
  height: 26px;
  color: var(--copper);
}

.upload__lead {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
}

.upload__lead strong {
  color: var(--copper-dark);
}

.upload__hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--slate-light);
  line-height: 1.5;
  max-width: 44ch;
}

.upload__list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
}

.upload__list:empty {
  display: none;
}

.upload__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.upload__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.upload__size {
  color: var(--slate-light);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.upload__remove {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.upload__remove:hover {
  color: var(--alert);
  border-color: var(--alert);
  background: var(--alert-tint);
}

/* Off-screen rather than display:none — some bots skip hidden fields. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: -4px;
}

.form-status:empty {
  display: none;
}

.form-status[data-tone='error'] {
  color: var(--alert);
  background: var(--alert-tint);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-weight: 600;
}

.form-status[data-tone='pending'] {
  color: var(--slate);
}

/* Sending state: the button reports progress, the fields stop accepting edits. */
[data-submit-button][disabled] {
  cursor: progress;
  opacity: 0.75;
  box-shadow: none;
}

[data-submit-button][disabled]:hover {
  transform: none;
}

form[data-sending='true'] .form-group input,
form[data-sending='true'] .form-group select,
form[data-sending='true'] .form-group textarea {
  pointer-events: none;
  opacity: 0.7;
}

form[data-sending='true'] [data-submit-button] .arrow {
  animation: sending-pulse 1.1s ease-in-out infinite;
}

@keyframes sending-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--shadow-md);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.form-success[data-visible='true'] {
  display: block;
}

.form-success .success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
  display: grid;
  place-items: center;
}

.form-success .success-mark svg {
  width: 36px;
  height: 36px;
}

.form-success h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--slate);
  max-width: 44ch;
  margin-inline: auto;
}

/* ── Prose (legal pages) ─────────────────────────────────────────────── */

.prose {
  max-width: 74ch;
}

.prose h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.12rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose address {
  font-style: normal;
  line-height: 1.8;
}

/* ── CTA band ────────────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, #171b1f 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 280px;
  height: 280px;
  background: url('../img/tarifwechselfuchs-signet-invertiert.png') no-repeat center /
    contain;
  opacity: 0.07;
  pointer-events: none;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta-band h2 strong {
  color: var(--copper-light);
}

.cta-band p {
  max-width: 52ch;
  margin: 0 auto 30px;
}

.cta-band .btn-row {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  padding-block: clamp(44px, 5vw, 68px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}

.site-footer img {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--copper-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ── Floating CTA ────────────────────────────────────────────────────── */

.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  box-shadow: 0 10px 34px rgba(185, 116, 58, 0.42);
}

/* ── Scroll reveal ───────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal[data-visible='true'] {
  opacity: 1;
  transform: none;
}

/* ── Utilities ───────────────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 36px;
}

.mb-3 {
  margin-bottom: 24px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero-grid,
  .calc,
  .grid--sidebar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-figure::before {
    display: none;
  }
}

@media (max-width: 780px) {
  /* The menu drops into the header's flow rather than being pinned to a
     fixed offset — the topbar wraps to two lines on narrow screens, so any
     hard-coded top value would leave a gap. */
  .site-header .container {
    flex-wrap: wrap;
    padding-block: 12px;
    min-height: 0;
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--line);
  }

  .nav[data-open='true'] {
    display: flex;
  }

  .nav a {
    padding: 14px 12px;
  }

  .nav a[aria-current='page']:not(.btn) {
    border-radius: var(--radius-sm);
    background: var(--copper-tint);
    box-shadow: none;
  }

  .nav .btn {
    margin-top: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .topbar .container {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .float-cta {
    right: 14px;
    bottom: 14px;
    padding: 13px 20px;
    font-size: 0.9rem;
  }

  .steps::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .topbar,
  .float-cta,
  .cta-band,
  .site-footer {
    display: none;
  }
}
