/* ============================================================
   JOLIE WEBDESIGN — Layout, Navigation, Footer, Buttons, Grid
   ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ── Abschnitte ────────────────────────────────────────────── */
.section {
  padding-block: var(--sp-32);
}

.section--sm {
  padding-block: var(--sp-20);
}

.section--lg {
  padding-block: var(--sp-40);
}

.section--dark  { background: var(--c-dark);  color: var(--c-text-light); }
.section--black { background: var(--c-black); color: var(--c-text-light); }
.section--light { background: var(--c-light); color: var(--c-text); }
.section--white { background: var(--c-white); }

/* FIX: Text in hellen Sektionen bleibt dunkel */
.section--light p,
.section--light h2,
.section--light h3,
.section--light li {
  color: inherit;
}

.section--light .card__text,
.section--light .process-step__text,
.section--light .faq-answer__inner {
  color: var(--c-text-muted);
}

/* FIX: Weiße Cards auf dunklem Hintergrund — Text und Icon sichtbar machen */
.section--dark .card .card__title,
.section--dark .card h3 {
  color: var(--c-text);
}
.section--dark .card .card__icon {
  color: var(--c-accent);
}

/* ── Überschriften-System ───────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
}

.label--light {
  color: rgba(var(--c-accent-rgb), 0.9);
}

.heading-xl {
  font-size: clamp(var(--text-5xl), 7vw, var(--text-8xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

.heading-lg {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

.heading-md {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

.heading-sm {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

.text-accent  { color: var(--c-accent); }
.text-accent2 { color: var(--c-accent-2); }
.text-muted   { color: var(--c-text-muted); }

.text-gradient {
  background: linear-gradient(135deg, #FF4B2B 0%, #FF8C42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient--blue {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Abschnittskopf ─────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--sp-16);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-inline: auto;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  margin-top: var(--sp-4);
  line-height: var(--leading-loose);
}

.section-header--dark p {
  color: rgba(255,255,255,0.6);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-base), box-shadow var(--t-base);
  background: rgba(7, 7, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-border-dark);
}

.nav--scrolled {
  background: rgba(7, 7, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-border-dark);
}

.nav--light.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.04em;
  color: var(--c-white);
  transition: opacity var(--t-fast);
}

.nav__logo:hover { opacity: 0.85; }

.nav__logo span {
  color: var(--c-accent);
}

.nav--light .nav__logo { color: var(--c-text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  border-radius: var(--r-full);
  transition: width var(--t-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--c-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav--light .nav__link { color: var(--c-text-muted); }
.nav--light .nav__link:hover { color: var(--c-text); }

.nav__cta {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--r-full);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.nav__cta:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--glow-accent);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: var(--r-full);
  transition: var(--t-base);
}

.nav--light .nav__burger span { background: var(--c-text); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--c-black);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--c-white);
  letter-spacing: -0.02em;
  transition: color var(--t-fast);
}

.nav-mobile a:hover { color: var(--c-accent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-full);
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
}

.btn--primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.btn--secondary {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn--secondary:hover {
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--c-dark-3);
  color: var(--c-white);
}

.btn--dark:hover {
  background: var(--c-dark-2);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}

.btn--outline-dark:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}

.btn--lg {
  font-size: var(--text-lg);
  padding: var(--sp-5) var(--sp-10);
}

/* ── Grid-System ─────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--sp-6);
}

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

/* ── Flex-Utilities ──────────────────────────────────────────── */
.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap-4 { gap: var(--sp-4); }
.flex--gap-6 { gap: var(--sp-6); }
.flex--gap-8 { gap: var(--sp-8); }

/* ── Trennlinie ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--c-border); }
.divider--dark { background: var(--c-border-dark); }

/* ── Scroll-Animationen ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--c-black);
  color: rgba(255,255,255,0.6);
  padding-block: var(--sp-20) var(--sp-12);
  border-top: 1px solid var(--c-border-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.04em;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}

.footer__brand span { color: var(--c-accent); }

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin-bottom: var(--sp-6);
}

.footer__seo-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  line-height: var(--leading-loose);
  margin-top: var(--sp-4);
  max-width: 36ch;
}

.footer__col-title {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--c-white);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--t-fast);
}

.footer__links a:hover { color: var(--c-white); }

.footer__bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--text-sm);
}

.footer__bottom-links {
  display: flex;
  gap: var(--sp-6);
}

.footer__bottom-links a {
  color: rgba(255,255,255,0.4);
  transition: color var(--t-fast);
}

.footer__bottom-links a:hover { color: var(--c-white); }

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--c-accent);
  color: var(--c-white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: var(--weight-semi);
  z-index: 9999;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: var(--sp-4);
}
