/* ============================================================
   MEHRKRAFT — bright · premium · orange
   ============================================================ */
:root {
  --bg: #f6f3ee;
  --bg-soft: #efeae2;
  --ink: #17130e;
  --ink-soft: #5c554b;
  --orange: #ff6a00;
  --orange-deep: #e85d00;
  --line: rgba(23, 19, 14, 0.12);
  --radius: 22px;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-style: italic; color: var(--orange); }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(246, 243, 238, 0.92), rgba(246, 243, 238, 0));
  pointer-events: none;
}
.nav > * { position: relative; }
.nav-brand { display: block; text-decoration: none; }
.nav-brand img { display: block; height: 52px; width: auto; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); }
.nav-cta .arrow { transition: transform 0.25s; }
.nav-cta:hover .arrow { transform: translateX(4px); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.nav-login:hover { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); color: #fff; }
.social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--ink);
  transition: color 0.25s, background 0.25s;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { color: var(--orange); background: rgba(255, 106, 0, 0.1); }

/* ===== Hamburger + mobile menu overlay ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu .mobile-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.mobile-menu .mobile-cta-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  margin-top: 0;
}
.mobile-social { display: flex; gap: 16px; margin-top: 12px; }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
}

/* ===== Cinematic scrub sections ===== */
.cinematic { position: relative; height: 520vh; }
#prozess { height: 480vh; }
.cinematic .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.cinematic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Overlay copy */
.overlay { position: absolute; inset: 0; pointer-events: none; }
/* readability scrim over the footage — centered, matching the centered copy */
.overlay-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 58% at 50% 50%, rgba(23, 19, 14, 0.48), rgba(23, 19, 14, 0) 74%);
}
.reveal-line {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
}
.overlay-top .reveal-line {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
/* no translateY centering here — the scrub engine overwrites `transform`.
   width fits content, height grows with the text (bugfix: overflowing copy) */
.overlay-left .reveal-line {
  top: 26vh;
  left: clamp(24px, 7vw, 110px);
  right: clamp(24px, 7vw, 110px);
  max-width: 560px;
  height: auto;
  overflow-wrap: break-word;
  hyphens: auto;
  background: rgba(246, 243, 238, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px) clamp(26px, 3.4vw, 38px);
  box-shadow: 0 24px 60px rgba(23, 19, 14, 0.08);
}
.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(23, 19, 14, 0.45);
}
.overlay-top .kicker { color: #ffb27a; text-shadow: 0 1px 14px rgba(23, 19, 14, 0.5); }
.overlay-top em { color: var(--orange); text-shadow: 0 2px 30px rgba(255, 255, 255, 0.25); }
.hero-sub {
  margin-top: 22px;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-shadow: 0 1px 18px rgba(23, 19, 14, 0.55);
}
.overlay h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin: 6px 0 14px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.step-num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
.step-text { color: var(--ink-soft); font-size: 1.05rem; max-width: 40ch; }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: opacity 0.4s;
}
.scroll-hint span { color: var(--orange); }

/* ===== Marquees ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 32s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  padding-right: 0.4em;
}
.marquee-solid {
  background: var(--orange);
  padding: 26px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -20px 0 20px;
  box-shadow: 0 18px 50px rgba(232, 93, 0, 0.22);
}
.marquee-solid span { color: #fff; }
.marquee-outline { padding: 46px 0 10px; }
.marquee-outline span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(23, 19, 14, 0.28);
  font-size: clamp(2.4rem, 6vw, 5rem);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Section scaffolding ===== */
section { position: relative; }
.section-head { max-width: 1200px; margin: 0 auto 60px; }
.section-head h2, .mission h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

/* Mission */
.mission {
  padding: clamp(90px, 14vh, 160px) clamp(24px, 6vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
}
.mission h2 { max-width: 21ch; }
.mission-sub, .trust-text {
  margin-top: 30px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.figures .trust-text { max-width: 1200px; margin: 0 auto; font-size: 1.25rem; }

/* Services */
.services {
  padding: clamp(80px, 12vh, 150px) clamp(24px, 6vw, 80px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Sliding service panels (Flaire-style scroll-driven titles) —
   compact blocks; the title glide is driven by the panel's viewport position */
.svc-panel { position: relative; }
.svc-panel + .svc-panel { margin-top: clamp(28px, 5vh, 56px); }
.svc-sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(10px, 2vh, 24px) 0;
}
.svc-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 6px 16px;
  align-self: flex-start;
  margin: 0 0 26px clamp(24px, 6vw, 80px);
}
.svc-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  will-change: transform;
  color: var(--ink);
  padding: 0 clamp(24px, 6vw, 80px);
}
.svc-text {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 54ch;
  margin: 30px clamp(24px, 6vw, 80px) 0;
}

/* Figures */
.figures {
  padding: clamp(80px, 12vh, 150px) clamp(24px, 6vw, 80px);
}
.figure-rows { max-width: 1200px; margin: 0 auto; }
.figure-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.figure-row:first-child { border-top: 1px solid var(--line); }
.figure-label {
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.figure-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--orange);
  min-width: 2ch;
  text-align: right;
}

