/* ============================================================
   MALIK GERÜSTBAU – style.css
   Dunkles Premium-Design mit Effekt-System
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f7f7f5;
  --surface:     #ffffff;
  --surface-2:   #f4f4f2;
  --line:        rgba(17, 17, 17, 0.1);
  --dark:        #15171b;
  --accent:      #f53216;
  --accent-dark: #c52608;
  --accent-soft: rgba(239, 58, 20, 0.08);
  --accent-glow: rgba(239, 58, 20, 0.35);
  --text:        #181a1d;
  --text-dim:    #5d6168;
  --font-display: "Barlow Condensed", "Inter", sans-serif;
  --font-body:    "Inter", sans-serif;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 78px;
  --radius: 14px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  border: 2px solid var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-weight: 700;
  color: var(--accent);
}

h1 { font-size: clamp(3rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

p { color: var(--text-dim); }

.container { width: min(1200px, 92%); margin-inline: auto; }

section { position: relative; }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--alt { background: var(--bg-alt); }

/* Akzent-Wort in Headlines */
.accent { color: var(--accent); }

/* Tag / Eyebrow */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.tag::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}


.section__header { max-width: 720px; margin-bottom: clamp(40px, 6vw, 70px); }
.section__header p { margin-top: 16px; font-size: 1.06rem; }
.section__header--center { margin-inline: auto; text-align: center; }
.section__header--center .tag { justify-content: center; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  padding: 0 16px;
  overflow: hidden;
  transition: transform 0.9s var(--ease-out), visibility 0.9s;
}
.preloader.done { transform: translateY(-100%); visibility: hidden; }

.preloader__letters {
  display: flex; gap: 0.08em;
  justify-content: center;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.preloader__letters span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotate(6deg);
  animation: preLetter 0.7s var(--ease-back) forwards;
  animation-delay: calc(var(--i) * 90ms);
}
.preloader__letters span.is-accent { color: var(--accent); }
@keyframes preLetter {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.preloader__sub {
  font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.7s forwards;
}

.preloader__bar {
  width: min(280px, 60vw); height: 2px;
  background: var(--line);
  overflow: hidden; border-radius: 2px;
}
.preloader__bar::after {
  content: "";
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  animation: preBar 1.4s var(--ease-out) 0.3s forwards;
  box-shadow: 0 0 16px var(--accent-glow);
}
@keyframes preBar { to { transform: translateX(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   SCROLL PROGRESS / CURSOR / BACK-TO-TOP
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9000;
  width: 100%; height: 3px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 0 14px var(--accent-glow);
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(239, 58, 20, 0.55);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(239, 58, 20, 0.08);
  border-color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 8000;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: 0.4s var(--ease-out);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 0 24px var(--accent-glow); }
.back-to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top svg.ring circle {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-dasharray: 163; stroke-dashoffset: 163;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              box-shadow 0.4s ease, transform 0.45s var(--ease-out), height 0.35s ease;
}
.navbar.scrolled {
  height: 66px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.navbar.nav-hidden { transform: translateY(-110%); }

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1280px, 94%); margin-inline: auto;
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.7rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 10px;
  color: var(--accent);
}
.navbar__logo .logo-mark {
  width: 58px; height: 33px; flex: 0 0 auto;
}
.navbar__logo b { color: var(--accent); font-weight: 800; }
.navbar .logo-mark [fill="#fff"] { fill: var(--accent); }
.navbar .logo-mark [stroke="#fff"] { stroke: var(--accent); }

.navbar__links { display: flex; align-items: center; gap: 34px; }
.navbar__links a:not(.btn) {
  position: relative;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s;
  padding: 6px 0;
}
.navbar__links a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.navbar__links a:not(.btn):hover,
.navbar__links a:not(.btn).active { color: var(--text); }
.navbar__links a:not(.btn):hover::after,
.navbar__links a:not(.btn).active::after {
  transform: scaleX(1); transform-origin: left;
}

.navbar__toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  position: relative; z-index: 7600;
}
.navbar__toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--text);
  margin: 6px auto;
  transition: 0.35s var(--ease-out);
}
.navbar .navbar__toggle.open span { background: #fff; }
.navbar__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Fullscreen-Menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 7500;
  background: rgba(229, 45, 17, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  clip-path: circle(0% at calc(100% - 60px) 40px);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0.7s;
}
.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 60px) 40px);
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700; text-transform: uppercase;
  color: #fff;
  padding: 8px 20px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out), color 0.3s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: rgba(255, 255, 255, 0.7); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.43s; }
