/* =========================================================
   TEMBI AG – Startseite
   Markenfarben: Rot #C21622 (Logo) · Grau #6F6F6F / #7A7A7A
   ========================================================= */
:root {
  --red: #C21622;
  --red-dark: #9E111B;
  --red-soft: rgba(194, 22, 34, .08);
  --gray: #6F6F6F;
  --gray-2: #7A7A7A;
  --gray-light: #EAEAEA;
  --bg: #FFFFFF;
  --bg-alt: #F4F4F3;
  --ink: #1E1E1E;
  --line: rgba(30, 30, 30, .1);

  --font-head: 'Philosopher', Georgia, serif;
  --font-body: 'Raleway', system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(30, 30, 30, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
  --header-h: 96px;
  --header-h-sm: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }
h2 em, h1 em { font-style: normal; color: var(--red); }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-2); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.section-title { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.01em; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-lead { font-size: 19px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red-dark);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path .6s var(--ease);
}
.btn:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.btn svg { transition: transform .4s var(--ease); }
.btn-primary { box-shadow: 0 10px 30px -10px rgba(194, 22, 34, .6); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(194, 22, 34, .75); }
.btn-ghost { --bg: rgba(255,255,255,.12); --fg: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(10px); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { --fg: var(--ink); }
.btn-light { --bg: #fff; --fg: var(--red); }
.btn-light::before { background: var(--ink); }
.btn-light:hover { --fg: #fff; }
.btn-sm { padding: 11px 20px; font-size: 15px; }

/* Hero-CTA: kurzer Glow beim ersten Laden */
.btn-attention { animation: ctaGlow 1.6s ease-out 1.5s 3 backwards; }
.btn-attention::after, .btn-glow-onview::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.7) 48%, transparent 70%);
  transform: translateX(-120%);
}
.btn-attention::after { animation: ctaShine 1.6s ease-in-out 1.7s 2; }
/* Gleicher Glow, startet erst wenn der Button sichtbar wird */
.btn-glow-onview.is-glowing { animation: ctaGlow 1.6s ease-out .9s 3 backwards; }
.btn-glow-onview.is-glowing::after { animation: ctaShine 1.6s ease-in-out 1.1s 2; }
@keyframes ctaGlow {
  0%   { box-shadow: 0 10px 30px -10px rgba(194,22,34,.6), 0 0 0 0 rgba(230,40,52,.75), 0 0 0 0 rgba(194,22,34,0); }
  45%  { box-shadow: 0 0 46px 8px rgba(230,40,52,.75), 0 0 0 10px rgba(230,40,52,.35), 0 0 0 0 rgba(194,22,34,0); }
  100% { box-shadow: 0 10px 30px -10px rgba(194,22,34,.6), 0 0 0 22px rgba(230,40,52,0), 0 0 0 0 rgba(194,22,34,0); }
}
@keyframes ctaShine { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s, border-color .4s;
}
.header-inner {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
  transition: height .45s var(--ease);
}
.site-header.is-scrolled { border-color: transparent; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.site-header.is-scrolled .header-inner { height: var(--header-h-sm); }
.brand { display: flex; align-items: center; height: 100%; flex: none; }
.brand img { height: calc(var(--header-h) * .6); width: auto; max-width: 46vw; transition: height .45s var(--ease); }
.site-header.is-scrolled .brand img { height: calc(var(--header-h-sm) * .6); }

.main-nav { margin-left: auto; }
.main-nav > ul { position: relative; list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px; border-radius: 999px;
  font-size: 16.5px; font-weight: 600; color: var(--ink);
  transition: color .35s;
}
.nav-link:hover, .nav-link.is-active { color: var(--red); }
/* Language switcher */
html.i18n-pending body { opacity: 0; }
body { transition: opacity .18s; }
body.is-switching-lang { opacity: 0; }
.lang { position: relative; }
.lang-btn {
  height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--gray-light); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .04em;
  transition: border-color .3s, background .3s;
}
.lang-btn:hover, .lang.is-open .lang-btn { border-color: var(--red); }
.lang-btn svg { transition: transform .3s; }
.lang.is-open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5;
  list-style: none; margin: 0; padding: 6px; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; transition: background .2s, color .2s;
}
.lang-menu button:hover { background: var(--bg-alt); }
.lang-menu button.is-active { color: var(--red); background: var(--red-soft); }
.lang-menu button.is-active::after {
  content: ""; margin-left: auto; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23C21622' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flag {
  flex: none; width: 22px; height: 15px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12); background-size: cover; background-position: center;
}
.flag-de { background-image: linear-gradient(#000 0 33.34%, #DD0000 33.34% 66.67%, #FFCE00 66.67%); }
.flag-fr { background-image: linear-gradient(90deg, #0055A4 0 33.34%, #fff 33.34% 66.67%, #EF4135 66.67%); }
.flag-it { background-image: linear-gradient(90deg, #009246 0 33.34%, #fff 33.34% 66.67%, #CE2B37 66.67%); }
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }

.btn-header { padding: 15px 28px; font-size: 16px; }
.site-header.is-scrolled .btn-header { padding: 12px 24px; }
.nav-pill {
  position: absolute; left: 0; top: 50%; height: 46px; width: 0; z-index: 0;
  border-radius: 999px; background: var(--red-soft);
  box-shadow: inset 0 0 0 1px rgba(194, 22, 34, .12);
  transform: translate(var(--x, 0), -50%); opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .35s;
}
.nav-pill.is-on { opacity: 1; }
.nav-link svg { transition: transform .3s; }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 18px); left: 50%;
  display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 28px;
  padding: 28px 30px; width: max-content;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mega::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-mega.is-suppressed:not(.is-open) .mega { opacity: 0; visibility: hidden; transform: translate(-50%, 10px); }
.has-mega.is-suppressed:not(.is-open) .nav-link svg { transform: none; }
.has-mega:hover .nav-link svg, .has-mega.is-open .nav-link svg { transform: rotate(180deg); }
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-title { font-family: var(--font-head); font-size: 17px; color: var(--ink); font-weight: 700; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--red); }
.mega a { font-size: 15px; color: var(--gray); padding: 6px 0; transition: color .25s, transform .25s var(--ease); }
.mega a:hover { color: var(--red); transform: translateX(4px); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); transition: color .3s; }
.header-phone svg { color: var(--red); }
.header-phone:hover { color: var(--red); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 120px 32px 40px;
  clip-path: circle(0% at calc(100% - 50px) 50px);
  transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 50px) 50px); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--font-head); font-size: clamp(32px, 9vw, 48px); line-height: 1.2; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .3s; }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu nav a.accent, .mobile-menu nav a:hover { color: var(--red); }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 6px; color: #bbb; }

