/* Schrift: Die fünf Montserrat-Dateien aus dem Bolt-Export (/fonts/Montserrat-*.woff2) sind alle
   Regular (intern „Montserrat Thin", Strichstärke wie 400). Fett gab es nur auf Rechnern mit lokal
   installierter Montserrat (local() im Bundle-CSS). Diese Regeln haben dieselben Angaben wie die im
   Bundle-CSS und stehen später, deshalb gewinnen sie. Eine variable Datei für 300–800 (SIL OFL). */
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-var-v1.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-var-v1.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-var-v1.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-var-v1.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-var-v1.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-var-v1.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* Hero-Intro: Video der Halle, danach steht das Endbild, Inhalt legt sich drüber.
   Wird per hero.js in <section id="home"> der React-App eingehängt. */

#home { background: #0b0c0e; }
#home > :not(#hero-intro) { display: none !important; }

#hero-intro {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hi-red: #df1414;
  --hi-red-dark: #b90f0f;
}

/* ---------- Medien ---------- */
.hi-media { position: absolute; inset: 0; }
.hi-video,
.hi-end {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hi-video { opacity: 0; transition: opacity .4s ease; }
#hero-intro.is-playing .hi-video { opacity: 1; }
.hi-end { opacity: 0; transition: opacity .7s ease; }
#hero-intro.is-done .hi-end { opacity: 1; }
#hero-intro.is-done .hi-video { visibility: hidden; }

.hi-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 55% at 50% 52%, rgba(0,0,0,.42), rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(11,12,14,.85) 100%);
  opacity: 0;
  transition: opacity .8s ease;
}
#hero-intro.is-done .hi-shade { opacity: 1; }

/* ---------- Inhalt ---------- */
.hi-content {
  position: relative;
  z-index: 4; /* über .hi-fade, sonst graut der Übergang die Merkmale unten aus */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.25rem 2.5rem;
  box-sizing: border-box;
}
.hi-content > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
#hero-intro.is-done .hi-content > * { opacity: 1; transform: none; }
#hero-intro.is-done .hi-logo  { transition-delay: .05s; }
#hero-intro.is-done .hi-brand { transition-delay: .15s; }
#hero-intro.is-done .hi-h1    { transition-delay: .28s; }
#hero-intro.is-done .hi-sub   { transition-delay: .42s; }
#hero-intro.is-done .hi-cta   { transition-delay: .56s; }
#hero-intro.is-done .hi-feat  { transition-delay: .72s; }

.hi-logo {
  height: clamp(64px, 9vw, 112px);
  width: auto;
  margin-bottom: .9rem;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.45));
}
.hi-brand {
  font-size: clamp(.68rem, .9vw, .85rem);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 1.4rem;
  padding-left: .38em; /* gleicht das Tracking am Ende aus */
}
.hi-h1 {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; /* Site-CSS setzt h1 auf Playfair */
  font-size: clamp(2.7rem, 6.4vw, 6rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0 0 1.2rem;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.hi-h1 span { display: block; color: var(--hi-red); }
.hi-sub {
  font-size: clamp(1.05rem, 1.55vw, 1.55rem);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255,255,255,.88);
  max-width: 44ch;
  margin: 0 0 2.2rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}

.hi-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.6rem;
}
.hi-btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 4px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.hi-btn svg { width: 1.15em; height: 1.15em; transition: transform .2s ease; }
.hi-btn:hover { transform: translateY(-2px); }
.hi-btn:hover svg { transform: translateX(3px); }
.hi-btn-primary {
  background: var(--hi-red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(223,20,20,.35);
}
.hi-btn-primary:hover { background: var(--hi-red-dark); }
.hi-btn-ghost {
  background: rgba(0,0,0,.25);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.75);
  backdrop-filter: blur(4px);
}
.hi-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.hi-feat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.hi-feat li {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 1.8rem;
  border-left: 1px solid rgba(255,255,255,.28);
  font-size: .92rem;
  line-height: 1.3;
  text-align: left;
  color: rgba(255,255,255,.9);
}
.hi-feat li:first-child { border-left: 0; }
.hi-feat svg { width: 30px; height: 30px; flex: none; color: var(--hi-red); }

