/* ==========================================================================
   Schaltplan.eu – Onepager Styles
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-text: #16202a;
  --color-text-muted: #55636f;
  --color-border: #e3e8ee;
  --color-primary: #2457ff;
  --color-primary-dark: #1a3fcc;
  --color-primary-contrast: #ffffff;
  --color-accent: #00c48c;
  --color-card-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 48px rgba(16, 24, 40, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container-width: 1160px;
  --header-height: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0d1117;
    --color-bg-alt: #131a24;
    --color-text: #e7edf5;
    --color-text-muted: #9aa8b8;
    --color-border: #22303f;
    --color-primary: #4d7dff;
    --color-primary-dark: #7099ff;
    --color-primary-contrast: #ffffff;
    --color-accent: #21e0a6;
    --color-card-bg: #161f2c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------- Header --------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  gap: 4px;
}

.brand-mark {
  height: 34px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn):focus-visible {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--color-text);
}

/* ---------------------------------- Buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--color-bg-alt);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.02rem;
}

/* ---------------------------------- Hero -------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 55%),
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 50%);
}

/* Animated circuit-board background: static trace lines + traveling signal dots + a scanning beam sweep */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg .trace {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.16;
}

.hero-bg .via circle {
  fill: var(--color-primary);
  opacity: 0.22;
}

.hero-bg .signal-dot {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 5px var(--color-accent));
  opacity: 0;
}

.scan-beam {
  position: absolute;
  top: -15%;
  bottom: -15%;
  width: 22%;
  background: linear-gradient(
    100deg,
    transparent,
    color-mix(in srgb, var(--color-accent) 20%, transparent) 45%,
    color-mix(in srgb, var(--color-primary) 24%, transparent) 55%,
    transparent
  );
  transform: translateX(-160%) skewX(-12deg);
  animation: hero-sweep 8s ease-in-out infinite;
}

@keyframes hero-sweep {
  0%, 12% {
    transform: translateX(-160%) skewX(-12deg);
  }
  55%, 100% {
    transform: translateX(480%) skewX(-12deg);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    var(--color-bg) 0%,
    color-mix(in srgb, var(--color-bg) 78%, transparent) 30%,
    color-mix(in srgb, var(--color-bg) 15%, transparent) 58%,
    transparent 78%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .signal-dot {
    display: none;
  }

  .scan-beam {
    animation: none;
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-bg,
  .scan-beam {
    display: none;
  }

  .hero-scrim {
    background: none;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.hero-visual .browser-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-visual .browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}

/* ---------------------------------- Logos strip ------------------------- */

.logo-strip {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.logo-strip p {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.logo-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  opacity: 0.8;
}

/* ---------------------------------- Section shell ----------------------- */

section {
  padding: 96px 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------------------------------- Features ----------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

/* ---------------------------------- Workflow / how it works -------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------------------------------- Pricing ------------------------------ */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -24px auto 48px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.pricing-toggle .switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: var(--color-border);
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.pricing-toggle .switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.pricing-toggle .switch[aria-pressed="true"] {
  background: var(--color-primary);
}

.pricing-toggle .switch[aria-pressed="true"]::after {
  transform: translateX(20px);
}

.pricing-toggle .save-badge {
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  color: var(--color-accent);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(1.02);
}

.price-card.featured::before {
  content: "Beliebteste Wahl";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.price-card .plan-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
  min-height: 40px;
}

.price-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 4px;
}

.price-value .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-value .period {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.price-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0 0 26px;
}

.price-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}

.price-features svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-footnote {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 36px;
}

.pricing-footnote a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

/* ---------------------------------- FAQ ----------------------------------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-answer {
  padding: 0 24px 22px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------------------------------- Contact form ---------------------------- */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.required-mark {
  color: var(--color-primary);
}

.optional-mark {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: #e5484d;
}

/* Honeypot: nur für Bots sichtbar/erreichbar, für Menschen und Screenreader ausgeblendet */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 4px 0 20px;
}

.form-note a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 1.2em;
}

.form-status-success {
  color: var(--color-accent);
}

.form-status-error {
  color: #e5484d;
}

@media (max-width: 640px) {
  .contact-form {
    padding: 24px;
  }

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

/* ---------------------------------- Final CTA ------------------------------ */

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.cta-banner p {
  margin: 0 0 30px;
  color: color-mix(in srgb, #fff 82%, transparent);
  font-size: 1.05rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-banner .btn-primary:hover {
  background: color-mix(in srgb, #fff 90%, var(--color-primary));
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .btn-ghost {
  border-color: color-mix(in srgb, #fff 40%, transparent);
  color: #fff;
}

.cta-banner .btn-ghost:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
}

/* ---------------------------------- Footer --------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
  background: var(--color-bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 32ch;
  margin: 14px 0 0;
}

.footer-col h4 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom .legal-links a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.footer-bottom .legal-links a:hover {
  color: var(--color-text);
}

.todo-banner {
  background: #fff3cd;
  color: #664d03;
  border-bottom: 1px solid #ffe69c;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}

.todo-banner strong {
  font-weight: 700;
}

/* ---------------------------------- Announcement bar ------------------------ */

.announce-bar {
  background: linear-gradient(100deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

.announce-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 44px 10px 24px;
  position: relative;
  min-height: 20px;
}

.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.announce-link:hover,
.announce-link:focus-visible {
  text-decoration: underline;
}

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

.announce-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  opacity: 0.75;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: var(--radius-sm);
}

.announce-close:hover,
.announce-close:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, #fff 15%, transparent);
}

.announce-close svg {
  width: 14px;
  height: 14px;
  display: block;
}

@media (max-width: 560px) {
  .announce-link {
    font-size: 0.8rem;
  }
}

/* ---------------------------------- Legal pages ----------------------------- */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-placeholder {
  background: color-mix(in srgb, #ffb020 14%, transparent);
  border: 1px dashed #ffb020;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  color: var(--color-text);
  font-style: normal;
  font-weight: 600;
}

.legal-page ol {
  padding-left: 22px;
}

.legal-page ul ul {
  margin-top: 6px;
}

.legal-toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.legal-toc h2 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.legal-toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

.legal-toc a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-summary {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 12px 0 16px;
}

.legal-summary dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 0.94rem;
}

.legal-summary dt {
  font-weight: 600;
  color: var(--color-text);
}

.legal-summary dd {
  margin: 0;
  color: var(--color-text-muted);
}

.legal-tldr {
  font-style: italic;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-summary dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal-summary dd {
    margin-bottom: 8px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* ---------------------------------- Responsive ------------------------------- */

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .price-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*
 * Der Desktop-Nav (Links + Anmelden/Registrieren-Buttons) braucht mehr Platz, als bei 720px
 * übrig bleibt – ohne dieses Hamburger-Menü würde die Navigation zwischen ~721–900px
 * horizontal überlaufen. Deshalb eigener, breiterer Breakpoint nur für die Navigation.
 */
@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 6px;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  section {
    padding: 64px 0;
  }

  .cta-banner {
    padding: 48px 28px;
  }

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