/* ---------- Hero ---------- */
main { padding-top: var(--header-h); }
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
  padding-top: clamp(40px, 8vh, 90px);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background: var(--img) center / cover no-repeat;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,20,20,.82) 0%, rgba(20,20,20,.55) 45%, rgba(20,20,20,.1) 100%),
    linear-gradient(0deg, rgba(20,20,20,.65) 0%, transparent 40%);
}
.hero-content { padding-bottom: 60px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero-title {
  color: #fff; font-size: clamp(40px, min(7.6vw, 11.5vh), 104px); line-height: 1.02; letter-spacing: -.02em;
  max-width: 13ch; margin-bottom: 28px;
}
.hero-title em { color: #fff; }

.hero-badge {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 18px 7px 7px; margin-bottom: 26px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 15px; overflow: hidden; isolation: isolate;
  transition: background .4s, border-color .4s;
}
.hero-badge::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 4s var(--ease) 1.5s infinite;
}
@keyframes shimmer { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-badge:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.hero-badge-pill {
  padding: 6px 14px; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(194,22,34,.8);
}
.hero-badge-text strong { font-weight: 700; }
.hero-badge svg { transition: transform .4s var(--ease); }
.hero-lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 36px; }
.hero-tabs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; flex: 1; max-width: 680px; }
.hero-tab { width: 100%; text-align: left; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6); transition: color .3s; }
.hero-tab .bar { display: block; height: 2px; background: rgba(255,255,255,.25); margin-bottom: 12px; overflow: hidden; border-radius: 2px; }
.hero-tab .bar i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero-tab.is-active { color: #fff; }
.hero-tab.is-active .bar i { animation: tabProgress var(--slide-ms, 6000ms) linear forwards; }
@keyframes tabProgress { to { transform: scaleX(1); } }


/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font-family: var(--font-head); font-size: clamp(24px, 3vw, 38px); white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee i {
  flex: none; display: block; width: 3px; height: .9em;
  font-size: clamp(24px, 3vw, 38px);
  background: var(--red); border-radius: 3px;
  transform: skewX(-22deg); box-shadow: 0 0 14px rgba(194, 22, 34, .55);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Story (Über uns) ---------- */
.story { overflow: hidden; }
.scrub-title {
  font-size: clamp(34px, 5.2vw, 74px); line-height: 1.08; letter-spacing: -.015em;
  max-width: 22ch; margin-bottom: clamp(36px, 5vw, 64px);
}
.scrub-title .sw { color: #D6D6D6; transition: color .35s ease; }
.scrub-title .sw.on { color: var(--ink); }
.scrub-title em .sw.on { color: var(--red); }
.scrub-title em { font-style: normal; }

.story-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 3vw, 40px); align-items: stretch; }

.map-card {
  position: relative; margin: 0; padding: clamp(22px, 3vw, 36px);
  border-radius: 28px; background: #F6F6F5; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.map-card::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,22,34,.08), transparent 65%); pointer-events: none;
}
.map-head { display: flex; flex-direction: column; gap: 2px; }
.map-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gray-2); }
.map-head strong { font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 30px); color: var(--ink); }
.map-wrap { position: relative; width: 100%; aspect-ratio: 1000 / 660; margin-top: 6px; }
.map-dots, .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg { overflow: visible; }
.map-svg .route { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.map-svg .route-ghost { fill: none; stroke: rgba(194,22,34,.18); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.map-card.is-live .route { stroke-dashoffset: 0; }
.map-svg .traveler { fill: var(--red); opacity: 0; transition: opacity .6s 1.8s; }
.map-card.is-live .traveler { opacity: 1; }
.map-svg .pin { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .5s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.map-card.is-live .pin { opacity: 1; transform: none; }
.map-svg .pin-core { fill: #fff; stroke: var(--red); stroke-width: 4; }
.map-svg .pin-pulse { fill: var(--red); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pinPulse 2.6s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(2.4); opacity: 0; } }
.map-svg .hq .pin-core { fill: var(--red); stroke: #fff; stroke-width: 5; }
.map-svg .pin-label rect { fill: #fff; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.map-svg .pin-label text { font-family: var(--font-body); font-size: 22px; font-weight: 700; fill: var(--ink); }
.map-svg .hq .pin-label rect { fill: var(--ink); }
.map-svg .hq .pin-label text { fill: #fff; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; font-weight: 600; color: var(--gray); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { display: inline-block; }
.lg-hq { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--red); }
.lg-city { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--red); background: #fff; }
.lg-route { width: 22px; height: 3px; border-radius: 3px; background: var(--red); }

.story-side { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 18px); flex: 1; }
.value {
  position: relative; padding: 24px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.value::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value:hover::after { transform: scaleX(1); }
.value-num {
  font-family: var(--font-head); font-size: 44px; line-height: 1; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.4px var(--red); transition: color .4s;
}
.value:hover .value-num { color: var(--red); }
.value h3 { font-size: 20px; margin-bottom: 6px; }
.value p { margin: 0; font-size: 15px; line-height: 1.55; }

.team-card {
  display: flex; align-items: center; gap: 20px; padding: 18px 22px 18px 18px;
  border-radius: 22px; background: var(--ink); color: #c9c9c9;
}
.team-faces { display: flex; flex: none; }
.face { position: relative; margin: 0 0 0 -16px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); transition: transform .5s var(--ease), margin .5s var(--ease); z-index: 1; }
.face:first-child { margin-left: 0; }
.face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: grayscale(1); transition: filter .5s; }
.face figcaption {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px);
  white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--ink);
  font-size: 13px; line-height: 1.3; text-align: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.face figcaption strong { display: block; }
.face figcaption span { color: var(--gray); font-size: 12px; }
.face:hover, .face:focus-visible { transform: translateY(-6px) scale(1.12); z-index: 3; }
.face:hover img, .face:focus-visible img { filter: none; }
.face:hover figcaption, .face:focus-visible figcaption { opacity: 1; transform: translate(-50%, 0); }
.team-faces:hover .face { margin-left: 4px; }
.team-faces:hover .face:first-child { margin-left: 0; }
.team-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.team-text strong { color: #fff; font-family: var(--font-head); font-size: 18px; line-height: 1.25; }

.glass {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}

/* ---------- Services (Bento) ---------- */
.services { background: var(--bg-alt); }
.bento {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "lg lg a"
    "lg lg b"
    "s1 s2 b";
}
.bento .card-lg { grid-area: lg; }
.bento .card:nth-child(2) { grid-area: a; }
.bento .card:nth-child(3) { grid-area: b; }
.bento .card:nth-child(4) { grid-area: s1; }
.bento .card:nth-child(5) { grid-area: s2; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  transform-style: preserve-3d;
}
a.card:hover { box-shadow: 0 30px 60px -25px rgba(30,30,30,.35); }
.card-media { overflow: hidden; aspect-ratio: 16 / 10; }
.card-lg .card-media, .bento .card:nth-child(3) .card-media { aspect-ratio: auto; flex: 1; min-height: 240px; }
.card-lg .card-media { min-height: 320px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 28px 30px 30px; position: relative; }
.card-num { position: absolute; top: 26px; right: 28px; font-family: var(--font-head); font-size: 15px; color: var(--gray-2); }
.card h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 6px; padding-right: 40px; }
.card-sub { color: var(--red); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.card-link svg { transition: transform .4s var(--ease); color: var(--red); }
a.card:hover .card-link svg { transform: translate(3px, -3px); }

.card-stat { justify-content: space-between; padding: 30px; min-height: 220px; background: #fff; }
.stat-big { font-family: var(--font-head); font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--ink); font-weight: 700; }
.stat-big small { font-size: .45em; font-weight: 700; }
.stat-label { font-size: 15px; }
.card-red { background: var(--red); border-color: var(--red); }
.card-red .stat-big, .card-red .stat-label { color: #fff; }

/* Spotlight effect (follows cursor) */
.spotlight::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(194,22,34,.10), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover::after { opacity: 1; }

/* ---------- Sectors ---------- */
.section.sectors { padding: clamp(48px, 5.5vw, 84px) 0; }
.section.services { padding-bottom: clamp(48px, 5vw, 80px); }
.section.contact { padding: clamp(40px, 4.5vw, 68px) 0 clamp(56px, 6vw, 88px); }
.sectors .section-head { max-width: none; margin-bottom: clamp(26px, 3.5vw, 44px); }
.sectors .section-title { font-size: clamp(30px, 3.6vw, 50px); margin-bottom: 0; }
.sectors .sector { padding: 26px 22px 24px; }
.sectors .sector-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.sector-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.sector {
  position: relative; padding: 34px 26px 30px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid transparent;
  transition: transform .5s var(--ease), background .4s, border-color .4s, box-shadow .5s;
}
.sector:hover { transform: translateY(-8px); background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.sector-icon {
  width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center;
  background: #fff; color: var(--gray); margin-bottom: 24px;
  transition: background .4s, color .4s, transform .6s var(--ease);
}
.sector-icon svg { width: 34px; height: 34px; }
.sector:hover .sector-icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.sector h3 { font-size: 21px; margin-bottom: 10px; }
.sector p { font-size: 15px; margin: 0; line-height: 1.6; }

/* ---------- Process (Ablauf) + Referenzen ---------- */
.section.process { background: var(--ink); color: #b9b9b9; padding: clamp(56px, 6vw, 92px) 0; overflow: hidden; }
.process h2, .process h3 { color: #fff; }
.process .eyebrow { color: #9a9a9a; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.process-head .section-title { margin: 0; }
.process-aside { display: flex; align-items: center; gap: 24px; max-width: 560px; }
.process-aside p { margin: 0; font-size: 15px; }
.process-aside .btn { flex: none; }

.steps { --p: 0; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 31px; left: 32px; right: calc(25% - 32px); height: 2px; border-radius: 2px;
}
.steps::before { background: rgba(255,255,255,.12); }
.steps::after { background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.steps.is-in::after { transform: scaleX(1); }
.pstep { position: relative; padding-right: 8px; }
.pstep-dot {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #2a2a2a; color: #fff; border: 2px solid rgba(255,255,255,.12); margin-bottom: 22px;
  transition: background .5s, border-color .5s, box-shadow .5s;
  transition-delay: calc(.25s + var(--i) * .45s);
}
.pstep-dot svg { width: 28px; height: 28px; }
.steps.is-in .pstep-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 8px rgba(194,22,34,.15); }
.pstep-num { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--red); margin-bottom: 6px; }
.pstep h3 { font-size: clamp(20px, 1.7vw, 24px); margin-bottom: 8px; }
.pstep p { margin: 0; font-size: 15px; line-height: 1.6; }
.pstep { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * .12s); }
.steps.is-in .pstep { opacity: 1; transform: none; }

/* Partner (eigene, helle Sektion) */
.partners { padding: clamp(44px, 5vw, 72px) 0 clamp(20px, 2.5vw, 32px); background: #fff; }
.refs-head { display: flex; align-items: center; gap: 24px; margin-bottom: clamp(20px, 2.4vw, 30px); }
.refs-title { margin: 0; font-size: clamp(26px, 2.6vw, 36px); color: var(--ink); white-space: nowrap; text-align: center; }
.refs-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.refs-line:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.refs-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.refs-track { list-style: none; margin: 0; padding: 6px 0; display: flex; gap: 18px; width: max-content; animation: marquee 42s linear infinite; }
.refs-marquee:hover .refs-track { animation-play-state: paused; }
.ref {
  flex: none; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 16px;
  background: var(--bg-alt); border: 1px solid transparent;
  color: var(--c); filter: grayscale(1); opacity: .6;
  transition: filter .4s, opacity .4s, background .4s, border-color .4s, box-shadow .4s;
}
.ref svg { width: 34px; height: 34px; flex: none; }
.ref > span { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: .01em; }
.ref:hover { filter: none; opacity: 1; background: #fff; border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--c) 70%, transparent); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 18px; align-items: center; }
.ci { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.ci svg { width: 24px; height: 24px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-2); font-weight: 600; }
.contact-list span, .contact-list a { color: var(--ink); font-weight: 600; font-size: 18px; }
.contact-list a:hover { color: var(--red); }

.contact-form { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); display: grid; gap: 14px; background: rgba(255,255,255,.9); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 26px 18px 10px; border-radius: var(--radius-sm);
  background: #fff; border: 1.5px solid var(--gray-light);
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field label {
  position: absolute; left: 19px; top: 18px; color: var(--gray-2); pointer-events: none;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--red); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.field.has-count {
  background: #fff; border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm);
  padding-bottom: 34px; transition: border-color .3s, box-shadow .3s;
}
.field.has-count textarea { border: 0; background: transparent; min-height: 120px; padding-bottom: 4px; box-shadow: none !important; }
.field.has-count:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field.has-count.is-invalid { border-color: var(--red); }
.char-count {
  position: absolute; right: 12px; bottom: 8px; pointer-events: none;
  font-size: 12px; font-weight: 600; color: var(--gray-2); font-variant-numeric: tabular-nums;
  padding: 2px 10px; border-radius: 999px; background: var(--bg-alt);
  transition: color .3s, background .3s;
}
.char-count.is-low { color: var(--red); background: var(--red-soft); }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-2); font-weight: 600; margin-bottom: 10px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--gray-light); background: #fff; color: var(--gray); cursor: pointer;
  transition: all .3s var(--ease);
}
.chips span:hover { border-color: var(--red); color: var(--red); }
.chips input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1c7c3a; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 70px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 18px; margin-bottom: 14px; }
.site-footer img { margin-bottom: 16px; }
.site-footer a:hover { color: var(--red); }
.socials { display: flex; gap: 12px; }
.social {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), filter .3s;
}
.social svg { width: 24px; height: 24px; }
.social-fb { background: #1877F2; }
.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social:hover { box-shadow: 0 14px 24px -12px rgba(0,0,0,.55); filter: saturate(1.15); }
.site-footer { padding-bottom: 120px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--gray-2); font-size: 14px; }

/* ---------- Floating contact (FAB) ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: flex; gap: 10px; align-items: center;
  opacity: 0; transform: translateY(40px) scale(.9);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fab.is-visible { opacity: 1; transform: none; }

/* Call pill – immer sichtbar, lädt zum Anrufen ein */
.call-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 24px 8px 8px; border-radius: 999px;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(194,22,34,.18);
  box-shadow: 0 18px 40px -14px rgba(194,22,34,.55), 0 4px 14px -6px rgba(0,0,0,.2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s;
}
.call-pill:hover { box-shadow: 0 26px 50px -16px rgba(194,22,34,.7), 0 4px 14px -6px rgba(0,0,0,.2); }
.call-icon {
  position: relative; width: 56px; height: 56px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff;
}
.call-icon svg { position: relative; z-index: 1; animation: ring 5s var(--ease) 2s infinite; transform-origin: 50% 50%; }
.call-wave { position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: wave 2.4s ease-out infinite; }
.call-wave + .call-wave { animation-delay: 1.2s; }
@keyframes wave { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ring {
  0%, 82%, 100% { transform: rotate(0); }
  84% { transform: rotate(-18deg); } 86% { transform: rotate(16deg); } 88% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 94% { transform: rotate(5deg); }
}
.call-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.call-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-text small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gray); }
.call-text strong { font-family: var(--font-head); font-size: 21px; color: var(--red); letter-spacing: .01em; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a447; box-shadow: 0 0 0 0 rgba(34,164,71,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(34,164,71,0); } 100% { box-shadow: 0 0 0 0 rgba(34,164,71,0); } }

.fab-btn {
  height: 56px; min-width: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), background .3s;
}
.fab-btn:hover { filter: brightness(1.15); }
.fab-contact { background: var(--ink); color: #fff; padding: 0 20px; font-weight: 700; }
@media (min-width: 981px) { .fab-contact { display: none; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(12% 12% 12% 12% round var(--radius)); transition: clip-path 1.4s var(--ease); }
.reveal-clip.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--d, 0s)); }
.split.is-in .w > span { transform: none; }