/* ---------- Mobil ---------- */
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  .hi-content { justify-content: flex-end; padding: 5.5rem 1.1rem clamp(1.2rem, 4vh, 2.4rem); }
  .hi-logo { height: clamp(60px, 16vw, 84px); margin-bottom: .6rem; }
  .hi-brand { font-size: .62rem; letter-spacing: .32em; margin-bottom: .9rem; }
  .hi-h1 { font-size: clamp(2.3rem, 11vw, 3.8rem); margin-bottom: .8rem; }
  .hi-sub { font-size: .95rem; line-height: 1.45; margin-bottom: 1.2rem; max-width: 32ch; }
  .hi-cta { flex-direction: column; width: 100%; max-width: 360px; gap: .6rem; margin-bottom: 1.3rem; }
  .hi-btn { justify-content: center; width: 100%; box-sizing: border-box; padding: .9rem 1.5rem; font-size: .98rem; }
  .hi-feat li {
    flex-direction: column;
    text-align: center;
    padding: 0 .5rem;
    gap: .4rem;
    font-size: .72rem;
    line-height: 1.25;
    flex: 1 1 0;
  }
  .hi-feat svg { width: 24px; height: 24px; }
  .hi-shade {
    background:
      linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.72) 72%, rgba(11,12,14,.95) 100%);
  }
}

/* Die letzten Zentimeter des Heros laufen in die Farbe der nächsten Sektion aus. */
.hi-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(120px, 18vh, 220px);
  background: linear-gradient(to bottom, rgba(15,16,18,0) 0%, rgba(15,16,18,.55) 45%, #0f1012 100%);
  pointer-events: none;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .hi-content > *, .hi-end, .hi-shade, .hi-video { transition: none !important; }
}

/* =====================================================================
   Leistungen: Fakten-Leiste + Kachel-Raster, ersetzt die React-Sektion
   ===================================================================== */
#services {
  background: #0f1012 !important;
  background-image: none !important;
  padding: 0 !important;
  color: #fff;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hi-red: #df1414;
}
#services > :not(#leist) { display: none !important; }

#leist { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.5rem 6rem; }

/* Fakten-Leiste */
.ls-fakten {
  list-style: none;
  margin: 0 0 5.5rem;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--hi-red);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ls-fakten li {
  padding: .35rem 1.6rem;
  border-left: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Zahlen oben bündig, auch bei zweizeiligem Text */
  gap: .3rem;
}
.ls-fakten li:first-child { border-left: 0; padding-left: 0; }
.ls-fakten b {
  display: block;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}
.ls-fakten b em { font-style: normal; color: var(--hi-red); }
.ls-fakten span {
  font-size: .82rem;
  line-height: 1.35;
  color: rgba(255,255,255,.62);
}
/* Siegel: die zwei Wort-Fakten als rot gerahmte Stempel mit Icon und Lichtlauf */
.ls-siegel { align-items: flex-start; }
.ls-siegel b {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem .55rem .7rem;
  border: 2px solid var(--hi-red);
  border-radius: 4px;
  font-size: clamp(.82rem, 1vw, .98rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(223,20,20,.08);
  overflow: hidden;
  isolation: isolate;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  transition: transform .3s ease, background-color .3s ease;
}
.ls-siegel b svg { width: 1.15em; height: 1.15em; flex: none; color: var(--hi-red); }
.ls-siegel b::after {
  content: "";
  position: absolute;
  top: -50%; bottom: -50%;
  left: -40%;
  width: 35%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg) translateX(-120%);
  pointer-events: none;
}
#leist.is-in .ls-siegel b::after { animation: ls-shine 1.1s cubic-bezier(.2,.7,.2,1) .9s 1 both; }
#leist.is-in .ls-siegel:last-child b::after { animation-delay: 1.15s; }
.ls-siegel:hover b { transform: rotate(0deg); background: rgba(223,20,20,.16); }
.ls-siegel span { padding-left: .15rem; }
@keyframes ls-shine {
  from { transform: skewX(-20deg) translateX(-120%); }
  to   { transform: skewX(-20deg) translateX(520%); }
}

