@import url("./assets/fonts/fonts.local.css");

/* ============ Tokens ============ */
:root {
  --black: #000000;
  --ink: #1a1817;      /* near-black text */
  --ink-2: #2e2d2c;    /* Grau 90 */
  --grey-70: #58564f;
  --grey-50: #8a8783;
  --grey-label: #555555;
  --grey-bg: #ededed;  /* Problem section */
  --white: #ffffff;
  --hl: #fff400;       /* highlight yellow (knallig) */
  --hl-solid: #fff400; /* yellow pill / accents */
  --brand-gold: #998675;

  --container: 1240px;
  --pad-x: clamp(20px, 5vw, 88px);

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;

  --radius-pill: 999px;
  --radius-card: 22px;
}

/* ============ Reset-ish ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* highlight marker — tight, rounded band behind the text (single line) */
.hl {
  position: relative;
  display: inline-block;
  z-index: 0;
  color: var(--ink);
  font-weight: 700;
}
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.1em;
  right: -0.1em;
  top: 0.02em;
  bottom: -0.04em;
  background: var(--hl);
  border-radius: 0.14em;
}

/* section labels (kicker) */
.kicker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-2);
  margin: 0 0 0.9rem;
}

/* generic serif headline */
.h-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}

/* body paragraphs */
.lead { color: var(--ink-2); font-size: 1.125rem; line-height: 1.7; }
.muted { color: var(--grey-50); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1.05rem 2.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--black);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: #171717; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--black); color: #fff; }
.btn--sm { padding: 0.7rem 1.4rem; font-size: 0.95rem; }

.link-more {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--grey-50);
  background: none; border: 0; padding: 0;
  transition: color .18s ease;
}
.link-more:hover { color: var(--ink); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: #ededed; box-shadow: 0 6px 24px rgba(0,0,0,.04); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 84px;
}
.brand { flex: 0 0 auto; }
.brand svg, .brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--grey-label);
  font-weight: 400;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 2.4rem; padding-left: 2.6rem; padding-right: 2.6rem; }
.nav-toggle { display: none; }
.mobile-menu { display: none; }

/* ============ Hero ============ */
.hero { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 7.2vw, 6.2rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.hero-head { width: max-content; max-width: 100%; }
.hero h1 .hl { font-weight: 700; margin-left: 0.02em; }
.hero h1 .hl::before { top: 0.07em; bottom: 0.01em; }
.hero-arrow { margin-top: -0.9rem; color: var(--ink); text-align: right; }
.hero-arrow svg { width: clamp(70px, 7vw, 96px); height: auto; display: inline-block; }
.hero-copy { padding-top: calc(0.6rem + 20px); }
.hero-copy p { margin: 0 0 1.4rem; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-cta { text-align: center; margin-top: clamp(40px, 5vw, 72px); }

/* ============ Marquee ============ */
.marquee {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-block: 30px;
}
.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 26s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.marquee-track img {
  height: 42px;
  width: auto;
  flex: 0 0 auto;
  margin-right: 64px;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ============ Section frame ============ */
.section { position: relative; padding-block: clamp(72px, 9vw, 132px); overflow: hidden; }
.section--grey { background: var(--grey-bg); }
.section--dark { background: var(--black); color: #fff; }
.watermark {
  position: absolute;
  z-index: 0;
  color: #dedede;
  pointer-events: none;
  opacity: .9;
}
.section > .container { position: relative; z-index: 1; }
.wm-kreis { left: -26%; top: -10%; }
.portrait-round { display: none; }

/* Problem */
.problem-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.problem-head { text-align: right; }
.problem-head .kicker { margin-bottom: 1.1rem; }
.problem-head h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; line-height: 1.18; }
.problem-card {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.2vw, 30px);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.problem-card p { margin: 0 0 0.85rem; }
.problem-card ul { margin: 0.85rem 0; padding-left: 0; list-style: none; }
.problem-card li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; }
.problem-card li::before { content: "•"; position: absolute; left: 0; color: #fff; }
.problem-card p:last-child { margin-bottom: 0; }

/* Lösung */
.loesung { text-align: center; }
.loesung .container { max-width: 900px; }
.loesung h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.14;
}
.loesung .wirkung {
  position: relative;
  display: block;
  margin-top: 1.37em;
}
.loesung .wirkung .txt { position: relative; z-index: 1; display: inline-block; transform: translateY(-30px); }
.loesung .wirkung .txt strong { font-weight: 700; }
.loesung .yellow-pill {
  position: absolute;
  left: 50%;
  top: -1.1em;
  transform: translateX(-50%);
  width: 0.58em;
  height: 2.05em;
  background: var(--hl-solid);
  border-radius: var(--radius-pill);
  z-index: 0;
}
.loesung-copy { margin: 3.6rem auto 0; max-width: 640px; }
.loesung-actions { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 2.8rem; }
.loesung-actions .link-more { font-size: 1.25rem; }

/* Leistungen */
.leistungen { overflow: visible; }
.leistungen .container { max-width: 1340px; }
.leistungen-grid {
  display: grid;
  grid-template-columns: 0.56fr 1.24fr;
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}
.leistungen-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 1.6rem; line-height: 1.1; }
.leistungen-head .lead { max-width: 320px; }
.cards-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 3.4vw, 48px) clamp(26px, 2.6vw, 36px);
}
.lcard {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  row-gap: 0.7rem;
  align-items: center;
}
.lcard-icon { position: relative; width: 52px; height: 52px; grid-column: 1; grid-row: 1; align-self: center; transform: translateY(-50px); }
.lcard-icon .ico-shadow { position: absolute; inset: 0; transform: translate(4px, 5px); color: var(--hl-solid); }
.lcard-icon .ico-main { position: absolute; inset: 0; color: var(--ink); }
.lcard h3 {
  grid-column: 2; grid-row: 1;
  align-self: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.22;
  margin: 0;
  color: var(--ink);
}
.lcard-body { grid-column: 2; grid-row: 2; min-width: 0; align-self: start; }
.lcard p { font-size: 0.94rem; line-height: 1.58; color: var(--ink-2); margin: 0 0 0.8rem; }
.leistungen-cta { text-align: center; margin-top: clamp(48px, 6vw, 84px); }

