/* ===================================================================
   CIRCLEONE — Basis: Reset, Schrift, Typografie, Raster, Utilities
   =================================================================== */

/* ── Schrift: eine Variable Font, alle Gewichte ──────────────────── */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-variable.woff2") format("woff2-variations"),
       url("../fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + var(--sp-5));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--co-graphite);
  background: var(--co-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a { color: inherit; text-decoration: none; }

/* ── Fokus: 2 px sichtbar, niemals ersatzlos entfernen ───────────── */
:focus-visible {
  outline: 2px solid var(--co-gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.sec--dark :focus-visible { outline-color: var(--co-gold); }

/* ── Skip-Link ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--co-charcoal);
  color: var(--co-white);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  transition: top var(--dur-ui) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

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

/* ── Container & Raster ──────────────────────────────────────────── */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 900px); margin-inline: auto; }
.wrap--text   { max-width: 68ch; }   /* Absatzbreite 58–72 Zeichen */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Sektionen ───────────────────────────────────────────────────── */
.sec { padding-block: var(--space-xl); position: relative; }
.sec--tight { padding-block: var(--space-lg); }
.sec--wide  { padding-block: var(--space-2xl); }
.sec--flush-top    { padding-top: 0; }
.sec--flush-bottom { padding-bottom: 0; }

.sec--paper { background: var(--co-paper); }
.sec--soft  { background: var(--co-soft); }
.sec--dark  { background: var(--co-charcoal); color: var(--co-white); }
.sec--dark p, .sec--dark li { color: rgba(255, 255, 255, .82); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4 { color: var(--co-white); }
.site-footer h2, .site-footer h3 { color: var(--co-white); }

/* Lange Wörter dürfen umbrechen. Ohne diese Regel sprengen Komposita wie
   „Gesundheitsmanagement" oder lange E-Mail-Adressen bei 360 px das Layout. */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, a, td, th, blockquote, figcaption, label {
  overflow-wrap: break-word;
  word-break: normal;
}
h1, h2, h3, .display { hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 768px) { h1, h2, h3, .display { hyphens: manual; -webkit-hyphens: manual; } }
/* Unter 560 px dürfen auch überlange Komposita hart brechen. „anywhere" wirkt
   anders als „break-word": es verkleinert die min-content-Breite und verhindert
   damit, dass ein Grid-Track über den Viewport hinauswächst. */
@media (max-width: 559px) {
  h1, h2, h3, .display, .price, .step-card__index { overflow-wrap: anywhere; }
}

/* ── Typografie ──────────────────────────────────────────────────── */
.display, h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-semi);   /* semibold — Kundenwunsch 08/2026 */
  color: var(--co-charcoal);
  text-wrap: balance;
  max-width: 18ch;
}
h1.h1--page, .h1--page {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  max-width: 20ch;
}
h2, .h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-semi);
  color: var(--co-charcoal);
  text-wrap: balance;
  max-width: 22ch;
}
h3, .h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semi);
  color: var(--co-charcoal);
  text-wrap: balance;
}
h4, .h4 {
  font-size: var(--fs-h4);
  line-height: 1.3;
  font-weight: var(--fw-semi);
  color: var(--co-charcoal);
}
.sec--dark .display, .sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4 { color: var(--co-white); }
.site-footer h2, .site-footer h3 { color: var(--co-white); }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--co-gold-text);
  margin-bottom: var(--sp-4);
}
.sec--dark .eyebrow, .hero .eyebrow, .site-footer .eyebrow { color: var(--co-gold); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--co-graphite);
  max-width: 60ch;
}
.sec--dark .lead { color: rgba(255, 255, 255, .88); }

.prose > * + * { margin-top: var(--sp-5); }
.prose p { max-width: 68ch; }
.prose strong { font-weight: var(--fw-semi); color: var(--co-charcoal); }
.sec--dark .prose strong { color: var(--co-white); }
.prose a:not(.btn) {
  color: var(--co-gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.sec--dark .prose a:not(.btn) { color: var(--co-gold); }

/* Zahlen, Preise, Zeiten */
.num, time, .price, .hours td { font-variant-numeric: tabular-nums; }

/* ── Listen mit Goldmarker ───────────────────────────────────────── */
.list-check > li,
.list-dot > li {
  position: relative;
  padding-left: var(--sp-6);
  margin-top: var(--sp-3);
  max-width: 62ch;
}
.list-check > li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--co-gold);
  border-bottom: 2px solid var(--co-gold);
  transform: rotate(-45deg);
}
.list-dot > li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--co-gold);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 0 var(--sp-7);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-btn);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out);
}
.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--co-charcoal);
  color: var(--co-white);
  border-color: var(--co-charcoal);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--co-gold-dark);
  border-color: var(--co-gold-dark);
}

.btn--gold {
  background: var(--co-gold);
  color: var(--co-charcoal);
  border-color: var(--co-gold);
}
.btn--gold:hover, .btn--gold:focus-visible {
  background: var(--co-gold-dark);
  border-color: var(--co-gold-dark);
  color: var(--co-white);
}

.btn--ghost {
  background: transparent;
  color: var(--co-charcoal);
  border-color: var(--co-line);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--co-charcoal);
  background: var(--co-charcoal);
  color: var(--co-white);
}

.hero .btn--ghost,
.sec--dark .btn--ghost,
.site-footer .btn--ghost,
.on-dark .btn--ghost {
  color: var(--co-white);
  border-color: rgba(255, 255, 255, .38);
}
.hero .btn--ghost:hover, .hero .btn--ghost:focus-visible,
.site-footer .btn--ghost:hover, .site-footer .btn--ghost:focus-visible,
.sec--dark .btn--ghost:hover, .sec--dark .btn--ghost:focus-visible,
.on-dark .btn--ghost:hover,  .on-dark .btn--ghost:focus-visible {
  background: var(--co-white);
  color: var(--co-charcoal);
  border-color: var(--co-white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
@media (max-width: 559px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* Textlink mit wachsender Goldlinie.
   Innenabstand oben/unten sorgt für eine Touchfläche von mindestens 44 px. */
.link-gold {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-weight: var(--fw-semi);
  font-size: var(--fs-small);
  color: var(--co-gold-text);
  position: relative;
  padding-block: 9px;
}
.link-gold::after {
  content: "";
  position: absolute;
  left: 0; bottom: 9px;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width 200ms var(--ease-out);
}
.link-gold:hover::after, .link-gold:focus-visible::after { width: 100%; }
.sec--dark .link-gold, .hero .link-gold, .site-footer .link-gold,
.on-dark .link-gold { color: var(--co-gold); }

/* ── Bilder ──────────────────────────────────────────────────────── */
.media { position: relative; overflow: clip; background: var(--co-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--16-9 { aspect-ratio: 16 / 9; }
.media--4-3  { aspect-ratio: 4 / 3; }
.media--3-2  { aspect-ratio: 3 / 2; }
.media--5-4  { aspect-ratio: 5 / 4; }
.media--4-5  { aspect-ratio: 4 / 5; }
.media--1-1  { aspect-ratio: 1 / 1; }

/* ── Scroll-Reveal ───────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
[data-reveal][data-visible="true"] { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay:  70ms; }
[data-reveal-delay="2"] { transition-delay: 140ms; }
[data-reveal-delay="3"] { transition-delay: 210ms; }
[data-reveal-delay="4"] { transition-delay: 280ms; }

/* ── Reduced Motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-autoplay] { --autoplay: 0; }
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .nav-overlay, .sticky-cta, .impact-rail { display: none !important; }
  body { color: #000; background: #fff; }
}
