/* bimmer.bern: Design wie Instagram Profil und Beitraege */
/* Schriften lokal gehostet (SIL Open Font License, siehe LICENSE Dateien) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin-var.woff2") format("woff2-variations"), url("inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg-1: #16213A;
  --bg-2: #0B1020;
  --bg-3: #05070D;
  --blue: #4C8DFF;
  --blue-deep: #1F5FE0;
  --text: #FFFFFF;
  --muted: #A9B4CC;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.065);
  --line: rgba(76, 141, 255, 0.25);
  --line-strong: rgba(76, 141, 255, 0.6);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Radialer Verlauf wie im Instagram Hintergrund, fix hinter allem */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 90% at 50% 18%, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
}

/* Feines technisches Raster */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(76, 141, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 141, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 20%, #000 0%, transparent 75%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typografie ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.headline {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.headline .blue,
.blue { color: var(--blue); }
.headline span { display: block; }

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 34em;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 10px 30px rgba(31, 95, 224, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(31, 95, 224, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  color: var(--text);
  background: var(--card);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-strong); background: var(--card-hover); }
.btn-small { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(76, 141, 255, 0.12);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 34px; height: auto; }
.brand-name {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* ---------- Abschnitte ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero .headline { font-size: clamp(52px, 10vw, 124px); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}
.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(47, 123, 255, 0.35);
  background: radial-gradient(circle at 50% 42%, rgba(76, 141, 255, 0.18) 0%, transparent 62%);
}
.hero-logo img {
  width: 52%;
  filter: drop-shadow(0 0 28px rgba(76, 141, 255, 0.55));
}
.hero-logo .ring-label {
  position: absolute;
  bottom: 14%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.35em;
  color: var(--blue);
  padding-left: 0.35em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(48px, 7vw, 80px);
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.facts .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(76, 141, 255, 0.12);
  color: var(--blue);
}
.facts .icon svg { width: 20px; height: 20px; }

/* ---------- Top 5 ---------- */
.top5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top5 li { grid-column: span 2; display: flex; flex-direction: column; }
.top5 li:nth-child(4), .top5 li:nth-child(5) { grid-column: span 3; }
.top5 .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}
.top5 h3 {
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.top5 p { color: var(--muted); margin: 0; }
.top5 li:first-child {
  background: linear-gradient(160deg, rgba(76, 141, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 60%);
  border-color: var(--line-strong);
}

/* ---------- Und noch viel mehr ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}
.chips li.more {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-color: transparent;
  font-weight: 800;
}
.note {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li { position: relative; }
.steps .num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 0 24px rgba(76, 141, 255, 0.45);
  margin-bottom: 28px;
}
.steps h3 {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}

/* ---------- Preise ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.prices li {
  position: relative;
  display: flex;
  flex-direction: column;
}
.prices h3 {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.prices p { color: var(--muted); margin: 0 0 28px; flex: 1; }
.prices .price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prices li.featured {
  background: linear-gradient(160deg, rgba(76, 141, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 70%);
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px rgba(31, 95, 224, 0.25);
}
.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.price-cta { margin-top: 32px; }
.price-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.price-info li {
  color: var(--muted);
  font-size: 15px;
  padding-left: 22px;
  position: relative;
}
.price-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); background: var(--card-hover); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-weight: 800;
  font-size: 19px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--blue);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 26px 22px; margin: 0; }

/* ---------- Abschluss CTA ---------- */
.cta {
  text-align: center;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(76, 141, 255, 0.22) 0%, transparent 70%),
    var(--card);
  border-color: var(--line-strong);
}
.cta .headline { font-size: clamp(44px, 8vw, 96px); }
.cta .lead { margin: 0 auto 32px; }
.cta .handle {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(76, 141, 255, 0.12);
  color: var(--muted);
  font-size: 14px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer small { display: block; font-size: 13px; }

/* ---------- Bedingungen ---------- */
.terms { max-width: 860px; }
.terms ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.terms li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 16px;
}
.terms .num {
  grid-row: span 2;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  padding-top: 3px;
}
.terms h2 {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}
.terms li p { color: var(--muted); margin: 0; }
.consent {
  margin-top: 32px;
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(76, 141, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 70%);
}
.consent blockquote {
  margin: 12px 0 24px;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
}
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 28px;
}
.back:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 0; row-gap: 4px; }
  .nav nav { order: 3; width: 100%; min-width: 0; }
  .nav-links {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0 12px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 14px; }
  html { scroll-padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { max-width: 300px; width: 70%; margin: 0 auto; order: -1; }
  .top5 { grid-template-columns: 1fr 1fr; }
  .top5 li, .top5 li:nth-child(4), .top5 li:nth-child(5) { grid-column: span 1; }
  .top5 li:first-child { grid-column: span 2; }
  .steps, .prices { grid-template-columns: 1fr 1fr; }
  .facts, .price-info { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { font-size: 16px; }
  .hero-logo { width: 62%; }
  .hero-actions .btn { width: 100%; }
  .top5, .steps, .prices { grid-template-columns: 1fr; }
  .top5 li:first-child { grid-column: span 1; }
  .top5 .num { margin-bottom: 24px; }
  .steps .num { margin-bottom: 18px; }
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq details p { padding: 0 20px 18px; }
  .terms li { grid-template-columns: 1fr; }
  .terms .num { grid-row: auto; }
  .chips li { font-size: 15px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.headline.headline-page { font-size: clamp(36px, 8.5vw, 96px); }

/* Hero Headline zweizeilig wie auf Instagram */
.hero h1.headline:not(.headline-page) { font-size: clamp(52px, 7.6vw, 104px); }
.hero h1.headline:not(.headline-page) > span { white-space: nowrap; }
.hero-logo img { height: auto; }
.back { display: flex; width: fit-content; }
@media (max-width: 980px) {
  .hero h1.headline:not(.headline-page) { font-size: min(12vw, 104px); }
}
@media (max-width: 600px) {
  .hero h1.headline:not(.headline-page) { font-size: 13.6vw; }
  .hero-logo { width: 200px; }
}
.headline span span { display: inline; }
@media (max-width: 600px) {
  .hero-logo img { width: 42%; margin-top: -12%; }
  .hero-logo .ring-label { bottom: 12%; font-size: 11px; }
}

/* Erste Sektion auf Unterseiten */
.page-top { padding-top: clamp(40px, 7vw, 88px); }
.more-link { margin-top: 24px; }
.error-page { text-align: center; min-height: 50vh; display: grid; place-items: center; }
.error-page .lead { margin: 0 auto 32px; }
