:root{
  /* Refined dark palette */
  --bg: #0a0c0f;
  --bg-elevated: #0f1318;
  --panel: #121820;
  --soft: #0d1014;

  /* Text hierarchy */
  --txt: #f0f4f8;
  --txt-secondary: #b8c4d4;
  --muted: #8a96a8;
  --line: rgba(255,255,255,.06);
  --line-strong: rgba(255,255,255,.12);

  /* Refined accent */
  --red: #dc1c2c;
  --red2: #b81422;
  --red-glow: rgba(220,28,44,.15);

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  --radius: 0px;
  --shadow: 0 24px 80px rgba(0,0,0,.65);
  --shadow-subtle: 0 4px 24px rgba(0,0,0,.3);

  --hero-image: url("../assets/images/hero.PNG");
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.5;
}
a{ color:inherit; text-decoration:none; transition: color 0.15s ease; }
.noScroll{ overflow:hidden; }

.container{
  width:min(1200px, calc(100% - 48px));
  margin:0 auto;
}

/* ========================================
   TOPBAR
   ======================================== */
.topbar{
  position: sticky;
  top:0;
  z-index:1000;
  background: rgba(10,12,15,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  height:160px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.topbar__actions{
  display:flex;
  align-items:center;
  gap:16px;
}

/* Logo */
.brand{
  display:flex;
  align-items:center;
}
.brand--logo{
  padding: 0;
  background: transparent;
  border: none;
}
.brand__img{
  height: 140px;
  width: auto;
  display: block;
}
.brand__text{
  font-family: Montserrat, Inter, system-ui;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--txt);
}

/* Desktop Nav */
.nav{
  display:flex;
  align-items:center;
  gap:8px;
}
.navLink{
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  color: var(--txt-secondary);
  transition: all 0.15s ease;
}
.navLink:hover{
  background: rgba(255,255,255,.05);
  color: var(--txt);
}

/* Dropdown */
.navItem{ position: relative; }
.navBtn{
  appearance:none;
  border:0;
  background: transparent;
  color: var(--txt-secondary);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  transition: all 0.15s ease;
}
.navBtn:hover{
  background: rgba(255,255,255,.05);
  color: var(--txt);
}
.navCaret{
  width:7px; height:7px;
  display:inline-block;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top:-3px;
  opacity: .7;
}
.navDropdown{
  position:absolute;
  top: 52px;
  left:0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display:block;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.navItem.isOpen .navDropdown{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.navDropLink{
  display:block;
  padding:12px 16px;
  border-radius: var(--radius);
  color: var(--txt-secondary);
  font-size: 14px;
}
.navDropLink:hover{
  background: rgba(255,255,255,.05);
  color: var(--txt);
}
.navSep{
  height:1px;
  background: var(--line);
  margin: 6px 12px;
}

/* Burger + Mobile nav */
.burger{
  display:none;
  border:1px solid var(--line-strong);
  background: transparent;
  color: var(--txt);
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor:pointer;
  font-weight: 500;
}
.burger:hover{ background: rgba(255,255,255,.05); }

.mnav{
  border-top: 1px solid var(--line);
  background: var(--bg);
  max-height: 0;
  overflow: hidden;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}
.mnav.isOpen{ max-height: 80vh; }
.mnav__inner{ padding: 16px 0 24px; }
.mnavLink{
  display:block;
  padding: 14px 0;
  color: var(--txt-secondary);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.mnavLink:hover{ color: var(--txt); }
.mnav__cta{ margin-top: 16px; width: 100%; }
.mnavGroup{
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.mnavGroup summary{
  cursor:pointer;
  list-style:none;
  font-weight: 600;
  padding: 12px 0;
  color: var(--txt);
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mnavGroup summary::after{
  content: '+';
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.mnavGroup[open] summary::after{
  transform: rotate(45deg);
}
.mnavGroup summary::-webkit-details-marker{ display:none; }
.mnavGroup .mnavLink{
  padding-left: 16px;
  font-size: 14px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor:pointer;
  transition: all 0.2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--lg{
  padding: 18px 36px;
  font-size: 15px;
}

.btn--primary{
  background: var(--red);
  color:#ffffff;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn--primary:hover{
  background: var(--red2);
  box-shadow: 0 6px 28px rgba(220,28,44,.25);
  transform: translateY(-1px);
}

.btn--ghost{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--txt);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.2);
}

.btn--link{
  background: transparent;
  border-color: transparent;
  color: var(--txt-secondary);
  padding: 14px 8px;
}
.btn--link:hover{ color: var(--txt); }

.btn--block{ width:100%; }

/* ========================================
   HERO - Full Width Visual
   ======================================== */
.hero{
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg{
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image{
  position: absolute;
  inset: 0;
  background: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,12,15,.92) 0%,
    rgba(10,12,15,.78) 40%,
    rgba(10,12,15,.65) 100%
  );
}

.hero__content{
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
}

.hero__text{
  max-width: 640px;
}

.hero__eyebrow{
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero__badge{
  background: var(--red);
  color: white;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.hero__title{
  font-family: Montserrat, Inter, system-ui;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero__lead{
  color: var(--txt-secondary);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 520px;
}

.hero__cta{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Trust Bar */
.hero__trust{
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: auto;
}

.trust-bar{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.trust-item{
  text-align: center;
}

.trust-number{
  display: block;
  font-family: Montserrat, system-ui;
  font-weight: 700;
  font-size: 32px;
  color: var(--txt);
  line-height: 1;
}

.trust-label{
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.trust-divider{
  width: 1px;
  height: 48px;
  background: var(--line-strong);
}

.trust-item--text .trust-label{
  font-size: 13px;
  font-weight: 500;
  margin-top: 0;
}

/* ========================================
   SECTIONS
   ======================================== */
.section{
  padding: var(--space-xl) 0;
}

.section--soft{
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sectionHead{
  margin-bottom: var(--space-lg);
}

.sectionHead h2{
  margin: 0 0 12px;
  font-family: Montserrat, Inter, system-ui;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.01em;
}

.sectionHead p{
  margin: 0;
  color: var(--txt-secondary);
  max-width: 65ch;
  font-size: 17px;
  line-height: 1.6;
}

/* ========================================
   TRUST SIGNALS / CERTIFICATIONS
   ======================================== */
.certifications{
  padding: var(--space-lg) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.cert-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.cert-item{
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-icon{
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 20px;
}

.cert-text strong{
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
}

.cert-text span{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ========================================
   FEATURE BLOCKS - Image Dominant
   ======================================== */
.feature{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.feature--reverse{
  grid-template-columns: 0.6fr 1.4fr;
}

.feature--reverse .feature__img{
  order: 2;
}

.feature__img{
  min-height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.feature__body{
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature__k{
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature h3{
  margin: 12px 0 16px;
  font-family: Montserrat, Inter, system-ui;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.feature p{
  margin: 0 0 24px;
  color: var(--txt-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.feature__cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Section images - Unsplash placeholders */
.feature__img--tausch { background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1200&q=80"); }
.feature__img--door  { background-image: url("https://images.unsplash.com/photo-1600566753376-12c8ab7fb75b?w=1200&q=80"); }
.feature__img--door2 { background-image: url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1200&q=80"); }
.feature__img--insekt{ background-image: url("https://images.unsplash.com/photo-1600573472592-401b489a3cdc?w=1200&q=80"); }

.grid2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid2 .feature{
  grid-template-columns: 1fr;
}

.grid2 .feature__img{
  min-height: 320px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact{
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}

.contact__box{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 40px;
}

.contact__k{
  font-family: Montserrat, Inter, system-ui;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.contact__v{
  color: var(--txt-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.contact__v a{
  color: var(--txt);
}

.contact__v a:hover{
  color: var(--red);
}

.note{
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Form */
.form{ padding: 0; }
.field{ display: block; margin-bottom: 20px; }
.field span{
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-secondary);
  margin-bottom: 8px;
}

input, select, textarea{
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.25);
  color: var(--txt);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus{
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
  background: rgba(0,0,0,.35);
}

textarea{ resize: vertical; min-height: 120px; }

.form__hint{
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.form__hint.isOk{ color: #7dd88d; }
.form__hint.isErr{ color: #f87171; }

/* Card styling for forms */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}
.card__top{ padding: 24px 24px 0; }
.card__label{
  display: inline-block;
  font-weight: 600;
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card__title{
  margin: 12px 0 4px;
  font-weight: 700;
  font-size: 20px;
  font-family: Montserrat, Inter, system-ui;
}
.card__sub{
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.card .form{ padding: 24px; }

/* ========================================
   FOOTER
   ======================================== */
.footer{
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__main{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.footer__brand{
  font-family: Montserrat, Inter, system-ui;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.06em;
}

.footer__tagline{
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 24px;
}

.footer__contact{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact a{
  color: var(--txt-secondary);
  font-size: 15px;
}

.footer__contact a:hover{
  color: var(--txt);
}

.footer__links{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer__col h4{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 20px;
}

.footer__col a{
  display: block;
  padding: 8px 0;
  color: var(--txt-secondary);
  font-size: 15px;
}

.footer__col a:hover{
  color: var(--txt);
}

.footer__bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  color: var(--muted);
  font-size: 13px;
}

.footer__legal{
  display: flex;
  gap: 24px;
}

.footer__legal a{
  color: var(--muted);
}

.footer__legal a:hover{
  color: var(--txt);
}

/* Legacy footer support */
.footer__inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer__right{
  display: flex;
  gap: 24px;
  color: var(--txt-secondary);
}

.footer__right a:hover{ color: var(--txt); }

/* ========================================
   PROJECTS GALLERY
   ======================================== */
.projGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.projCard{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.projHead{
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.projTitle{
  font-family: Montserrat, Inter, system-ui;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.projSub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.projPair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.projFig{
  margin: 0;
  border-right: 1px solid var(--line);
}

.projFig:last-child{ border-right: 0; }

.projFig img{
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.projSingle img{
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.projCard--leftOnly{ grid-column: 1 / 2; }
.projCard--wide{ grid-column: 1 / -1; }

.projActions{
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px){
  .hero__text{ max-width: 100%; }
  .trust-bar{ gap: 32px; }
  .trust-number{ font-size: 26px; }
  .cert-grid{ grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__main{ grid-template-columns: 1fr; gap: 40px; }

  .process-grid{ grid-template-columns: repeat(3, 1fr); }
  .process-grid::before{ display: none; }

  .about-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-img{ height: 360px; }

  .testimonials-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px){
  .nav{ display: none; }
  .burger{ display: inline-flex; }
  .topbar__inner{ height: 120px; }
  .brand__img{ height: 100px; }
  .topbar__actions .btn--ghost,
  .topbar__actions .btn--primary{ display: none; }
  .topbar__actions{ gap: 0; }

  .hero{ min-height: 70vh; }
  .hero__title{ font-size: clamp(28px, 6vw, 42px); }

  .feature{ grid-template-columns: 1fr; }
  .feature--reverse .feature__img{ order: 0; }
  .feature__img{ min-height: 280px; }
  .feature__body{ padding: var(--space-md); }

  .grid2{ grid-template-columns: 1fr; }

  .contact{ grid-template-columns: 1fr; }

  .trust-bar{ flex-wrap: wrap; gap: 24px; }
  .trust-divider{ display: none; }
  .trust-item{ flex: 1; min-width: 120px; }

  .cert-grid{ grid-template-columns: 1fr; }

  .projGrid{ grid-template-columns: 1fr; }
  .projCard--leftOnly{ grid-column: 1 / -1; }
  .projSingle img{ height: 360px; }

  .process-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-num{ width: 64px; height: 64px; font-size: 20px; }

  /* Über uns responsive */
  .about{ padding: var(--space-lg) 0; }
  .about-grid{ display: block; }
  .about-img{ display: none !important; }
  .about-content{
    text-align: center !important;
  }
  .about-content h2{
    font-size: 24px;
    text-align: center;
  }
  .about-content p{
    font-size: 15px;
    text-align: center;
    max-width: 100%;
  }
  .about-values{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }
  .about-value{
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 14px 20px;
    font-size: 14px;
    gap: 8px;
  }
  .about-value::before{
    color: var(--red);
  }

  /* Kundenstimmen slider on mobile */
  .testimonials-grid{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar{ display: none; }

  .testimonial{
    flex: 0 0 90%;
    scroll-snap-align: center;
    padding: 28px;
  }
  .testimonial-text{ font-size: 14px; }
  .testimonial-stars{ font-size: 14px; }

  .testimonials-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .testimonials-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .testimonials-dot.active{
    background: var(--red);
    width: 24px;
    border-radius: 4px;
  }
  .testimonials-hint{
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
  }

  /* Footer responsive */
  .footer__main{ grid-template-columns: 1fr; gap: 32px; }
  .footer__brand-col{ text-align: center; }
  .footer__logo{ display: flex; justify-content: center; }
  .footer__contact{ align-items: center; }
  .footer__links{ justify-content: center; }

  .partners-grid{ gap: 32px; }
  .partner-logo{ font-size: 16px; }
}

@media (max-width: 520px){
  .container{ width: calc(100% - 32px); }
  .topbar__inner{ height: 80px; padding: 0 8px; }
  .brand__img{ height: 60px; }
  .burger{ padding: 8px 12px; font-size: 13px; }

  /* Process slider on mobile */
  .process-grid{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .process-grid::-webkit-scrollbar{ display: none; }

  .process-step{
    flex: 0 0 80%;
    scroll-snap-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 24px;
    text-align: center;
  }
  .process-num{ width: 56px; height: 56px; font-size: 18px; }
  .process-title{ margin-bottom: 8px; }

  .process-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .process-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: all 0.3s ease;
  }
  .process-dot.active{
    background: var(--red);
    width: 24px;
    border-radius: 4px;
  }
  .process-hint{
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
  }

  /* Kundenstimmen */
  .testimonial{ padding: 24px; }
  .testimonial-text{ font-size: 14px; margin-bottom: 16px; }

  .backToTop{
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .backToTop svg{
    width: 20px;
    height: 20px;
  }

  .section{ padding: var(--space-lg) 0; }
  .sectionHead{ margin-bottom: var(--space-md); }

  .hero__content{ padding: var(--space-lg) 0; }
  .hero__eyebrow{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__cta{ flex-direction: column; }
  .hero__cta .btn{ width: 100%; }

  .btn--lg{ padding: 16px 28px; }

  .projPair{ grid-template-columns: 1fr; }
  .projFig{ border-right: 0; border-bottom: 1px solid var(--line); }
  .projFig:last-child{ border-bottom: 0; }
  .projFig img{ height: 240px; }

  .contact__box{ padding: 24px; }

  .footer{ padding: var(--space-lg) 0 var(--space-md); }
  .footer__main{ gap: 24px; }
  .footer__links{ grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer__col h4{ margin-bottom: 12px; }
  .footer__col a{ padding: 6px 0; }
  .footer__bottom{ flex-direction: column; gap: 16px; text-align: center; }
  .footer__legal{ flex-direction: column; gap: 12px; }
  .footer__logo img{ height: 60px !important; }
}

/* ========================================
   FORM STATES
   ======================================== */
.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* Focus Visible for Accessibility */
.btn:focus-visible,
.navBtn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ========================================
   LEGACY SUPPORT
   ======================================== */
.eyebrow{
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.meta{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.meta__item{
  border: 1px solid var(--line);
  padding: 16px;
  background: rgba(0,0,0,.3);
}

.meta__k{
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta__v{
  font-size: 14px;
  color: var(--txt-secondary);
  margin-top: 4px;
}

.muted{ color: var(--muted); }

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.backToTop{
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--red-glow), 0 8px 32px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.backToTop.isVisible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.backToTop:hover{
  background: var(--red2);
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(220,28,44,.35), 0 12px 40px rgba(0,0,0,.5);
}

.backToTop:active{
  transform: translateY(0);
}

.backToTop svg{
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ========================================
   ANIMATIONS - Scroll Reveal
   ======================================== */
.reveal{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.isVisible{
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for lists */
.reveal-stagger > *:nth-child(1){ transition-delay: 0s; }
.reveal-stagger > *:nth-child(2){ transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3){ transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4){ transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5){ transition-delay: 0.4s; }

/* Hero entrance animation */
.hero__text .hero__eyebrow,
.hero__text .hero__title,
.hero__text .hero__lead,
.hero__text .hero__cta{
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.7s ease forwards;
}

.hero__text .hero__eyebrow{ animation-delay: 0.1s; }
.hero__text .hero__title{ animation-delay: 0.2s; }
.hero__text .hero__lead{ animation-delay: 0.4s; }
.hero__text .hero__cta{ animation-delay: 0.6s; }

@keyframes heroFadeIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ken Burns effect on hero background */
.hero__image{
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns{
  0%{ transform: scale(1); }
  100%{ transform: scale(1.08); }
}

/* Image hover effects */
.feature__img{
  transition: transform 0.5s ease;
  overflow: hidden;
}

.feature:hover .feature__img{
  transform: scale(1.03);
}

.projFig img{
  transition: transform 0.4s ease, filter 0.4s ease;
}

.projCard:hover .projFig img{
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Card hover glow */
.feature,
.projCard,
.contact__box{
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover,
.projCard:hover{
  border-color: var(--line-strong);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}

/* Header shadow on scroll */
.topbar.isScrolled{
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

/* ========================================
   ADDITIONAL ANIMATIONS
   ======================================== */

/* Scroll Progress Indicator */
.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red2));
  z-index: 1001;
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
}

/* Nav Link Underline Effect */
.navLink{
  position: relative;
}
.navLink::after{
  content: '';
  position: absolute;
  bottom: 8px;
  left: 16px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.navLink:hover::after{
  width: calc(100% - 32px);
}

/* Button Pulse Animation on Hero CTA */
.hero__cta .btn--primary{
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse{
  0%, 100%{ box-shadow: 0 4px 20px var(--red-glow); }
  50%{ box-shadow: 0 4px 35px rgba(220,28,44,.45); }
}

/* Certification Icon Hover */
.cert-icon{
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.cert-item:hover .cert-icon{
  transform: scale(1.1) rotate(5deg);
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Trust Bar Number Glow */
.trust-number{
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}
.trust-item:hover .trust-number{
  text-shadow: 0 0 25px rgba(220,28,44,.6);
  transform: scale(1.05);
}

/* Footer Link Slide Effect */
.footer__col a{
  transition: transform 0.2s ease, color 0.2s ease;
}
.footer__col a:hover{
  transform: translateX(6px);
  color: var(--red);
}

/* Form Field Underline Animation */
.field{
  position: relative;
}
.field::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.4s ease;
}
.field:focus-within::after{
  width: 100%;
}

/* Testimonial Float Effect */
@keyframes testimonialFloat{
  0%, 100%{ transform: translateY(-4px); }
  50%{ transform: translateY(-10px); }
}
.testimonial:hover{
  animation: testimonialFloat 2.5s ease-in-out infinite;
}

/* Partner Logo Hover */
.partner-logo{
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.partner-logo:hover{
  opacity: 1;
  transform: scale(1.1);
  color: var(--red);
}

/* Nav Dropdown Link Hover */
.navDropLink{
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.navDropLink:hover{
  transform: translateX(4px);
}

/* Mobile Nav Link Animation */
.mnavLink, .mnavGroup summary{
  transition: transform 0.2s ease, color 0.2s ease;
}
.mnavLink:hover, .mnavGroup summary:hover{
  transform: translateX(8px);
  color: var(--red);
}

/* Contact Box Hover */
.contact__box:hover{
  border-color: var(--line-strong);
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

/* ========================================
   PREMIUM ANIMATIONS
   ======================================== */

/* 1. Parallax Hero Effect */
.hero__image{
  will-change: transform;
}

/* 2. Logo Hover Animation */
.brand--logo{
  transition: transform 0.3s ease, filter 0.3s ease;
}
.brand--logo:hover{
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(220,28,44,.4));
}
.brand__img{
  transition: transform 0.3s ease;
}
.brand--logo:hover .brand__img{
  transform: scale(1.02);
}

/* 3. Gradient Text Shimmer on Hero Title */
.hero__title{
  background: linear-gradient(
    90deg,
    var(--txt) 0%,
    var(--txt) 40%,
    rgba(220,28,44,.8) 50%,
    var(--txt) 60%,
    var(--txt) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer{
  0%, 100%{ background-position: 100% 0; }
  50%{ background-position: -100% 0; }
}

/* 4. 3D Card Tilt Effect */
.tilt-card{
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}
.tilt-card:hover{
  transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}
.tilt-card > *{
  transform: translateZ(20px);
}

/* 5. Button Ripple Effect */
.btn{
  position: relative;
  overflow: hidden;
}
.btn .ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleEffect{
  to{
    transform: scale(4);
    opacity: 0;
  }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 30px rgba(0,0,0,.3);
}
.cookie-banner.isVisible{
  transform: translateY(0);
}
.cookie-banner__inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text{
  flex: 1;
  min-width: 300px;
  font-size: 14px;
  color: var(--txt-secondary);
  line-height: 1.6;
}
.cookie-banner__text a{
  color: var(--txt);
  text-decoration: underline;
}
.cookie-banner__actions{
  display: flex;
  gap: 12px;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq{
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.faq-list{
  width: 100%;
}

.faq-item{
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--panel);
  transition: border-color 0.3s ease;
}

.faq-item:hover{
  border-color: var(--line-strong);
}

.faq-question{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--txt);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover{
  color: var(--red);
}

.faq-icon{
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after{
  content: '';
  position: absolute;
  background: var(--txt-secondary);
  transition: transform 0.3s ease;
}

.faq-icon::before{
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after{
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.isOpen .faq-icon::after{
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer__inner{
  padding: 0 24px 24px;
  color: var(--txt-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ========================================
   IMAGE LIGHTBOX
   ======================================== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.isOpen{
  opacity: 1;
  visibility: visible;
}

.lightbox__img{
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.isOpen .lightbox__img{
  transform: scale(1);
}

.lightbox__close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--txt);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox__close:hover{
  background: var(--red);
  border-color: var(--red);
}

/* ========================================
   BEFORE/AFTER SLIDER
   ======================================== */
.ba-slider{
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: ew-resize;
  user-select: none;
}

.ba-slider__img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider__before{
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-slider__after{
  z-index: 0;
}

.ba-slider__handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--red);
  z-index: 2;
  transform: translateX(-50%);
}

.ba-slider__handle::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.ba-slider__handle::after{
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  z-index: 1;
}

.ba-slider__label{
  position: absolute;
  bottom: 16px;
  padding: 8px 16px;
  background: rgba(0,0,0,.7);
  color: var(--txt);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
}

.ba-slider__label--before{ left: 16px; }
.ba-slider__label--after{ right: 16px; }

/* ========================================
   GOOGLE MAPS EMBED
   ======================================== */
.map-container{
  margin-top: 32px;
  border: 1px solid var(--line);
  height: 300px;
  filter: grayscale(100%) invert(90%) contrast(90%);
  transition: filter 0.3s ease;
}

.map-container:hover{
  filter: grayscale(50%) invert(90%) contrast(90%);
}

.map-container iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .hero__text .hero__eyebrow,
  .hero__text .hero__title,
  .hero__text .hero__lead,
  .hero__text .hero__cta,
  .hero__image,
  .feature__img,
  .projFig img{
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   PROCESS SECTION - "So arbeiten wir"
   ======================================== */
.process{
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.process-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

/* Connecting line */
.process-grid::before{
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--red);
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease-out;
}
.process-grid.isVisible::before{
  transform: scaleX(1);
}

.process-step{
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num{
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 2px solid var(--line-strong);
  font-family: Montserrat, system-ui;
  font-weight: 700;
  font-size: 24px;
  color: var(--red);
  transition: all 0.3s ease;
}

.process-step:hover .process-num{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: scale(1.1);
}

.process-title{
  font-family: Montserrat, system-ui;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--txt);
}

.process-desc{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Hide slider elements on desktop */
.process-dots,
.process-hint,
.testimonials-dots,
.testimonials-hint{
  display: none;
}

/* ========================================
   LEGAL PAGES (Impressum, Datenschutz)
   ======================================== */
.legal-content{
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1{
  font-family: Montserrat, system-ui;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 32px;
  color: var(--txt);
}

.legal-content h2{
  font-family: Montserrat, system-ui;
  font-weight: 600;
  font-size: 20px;
  margin: 32px 0 16px;
  color: var(--txt);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-content h3{
  font-weight: 600;
  font-size: 16px;
  margin: 24px 0 12px;
  color: var(--txt);
}

.legal-content p{
  color: var(--txt-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.legal-content a{
  color: var(--red);
  text-decoration: underline;
}

.legal-content a:hover{
  color: var(--txt);
}

.legal-update{
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.legal-back{
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ========================================
   ABOUT SECTION - "Über uns"
   ======================================== */
.about{
  padding: var(--space-xl) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img{
  height: 480px;
  background: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1200&q=80");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.about-content h2{
  font-family: Montserrat, system-ui;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 24px;
}

.about-content p{
  color: var(--txt-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.about-values{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-value{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--txt-secondary);
  font-size: 15px;
}

.about-value::before{
  content: '✓';
  color: var(--red);
  font-weight: 700;
}

/* ========================================
   PARTNER LOGOS
   ======================================== */
.partners{
  padding: var(--space-lg) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.partners-head{
  text-align: center;
  margin-bottom: 32px;
}

.partners-head span{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.partners-grid{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo{
  font-family: Montserrat, system-ui;
  font-weight: 700;
  font-size: 20px;
  color: var(--muted);
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: default;
}

.partner-logo:hover{
  opacity: 1;
  color: var(--txt);
}

/* ========================================
   TESTIMONIALS - "Kundenstimmen"
   ======================================== */
.testimonials{
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.testimonials-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial{
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
  transition: all 0.3s ease;
}

.testimonial:hover{
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.testimonial-stars{
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text{
  font-size: 15px;
  line-height: 1.7;
  color: var(--txt-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-text::before{
  content: '"';
  font-size: 32px;
  color: var(--red);
  font-family: Georgia, serif;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -8px;
}

.testimonial-author{
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar{
  width: 44px;
  height: 44px;
  background: var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--txt);
  font-size: 14px;
}

.testimonial-name{
  font-weight: 600;
  font-size: 14px;
  color: var(--txt);
}

.testimonial-location{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ========================================
   NOISE TEXTURE OVERLAY
   ======================================== */
body::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   GLASSMORPHISM EFFECT
   ======================================== */
.glass{
  background: rgba(18, 24, 32, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.feature,
.contact__box,
.testimonial,
.faq-item,
.projCard{
  background: rgba(18, 24, 32, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar{
  background: rgba(10, 12, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ========================================
   LOADING PRELOADER
   ======================================== */
.preloader{
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.isHidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo{
  width: 280px;
  height: auto;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader__spinner{
  margin-top: 32px;
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: preloaderSpin 1s linear infinite;
}

.preloader__text{
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes preloaderPulse{
  0%, 100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.05); opacity: 0.8; }
}

@keyframes preloaderSpin{
  to{ transform: rotate(360deg); }
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.page-transition{
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.page-transition.isActive{
  transform: translateY(0);
}

body.isTransitioning{
  overflow: hidden;
}

/* Page fade-in on load */
.page-content{
  animation: pageEnter 0.6s ease forwards;
}

@keyframes pageEnter{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CARD FLIP EFFECT
   ======================================== */
.flip-card{
  perspective: 1000px;
  cursor: pointer;
}

.flip-card__inner{
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner{
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back{
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card__back{
  transform: rotateY(180deg);
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.flip-card__back h4{
  font-family: Montserrat, system-ui;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--txt);
}

.flip-card__back p{
  font-size: 14px;
  color: var(--txt-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}

.flip-card__back .btn{
  margin-top: auto;
}

/* Cert items as flip cards */
.cert-item.flip-card{
  min-height: 140px;
}

.cert-item .flip-card__front{
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-item .flip-card__back{
  padding: 20px;
}

.cert-item .flip-card__back p{
  font-size: 13px;
  margin: 0;
}