/* Projekte (Reels) */
#portfolio {
  background: #0f1012 !important;
  background-image: none !important;
  padding: 0 !important;
  color: #fff;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hi-red: #df1414;
}
#portfolio > :not(#proj) { display: none !important; }
#proj { max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem 6.5rem; box-sizing: border-box; }

/* ---------- Reel-Handy: ein iPhone, beide Videos, hoch/runter scrollen ---------- */
.rf {
  --hi-red: #df1414;
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  color: #fff;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.rf-info { max-width: 34rem; }
/* .ls-kopf blendet sonst erst mit #leist.is-in ein und bringt eigenen Abstand mit */
.rf .rf-kopf { margin-bottom: 0; opacity: 1; transform: none; }
.rf .rf-kopf h2 { white-space: normal; }

.rf-liste {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
}
.rf-liste li { position: relative; border-bottom: 1px solid rgba(255,255,255,.1); }
.rf-item {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
  padding: 1.35rem 0 1.25rem;
  cursor: pointer;
  color: #fff;
  opacity: .45;
  transition: opacity .3s ease;
}
.rf-item:hover { opacity: .8; }
.rf-liste li.is-active .rf-item { opacity: 1; }
.rf-item:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 4px; border-radius: 2px; }
.rf-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: rgba(255,255,255,.12);
}
.rf-bar i {
  display: block;
  height: 100%;
  background: var(--hi-red);
  transform: scaleX(0);
  transform-origin: left center;
}
.rf-item b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.rf-desc { font-size: .95rem; line-height: 1.45; color: rgba(255,255,255,.66); }
.rf-ig {
  display: none;
  align-items: center;
  gap: .5rem;
  margin: -.2rem 0 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--hi-red);
  text-decoration: none;
}
.rf-liste li.is-active .rf-ig { display: inline-flex; }
.rf-ig svg { width: 1.1em; height: 1.1em; transition: transform .3s ease; }
.rf-ig:hover svg { transform: translateX(4px); }
.rf-ig:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 3px; border-radius: 2px; }

/* iPhone-Rahmen: PNG 649×1252 mit durchsichtigem Bildschirm liegt oben auf,
   Bildschirmausschnitt in Prozent ausgemessen. Breite richtet sich auch nach
   der Fensterhöhe, damit das ganze Handy auf einen Bildschirm passt. */