.mobile-menu__contact {
  margin-top: 26px; text-align: center;
  opacity: 0; transition: opacity 0.5s ease 0.55s;
}
.mobile-menu.open .mobile-menu__contact { opacity: 1; }
.mobile-menu__contact a { font-family: var(--font-body); font-size: 1rem; color: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__toggle { display: block; }
}

/* ============================================================
   BUTTONS (Shine + Magnetic)
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 60px;
  border: 1.5px solid transparent;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn::before { /* Shine sweep */
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 30px rgba(239, 58, 20, 0.3);
}
.btn--primary:hover { box-shadow: 0 14px 40px rgba(239, 58, 20, 0.45); }

.btn--outline {
  border-color: rgba(17, 17, 17, 0.3);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--white {
  background: #fff; color: var(--accent);
}
.btn--white:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); }

.btn--nav { padding: 10px 24px; background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--nav:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -6%;
  z-index: -3;
  background-size: cover; background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.97) 22%, rgba(255, 255, 255, 0.86) 50%, rgba(255, 255, 255, 0.55) 100%),
    radial-gradient(820px 500px at 85% 25%, rgba(245, 50, 22, 0.12), transparent 65%);
}
#heroCanvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* Filmkorn-Overlay */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content { position: relative; z-index: 2; max-width: 850px; }

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .word { display: inline-block; white-space: pre; }
.hero h1 .char {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  animation: charUp 0.85s var(--ease-out) forwards;
  animation-delay: calc(1.5s + var(--ci) * 28ms);
}
@keyframes charUp { to { transform: translateY(0) rotate(0); } }

.hero__sub {
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  opacity: 0; transform: translateY(24px);
  animation: riseIn 0.9s var(--ease-out) 2.2s forwards;
}
.hero .tag {
  opacity: 0;
  animation: fadeIn 0.8s ease 1.3s forwards;
}
.hero .btn-group {
  opacity: 0; transform: translateY(24px);
  animation: riseIn 0.9s var(--ease-out) 2.45s forwards;
}
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* Typewriter-Zeile */
.hero__type {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeIn 0.8s ease 2.35s forwards;
  min-height: 1.4em;
}
.hero__type .typed { color: var(--accent); }
.hero__type .caret {
  display: inline-block; width: 3px; height: 1.05em;
  background: var(--accent);
  margin-left: 4px; vertical-align: text-bottom;
  animation: caretBlink 0.85s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Schwebendes Badge */
.hero__badge {
  position: absolute; right: 4%; bottom: 16%;
  z-index: 2;
  width: 190px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
  animation: floatY 5.5s ease-in-out infinite;
  opacity: 0;
}
.hero__badge.shown { animation: floatY 5.5s ease-in-out infinite, fadeIn 1s ease forwards; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-16px) rotate(2deg); }
}
@media (max-width: 1100px) { .hero__badge { display: none; } }

