/* =============================================================
   base.css — Grundgeruest: Reset, Nav, Sektionen, Buttons,
   Formularfelder, Reveal-System, Footer.
   Portiert aus dem freigegebenen Vertriebsteam-Bundle.
   ============================================================= */

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

/* hidden muss jede display-Regel schlagen (.err, .brief__step, …) */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--shx-white);
  color: var(--shx-black);
  font-family: var(--shx-font-sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

::selection { background: var(--shx-sky-200); color: var(--shx-ink); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--wide { max-width: 1400px; }
.wrap--narrow { max-width: 860px; }

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

/* =============================================================
   Sektionen + Lichtrhythmus
   ============================================================= */
.section { position: relative; padding: clamp(64px, 8vw, 120px) 0; }
.section--tight { padding: clamp(38px, 4vw, 58px) 0; }
.section--warm { background: var(--shx-bg-warm); }
.section--dark { background: var(--shx-near-black); color: var(--shx-white); }
.section--line { border-top: 1px solid rgba(0, 0, 0, 0.07); }

/* Punkt-Textur + Sky-Halo als Tiefenschichten */
.dot-floor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.5;
}
.section--dark .dot-floor {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  opacity: 0.42;
}
.halo {
  position: absolute; z-index: 0; left: 50%; top: -30%;
  width: min(1180px, 148vw); height: min(1180px, 148vw);
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(23, 150, 201, 0.15), rgba(144, 207, 232, 0.06) 42%, transparent 66%);
  pointer-events: none;
  animation: halo-breathe 9s var(--shx-ease-in-out) infinite;
}
@keyframes halo-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.85; }
  50%      { transform: translateX(-50%) scale(1.12); opacity: 1; }
}
.section > .wrap { position: relative; z-index: 1; }

/* =============================================================
   Typografie
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 17px 8px 13px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--shx-grey-700);
  box-shadow: 0 2px 10px rgba(12, 133, 180, 0.07);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--shx-sky-500);
  box-shadow: 0 0 0 3px rgba(23, 150, 201, 0.16);
}
.section--dark .eyebrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

.h1 {
  font-family: var(--shx-font-serif);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #141414;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--shx-font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #171717;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--shx-font-sans);
  font-weight: 600;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin: 0;
}
.section--dark .h1, .section--dark .h2 { color: var(--shx-white); }

/* Kursiver Serif-Akzent — die SHX-Signatur */
.ital {
  font-style: italic;
  font-weight: 300;
  color: var(--shx-grey-500);
}
.ital--sky {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--shx-sky-600) 0%, var(--shx-sky-400) 28%, var(--shx-sky-200) 50%, var(--shx-sky-400) 72%, var(--shx-sky-600) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5.5s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

.lede {
  font-size: clamp(16.5px, 1.4vw, 21px);
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.66);
  margin: 0;
  text-wrap: pretty;
}
.section--dark .lede { color: rgba(255, 255, 255, 0.66); }

/* Serif-Kapitelnummer 001 … */
.numeral {
  font-family: var(--shx-font-serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.02em;
  color: var(--shx-sky-600);
  font-variant-numeric: tabular-nums;
}

/* =============================================================
   CTA — 3D-Pill mit Sky-Glow (aus dem VTB freigegeben)
   ============================================================= */
.cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid #000;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 22px 46px;
  min-height: 68px;
  font-family: var(--shx-font-sans);
  background: linear-gradient(180deg, #363636 0%, #141414 52%, #000 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -3px 9px rgba(0, 0, 0, 0.55),
    0 3px 7px rgba(0, 0, 0, 0.30),
    0 16px 34px -10px rgba(23, 150, 201, 0.45);
  transition: box-shadow 0.3s var(--shx-ease-out), transform 0.13s var(--shx-ease-out);
  -webkit-tap-highlight-color: transparent;
}
.cta__layer {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  white-space: nowrap; pointer-events: none;
  transition: transform 0.44s var(--shx-ease-out), opacity 0.4s var(--shx-ease-out);
}
.cta__layer--in { position: absolute; inset: 0; justify-content: center; transform: translateX(28px); opacity: 0; }
.cta__logo { width: auto; height: 19px; display: block; flex: none; }
.cta:active { transform: translateY(2px); box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.6), 0 3px 9px -3px rgba(23, 150, 201, 0.42); }
.cta[disabled], .cta.is-busy { cursor: default; }
.cta--wide { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -3px 9px rgba(0, 0, 0, 0.55),
      0 7px 14px rgba(0, 0, 0, 0.30),
      0 24px 50px -8px rgba(23, 150, 201, 0.58);
  }
  .cta:not(.is-busy):hover .cta__layer--base { transform: translateX(-28px); opacity: 0; }
  .cta:not(.is-busy):hover .cta__layer--in { transform: translateX(0); opacity: 1; }
  .cta:active { transform: translateY(1px); }
}
.section--dark .cta {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  color: #0a0a0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 40px -12px rgba(23, 150, 201, 0.5);
}