.rf-phone {
  position: relative;
  justify-self: center;
  width: min(22rem, calc((100vh - 150px) * .5186));
  width: min(22rem, calc((100svh - 150px) * .5186));
  min-width: 15rem;
  aspect-ratio: 649 / 1252;
}
/* Schatten hinter dem Handy statt filter:drop-shadow (der müsste jedes Videobild neu rechnen) */
.rf-phone::before {
  content: "";
  position: absolute;
  inset: 2% 4% 1%;
  border-radius: 12% / 6%;
  box-shadow: 0 34px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02);
}
.rf-screen {
  position: absolute;
  left: 5.08%; top: 2.16%;
  width: 89.83%; height: 95.69%;
  overflow: hidden;
  border-radius: 10% / 4.87%;
  background: #000;
  isolation: isolate;
}
.rf-feed {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.rf-feed::-webkit-scrollbar { display: none; }
.rf-feed:focus-visible { box-shadow: inset 0 0 0 3px var(--hi-red); }
.rf-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  cursor: pointer;
}
.rf-slide video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rf-slide::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  pointer-events: none;
}
.rf-cap {
  position: absolute;
  left: 7%; right: 16%; bottom: 7.5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.rf-acc { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 600; }
.rf-acc img {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.rf-cap b { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.rf-prog {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.22);
  z-index: 2;
}
.rf-prog i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.rf-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.rf-play svg { width: 30px; height: 30px; margin-left: 4px; }
.rf-slide.is-stopped .rf-play { opacity: 1; transform: none; }
.rf-ton {
  position: absolute;
  top: 6%; right: 6%;
  z-index: 4;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease;
}
.rf-ton:hover { background: rgba(0,0,0,.72); }
.rf-ton svg { width: 20px; height: 20px; }
.rf-ton[aria-pressed="true"] { background: var(--hi-red); }
.rf-ton:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rf-dots {
  position: absolute;
  right: 4%; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.rf-dots i {
  display: block;
  width: 4px; height: 16px;
  border-radius: 2px;
  background: rgba(255,255,255,.45);
  transition: height .3s ease, background-color .3s ease;
}
.rf-dots i.is-active { height: 30px; background: #fff; }
.rf-hint {
  position: absolute;
  left: 50%; bottom: 25%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem .5rem .65rem;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .4s ease;
}
.rf-hint svg { width: 16px; height: 16px; animation: rf-hoch 1.4s ease-in-out 1.2s 3; }
.rf.rf-bewegt .rf-hint { opacity: 0; }
.rf-hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .rf-hint-touch { display: inline; }
  .rf-hint-maus { display: none; }
}
@keyframes rf-hoch {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.rf-rahmen {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 900px) {
  .rf { display: flex; flex-direction: column; align-items: stretch; }
  .rf-info { display: contents; }
  .rf-kopf { order: 0; }
  .rf-phone {
    order: 1;
    align-self: center;
    margin-top: 2.2rem;
    width: min(20rem, 80vw, calc((100vh - 130px) * .5186));
    width: min(20rem, 80vw, calc((100svh - 130px) * .5186));
  }
  .rf-liste { order: 2; margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-hint svg { animation: none; }
  .rf-item, .rf-play, .rf-dots i, .rf-hint { transition: none; }
}

/* Kontakt: Formular weg, erste Raumcheck-Frage rein */
#contact {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hi-red: #df1414;
}
#contact .heading-lg {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
#contact .lg\:col-span-3 > :not(#fun) { display: none !important; }
#contact .lg\:col-span-3 { display: flex; align-items: stretch; }
#fun { width: 100%; }
.fu-sheet {
  height: 100%;
  box-sizing: border-box;
  background: #16181b;
  border: 1px solid rgba(255,255,255,.09);
  border-top: 3px solid var(--hi-red);
  border-radius: 4px;
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: 0 22px 56px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}
.fu-kicker {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hi-red);
}
.fu-q {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin: 0 0 1.2rem;
  color: #fff;
}
.fu-q em {
  font-style: normal;
  background: linear-gradient(90deg, #E01010 0%, #FF6A5A 55%, #E01010 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 11px rgba(200,8,8,.45));
}
.fu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 520px;
}
.fu-sheet { justify-content: center; }
.fu-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.14;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
  background: #1f2226;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .24s ease, border-color .24s ease;
}
.fu-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(.9) saturate(.95);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}
.fu-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,20,0) 32%, rgba(20,20,20,.93) 92%);
}
.fu-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--hi-red);
  z-index: 1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}
.fu-card span { position: absolute; left: 12px; right: 10px; bottom: 11px; }
.fu-card strong { display: block; font-size: .98rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.fu-card em { display: block; font-style: normal; font-size: .72rem; color: rgba(255,255,255,.72); margin-top: 4px; line-height: 1.35; font-weight: 500; }
.fu-card:hover, .fu-card:focus-visible { transform: translateY(-3px); border-color: var(--hi-red); }
.fu-card:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.02); }
.fu-card:hover::before { transform: scaleY(1); }
.fu-card:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 2px; }
.fu-trust {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255,255,255,.55);
}
.fu-trust.fu-soft { margin-top: .35rem; font-weight: 500; letter-spacing: 0; }
@media (max-width: 1023px) {
  /* Am Handy steht der Raumcheck vor der Infokarte. */
  #contact .lg\:col-span-3 { order: -1; }
  .fu-grid { max-width: none; }
}
@media (max-width: 767px) {
  .fu-sheet { padding: 1.4rem 1.1rem 1.2rem; }
  .fu-q { font-size: clamp(1.6rem, 7.5vw, 2rem); }
}