/* Scroll-Indicator */
.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeIn 1s ease 3s forwards;
}
.hero__scroll .mouse {
  width: 24px; height: 40px;
  border: 1.5px solid var(--text-dim);
  border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 8px; border-radius: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%   { opacity: 1; transform: translate(-50%, 0); }
  70%  { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -12px 0;
  position: relative; z-index: 3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.marquee--plain { transform: none; margin: 0; }
.marquee__track {
  display: flex; gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 48px;
  white-space: nowrap;
}
.marquee__track span::after { content: "✦"; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SCROLL-REVEAL-SYSTEM  [data-reveal]
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(56px); }
[data-reveal="down"]  { transform: translateY(-56px); }
[data-reveal="left"]  { transform: translateX(-64px); }
[data-reveal="right"] { transform: translateX(64px); }
[data-reveal="zoom"]  { transform: scale(0.86); }
[data-reveal="blur"]  { filter: blur(12px); transform: translateY(24px); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ============================================================
   MALIK MOSAIC – interaktive Bildgalerie
   ============================================================ */
.mosaic {
  display: flex;
  height: clamp(320px, 48vw, 560px);
  gap: 6px;
  padding: 6px;
  background: var(--bg);
}
.mosaic__item {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.7s var(--ease-out);
}
.mosaic__item:hover { flex: 2.6; }
.mosaic__item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.85);
  transform: scale(1.15);
  transition: filter 0.7s ease, transform 0.7s var(--ease-out);
}
.mosaic__item:hover img { filter: grayscale(0) brightness(1); transform: scale(1.02); }
.mosaic__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(197, 38, 8, 0.8), transparent 55%);
}
.mosaic__letter {
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85);
  -webkit-text-fill-color: transparent;
  transition: 0.5s ease;
  line-height: 1;
}
.mosaic__item:hover .mosaic__letter {
  -webkit-text-fill-color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

/* ============================================================
   KARTEN (Werte) – 3D-Tilt + Glare
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.tilt-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.tilt-card:hover {
  border-color: rgba(239, 58, 20, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.16), 0 0 40px rgba(239, 58, 20, 0.06);
}
.tilt-card__glare {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tilt-card:hover .tilt-card__glare { opacity: 1; }

.card__image { height: 200px; overflow: hidden; }
.card__image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.8s var(--ease-out), filter 0.5s;
}
.tilt-card:hover .card__image img { transform: scale(1.1); filter: saturate(1.1); }

.card__body { padding: 26px; }
.card__num {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent);
}
.card__body h3 { margin: 8px 0 12px; }
.card__body p { font-size: 0.95rem; }

/* ============================================================
   PROJEKT-VORSCHAU (Home)
   ============================================================ */
.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.project-preview-card {
  position: relative;
  display: block;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
}
.project-preview-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
  filter: brightness(0.95);
}
.project-preview-card:hover img { transform: scale(1.08); filter: brightness(1); }
.project-preview-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(197, 38, 8, 0.88) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px;
}
.project-preview-card__cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(14px); opacity: 0;
  transition: 0.5s var(--ease-out) 0.05s;
}
.project-preview-card__title {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700; text-transform: uppercase;
  color: #fff;
  transform: translateY(14px);
  transition: 0.5s var(--ease-out);
}
.project-preview-card__arrow {
  position: absolute; top: 22px; right: 22px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  transform: scale(0) rotate(-45deg);
  transition: transform 0.5s var(--ease-back);
}
.project-preview-card:hover .project-preview-card__arrow { transform: scale(1) rotate(0); }
.project-preview-card:hover .project-preview-card__cat,
.project-preview-card:hover .project-preview-card__title { transform: translateY(0); opacity: 1; }

.projects-link { text-align: center; margin-top: 46px; }

/* ============================================================
   STATS – animierte Zähler
   ============================================================ */
