/**
 * Meridian Kompass — Premium Landing Styles
 * Schwerpunkt: DE-Markt Energieaudit / Energieberatung, seriöses Farbspiel, starker Rhythmus.
 */

/* --- Font Faces (Google Fonts) --- */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400&display=swap");

/* --- Design Tokens --- */
:root {
  --c-bg-deep: #12161d;
  --c-bg: #171c24;
  --c-surface: #1e2530;
  --c-surface-2: #252d3a;
  --c-border: rgba(236, 241, 247, 0.1);
  --c-text: #ecf1f7;
  --c-muted: #9aa8b8;
  --c-accent: #c9884a;
  --c-accent-soft: rgba(201, 136, 74, 0.18);
  --c-mint: #6d9e8f;
  --c-mint-soft: rgba(109, 158, 143, 0.14);
  --c-danger-soft: rgba(232, 90, 90, 0.12);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Literata", Georgia, serif;
  --text-xs: clamp(0.78rem, 0.72rem + 0.2vw, 0.85rem);
  --text-sm: clamp(0.88rem, 0.82rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.08rem);
  --text-lg: clamp(1.12rem, 1rem + 0.45vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.1rem + 0.9vw, 1.65rem);
  --text-2xl: clamp(1.65rem, 1.2rem + 1.4vw, 2.1rem);
  --text-hero: clamp(2.35rem, 1.4rem + 3.8vw, 4.1rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--c-text);
  background: radial-gradient(1200px 800px at 12% -10%, rgba(201, 136, 74, 0.09), transparent 55%),
    radial-gradient(900px 600px at 88% 0%, rgba(109, 158, 143, 0.08), transparent 50%),
    linear-gradient(180deg, var(--c-bg-deep), var(--c-bg) 38%, #141922);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c-accent);
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--c-text);
  color: var(--c-bg);
  z-index: 2000;
  border-radius: var(--radius-sm);
}

/* --- Layout shell --- */
.shell {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.shell--wide {
  width: min(1320px, 100% - 2.5rem);
  margin-inline: auto;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-bg-deep) 82%, transparent);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--c-text);
}

.brand:hover {
  color: var(--c-text);
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: conic-gradient(from 210deg, var(--c-accent), var(--c-mint), var(--c-accent));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(201, 136, 74, 0.25);
}

.brand__mark span {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(18, 22, 29, 0.85);
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: var(--text-xs);
  color: var(--c-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

/* --- Nav (desktop multi-level) --- */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-expanded="true"] {
  color: var(--c-text);
  background: rgba(236, 241, 247, 0.06);
  border-color: rgba(236, 241, 247, 0.08);
}

.nav__chev {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
}

.nav__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.65rem);
  min-width: 240px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}

.nav__item.is-open .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__panel a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--c-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.nav__panel a:hover {
  background: rgba(236, 241, 247, 0.06);
  color: var(--c-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(120deg, var(--c-accent), #d9a56a);
  color: #141922;
  box-shadow: 0 14px 40px rgba(201, 136, 74, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 18px 50px rgba(201, 136, 74, 0.45);
}

.btn--ghost {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: rgba(236, 241, 247, 0.28);
  background: rgba(236, 241, 247, 0.04);
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: rgba(236, 241, 247, 0.04);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
}

.mobile-drawer.is-open {
  pointer-events: auto;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.62);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-out);
  overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
}

.mobile-nav details {
  border-bottom: 1px solid var(--c-border);
  padding: 0.35rem 0;
}

.mobile-nav summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav details a {
  border: 0;
  padding-left: var(--space-3);
  color: var(--c-muted);
  font-weight: 500;
}

/* --- Hero --- */
.hero {
  padding: var(--space-10) 0 var(--space-8);
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-10);
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 136, 74, 0.35);
  background: var(--c-accent-soft);
  color: #f2d9b8;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: var(--space-4) 0 var(--space-4);
}

.hero__lead {
  color: var(--c-muted);
  font-size: var(--text-lg);
  max-width: 52ch;
  margin: 0 0 var(--space-6);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.stat {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(236, 241, 247, 0.05), transparent);
  border: 1px solid var(--c-border);
}

.stat strong {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  display: block;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--c-muted);
  font-size: var(--text-xs);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  min-height: 320px;
  background: var(--c-surface-2);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18, 22, 29, 0.55), transparent 55%, rgba(109, 158, 143, 0.18));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-visual__badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(18, 22, 29, 0.55);
  border: 1px solid rgba(236, 241, 247, 0.14);
  backdrop-filter: blur(10px);
  max-width: min(320px, 88%);
}