@media (max-width: 767px) {
  #proj { padding: .5rem 1.1rem 4rem; }
  .ls-siegel b { transform: none; }
}

/* Kopf */
.ls-kopf { margin-bottom: 2.5rem; }
.ls-kopf h2 { white-space: nowrap; }
.ls-kopf h2 {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0 0 1rem;
  color: #fff;
}
.ls-kopf h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  background: var(--hi-red);
  margin-top: 1.1rem;
}
.ls-kopf p { margin: 0; max-width: 46ch; font-size: 1.1rem; line-height: 1.5; color: rgba(255,255,255,.7); }

/* Raster: große Kachel 2×2, rechts zwei kleine, unten drei */
.ls-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}
.ls-kachel {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #16181b;
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.ls-kachel.ls-gross { grid-column: span 2; grid-row: span 2; }
.ls-kachel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
  filter: saturate(.85) brightness(.85);
}
.ls-kachel::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,11,13,.96) 0%, rgba(10,11,13,.55) 45%, rgba(10,11,13,.05) 100%);
  z-index: 1;
}
.ls-kachel::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--hi-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  z-index: 3;
}
.ls-kachel:hover img, .ls-kachel:focus-visible img { transform: scale(1.05); filter: saturate(1) brightness(.95); }
.ls-kachel:hover::after, .ls-kachel:focus-visible::after { transform: scaleX(1); }
.ls-kachel:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 2px; }

.ls-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.25rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.ls-text h3 {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ls-text h3 svg {
  width: 22px; height: 22px; flex: none;
  color: var(--hi-red);
  transition: transform .3s ease;
}
.ls-kachel:hover h3 svg { transform: translateX(4px); }
.ls-text p { margin: 0; font-size: .92rem; line-height: 1.45; color: rgba(255,255,255,.78); max-width: 52ch; }
.ls-text small { font-size: .78rem; color: rgba(255,255,255,.55); letter-spacing: .01em; }
.ls-gross .ls-text { padding: 2rem 2rem 1.9rem; gap: .6rem; }
.ls-gross .ls-text h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.ls-gross .ls-text h3 svg { width: 30px; height: 30px; }
.ls-gross .ls-text p { font-size: 1.02rem; }
.ls-gross .ls-tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hi-red);
  padding: .3rem .6rem;
  border-radius: 3px;
  margin-bottom: .2rem;
}