/* Team */
.team {
  padding: clamp(80px, 12vh, 150px) clamp(24px, 6vw, 80px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto;
}
/* Flip cards: outer = perspective, inner rotates, two faces with hidden backface */
.team-card {
  perspective: 1200px;
  cursor: pointer;
}
.team-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  height: 100%;
}
.team-card:hover .team-card-inner,
.team-card.flipped .team-card-inner {
  transform: rotateY(180deg);
}
.team-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: box-shadow 0.35s ease;
}
.team-card:hover .team-face { box-shadow: 0 30px 60px rgba(23, 19, 14, 0.16); }
.team-front { position: relative; }
.team-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #ff8a33, var(--orange) 55%, var(--orange-deep));
  border-color: transparent;
  color: #fff;
}
.team-back-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}
.team-quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}
.team-back .team-mail { color: #fff; }
.team-back .team-mail:hover { color: var(--ink); }
.team-mail {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 16px;
}
.team-mail:hover { text-decoration: underline; }
.team-desc { color: var(--ink-soft); }
.team-visual {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff8a33, var(--orange) 55%, var(--orange-deep));
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  box-shadow: 0 14px 30px rgba(232, 93, 0, 0.3);
}
.team-visual.alt {
  background: linear-gradient(135deg, #443c31, var(--ink) 60%);
  box-shadow: 0 14px 30px rgba(23, 19, 14, 0.25);
}
.team-visual span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  color: #fff;
}
/* Foto-ready: <span> durch <img> ersetzen, Layout bleibt stabil */
.team-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
}
.team-role {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 6px 0 10px;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #f6f3ee;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 6vw, 80px) 40px;
  border-radius: 44px 44px 0 0;
}
.footer-logo {
  max-width: 1200px;
  margin: 0 auto 70px;
}
.footer-logo img { display: block; height: 92px; width: auto; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 90px;
}
.foot-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.5);
}
.foot-strong { font-weight: 700; font-size: 1.05rem; }
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
  color: #f6f3ee;
  text-decoration: none;
  margin: 0 auto 100px;
  max-width: 1200px;
}
.footer-cta-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6.4vw, 5.6rem);
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.footer-cta-arrow {
  flex: none;
  width: clamp(64px, 8vw, 104px);
  height: clamp(64px, 8vw, 104px);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  transition: transform 0.35s ease, background 0.35s ease;
}
.footer-cta:hover .footer-cta-text { color: var(--orange); }
.footer-cta:hover .footer-cta-arrow { transform: translateX(10px) scale(1.06); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(246, 243, 238, 0.15);
  font-size: 0.88rem;
  color: rgba(246, 243, 238, 0.6);
}
.footer-bottom a { color: rgba(246, 243, 238, 0.85); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 22px; }
.footer-legal a#cookie-settings-link { cursor: pointer; }
.footer-social {
  display: flex;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-social .social-link { color: rgba(246, 243, 238, 0.85); }
.footer-social .social-link:hover { color: var(--orange); background: rgba(255, 106, 0, 0.14); }

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 30px 70px rgba(23, 19, 14, 0.18);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner-text p { margin: 0; }
.cookie-banner-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 6px !important;
}
.cookie-banner-text p:not(.cookie-banner-title) { color: var(--ink-soft); font-size: 0.92rem; max-width: 62ch; }
.cookie-banner-text a { color: var(--orange); text-decoration: none; }
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s;
}
.cookie-btn-solid { background: var(--orange); color: #fff; }
.cookie-btn-solid:hover { background: var(--orange-deep); }
.cookie-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.cookie-btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 22px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}

/* ===== Legal pages (AGB / Datenschutz / Impressum) ===== */
.legal {
  max-width: 840px;
  margin: 0 auto;
  padding: 170px 24px 90px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 46px 0 14px;
}
.legal p { color: var(--ink-soft); margin-bottom: 14px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--orange); text-decoration: none; word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal ol, .legal ul { padding-left: 24px; margin: 0 0 16px; color: var(--ink-soft); }
.legal li { margin-bottom: 10px; }
.legal li ul { margin: 10px 0 4px; }
.legal-stand { margin-top: 50px; font-weight: 600; color: var(--ink); }
.legal-footer { padding: 34px clamp(24px, 6vw, 80px); border-radius: 28px 28px 0 0; }
.legal-footer .footer-bottom { border-top: none; padding-top: 0; }

/* ===== Scroll reveals ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .nav { padding: 12px 10px 12px 14px; }
  .nav-brand img { height: 28px; }
  .nav-actions { gap: 2px; }
  .nav-actions .social-link { display: none; }
  .nav-cta { font-size: 0.68rem; padding: 7px 9px; gap: 4px; white-space: nowrap; }
  .nav-hamburger { width: 32px; height: 36px; gap: 4px; }
  .nav-hamburger span { width: 18px; }
  .hero-headline { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 0.95rem; padding: 0 6px; }
  .overlay-left .reveal-line { left: 18px; right: 18px; top: 22vh; }
  .svc-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .svc-text { font-size: 1.02rem; }
  .footer-cta-text { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-logo img { height: 60px; }
}
