@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 (native horizontal scroll + drag) ============ */
.marquee {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  padding-block: 30px 90px;
}
/* Edge fades via gradient overlays (no mask-image -> no iOS compositing bugs) */
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(36px, 7%, 96px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: var(--pad-x);  background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.marquee::after  { right: var(--pad-x); background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.marquee-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.marquee-viewport::-webkit-scrollbar { width: 0; height: 0; display: none; }
.marquee-viewport.dragging { cursor: grabbing; }
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
}
.marquee-track img {
  height: 42px;
  width: auto;
  flex: 0 0 auto;
  margin-right: 64px;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ============ 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: 2.2em;
}
.loesung .wirkung .txt { position: relative; z-index: 1; display: inline-block; transform: translateY(-22px); }
.loesung .wirkung .txt strong { font-weight: 700; }
.loesung .yellow-pill {
  position: absolute;
  left: 50%;
  top: -1.85em;
  transform: translateX(-50%);
  width: 0.85em;
  height: 3.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; }

/* Mobile-only Daniel contact card (hidden on desktop) */
.dani-card { display: none; }

/* 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: 48px; }
  .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-copy { font-size: 1rem; }
  .loesung-actions .link-more { font-size: 1.05rem; }
  /* All primary CTAs share the same mobile size/proportions */
  .loesung-actions .btn, .hero-cta .btn, .leistungen-cta .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: calc(-22% + 40px); }

  /* 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 { padding-bottom: 40px; }

  /* Mobile: replace the desktop contact/portrait with the black Daniel card */
  .kontakt-contact, .kontakt-media { display: none; }
  .dani-card {
    display: block;
    position: relative;
    background: #000;
    border-radius: 30px;
    margin-top: 100px;
    padding: 128px 30px 32px;
    color: #fff;
    text-align: left;
  }
  .dani-photo {
    position: absolute;
    top: -80px; left: 50%; transform: translateX(-50%);
    width: 172px; height: 172px;
  }
  .dani-name {
    font-family: var(--font-serif); font-weight: 700;
    font-size: 1.5rem; line-height: 1.1; margin: 0 0 0.7rem; color: #fff;
  }
  .dani-role, .dani-line {
    display: block; font-family: var(--font-serif); font-weight: 400;
    font-size: 1.05rem; line-height: 1.55; color: #fff; margin: 0 0 0.28rem;
  }
  .dani-line { color: #fff; }
  .dani-line:last-of-type { margin-bottom: 0; }
  .dani-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    margin-top: 1.6rem;
    padding: 0.68rem 1.3rem;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: var(--radius-pill);
    color: #fff; font-family: var(--font-sans); font-size: 0.9rem; white-space: nowrap;
    transition: background .18s ease;
  }
  .dani-btn:hover { background: rgba(255,255,255,0.1); }
  .dani-btn-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; }
  .dani-btn-icon svg { width: 28px; height: 28px; }

  .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: 26px 84px; }
  .marquee::before, .marquee::after { display: none; }
  .marquee-viewport { overflow: visible; cursor: auto; }
  .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+13) { display: none; }
  /* Mobile-Reihenfolge (laut Freigabe-WhatsApp): cominia & DEVK AM getauscht */
  .marquee-track img:nth-child(1)  { order: 1; }
  .marquee-track img:nth-child(2)  { order: 2; }
  .marquee-track img:nth-child(3)  { order: 3; }
  .marquee-track img:nth-child(4)  { order: 4; }
  .marquee-track img:nth-child(5)  { order: 5; }
  .marquee-track img:nth-child(6)  { order: 6; }
  .marquee-track img:nth-child(7)  { order: 7; }
  .marquee-track img:nth-child(8)  { order: 10; } /* DEVK AM */
  .marquee-track img:nth-child(9)  { order: 9; }  /* ÖRAG */
  .marquee-track img:nth-child(10) { order: 11; } /* SVP */
  .marquee-track img:nth-child(11) { order: 8; }  /* cominia */
  .marquee-track img:nth-child(12) { order: 12; }
}

@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; }