/* Stats / dark */
.stats { text-align: center; }
.stats h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: #fff;
  margin: 0 0 clamp(40px, 5vw, 68px);
  letter-spacing: -0.005em;
}
.stats h2 b { font-weight: 700; }
.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(48px, 8vw, 120px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat .lbl { font-size: 0.95rem; color: #cfcecc; line-height: 1.4; max-width: 190px; }

/* Kontakt */
.kontakt { padding-bottom: 0; padding-top: clamp(36px, 4vw, 60px); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.kontakt h2 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; margin-bottom: 1.8rem; }
.kontakt-copy p { margin: 0 0 1.3rem; }
.kontakt-contact { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.1rem; }
.kontakt-contact .pico { flex: 0 0 auto; width: 48px; height: 48px; color: var(--ink); }
.kontakt-contact .lines { line-height: 1.6; }
.kontakt-contact a { font-size: 1.0625rem; }
.kontakt-media { position: relative; align-self: stretch; min-height: 640px; }
.kontakt-media .portrait {
  position: absolute;
  right: -74px; bottom: 0;
  max-height: 1010px;
  width: auto;
  z-index: 1;
}
.kontakt-media .wm-fwd { position: absolute; right: -185px; bottom: -5px; z-index: 0; color: #e6e6e6; }
.badge {
  position: absolute;
  left: 13.5%; bottom: 13%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  background: rgba(28,27,26,0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.62rem 3rem 0.62rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
a.badge:hover { transform: translateY(-2px); background: rgba(28,27,26,0.9); }
.badge .in {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.badge .in svg { width: 42px; height: 42px; }
.badge .btext { line-height: 1.06; }
.badge .bname { font-family: var(--font-serif); font-weight: 700; font-size: 1.26rem; line-height: 1.06; white-space: nowrap; }
.badge .brole { font-size: 0.98rem; color: #d8d7d5; }

/* Footer */
.site-footer { background: var(--black); color: #cfcecc; }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 28px;
  font-size: 0.95rem;
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a:hover { color: #fff; }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border-radius: var(--radius-card);
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 52px);
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal-overlay.open .modal { transform: none; }
.modal-icon { width: 44px; height: 44px; color: var(--ink); margin-bottom: 1.4rem; }
.modal-icon svg { width: 100%; height: 100%; }
.modal h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.modal-body p { margin: 0 0 1rem; color: var(--ink-2); line-height: 1.68; }
.modal-body .result-label { font-weight: 600; color: var(--ink); font-family: var(--font-sans); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e2e2e2;
  background: #fff;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 1.2rem;
}
.modal-close:hover { background: #f4f4f4; }
.modal-wrap { position: relative; width: 100%; max-width: 680px; }

/* ============ Responsive ============ */
/* Desktop-only refinements (mobile untouched) */
@media (min-width: 901px) {
  .loesung-actions .link-more { font-size: 1.125rem; font-weight: 700; }
  .lcard .link-more { font-size: 0.94rem; font-weight: 700; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: none; color: var(--ink);
  }
  .nav { height: 68px; }
  .mobile-menu {
    position: fixed; inset: 68px 0 auto 0; z-index: 55;
    background: #fff; border-bottom: 1px solid #ededed;
    display: flex; flex-direction: column; padding: 12px var(--pad-x) 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
    transform: translateY(-120%); transition: transform .3s ease;
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid #f2f2f2; color: var(--ink); }
  .mobile-menu .btn { margin-top: 16px; color: #fff; border: 1.5px solid var(--black); }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 4.6rem); }
  .hero-arrow { margin-top: -1.6rem; }
  .hero-copy { order: 2; padding-top: 0; font-size: 1rem; }

  /* Problem */
  .problem-grid { grid-template-columns: 1fr; gap: 28px; }
  .problem-head { text-align: left; }
  .problem-head .kicker { font-size: 1rem; margin-bottom: 0.5rem; }
  .problem-head h2 { font-size: clamp(2.3rem, 9.5vw, 2.9rem); }
  .problem-card { font-size: 0.95rem; }

  /* Lösung */
  .loesung .yellow-pill { height: 2.46em; }
  .loesung .wirkung .txt { transform: translateY(-5px); }
  .loesung-copy { font-size: 1rem; }
  .loesung-actions .link-more { font-size: 1.05rem; }
  .loesung-actions .btn { font-size: 0.95rem; padding: 0.85rem 1.7rem; }

  /* Leistungen */
  .leistungen-grid { grid-template-columns: 1fr; }
  .cards-2x2 { grid-template-columns: 1fr; }
  .leistungen-head h2 { font-size: clamp(2.3rem, 9.5vw, 2.9rem); }
  .leistungen-head .lead { font-size: 1rem; }
  .lcard h3 { font-size: 1.34rem; }
  .wm-kreis { left: -62%; top: -22%; }

  /* Stats */
  .stats h2 { font-size: clamp(2.2rem, 8.5vw, 2.8rem); }
  .stat .num { font-size: clamp(2.8rem, 12vw, 3.4rem); }

  /* Kontakt */
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt .kicker { font-size: 1rem; margin-bottom: 0.5rem; }
  .kontakt h2 { font-size: clamp(2.4rem, 9.5vw, 3rem); }
  .kontakt-copy { font-size: 0.9rem; }
  .kontakt-contact { gap: 0.55rem; margin-top: 1.6rem; }
  .kontakt-contact a { font-size: 0.95rem; }
  .kontakt { padding-bottom: 40px; }
  .kontakt-media { position: static; min-height: 0; display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin-top: 28px; }
  .kontakt-media .portrait { display: none; }
  .portrait-round { display: block; width: 92px; height: 92px; margin: 0; flex: 0 0 auto; }
  .badge {
    position: static; left: auto; bottom: auto; transform: none; margin: 0;
    display: inline-flex; justify-content: center; gap: 0.85rem; padding: 0.4rem 1.5rem;
  }
  .badge .in { width: 34px; height: 34px; }
  .badge .in svg { width: 34px; height: 34px; }
  .badge .btext { line-height: 1.08; }
  .badge .bname { font-size: 0.92rem; line-height: 1.08; }
  .badge .brole { font-size: 0.75rem; }
  .kontakt-media .wm-fwd { position: absolute; top: calc(2% + 10px); bottom: auto; right: 8px; width: 112px; height: auto; z-index: -1; color: #ededed; }

  .footer-row { flex-direction: column; gap: 12px; text-align: center; }
}

/* Phones only: logo bar becomes a static icon grid.
   Tablets/iPads (>640px) keep the smooth running marquee. */
@media (max-width: 640px) {
  .marquee { max-width: none; margin-inline: 0; padding-block: 6px 28px; }
  .marquee-viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee-track {
    animation: none; display: grid; grid-template-columns: repeat(3, 1fr);
    width: 100%; gap: 26px 14px; align-items: center; justify-items: center;
  }
  .marquee-track img { height: auto; max-height: 30px; max-width: 100%; margin-right: 0; }
  .marquee-track img:nth-child(n+18) { display: none; }
}

@media (max-width: 560px) {
  .stats-row { gap: 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* scroll offset for sticky nav */
.section, .anchor { scroll-margin-top: 92px; }