.stats {
  background:
    linear-gradient(115deg, rgba(197, 38, 8, 0.93), rgba(245, 50, 22, 0.88)),
    url("https://malik-geruestbau.ch/images/IMG_7859.JPG") center/cover fixed;
  border-block: 1px solid var(--line);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.stat__label {
  margin-top: 10px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { overflow: hidden; }
.testimonial__inner {
  position: relative;
  max-width: 880px; margin-inline: auto;
  text-align: center;
  padding: 40px 20px;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 12rem; line-height: 0.6;
  color: var(--accent);
  opacity: 0.18;
  position: absolute; top: 30px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 600;
  text-transform: none;
  color: var(--accent);
  line-height: 1.3;
}
.testimonial__author {
  margin-top: 28px;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.testimonial__author small { display: block; margin-top: 4px; color: var(--text-dim); letter-spacing: 0.1em; }

/* ============================================================
   CTA-BANNER – animierter Gradient
   ============================================================ */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #b3260a, var(--accent), #ff7a52, var(--accent), #b3260a);
  background-size: 300% 300%;
  animation: gradientShift 9s ease infinite;
  color: #fff;
  text-align: center;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.cta-banner h2 { max-width: 860px; margin-inline: auto; color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 18px auto 0; font-weight: 500; }
.cta-banner .btn-group { justify-content: center; }
.cta-banner .btn--dark {
  background: #fff; color: var(--accent);
}
.cta-banner .btn--dark:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.cta-banner .btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.cta-banner .btn--ghost:hover { background: #fff; color: var(--accent); }

/* Dekorative grosse Outline-Schrift im Hintergrund */
.giant-text {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 800; text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 20, 20, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ============================================================
   PAGE HEADER (Unterseiten)
   ============================================================ */
.page-header {
  position: relative;
  padding: calc(var(--nav-h) + clamp(70px, 10vw, 120px)) 0 clamp(70px, 9vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
/* Roter Header ohne Foto (Rechtsseiten) */
.page-header--solid { background: linear-gradient(120deg, var(--accent-dark), var(--accent) 60%, #ff6440); }
.page-header--solid h1 { color: #fff; }
.page-header--solid h1 .accent { color: #fff; opacity: 0.85; }
.page-header--solid p { color: rgba(255, 255, 255, 0.88); }
.page-header--solid .breadcrumb { color: rgba(255, 255, 255, 0.75); }
.page-header--solid .breadcrumb a:hover { color: #fff; }
.page-header--solid .breadcrumb span { color: #fff; }
.page-header__bg {
  position: absolute; inset: -8%; z-index: -2;
  background-size: cover; background-position: center;
  animation: kenburns 20s ease-in-out infinite alternate;
}
.page-header__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96) 25%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.5) 100%),
    radial-gradient(700px 420px at 85% 30%, rgba(245, 50, 22, 0.12), transparent 65%);
}
.page-header h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.page-header p { margin-top: 18px; max-width: 620px; font-size: 1.08rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--accent); }

/* ============================================================
   PROJEKTE – Filter + Grid + Lightbox
   ============================================================ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 46px;
}
.filter-btn {
  padding: 11px 26px;
  border-radius: 60px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text-dim);
  font-size: 0.88rem; font-weight: 600;
  transition: 0.35s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 58, 20, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.project-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.project-card.hide {
  opacity: 0; transform: scale(0.85);
  pointer-events: none;
  position: absolute; visibility: hidden;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.95);
  transition: transform 0.8s var(--ease-out), filter 0.5s;
}
.project-card:hover img { transform: scale(1.1) rotate(0.5deg); filter: brightness(1); }
.project-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(197, 38, 8, 0.88), transparent 55%);
}
.project-card__cat {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; text-transform: uppercase;
  color: #fff;
  margin-top: 4px;
}
.project-card__zoom {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: #fff;
  opacity: 0; transform: scale(0.5);
  transition: 0.4s var(--ease-back);
}
.project-card:hover .project-card__zoom { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(1100px, 88vw); max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.3);
  transform: scale(0.92);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__caption {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  text-align: center;
}
.lightbox__caption small { display: block; color: var(--accent); font-size: 0.75rem; letter-spacing: 0.24em; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--text);
  display: grid; place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.lightbox__close { top: 26px; right: 26px; }
.lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   ÜBER UNS – Timeline / USP-Blöcke
   ============================================================ */
.usp-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 70px) 0;
}
.usp-block + .usp-block { border-top: 1px solid var(--line); }
.usp-block:nth-child(even) .usp-block__media { order: 2; }
@media (max-width: 820px) {
  .usp-block { grid-template-columns: 1fr; }
  .usp-block:nth-child(even) .usp-block__media { order: 0; }
}
.usp-block__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(280px, 36vw, 420px);
}
.usp-block__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.usp-block__media:hover img { transform: scale(1.07); }

/* Portrait-Block (Inhaber): höherer Rahmen + oben verankert,
   damit der ganze Kopf UND die verschränkten Arme sichtbar bleiben */
.usp-block__media--portrait {
  height: clamp(420px, 56vw, 620px);
}
.usp-block__media--portrait img {
  object-position: center top;
}
.usp-block__media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}
.usp-block__num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(239, 58, 20, 0.5);
}
.usp-block__content h3 { margin: 14px 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.usp-block__content .usp-sub {
  color: var(--accent);
  font-weight: 600; font-size: 0.92rem;
  margin-bottom: 14px;
}

/* Timeline (Über Uns) */
.timeline { position: relative; max-width: 760px; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute; left: 19px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline__progress {
  position: absolute; left: 19px; top: 0;
  width: 2px; height: 0%;
  background: linear-gradient(var(--accent-dark), var(--accent));
  box-shadow: 0 0 14px var(--accent-glow);
  transition: height 0.2s linear;
}
.timeline__item {
  position: relative;
  padding: 0 0 46px 70px;
}
.timeline__dot {
  position: absolute; left: 11px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--accent-glow);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em;
}
.timeline__item h4 { font-size: 1.3rem; margin: 4px 0 8px; }

/* ============================================================
   DIENSTLEISTUNGEN – Service-Karten
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(239, 58, 20, 0.4);
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.16);
}
.service-card__image { height: 230px; overflow: hidden; position: relative; }
.service-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.service-card:hover .service-card__image img { transform: scale(1.12); }
.service-card__num {
  position: absolute; top: 16px; left: 18px; z-index: 2;
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  opacity: 0.85;
}
.service-card__body { padding: 28px; }
.service-card__body h3 { margin-bottom: 12px; }
.service-card__body p { font-size: 0.96rem; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-weight: 600; font-size: 0.9rem;
  color: var(--accent);
}
.service-card__link svg { transition: transform 0.35s var(--ease-out); }
.service-card__link:hover svg { transform: translateX(6px); }

/* Leistungs-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 60px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  transition: 0.35s ease;
}
.chip:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }

.form-group { position: relative; margin-bottom: 22px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 17px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.35s, box-shadow 0.35s, background 0.35s;
  outline: none;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group select { appearance: none; cursor: pointer; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 58, 20, 0.1), 0 0 24px rgba(239, 58, 20, 0.06);
  background: #fff;
}
.form-group label {
  position: absolute; left: 14px; top: -9px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  border-radius: 4px;
  transition: color 0.3s;
}
.form-group:focus-within label { color: var(--accent); }

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 0;
}
.contact-info-item + .contact-info-item { border-top: 1px solid var(--line); }
.contact-icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  transition: 0.35s ease;
}
.contact-info-item:hover .contact-icon {
  background: var(--accent); color: #fff;
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 24px rgba(239, 58, 20, 0.3);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-info-text strong {
  display: block;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.contact-info-text a { font-weight: 500; transition: color 0.3s; }
.contact-info-text a:hover { color: var(--accent); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
  filter: grayscale(1);
  transition: filter 0.6s ease;
}
.map-wrap:hover { filter: grayscale(0); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Formular-Erfolgsmeldung */
.form-success {
  display: none;
  padding: 18px 22px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 10px;
  color: #7ee2a8;
  margin-bottom: 20px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.legal-content h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal-content p, .legal-content li { color: var(--text-dim); margin-bottom: 12px; font-size: 0.96rem; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content a { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(160deg, #e62e10, var(--accent-dark));
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 90px) 0 0;
  position: relative;
  overflow: hidden;
}
.footer p { color: rgba(255, 255, 255, 0.88); }
/* Logo-Badge im roten Footer invertiert: weisses Quadrat, rotes Logo */
.footer .logo-badge { background: #fff; }
.footer .logo-badge [fill="#fff"] { fill: var(--accent); }
.footer .logo-badge [stroke="#fff"] { stroke: var(--accent); }
.footer__giant {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 800; text-transform: uppercase;
  text-align: center;
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  user-select: none;
  white-space: nowrap;
  margin-bottom: clamp(40px, 6vw, 70px);
  transition: -webkit-text-stroke-color 0.6s;
}
.footer__giant:hover { -webkit-text-stroke-color: rgba(255, 255, 255, 0.7); }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr; gap: 36px; } }

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  color: #fff;
  margin-bottom: 16px;
}
.footer__logo b { color: rgba(255, 255, 255, 0.75); }
.footer__desc { max-width: 360px; font-size: 0.94rem; }
.footer__slogan {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff;
}

.footer__heading {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer__links li { margin-bottom: 12px; }
.footer__links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  position: relative;
  transition: color 0.3s, padding-left 0.3s;
}
.footer__links a::before {
  content: "→";
  position: absolute; left: -4px;
  opacity: 0;
  color: #fff;
  transition: 0.3s;
}
.footer__links a:hover { color: #fff; padding-left: 22px; }
.footer__links a:hover::before { opacity: 1; left: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 26px 0;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: rgba(255, 255, 255, 0.82); }
.footer__legal a:hover { color: #fff; }
.footer__credit a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ============================================================
   LOGO-BADGE (offizielles Markenzeichen)
   ============================================================ */
/* Rotes Quadrat, Logo unten rechts – wie im Original-Logo */
.logo-badge {
  width: 46px; height: 46px; flex: 0 0 auto;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 5px 4px;
  overflow: hidden;
  margin-right: 12px;
}
.logo-badge svg { width: 86%; height: auto; display: block; }

.preloader__badge {
  width: 96px; height: 96px;
  background: var(--accent);
  border-radius: 20px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(239, 58, 20, 0.35);
  animation: badgePop 0.7s var(--ease-back) both;
}
.preloader__badge svg { width: 84%; height: auto; display: block; }
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.4) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* ============================================================
   NEUES MARKENLOGO (alban_icon.png)
   Ersetzt alle bisherigen SVG-Logos. Das PNG ist quadratisch –
   per object-fit: cover + breitem aspect-ratio wird der rote
   Rand oben/unten weggeschnitten, sodass nur der Schriftzug
   "MALIK GERÜSTBAU AG" sichtbar bleibt.
   ============================================================ */
.navbar__logo-img,
.footer__logo-img,
.preloader__logo img,
.vhero__logo img {
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 1;
}

/* Navbar */
.navbar__logo-img {
  height: 42px; width: auto;
  flex: 0 0 auto;
  border-radius: 6px;
}

/* Footer */
.footer__logo-img {
  height: 48px; width: auto;
  border-radius: 8px;
}

/* Preloader – Intro-Start */
.preloader__logo {
  width: min(78vw, 340px);
  animation: badgePop 0.8s var(--ease-back) both;
}
.preloader__logo img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(239, 58, 20, 0.35);
}

/* Video-Hero – Scroll-Animation */
.vhero__logo {
  width: min(82vw, 520px);
}
.vhero__logo img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(245, 50, 22, 0.35);
}

/* ============================================================
   VIDEO-HERO (GSAP ScrollTrigger – Pin + Scrubbing)
   ============================================================ */
.vhero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  z-index: 1;
}
.vhero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
  /* Eigener GPU-Layer → flüssiges Scrubbing, kein Ruckeln */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}
/* Canvas-Fallback für iOS-Scrubbing */
.vhero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none;
  background: #000;
}
.vhero--canvas .vhero__canvas { display: block; }
.vhero--canvas .vhero__video  { opacity: 0; pointer-events: none; }
.vhero__text {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.vhero__text .logo-badge {
  width: 112px; height: 112px;
  border-radius: 24px;
  margin: 0; padding: 10px 9px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  box-shadow: 0 24px 70px rgba(245, 50, 22, 0.35);
}
.vhero__text .logo-badge svg { width: 85%; height: auto; }
.vhero__text h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
}
.vhero__text h1 b { color: var(--accent); }
.vhero__text > p {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
}
.vhero__hint {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  animation: hintBounce 2s ease-in-out infinite;
}
.vhero__hint .mouse {
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  position: relative;
}
.vhero__hint .mouse::after {
  content: "";
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 8px; border-radius: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
/* Gradient-Overlay: verschmilzt das Videoende mit dem Seitenhintergrund */
.vhero__gradient {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, var(--bg) 28%, rgba(255, 255, 255, 0.85) 55%, rgba(255, 255, 255, 0) 100%);
  will-change: opacity;
}
.vhero__skip {
  position: absolute; right: 26px; bottom: 26px; z-index: 4;
  padding: 11px 24px;
  border-radius: 60px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-dim);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: 0.3s ease;
}
.vhero__skip:hover { border-color: var(--accent); color: var(--accent); }