.hero-visual__badge strong {
  font-family: var(--font-head);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Sections --- */
.section {
  padding: var(--space-10) 0;
}

.section--tight {
  padding: var(--space-8) 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section__head h2 {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}

.section__head p {
  margin: 0;
  color: var(--c-muted);
  font-size: var(--text-lg);
}

.grid-3 {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-2 {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(236, 241, 247, 0.04), rgba(236, 241, 247, 0.01));
  padding: var(--space-5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.card h3 {
  font-family: var(--font-head);
  margin-top: 0;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--c-muted);
  margin-bottom: 0;
}

/* Kontextsensitivität via :has() — hebt interaktive Karten subtil an */
@supports selector(:has(*)) {
  .card:has(a:hover, button:hover, [data-cursor]:hover) {
    border-color: rgba(201, 136, 74, 0.35);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--c-mint-soft);
  color: #cfe8df;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- Urgency ribbon --- */
.ribbon {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 90, 90, 0.28);
  background: linear-gradient(90deg, rgba(232, 90, 90, 0.12), rgba(201, 136, 74, 0.1));
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .ribbon {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.ribbon h2 {
  font-family: var(--font-head);
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}

.ribbon p {
  margin: 0;
  color: var(--c-muted);
}

/* --- Steps (Value ladder) --- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
}

.step {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  display: block;
  margin-bottom: var(--space-2);
}

.step h3 {
  font-family: var(--font-head);
  margin: 0 0 var(--space-2);
}

.step p {
  margin: 0;
  color: var(--c-muted);
}

/* --- Testimonials --- */
.quote-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote {
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: var(--space-5);
  background: radial-gradient(600px 240px at 10% 0%, rgba(201, 136, 74, 0.12), transparent 55%), var(--c-surface);
}

.quote blockquote {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--c-text);
}

.quote figcaption {
  margin-top: var(--space-3);
  color: var(--c-muted);
  font-size: var(--text-sm);
}

/* --- Pricing strip --- */
.price-strip {
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(109, 158, 143, 0.12), rgba(236, 241, 247, 0.03));
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .price-strip {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.price-strip h3 {
  font-family: var(--font-head);
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}

.price-strip p {
  margin: 0;
  color: var(--c-muted);
}

.price-tag {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-tag small {
  display: block;
  font-size: var(--text-sm);
  color: var(--c-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* --- Forms --- */
.form {
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: rgba(236, 241, 247, 0.04);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: var(--text-sm);
  color: var(--c-muted);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-10);
  background: rgba(8, 10, 14, 0.35);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-grid h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0 0 var(--space-3);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-grid a {
  color: var(--c-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--c-text);
}

.footer-meta {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 720px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- Prose (legal) --- */
.prose {
  max-width: 72ch;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

.prose h1 {
  font-size: var(--text-2xl);
}

.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
}

.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
}

.prose p,
.prose li {
  color: var(--c-muted);
}

.prose a {
  color: var(--c-accent);
}

/* --- Custom Cursor --- */
#custom-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
  display: none;
}

html.is-cursor-on #custom-cursor {
  display: block;
}

/* Blend modes sorgen für lesbare Kontraste auf hellen Bildflächen */
.cursor__layer {
  position: fixed;
  top: 0;
  left: 0;
  will-change: transform;
  mix-blend-mode: exclusion;
}

.cursor__ring {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  opacity: 0.95;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), border-radius 0.35s var(--ease-out), opacity 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.cursor__dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: #fff;
  mix-blend-mode: exclusion;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

/* Zustände via data-attributes (gesetzt durch cursor.js) */
#custom-cursor[data-state="hidden"] .cursor__ring,
#custom-cursor[data-state="hidden"] .cursor__dot {
  opacity: 0;
  transform: scale(0.4);
}

#custom-cursor[data-state="link"] .cursor__ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: rgba(255, 255, 255, 0.75);
}

#custom-cursor[data-state="button"] .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 18px;
}

#custom-cursor[data-state="image"] .cursor__ring {
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 22px;
  opacity: 0.65;
}

#custom-cursor[data-state="text"] .cursor__ring {
  width: 3px;
  height: 28px;
  margin: -14px 0 0 -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  border: 0;
}

#custom-cursor[data-state="text"] .cursor__dot {
  opacity: 0;
}

/* Variante B: Gooey (optional per Klasse am html-Element) */
html.cursor-variant-b #custom-cursor .cursor__ring {
  filter: url("#goo");
}

/* Variante C: Glow */
html.cursor-variant-c .cursor__ring {
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.35);
}

html.cursor-variant-c .cursor__dot {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

/* System-Cursor ausblenden nur wenn aktiv und sinnvoll */
@media (pointer: fine) {
  html.is-cursor-on,
  html.is-cursor-on * {
    cursor: none !important;
  }

  html.is-cursor-on a:focus-visible,
  html.is-cursor-on button:focus-visible,
  html.is-cursor-on input:focus-visible,
  html.is-cursor-on select:focus-visible,
  html.is-cursor-on textarea:focus-visible {
    cursor: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-cursor-on,
  html.is-cursor-on * {
    cursor: auto !important;
  }

  #custom-cursor {
    display: none !important;
  }
}

/* --- Utilities --- */
.muted {
  color: var(--c-muted);
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.split-panels {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .split-panels {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--text-xs);
  font-family: var(--font-head);
  font-weight: 600;
}

/* --- Conversion: Countdown, Sticky CTA, Modal, Exit-Intent --- */
.countdown-inline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #f2d9b8;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 136, 74, 0.35);
  background: var(--c-accent-soft);
}

body.has-sticky-cta {
  padding-bottom: 5.5rem;
}

.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9600;
  padding: 0.65rem 0;
  background: color-mix(in srgb, var(--c-bg-deep) 94%, transparent);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.sticky-cta-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 0.35rem 0.65rem;
  min-width: auto;
}

.modal__title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  margin: 0 2.5rem var(--space-3) 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.funding-wizard label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--space-3);
  font-family: var(--font-head);
  font-size: 0.88rem;
}

.funding-wizard input,
.funding-wizard select {
  font-family: var(--font-body);
}

.funding-step {
  display: none;
}

.funding-step.is-active {
  display: block;
}

.funding-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.funding-consent {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-size: var(--text-sm) !important;
  align-items: start;
  grid-template-columns: auto 1fr;
}

.funding-consent input {
  width: auto;
  margin-top: 0.2rem;
}

.exit-intent {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.55);
}

.exit-intent__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
}

.exit-intent__dialog h2 {
  font-family: var(--font-head);
  margin-top: 0;
}

.exit-intent__dialog .btn {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.snippet-answer {
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--c-accent);
  background: rgba(201, 136, 74, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-3) 0;
  font-weight: 600;
}