/* ---------- Lösungsfinder ---------- */
.section.finder { padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 5vw, 80px); background: var(--bg-alt); }
.finder-card {
  display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(28px, 4vw, 60px);
  padding: clamp(26px, 4vw, 54px); border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(30,30,30,.35);
  position: relative; overflow: hidden;
}
.finder-card::before {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,22,34,.09), transparent 65%); pointer-events: none;
}
.finder-intro .section-title { font-size: clamp(30px, 3.4vw, 46px); }
.finder-progress { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.finder-progress li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--gray-2); transition: color .3s; }
.finder-progress span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 2px solid var(--gray-light); color: var(--gray-2); transition: all .35s var(--ease);
}
.finder-progress li.is-active { color: var(--ink); }
.finder-progress li.is-active span { border-color: var(--red); color: var(--red); }
.finder-progress li.is-done span { background: var(--red); border-color: var(--red); color: #fff; }

.finder-stage { position: relative; min-height: 380px; }
.finder-step { display: none; animation: stepIn .5s var(--ease); }
.finder-step.is-active { display: flex; flex-direction: column; height: 100%; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.finder-step h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 4px; }
.finder-hint { font-size: 14px; color: var(--gray-2); margin-bottom: 18px; }
.finder-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.finder-options-place { grid-template-columns: repeat(3, 1fr); }
.fopt {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 64px;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--gray-light); background: #fff;
  font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3;
  transition: border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.fopt:hover { border-color: rgba(194,22,34,.5); }
.fopt[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.fopt-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--bg-alt); color: var(--gray); transition: background .25s, color .25s; }
.fopt-ic svg { width: 22px; height: 22px; }
.fopt[aria-pressed="true"] .fopt-ic { background: var(--red); color: #fff; }
.finder-nav { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn[disabled] { opacity: .4; pointer-events: none; box-shadow: none; }
.btn-ghost-dark { --bg: transparent; --fg: var(--ink); border: 1.5px solid var(--gray-light); }
.btn-ghost-dark::before { background: var(--bg-alt); }
.finder-results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fres {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 16px;
  background: var(--bg-alt); border: 1px solid transparent; transition: border-color .3s, background .3s;
  animation: stepIn .5s var(--ease) both; animation-delay: calc(var(--i) * 80ms);
}
.fres:hover { background: #fff; border-color: var(--line); }
.fres strong { font-family: var(--font-head); font-size: 19px; color: var(--ink); }
.fres span { font-size: 14px; line-height: 1.5; }
.fres a { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Erleben ---------- */
.section.experience { padding-top: clamp(48px, 5vw, 80px); }
.exp-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.exp-card { margin: 0; border-radius: 24px; background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden; }
.exp-ba { grid-row: span 2; display: flex; flex-direction: column; background: #fff; }
.ba { position: relative; flex: 1; min-height: 320px; overflow: hidden; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { pointer-events: none; }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,.85), 0 10px 26px rgba(0,0,0,.35); pointer-events: none;
  transition: transform .3s var(--ease);
}
.ba:hover .ba-handle { transform: scale(1.08); }
.ba-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + * , .ba:focus-within .ba-handle { outline: 3px solid #fff; outline-offset: 3px; }
.ba-tag { position: absolute; top: 16px; z-index: 1; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(20,20,20,.6); backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag-l { left: 16px; }
.ba-tag-r { right: 16px; background: var(--red); }
.exp-ba figcaption { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 4px; }
.exp-ba figcaption strong { font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.exp-ba figcaption span { font-size: 15px; }

.exp-audio, .exp-colors { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.exp-head { display: flex; align-items: center; gap: 14px; }
.exp-head strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--ink); line-height: 1.2; }
.exp-head span { font-size: 13px; color: var(--gray-2); font-weight: 600; letter-spacing: .04em; }
.exp-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--red); color: #fff; }
.exp-ic svg { width: 24px; height: 24px; }
.audio-viz { width: 100%; height: 86px; border-radius: 14px; background: var(--ink); }
.audio-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.amode { padding: 10px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--gray); transition: background .3s, color .3s; }
.amode.is-active { background: var(--ink); color: #fff; }
.amode[data-mode="dry"].is-active { background: var(--red); }
.audio-foot { display: flex; align-items: center; gap: 14px; }
.audio-play {
  width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(194,22,34,.8); transition: background .3s;
}
.audio-play:hover { background: var(--red-dark); }
.audio-play .i-stop, .audio-play.is-playing .i-play { display: none; }
.audio-play.is-playing .i-stop { display: block; }
.audio-meta { display: flex; flex-direction: column; line-height: 1.25; }
.audio-meta span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-2); }
.audio-meta strong { font-family: var(--font-head); font-size: 24px; color: var(--ink); transition: color .3s; }

.corridor { width: 100%; height: auto; border-radius: 14px; display: block; }
.corridor .wall-panel { transition: fill .45s var(--ease); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; transition: transform .25s var(--ease); }
.swatch-wood { background: repeating-linear-gradient(170deg, #B98A5E 0 5px, #A57849 5px 7px); }
.swatch-oak { background: repeating-linear-gradient(170deg, #D9BF94 0 5px, #C7A979 5px 7px); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color .25s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active::after { border-color: var(--ink); }
.exp-note { margin: 0; font-size: 13px; color: var(--gray-2); }

/* ---------- Kontakt: Anfrage / Rückruf ---------- */
.form-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--bg-alt); }
.fmode { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--gray); transition: background .3s, color .3s, box-shadow .3s; }
.fmode.is-active { background: #fff; color: var(--red); box-shadow: 0 6px 16px -10px rgba(0,0,0,.35); }
.contact-form[data-mode="request"] .only-callback,
.contact-form[data-mode="callback"] .only-request,
.contact-form[data-mode="request"] .lbl-callback,
.contact-form[data-mode="callback"] .lbl-request { display: none; }
.contact-form[data-mode="callback"] .field-row { grid-template-columns: 1fr; }
.contact-form.is-flash { animation: formFlash 1.2s var(--ease); }
@keyframes formFlash { 0% { box-shadow: 0 0 0 0 rgba(194,22,34,.55); } 100% { box-shadow: 0 0 0 18px rgba(194,22,34,0); } }


/* ---------- Responsive ---------- */
@media (min-width: 1800px) {
  :root { --container: 1480px; --header-h: 104px; --header-h-sm: 80px; }
  body { font-size: 18px; }
}
@media (max-width: 1180px) {
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .header-inner { gap: 16px; }
  .brand img { height: calc(var(--header-h) * .5); }
  .site-header.is-scrolled .brand img { height: calc(var(--header-h-sm) * .55); }
  .main-nav > ul { gap: 0; }
  .nav-link { padding: 10px 12px; font-size: 15.5px; }
  .nav-pill { height: 42px; }
  .btn-header { padding: 13px 22px; }
  .lang-btn { padding: 0 11px; height: 44px; }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; --header-h-sm: 62px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: block; }
  .brand img { height: calc(var(--header-h) * .58); }
  .site-header.is-scrolled .brand img { height: calc(var(--header-h-sm) * .58); }
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .finder-card { grid-template-columns: 1fr; }
  .finder-progress { grid-auto-flow: column; justify-content: start; gap: 18px; }
  .finder-stage { min-height: 0; }
  .finder-options-place { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-ba { grid-row: auto; }
  .ba { min-height: 0; aspect-ratio: 5 / 3; }
  .process-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process-aside { flex-direction: column; align-items: flex-start; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before, .steps::after { display: none; }
  .ref { padding: 12px 18px; }
  .ref > span { font-size: 18px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "lg lg" "a b" "s1 s2"; }
  .card-lg .card-media { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .hero-tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-tab { font-size: 0; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "lg" "a" "b" "s1" "s2"; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sector { padding: 24px 18px; }
  .sector h3 { font-size: 18px; hyphens: auto; }
  .sector:last-child { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab { right: 12px; bottom: 12px; left: 12px; justify-content: space-between; }
  .call-pill { flex: 1; padding: 6px 14px 6px 6px; gap: 10px; min-width: 0; }
  .call-icon { width: 48px; height: 48px; }
  .call-text small { font-size: 11px; }
  .call-text strong { font-size: 18px; }
  .fab-btn { height: 60px; }
  .fab-contact span { display: none; }
  .site-footer { padding-bottom: 110px; }
  .hero-badge { font-size: 13px; gap: 10px; }
  .hero-badge svg, .hb-long { display: none; }
  .values { grid-template-columns: 1fr; }
  .finder-options, .finder-results { grid-template-columns: 1fr; }
  .finder-progress li { font-size: 0; gap: 0; }
  .finder-progress span { font-size: 13px; }
  .finder-nav .btn { padding: 14px 18px; font-size: 15px; }
  .fmode { font-size: 13px; padding: 11px 6px; }
  .steps { grid-template-columns: 1fr; row-gap: 26px; }
  .pstep { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .pstep-dot { width: 56px; height: 56px; grid-row: span 3; margin: 0; }
  .pstep-dot svg { width: 24px; height: 24px; }
  .value { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; }
  .value-num { font-size: 34px; min-width: 48px; }
  .map-svg .pin-label text { font-size: 30px; }
  .team-card { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; }
  .hero-slide { transform: none; }
  .scrub-title .sw { color: var(--ink); }
  .scrub-title em .sw { color: var(--red); }
}