/* Nächste Section überlappt das gepinnte Video in den letzten ~15 % */
body.has-intro .hero {
  margin-top: -50vh;
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .vhero { display: none; }
}

/* ============================================================
   SCROLL-INTRO (Video-Scrubbing am Seitenstart)
   ============================================================ */
.intro {
  position: relative;
  height: 280vh;          /* Scroll-Strecke des Intros (kleiner = schneller) */
  margin-bottom: -100vh;  /* Hero schiebt sich unter die ausblendende Bühne */
  z-index: 6000;
}
.intro__stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  display: grid; place-items: center;
  will-change: opacity, transform;
}
.intro__video {
  width: 100%; height: 100%;
  object-fit: contain;
  will-change: transform, filter;
}

/* Rote Kino-Balken, die sich beim Anscrollen öffnen */
.intro__bar {
  position: absolute; left: 0; right: 0; z-index: 3;
  height: 11vh;
  background: var(--accent);
  will-change: transform;
}
.intro__bar--top { top: 0; transform-origin: top; }
.intro__bar--bottom { bottom: 0; transform-origin: bottom; }

/* Titel, der mit dem Scroll-Fortschritt Buchstabe für Buchstabe erscheint */
.intro__title {
  position: absolute; left: 50%; top: 12%; z-index: 4;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  pointer-events: none;
}
.intro__title h2 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.intro__title h2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) scale(0.85);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-back);
  white-space: pre;
}
.intro__title h2 .char.on { opacity: 1; transform: translateY(0) scale(1); }
.intro__title h2 .char.is-accent { color: var(--accent); }
.intro__tagline {
  margin-top: 8px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.intro__tagline.on { opacity: 1; }

/* Scroll-Hinweis */
.intro__hint {
  position: absolute; left: 50%; bottom: 15vh; z-index: 4;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text-dim);
  transition: opacity 0.4s ease;
  animation: hintBounce 2s ease-in-out infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
.intro__hint .mouse {
  width: 24px; height: 40px;
  border: 1.5px solid var(--text-dim);
  border-radius: 14px;
  position: relative;
}
.intro__hint .mouse::after {
  content: "";
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 8px; border-radius: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

/* Roter Fortschrittsbalken des Intros */
.intro__progress {
  position: absolute; left: 0; bottom: 0; z-index: 5;
  height: 4px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 0 14px var(--accent-glow);
  will-change: transform;
}

/* Überspringen-Button */
.intro__skip {
  position: absolute; right: 26px; bottom: 26px; z-index: 6;
  padding: 11px 24px;
  border-radius: 60px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-dim);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: 0.3s ease;
}
.intro__skip:hover { border-color: var(--accent); color: var(--accent); }

/* Logo-Moment am Ende des Intros */
.intro__logo {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%, -50%) scale(0.6);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.intro__logo .logo-badge {
  width: 148px; height: 148px;
  border-radius: 28px;
  margin: 0;
  padding: 14px 12px;
  box-shadow: 0 30px 80px rgba(239, 58, 20, 0.4);
}
.intro__logo .logo-badge svg { width: 86%; height: auto; }
.intro__logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent);
}
.intro__logo-text b { color: var(--accent); }

/* Weisse Blende am Ende des Intros – Überleitung zum Hero */
.intro__fade {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(120% 120% at 50% 50%, transparent 35%, rgba(255, 255, 255, 0.95) 100%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* Navbar & Back-to-Top erst nach dem Intro zeigen */
.navbar { transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, transform 0.45s var(--ease-out), height 0.35s ease, opacity 0.5s ease; }
body.has-intro:not(.intro-done) .navbar {
  opacity: 0;
  transform: translateY(-110%);
  pointer-events: none;
}
body.has-intro:not(.intro-done) .back-to-top { opacity: 0 !important; visibility: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero h1 .char { transform: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