/* Einblenden beim Scrollen */
.ls-fakten, .ls-kopf, .ls-kachel {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
#leist.is-in .ls-fakten, #leist.is-in .ls-kopf, #leist.is-in .ls-kachel { opacity: 1; transform: none; }
#leist.is-in .ls-kachel:nth-child(2) { transition-delay: .08s; }
#leist.is-in .ls-kachel:nth-child(3) { transition-delay: .16s; }
#leist.is-in .ls-kachel:nth-child(4) { transition-delay: .24s; }
#leist.is-in .ls-kachel:nth-child(5) { transition-delay: .32s; }
#leist.is-in .ls-kachel:nth-child(6) { transition-delay: .40s; }

@media (max-width: 1023px) {
  .ls-fakten { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
  .ls-fakten li:nth-child(4) { border-left: 0; padding-left: 0; }
  .ls-raster { grid-auto-rows: 220px; }
}
@media (max-width: 767px) {
  #leist { padding: 1rem 1.1rem 4rem; }
  /* Drei Zahlen nebeneinander, oben bündig; darunter die zwei Stempel je in einer Zeile,
     gleich breit, Satz rechts daneben. */
  .ls-fakten { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; padding: 1.5rem 0; margin-bottom: 3.5rem; }
  .ls-fakten li { justify-content: flex-start; gap: .4rem; padding: 0 .7rem; border-left: 1px solid rgba(255,255,255,.12); }
  .ls-fakten li:first-child { padding-left: 0; border-left: 0; }
  .ls-fakten b { font-size: 2.1rem; }
  .ls-fakten span { font-size: .78rem; line-height: 1.3; }
  .ls-seit { display: none; }
  .ls-fakten li.ls-siegel {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 0 0;
    border-left: 0;
  }
  .ls-fakten li.ls-siegel:nth-child(4) { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); }
  .ls-fakten .ls-siegel b {
    flex: none;
    width: 12.6rem;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: .72rem;
    letter-spacing: .06em;
    padding: .55rem .7rem .55rem .6rem;
  }
  .ls-fakten .ls-siegel span { padding-left: 0; font-size: .8rem; }
  .ls-kopf { margin-bottom: 1.8rem; }
  .ls-kopf h2 { white-space: normal; }
  .ls-raster { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  /* Beschreibungen der Kacheln nur am Desktop, am Handy Titel + Stichworte */
  .ls-text p { display: none; }
  .ls-kachel { min-height: 180px; }
  .ls-kachel.ls-gross { grid-column: auto; grid-row: auto; min-height: 300px; }
  .ls-gross .ls-text { padding: 1.4rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-fakten, .ls-kopf, .ls-kachel, .ls-kachel img, .ls-kachel::after { transition: none !important; }
}

/* =====================================================================
   Philosophie: ersetzt die React-Sektion (Playfair, Glaskasten, Ecken)
   ===================================================================== */
#philosophy {
  --hi-red: #df1414;
  background: #16181b !important;
  background-image: none !important;
  padding: 0 !important;
  color: #fff;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}
#philosophy > :not(#phil) { display: none !important; }
#phil {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem;
  box-sizing: border-box;
}
#phil h2, #phil h3 { font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; }
.ph-kopf h2 {
  margin: 0 0 3rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}
.ph-kopf h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 1.1rem;
  background: var(--hi-red);
}
.ph-raster {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.ph-bild {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #0f1012;
  aspect-ratio: 1098 / 800;
}
.ph-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-punkte { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.ph-punkte li { padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ph-punkte h3 {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 0 0 .6rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
}
.ph-punkte h3::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  background: var(--hi-red);
  transform: translateY(-2px);
}
.ph-punkte p {
  margin: 0;
  padding-left: calc(8px + .75rem);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
}
/* Das Zitat trägt die Sektion: groß, linksbündig, rote Linie statt Kasten */
.ph-zitat {
  max-width: 52rem;
  margin: clamp(4rem, 8vw, 6.5rem) 0 0;
  padding-left: clamp(1.4rem, 3vw, 2.4rem);
  border-left: 4px solid var(--hi-red);
}
.ph-zitat blockquote { margin: 0; }
.ph-zitat p {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.ph-zitat figcaption { display: flex; flex-direction: column; gap: .2rem; margin-top: 1.6rem; }
.ph-zitat figcaption b { font-size: 1.05rem; font-weight: 700; }
.ph-zitat figcaption span { font-size: .9rem; color: rgba(255,255,255,.55); }

/* Nebeneinander: Foto so hoch wie die Textspalte (schneidet seitlich etwas ab) */
@media (min-width: 901px) {
  .ph-raster { align-items: stretch; }
  .ph-bild { aspect-ratio: auto; min-height: 24rem; }
}
@media (max-width: 900px) {
  .ph-raster { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  #phil { padding: 4rem 1.1rem; }
  .ph-kopf h2 { margin-bottom: 2rem; }
  .ph-punkte li { padding: 1.3rem 0; }
}