/* Sekundaerer, kleiner Button (Nav) */
.btn-sm {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 13px 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.025em;
  color: #111; text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s var(--shx-ease-out);
}
.btn-sm__pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, #363636, #000);
  color: #fff; font-size: 13px; font-weight: 500;
}
@media (hover: hover) {
  .btn-sm:hover { border-color: rgba(0, 0, 0, 0.28); box-shadow: 0 6px 18px -8px rgba(12, 133, 180, 0.5); transform: translateY(-1px); }
}

/* =============================================================
   Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav__row {
  max-width: 1400px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__brand { display: flex; align-items: center; text-decoration: none; }
.nav__brand img { width: 138px; height: auto; display: block; }
.nav__links { display: none; gap: 30px; }
.nav__links a {
  font-size: 15px; font-weight: 500; letter-spacing: -0.025em;
  color: var(--shx-grey-600); text-decoration: none;
  transition: color 0.18s;
}
.nav__links a:hover { color: #000; }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* =============================================================
   Formularfelder
   ============================================================= */
.field { margin-bottom: 12px; }
.field input,
.field textarea,
.cc-select select {
  width: 100%;
  font-family: var(--shx-font-sans);
  font-size: 16px; letter-spacing: -0.02em; color: #141414;
  background: #f5f5f4;
  border: 1px solid #e7e7e5;
  border-radius: var(--r-sm);
  padding: 17px 19px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9b9b9b; }
.field input:focus, .field textarea:focus, .cc-select select:focus {
  outline: none;
  border-color: var(--shx-sky-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 150, 201, 0.1);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }

.err {
  display: block; margin: 6px 2px 0;
  font-size: 13px; letter-spacing: -0.01em; color: #c0392b;
}

.phone-row { display: flex; gap: 10px; }
.cc-select { position: relative; flex: 0 0 128px; }
.cc-select select { appearance: none; -webkit-appearance: none; padding: 17px 32px 17px 15px; cursor: pointer; }
.cc-select::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px; transform: translateY(-70%) rotate(45deg);
  border-right: 2px solid #8a8a8a; border-bottom: 2px solid #8a8a8a;
  pointer-events: none;
}
.phone-row input[type="tel"] { flex: 1 1 auto; min-width: 0; }

/* =============================================================
   Reveal-System
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.72s var(--shx-ease-out), transform 0.72s var(--shx-ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =============================================================
   Marquee
   ============================================================= */
.marquee {
  position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 44s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   Footer
   ============================================================= */
.footer {
  background: var(--shx-white);
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  padding: 32px 24px;
}
.footer__row {
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  font-size: 14.5px; letter-spacing: -0.02em; line-height: 1.4;
  color: rgba(0, 0, 0, 0.55); text-align: center;
}
.footer a { color: rgba(0, 0, 0, 0.55); text-decoration: none; transition: color 0.16s; }
.footer a:hover { color: #000; }
.footer__mid { display: inline-flex; gap: 10px; align-items: center; }
.footer__mid .sep { color: var(--shx-sky-200); }
@media (min-width: 900px) {
  .footer__row { flex-direction: row; justify-content: space-between; }
  .footer__row > * { width: 33%; }
  .footer__row > :first-child { text-align: left; }
  .footer__row > :last-child { text-align: right; }
}

/* =============================================================
   Reduced Motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .halo, .marquee__track, .ital--sky { animation: none !important; }
  .ital--sky { color: var(--shx-sky-600); -webkit-text-fill-color: currentColor; }
}
