:root {
  /* Dunkles Anthrazit (ersetzt Navy) */
  --navy: #22252A;
  --navy-mid: #33373E;
  /* Gold-Akzent (unverändert) */
  --gold: #B8976A;
  --gold-light: #D4B896;
  --gold-pale: rgba(184,151,106,0.05);
  /* Helles Grau für Text-Sektionen (ersetzt Cream) */
  --cream: #EFF0F2;
  --warm: #FFFFFF;
  /* Neutraler Text */
  --text: #1A1A1D;
  --text-mid: #5A5D64;
  --border: rgba(184,151,106,0.15);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:'DM Sans',sans-serif;background:var(--warm);color:var(--text);overflow-x:hidden;}

/* ── PAGE SYSTEM ── */
.page{display:block;min-height:100vh;opacity:1;}
@media (prefers-reduced-motion: no-preference) {
  .page{animation:pageIn 0.4s ease;}
}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ── NAV ── */
nav{
  position:fixed;top:0;width:100%;z-index:200;
  background:rgba(34,37,42,0.97);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  height:78px;
  display:flex;align-items:center;
  padding:0 5%;
  gap:2rem;
  transition:background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Home-Page: Nav startet transparent über dem Hero */
body.home nav{
  background:linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 100%);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  border-bottom-color:transparent;
}
body.home nav.nav-scrolled{
  background:rgba(34,37,42,0.96);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--border);
  box-shadow:0 4px 24px rgba(0,0,0,0.15);
}
.nav-brand{
  display:flex;align-items:center;gap:0;
  text-decoration:none;flex-shrink:0;
  position:relative;
}
/* Neue horizontale Logo-Variante (ersetzt Badge + Text) */
.nav-brand-horizontal{
  display:flex;align-items:center;
  height:100%;padding:6px 0;
  transition:opacity 0.25s;
}
.nav-brand-horizontal:hover{opacity:0.88;}
.nav-brand-logo{
  height:52px;width:auto;display:block;
}
@media(max-width:900px){
  .nav-brand-logo{height:42px;}
}
@media(max-width:520px){
  .nav-brand-logo{height:36px;}
}
/* Logo badge: Rechteck mit weißem Hintergrund, ragt nach unten über Nav hinaus */
.logo-badge{
  width:98px;height:110px;
  border-radius:5px;
  background:#fff;
  border:2.5px solid var(--gold);
  box-shadow:0 10px 32px rgba(0,0,0,0.28), 0 0 0 1px rgba(184,151,106,0.15), inset 0 0 0 1px rgba(184,151,106,0.08);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  flex-shrink:0;
  transition:box-shadow 0.3s,transform 0.3s;
  position:relative;
  z-index:10;
  margin-top:10px;
  margin-bottom:-28px;
}
.logo-badge:hover{
  box-shadow:0 14px 40px rgba(0,0,0,0.32), 0 0 0 2px var(--gold);
  transform:translateY(-2px);
}
.logo-badge img{
  width:90px;height:100px;object-fit:contain;
  border-radius:3px;
}
.brand-text{
  display:flex;flex-direction:column;margin-left:1.2rem;
}
.brand-name{
  font-family:'Playfair Display',Georgia,serif;
  color:white;font-size:1.1rem;font-weight:600;
  letter-spacing:0.01em;line-height:1.2;
}
.brand-sub{
  color:var(--gold);font-size:0.65rem;
  letter-spacing:0.18em;text-transform:uppercase;
  font-weight:500;margin-top:2px;
}

.nav-links{
  display:flex;align-items:center;gap:0.2rem;
  list-style:none;margin-left:auto;
}
.nav-links > li{position:relative;}
.nav-links a, .nav-btn{
  color:rgba(255,255,255,0.9);
  text-decoration:none;
  font-size:0.82rem;
  letter-spacing:0.07em;
  text-transform:uppercase;
  font-weight:500;
  padding:0.5rem 0.85rem;
  border-radius:2px;
  display:block;
  transition:color 0.2s,background 0.2s;
  white-space:nowrap;
  cursor:pointer;
  background:none;border:none;font-family:inherit;
}
.nav-links a:hover,.nav-btn:hover{color:var(--gold);background:rgba(201,168,76,0.08);}
.nav-links a.active-link{color:var(--gold);}

/* Nav-Highlight: plakativer Menüpunkt (Hauskauf-Beratung) */
.nav-btn.nav-highlight{
  color:var(--gold);
  border:1px solid rgba(184,151,106,0.55);
  border-radius:22px;
  padding:0.45rem 1rem;
  display:inline-flex;align-items:center;gap:0.5rem;
  position:relative;
  transition:all 0.3s ease;
  font-weight:600;
}
.nav-btn.nav-highlight:hover{
  background:var(--gold);
  color:#fff;
  border-color:var(--gold);
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(184,151,106,0.35);
}
.nav-highlight-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 0 rgba(184,151,106,0.7);
  animation:navPulse 2s infinite;
}
.nav-btn.nav-highlight:hover .nav-highlight-dot{background:#fff;box-shadow:0 0 0 0 rgba(255,255,255,0.5);}
@keyframes navPulse{
  0%{box-shadow:0 0 0 0 rgba(184,151,106,0.7);}
  70%{box-shadow:0 0 0 8px rgba(184,151,106,0);}
  100%{box-shadow:0 0 0 0 rgba(184,151,106,0);}
}
.mob-highlight{
  color:var(--gold) !important;
  display:flex !important;align-items:center;gap:0.6rem;
  border-top:1px solid rgba(184,151,106,0.15);
  border-bottom:1px solid rgba(184,151,106,0.15);
  font-weight:600 !important;
}

/* Dropdown */
.has-dropdown:hover .dropdown,
.dropdown:hover{display:block;}
.dropdown{
  display:none;
  position:absolute;top:100%;left:0;
  background:rgba(61,79,95,0.98);
  border:1px solid var(--border);
  border-top:2px solid var(--gold);
  min-width:240px;
  padding:0.5rem 0;
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}
.dropdown a{
  padding:0.65rem 1.2rem;
  font-size:0.8rem;
  text-transform:none;
  letter-spacing:0.03em;
}
.nav-cta{
  background:var(--gold) !important;
  color:#FFFFFF !important;
  padding:0.55rem 1.2rem !important;
  margin-left:0.5rem;
  font-weight:600 !important;
  border-radius:2px;
}
.nav-cta:hover{background:var(--gold-light) !important;color:var(--navy) !important;}

/* Hamburger */
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px;margin-left:auto;}
.hamburger span{display:block;width:24px;height:2px;background:white;transition:0.3s;}
.mobile-menu{
  display:none;
  position:fixed;
  top:78px;left:0;right:0;bottom:0;
  background:var(--navy);
  border-top:1px solid var(--border);
  padding:1rem 0 2rem;
  z-index:199;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.mobile-menu a,.mobile-menu .nav-btn{
  display:block;padding:0.8rem 5%;
  color:rgba(255,255,255,0.95);text-decoration:none;
  font-size:0.9rem;letter-spacing:0.05em;
  border-bottom:1px solid rgba(255,255,255,0.05);
  cursor:pointer;background:none;border-left:none;border-right:none;border-top:none;
  font-family:inherit;font-weight:500;width:100%;text-align:left;
}
.mobile-menu .mobile-sub{
  padding-left:10%;
  color:rgba(255,255,255,0.9);
  font-size:0.84rem;
  border-bottom:1px solid rgba(255,255,255,0.04);
}

/* ── SECTIONS ── */
.pt-nav{padding-top:78px;}

/* ── HERO ── */
.hero{
  min-height:100vh;
  display:grid;grid-template-columns:1fr 1fr;
  position:relative;overflow:hidden;
}
.hero-left{
  background:var(--cream);
  display:flex;flex-direction:column;justify-content:center;
  padding:120px 8% 80px;
  position:relative;z-index:2;
}
.hero-left::after{
  content:'';position:absolute;right:-40px;top:0;bottom:0;
  width:80px;background:var(--cream);transform:skewX(-3deg);z-index:1;
}
.hero-badge-label{
  display:inline-flex;align-items:center;gap:0.5rem;
  background:var(--gold-pale);border:1px solid var(--border);
  color:var(--gold);font-size:0.72rem;letter-spacing:0.18em;
  text-transform:uppercase;padding:0.4rem 0.9rem;
  border-radius:2px;width:fit-content;margin-bottom:2rem;
  animation:fadeUp 0.7s ease both;
}
.hero-title{
  font-family:'Playfair Display',Georgia,serif;
  color:var(--text);font-size:clamp(2.2rem,3.5vw,3.5rem);
  line-height:1.1;font-weight:700;margin-bottom:1.5rem;
  animation:fadeUp 0.7s 0.1s ease both;
}
.hero-title em{color:var(--gold);font-style:italic;}
.hero-sub{
  color:var(--text-mid);font-size:0.85rem;
  line-height:1.75;max-width:440px;margin-bottom:2.5rem;
  font-weight:300;animation:fadeUp 0.7s 0.2s ease both;
}
.hero-stats{
  display:flex;gap:2rem;margin-bottom:2.5rem;
  animation:fadeUp 0.7s 0.3s ease both;
}
.stat{border-left:2px solid var(--gold);padding-left:1rem;}
.stat-num{
  font-family:'Bebas Neue',sans-serif;
  color:var(--gold);font-size:1.7rem;font-weight:700;line-height:1;
}
.stat-label{color:var(--text-mid);font-size:0.7rem;text-transform:uppercase;letter-spacing:0.1em;margin-top:0.2rem;}
.hero-btns{display:flex;gap:1rem;flex-wrap:wrap;animation:fadeUp 0.7s 0.4s ease both;}
.btn-primary{
  background:var(--gold);color:#FFFFFF;
  padding:0.9rem 2rem;text-decoration:none;
  font-weight:600;font-size:0.88rem;letter-spacing:0.05em;
  border-radius:2px;transition:all 0.2s;border:none;cursor:pointer;
  font-family:inherit;
}
.btn-primary:hover{background:var(--gold-light);color:#FFFFFF;transform:translateY(-2px);box-shadow:0 8px 24px rgba(184,151,106,0.3);}
.btn-outline{
  border:1px solid var(--border);color:var(--text);
  padding:0.9rem 2rem;text-decoration:none;
  font-size:0.88rem;letter-spacing:0.05em;
  border-radius:2px;transition:all 0.2s;cursor:pointer;
  font-family:inherit;background:none;
}
.btn-outline:hover{border-color:var(--gold);color:var(--gold);}
.hero-right{position:relative;overflow:hidden;}
.hero-right img{width:100%;height:100%;object-fit:cover;display:block;}
.hero-right-overlay{position:absolute;inset:0;background:linear-gradient(to right,rgba(245,245,242,0.4) 0%,transparent 60%);}

/* ── GENERIC SECTIONS ── */
.section{padding:90px 8%;}
.section-label{font-size:0.72rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold);font-weight:500;margin-bottom:0.75rem;}
.section-title{font-family:'Playfair Display',Georgia,serif;font-size:clamp(1.7rem,2.8vw,2.6rem);line-height:1.2;color:var(--navy);margin-bottom:1.2rem;font-weight:600;}
.section-title em{font-style:italic;color:var(--gold);}
.section-title.white{color:var(--text);}

/* ── LEISTUNGEN OVERVIEW ── */
.services-overview{background:var(--navy);padding:90px 8%;position:relative;overflow:hidden;color:white;}
.services-overview .section-label{color:var(--gold);}
.services-overview .section-title,
.services-overview .section-title.white{color:white;}
.services-overview .section-title em{color:var(--gold);}
.services-overview .btn-outline{color:white;border-color:rgba(255,255,255,0.3);}
.services-overview .btn-outline:hover{background:var(--gold);border-color:var(--gold);color:var(--navy);}
.services-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem;}
a.service-tile,a.service-tile:hover,a.service-tile:visited,a.service-tile:active{text-decoration:none;color:inherit;}
a.service-tile *{text-decoration:none;color:inherit;}
.service-tile{background:white;padding:0;border-radius:4px;box-shadow:0 2px 20px rgba(0,0,0,0.04);cursor:pointer;transition:transform 0.2s,box-shadow 0.2s;overflow:hidden;display:block;}
.service-tile:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,0.08);}
.tile-img{width:100%;height:160px;object-fit:cover;display:block;}
.tile-content{padding:1.5rem 1.8rem 1.8rem;}
.services-overview::before{
  content:'LEISTUNGEN';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  font-family:'Bebas Neue',sans-serif;font-size:18vw;
  color:rgba(139,115,85,0.03);letter-spacing:0.1em;white-space:nowrap;pointer-events:none;
}


/* ── SERVICE DETAIL ── */
.service-hero{
  background: var(--cream);
  padding:120px 8% 80px;
  position:relative;overflow:hidden;
  border-bottom: 1px solid var(--border);
}
.service-hero::before{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(ellipse at 60% 50%, rgba(139,115,85,0.04) 0%, transparent 70%);
  pointer-events:none;
}
.service-hero-content{position:relative;z-index:1;max-width:700px;}
.service-hero-content .section-label{color:var(--gold);}
.service-hero-content h1{
  font-family:'Bebas Neue',sans-serif;color:var(--text);
  font-size:clamp(2rem,4vw,3.2rem);line-height:1.1;font-weight:700;margin-bottom:1.2rem;
}
.service-hero-content h1 em{color:var(--gold);font-style:italic;}
.service-hero-content .lead{
  color:var(--text-mid);font-size:1.05rem;line-height:1.75;font-weight:300;
}
.service-back{
  display:inline-flex;align-items:center;gap:0.5rem;
  color:var(--gold);font-size:0.8rem;letter-spacing:0.1em;text-transform:uppercase;
  font-weight:500;margin-bottom:2rem;cursor:pointer;text-decoration:none;
  transition:gap 0.2s;background:none;border:none;font-family:inherit;
}
.service-back:hover{gap:0.8rem;}
.service-body{padding:80px 8%;display:grid;grid-template-columns:1.4fr 1fr;gap:70px;align-items:start;background:#ffffff;}
.service-body-text p{color:#2a2a2a;line-height:1.8;margin-bottom:1.2rem;font-size:0.98rem;font-weight:400;}
.service-body-text strong{color:var(--navy);font-weight:600;}
.service-checklist{list-style:none;margin-top:1.5rem;}
.service-checklist li{
  display:flex;align-items:flex-start;gap:0.8rem;
  padding:0.7rem 0;border-bottom:1px solid rgba(201,168,76,0.15);
  font-size:0.92rem;color:#222222;font-weight:400;
}
.service-checklist li::before{content:'✦';color:var(--gold);font-size:0.7rem;margin-top:3px;flex-shrink:0;}
.service-cta-box{
  background:var(--cream);padding:2.5rem;border-radius:3px;
  border:1px solid var(--border);position:sticky;top:100px;
}
.service-cta-box h3{
  font-family:'Bebas Neue',sans-serif;color:var(--text);
  font-size:1.2rem;margin-bottom:0.8rem;
}
.service-cta-box p{color:var(--text-mid);font-size:0.88rem;line-height:1.65;margin-bottom:1.5rem;font-weight:300;}
.service-cta-box .btn-primary{width:100%;text-align:center;display:block;}

/* ── ABOUT ── */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center;}
.about-img-stack{position:relative;padding-bottom:2rem;}
.about-img-stack img:first-child{width:100%;border-radius:3px;display:block;}
.about-credential-strip{
  position:absolute;bottom:0;right:-2rem;
  background:var(--gold);padding:1.2rem 1.5rem;min-width:200px;
  border-radius:2px;
}
.credential-num{
  font-family:'Bebas Neue',sans-serif;font-size:2rem;
  font-weight:700;color:var(--navy);line-height:1;
}
.credential-label{font-size:0.75rem;color:var(--navy);font-weight:600;letter-spacing:0.08em;margin-top:0.2rem;}
.about-text p{color:#2d2d2d;line-height:1.8;margin-bottom:1.2rem;font-size:0.98rem;font-weight:400;}
.about-text strong{color:var(--navy);font-weight:600;}
.cred-list{margin-top:2rem;display:flex;flex-direction:column;gap:0.8rem;}
.cred-item{
  display:flex;align-items:flex-start;gap:1rem;
  padding:0.8rem 1rem;background:var(--cream);
  border-left:3px solid var(--gold);border-radius:0 3px 3px 0;
}
.cred-icon{color:var(--gold);font-size:1.1rem;min-width:20px;margin-top:1px;}
.cred-text strong{color:var(--navy);display:block;font-size:0.92rem;font-weight:600;}
.cred-text{font-size:0.86rem;color:#333333;}

/* ── USP BAND ── */
.usp-band{background:var(--cream);padding:60px 8%;}
.usp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;margin-top:3rem;}
.usp-card{text-align:center;padding:2rem 1.5rem;}
.usp-icon{font-size:2rem;margin-bottom:1rem;}
.usp-title{font-family:'Bebas Neue',sans-serif;color:var(--navy);font-size:1rem;margin-bottom:0.5rem;}
.usp-desc{color:#3a3a3a;font-size:0.86rem;line-height:1.65;font-weight:400;}

/* ── REGIONS ── */
.region-band{background:var(--cream);padding:60px 8%;text-align:center;}
.region-band .section-title{color:var(--text);}
.region-pills{display:flex;justify-content:center;gap:0.8rem;flex-wrap:wrap;margin-top:2rem;}
.region-pill{
  background:white;color:var(--text-mid);
  padding:0.5rem 1.3rem;border-radius:30px;font-size:0.85rem;
  border:1px solid var(--border);
}
.region-pill.highlight{background:var(--gold);color:white;font-weight:600;border-color:var(--gold);}

/* ── REFERENZ-EINSTIEG (nach Hero) ── */
.ref-intro{background:var(--warm);padding:90px 8%;border-bottom:1px solid var(--border);}
.ref-intro-inner{max-width:1300px;margin:0 auto;display:grid;grid-template-columns:1.35fr 1fr;gap:60px;align-items:center;}
.ref-intro-media{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr 1fr;gap:10px;height:560px;}
.ref-intro-main{position:relative;grid-row:span 3;overflow:hidden;border-radius:4px;box-shadow:0 20px 40px rgba(34,37,42,0.15);min-height:0;min-width:0;}
.ref-intro-main img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.7s;}
.ref-intro-main:hover img{transform:scale(1.04);}
.ref-intro-tag{
  position:absolute;top:1.2rem;left:1.2rem;
  background:rgba(34,37,42,0.9);color:white;
  padding:0.5rem 1rem;font-size:0.7rem;letter-spacing:0.2em;
  text-transform:uppercase;font-weight:600;border-radius:2px;
}
.ref-intro-grid{display:contents;}
.ref-intro-grid img{width:100%;height:100%;object-fit:cover;display:block;border-radius:4px;transition:transform 0.5s;min-height:0;min-width:0;}
.ref-intro-grid img:hover{transform:scale(1.05);}
.ref-intro-text .section-label{color:var(--gold);font-size:0.72rem;letter-spacing:0.22em;text-transform:uppercase;font-weight:600;display:block;margin-bottom:1rem;}
.ref-intro-title{
  font-family:'Playfair Display',Georgia,serif;
  font-size:2.4rem;line-height:1.15;color:var(--navy);font-weight:700;
  margin-bottom:1.4rem;
}
.ref-intro-title em{color:var(--gold);font-style:italic;font-weight:600;}
.ref-intro-lead{
  color:var(--text-mid);font-size:1rem;line-height:1.75;font-weight:300;
  margin-bottom:1.8rem;
}
.ref-intro-quote{
  border-left:3px solid var(--gold);
  padding:0.4rem 0 0.4rem 1.4rem;
  margin:0 0 2rem 0;
  font-family:'Playfair Display',Georgia,serif;
  font-style:italic;font-size:1.15rem;line-height:1.6;color:var(--navy);
}
.ref-intro-author{display:flex;align-items:center;gap:1rem;margin-bottom:2rem;}
.ref-intro-author img{
  width:60px;height:60px;border-radius:50%;
  object-fit:cover;object-position:top center;
  border:2px solid var(--gold);
}
.ref-intro-author strong{display:block;color:var(--navy);font-size:0.95rem;font-weight:600;}
.ref-intro-author span{color:var(--text-mid);font-size:0.8rem;letter-spacing:0.05em;}
.ref-intro-cta{background:var(--navy);color:white;display:inline-block;padding:0.9rem 2rem;font-size:0.9rem;}
@media (max-width:900px){
  .ref-intro{padding:60px 6%;}
  .ref-intro-inner{grid-template-columns:1fr;gap:40px;}
  .ref-intro-media{height:auto;grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto;}
  .ref-intro-main{grid-row:auto;grid-column:span 3;height:280px;}
  .ref-intro-title{font-size:1.8rem;}
}

/* ── REFERENZEN-SLIDER (Persönlichkeits-Anker) ── */
.ref-slider{
  background:linear-gradient(180deg,var(--navy) 0%,var(--navy-mid) 100%);
  padding:100px 8% 80px;
  color:white;
  position:relative;
  overflow:hidden;
}
.ref-slider::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(201,168,76,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(201,168,76,0.06) 0%, transparent 55%);
  pointer-events:none;
}
.ref-slider-header{
  max-width:720px;margin:0 auto 3.5rem;text-align:center;position:relative;
}
.ref-slider-header .section-label{color:var(--gold);display:block;margin-bottom:1rem;font-size:0.72rem;letter-spacing:0.22em;text-transform:uppercase;font-weight:600;}
.ref-slider-header h2{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(1.9rem,3.2vw,2.6rem);
  line-height:1.15;color:white;font-weight:700;margin-bottom:1rem;
  letter-spacing:-0.01em;
}
.ref-slider-header h2 em{color:var(--gold);font-style:italic;font-weight:600;}
.ref-slider-header p{color:rgba(255,255,255,0.7);font-size:1rem;line-height:1.65;font-weight:300;}
.ref-slider-stage{
  max-width:1200px;margin:0 auto;position:relative;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:6px;
  overflow:hidden;
}
.ref-slider-track{
  display:flex;
  transition:transform 0.7s cubic-bezier(0.65,0,0.35,1);
  will-change:transform;
}
.ref-slide{
  min-width:100%;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:stretch;
}
.ref-slide-media{
  position:relative;overflow:hidden;min-height:560px;
}
.ref-slide-media img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;
  transform:scale(1.02);
  transition:transform 1.2s ease-out, opacity 0.6s ease;
}
.ref-slide.is-active .ref-slide-media img{transform:scale(1);}
.ref-slide-media::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 60%,rgba(34,37,42,0.4) 100%);
  pointer-events:none;
}
.ref-slide-cat{
  position:absolute;top:1.4rem;left:1.4rem;z-index:2;
  background:rgba(34,37,42,0.85);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  color:var(--gold);
  padding:0.55rem 1rem;font-size:0.68rem;letter-spacing:0.22em;
  text-transform:uppercase;font-weight:700;border-radius:2px;
  border:1px solid rgba(201,168,76,0.3);
}
.ref-slide-body{
  padding:3rem 3rem 2.5rem;
  display:flex;flex-direction:column;
  background:rgba(255,255,255,0.02);
  position:relative;
}
.ref-slide-meta{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:1.2rem;
  font-size:0.72rem;letter-spacing:0.15em;
  color:rgba(255,255,255,0.5);text-transform:uppercase;
}
.ref-slide-index{color:var(--gold);font-weight:700;}
.ref-slide-idx-cur{font-size:1rem;letter-spacing:normal;}
.ref-slide-title{
  font-family:'Playfair Display',Georgia,serif;
  font-size:1.85rem;line-height:1.2;color:white;
  font-weight:600;margin-bottom:1.2rem;letter-spacing:-0.01em;
}
.ref-slide-desc{
  color:rgba(255,255,255,0.75);font-size:0.98rem;line-height:1.7;
  font-weight:300;margin-bottom:1.5rem;
}
.ref-slide-tags{
  list-style:none;padding:0;margin:0 0 1.8rem 0;
  display:flex;flex-wrap:wrap;gap:0.5rem;
}
.ref-slide-tags li{
  background:rgba(201,168,76,0.12);
  border:1px solid rgba(201,168,76,0.25);
  color:var(--gold);
  padding:0.3rem 0.8rem;border-radius:20px;
  font-size:0.75rem;letter-spacing:0.03em;
}
.ref-slide-quote{
  border-left:2px solid var(--gold);
  padding:0.2rem 0 0.2rem 1.2rem;
  margin:0 0 1.8rem 0;
  font-family:'Playfair Display',Georgia,serif;
  font-style:italic;font-size:1.02rem;line-height:1.55;
  color:rgba(255,255,255,0.9);
}
.ref-slide-author{
  display:flex;align-items:center;gap:0.9rem;
  padding-top:1.5rem;border-top:1px solid rgba(255,255,255,0.08);
  margin-top:auto;
}
.ref-slide-author img{
  width:52px;height:52px;border-radius:50%;
  object-fit:cover;object-position:top center;
  border:2px solid var(--gold);
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}
.ref-slide-author-info strong{
  display:block;color:white;font-size:0.9rem;font-weight:600;
}
.ref-slide-author-info span{
  color:rgba(255,255,255,0.5);font-size:0.75rem;letter-spacing:0.05em;
}

/* Slide-Content Fade-in beim Wechsel */
.ref-slide-title,
.ref-slide-desc,
.ref-slide-tags,
.ref-slide-quote,
.ref-slide-author{
  opacity:0;transform:translateY(12px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.ref-slide.is-active .ref-slide-title{opacity:1;transform:none;transition-delay:0.1s;}
.ref-slide.is-active .ref-slide-desc{opacity:1;transform:none;transition-delay:0.18s;}
.ref-slide.is-active .ref-slide-tags{opacity:1;transform:none;transition-delay:0.26s;}
.ref-slide.is-active .ref-slide-quote{opacity:1;transform:none;transition-delay:0.34s;}
.ref-slide.is-active .ref-slide-author{opacity:1;transform:none;transition-delay:0.42s;}

/* Progress-Bar */
.ref-slider-progress{
  position:relative;height:2px;background:rgba(255,255,255,0.08);
  overflow:hidden;
}
.ref-slider-progress span{
  position:absolute;inset:0 100% 0 0;
  background:linear-gradient(90deg,var(--gold),#e8c97a);
  transition:right 0.1s linear;
  box-shadow:0 0 12px rgba(201,168,76,0.5);
}

/* Slider Navigation */
.ref-slider-nav{
  display:flex;align-items:center;justify-content:center;gap:1.2rem;
  margin-top:2.5rem;
}
.ref-nav-btn{
  width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.15);
  color:white;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all 0.25s cubic-bezier(0.34,1.5,0.64,1);
}
.ref-nav-btn:hover{
  background:var(--gold);border-color:var(--gold);
  transform:scale(1.08);
  box-shadow:0 8px 24px rgba(201,168,76,0.35);
}
.ref-nav-btn:active{transform:scale(0.96);}
.ref-slider-dots{display:flex;gap:0.5rem;align-items:center;}
.ref-dot{
  width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,0.2);border:none;padding:0;cursor:pointer;
  transition:all 0.3s cubic-bezier(0.65,0,0.35,1);
}
.ref-dot:hover{background:rgba(255,255,255,0.4);transform:scale(1.2);}
.ref-dot.active{
  width:36px;border-radius:6px;background:var(--gold);
  box-shadow:0 0 12px rgba(201,168,76,0.5);
}
.ref-play-btn{
  width:36px;height:36px;border-radius:50%;
  background:transparent;border:1px solid rgba(255,255,255,0.15);
  color:rgba(255,255,255,0.7);cursor:pointer;margin-left:0.5rem;
  display:flex;align-items:center;justify-content:center;
  transition:all 0.25s;
}
.ref-play-btn:hover{color:var(--gold);border-color:var(--gold);}

/* Responsive */
@media (max-width:900px){
  .ref-slider{padding:70px 6% 60px;}
  .ref-slide{grid-template-columns:1fr;}
  .ref-slide-media{min-height:280px;}
  .ref-slide-body{padding:2rem 1.5rem;}
  .ref-slide-title{font-size:1.4rem;}
  .ref-nav-btn{width:42px;height:42px;}
}

/* ── HOTSPOT-SLIDER (Interaktive Leistungs-Markierungen) ── */
.hotspot-section{
  background:var(--warm);
  padding:100px 8% 90px;
  position:relative;
  overflow:hidden;
}
.hotspot-section::before{
  content:'';
  position:absolute; top:0; left:0; right:0; height:1px;
  background:linear-gradient(90deg,transparent,var(--border),transparent);
}
.hotspot-header{
  max-width:720px; margin:0 auto 3.5rem; text-align:center;
}
.hotspot-header .section-label{
  color:var(--gold); font-size:0.72rem; letter-spacing:0.22em;
  text-transform:uppercase; font-weight:600; display:block;
  margin-bottom:1rem;
}
.hotspot-header h2{
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(1.9rem,3.2vw,2.6rem);
  line-height:1.15; color:var(--navy); font-weight:700;
  letter-spacing:-0.01em; margin-bottom:1rem;
}
.hotspot-header h2 em{color:var(--gold); font-style:italic; font-weight:600;}
.hotspot-header p{
  color:var(--text-mid); font-size:1rem; line-height:1.65; font-weight:300;
}
.hotspot-stage{
  max-width:1300px; margin:0 auto; position:relative;
}
.hotspot-track{position:relative;}
.hotspot-slide{
  display:none;
  grid-template-columns:1.6fr 1fr;
  gap:60px;
  align-items:center;
  animation:hotspotIn 0.6s ease;
}
.hotspot-slide.is-active{display:grid;}
@keyframes hotspotIn{
  from{opacity:0; transform:translateY(12px);}
  to{opacity:1; transform:none;}
}
.hotspot-frame{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:4px;
  box-shadow:0 20px 60px rgba(34,37,42,0.18);
}
.hotspot-frame img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.hotspot-frame::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(160deg,rgba(0,0,0,0.10),rgba(0,0,0,0.30));
  pointer-events:none;
}

/* Info-Karte rechts */
.hotspot-info{padding:1rem 0;}
.hotspot-project-label{
  display:inline-block;
  font-size:0.7rem; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--gold); font-weight:700;
  padding:0.4rem 0.9rem;
  border:1px solid rgba(184,151,106,0.4);
  border-radius:20px;
  margin-bottom:1.5rem;
}
.hotspot-info h3{
  font-family:'Playfair Display',Georgia,serif;
  font-size:1.8rem; line-height:1.2; color:var(--navy);
  font-weight:600; margin-bottom:1rem;
}
.hotspot-info p{
  color:var(--text-mid); font-size:0.98rem; line-height:1.7; font-weight:300;
}

/* Hotspots */
.hotspot{
  position:absolute;
  width:20px; height:20px;
  background:transparent; border:none; padding:0; cursor:pointer;
  z-index:5;
  transform:translate(-50%,-50%);
}
.hotspot-pulse{
  position:absolute; inset:6px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 2px rgba(255,255,255,0.9), 0 2px 8px rgba(0,0,0,0.4);
  z-index:2;
}
.hotspot-pulse::before,
.hotspot-pulse::after{
  content:''; position:absolute; inset:-3px;
  border-radius:50%;
  border:1.5px solid var(--gold);
  opacity:0;
  animation:hotspotRipple 2.4s ease-out infinite;
}
.hotspot-pulse::after{ animation-delay:1.2s; }
@keyframes hotspotRipple{
  0%{ transform:scale(0.6); opacity:0.9; }
  100%{ transform:scale(3.2); opacity:0; }
}

/* Linie & Label — nur bei Hover/Aktiv sichtbar */
.hotspot-line{
  position:absolute;
  top:50%; height:1px;
  background:linear-gradient(to right, var(--gold), rgba(255,255,255,0.7));
  transform-origin:left center;
  opacity:0;
  transition:opacity 0.35s ease, width 0.5s cubic-bezier(0.4,0,0.2,1);
  width:0;
  pointer-events:none;
}
.hotspot[data-side="left"] .hotspot-line{
  right:20px; left:auto;
  transform-origin:right center;
  background:linear-gradient(to left, var(--gold), rgba(255,255,255,0.7));
}
.hotspot[data-side="right"] .hotspot-line{ left:20px; }

.hotspot-label{
  position:absolute; top:50%;
  background:rgba(34,37,42,0.94);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(184,151,106,0.3);
  color:white;
  padding:0.7rem 1rem;
  border-radius:3px;
  min-width:180px; max-width:220px;
  opacity:0; transform:translateY(-50%) translateX(-8px);
  transition:opacity 0.35s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events:none;
  white-space:normal;
  box-shadow:0 8px 24px rgba(0,0,0,0.3);
}
.hotspot[data-side="right"] .hotspot-label{ left:110px; }
.hotspot[data-side="left"] .hotspot-label{
  right:110px; left:auto;
  transform:translateY(-50%) translateX(8px);
}
.hotspot-label strong{
  display:block;
  font-size:0.85rem;
  color:var(--gold);
  font-weight:600;
  letter-spacing:0.03em;
  margin-bottom:0.15rem;
}
.hotspot-label span{
  display:block;
  font-size:0.75rem;
  color:rgba(255,255,255,0.7);
  font-weight:300;
  line-height:1.4;
}

/* Hover-Zustand */
.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-open{
  z-index:10;
  outline:none;
}
.hotspot:hover .hotspot-pulse,
.hotspot:focus-visible .hotspot-pulse,
.hotspot.is-open .hotspot-pulse{
  animation:hotspotPop 0.4s cubic-bezier(0.34,1.5,0.64,1) forwards;
}
@keyframes hotspotPop{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.4); }
  100%{ transform:scale(1.15); }
}
.hotspot:hover .hotspot-line,
.hotspot:focus-visible .hotspot-line,
.hotspot.is-open .hotspot-line{
  opacity:1;
  width:90px;
}
.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label,
.hotspot.is-open .hotspot-label{
  opacity:1;
  transform:translateY(-50%) translateX(0);
  transition-delay:0.15s;
}

/* Wenn ein Hotspot offen ist, dämpft die anderen */
.hotspot-frame:hover .hotspot:not(:hover) .hotspot-pulse{
  opacity:0.5;
  transition:opacity 0.3s;
}

/* Nav */
.hotspot-nav{
  display:flex; align-items:center; justify-content:center;
  gap:1.2rem; margin-top:2.5rem;
}
.hotspot-arrow{
  width:44px; height:44px; border-radius:50%;
  background:var(--warm);
  border:1px solid var(--border);
  color:var(--navy); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.25s cubic-bezier(0.34,1.5,0.64,1);
}
.hotspot-arrow:hover{
  background:var(--gold); color:white; border-color:var(--gold);
  transform:scale(1.08);
  box-shadow:0 8px 20px rgba(184,151,106,0.35);
}
.hotspot-dots{display:flex; gap:0.5rem;}
.hotspot-dot{
  width:8px; height:8px; border-radius:50%;
  background:rgba(34,37,42,0.15);
  border:none; padding:0; cursor:pointer;
  transition:all 0.3s cubic-bezier(0.65,0,0.35,1);
}
.hotspot-dot:hover{background:rgba(34,37,42,0.35);}
.hotspot-dot.active{
  width:36px; border-radius:6px;
  background:var(--gold);
  box-shadow:0 0 12px rgba(184,151,106,0.4);
}

@media (max-width:900px){
  .hotspot-section{padding:70px 6% 60px;}
  .hotspot-slide{grid-template-columns:1fr; gap:30px;}
  .hotspot-label{ min-width:140px; max-width:170px; padding:0.5rem 0.8rem; }
  .hotspot-label strong{font-size:0.78rem;}
  .hotspot-label span{font-size:0.68rem;}
  .hotspot:hover .hotspot-line,
  .hotspot.is-open .hotspot-line{width:50px;}
  .hotspot[data-side="right"] .hotspot-label{left:70px;}
  .hotspot[data-side="left"] .hotspot-label{right:70px;}
}
@media (prefers-reduced-motion: reduce){
  .hotspot-pulse::before, .hotspot-pulse::after{animation:none; display:none;}
}

/* ── GALLERY STRIP ── */
.gallery-strip{display:grid;grid-template-columns:repeat(5,1fr);height:280px;}
.gallery-strip-item{overflow:hidden;position:relative;}
.gallery-strip-item img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s;}
.gallery-strip-item:hover img{transform:scale(1.06);}
.gallery-strip-item-overlay{
  position:absolute;inset:0;background:linear-gradient(to top,rgba(51,51,51,0.7) 0%,transparent 60%);
  opacity:0;transition:opacity 0.3s;display:flex;align-items:flex-end;padding:1rem;
}
.gallery-strip-item:hover .gallery-strip-item-overlay{opacity:1;}
.gallery-strip-item-label{color:white;font-size:0.8rem;font-family:'Bebas Neue',sans-serif;}

/* ── KONTAKT ── */
.contact-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:80px;padding:90px 8%;background:#ffffff;}
.contact-info-block{padding-top:1rem;}
.contact-info-block p{color:#2a2a2a;line-height:1.75;font-size:0.95rem;margin-bottom:1.5rem;font-weight:400;}
.contact-details{margin-top:2rem;display:flex;flex-direction:column;gap:1rem;}
.contact-detail{display:flex;gap:1rem;align-items:flex-start;font-size:0.9rem;color:#2a2a2a;font-weight:400;}
.contact-detail-icon{color:var(--gold);font-size:1.1rem;min-width:22px;margin-top:2px;}
.free-note{
  margin-top:2.5rem;background:var(--cream);border:1px solid var(--border);
  padding:1.2rem 1.5rem;border-radius:3px;border-left:3px solid var(--gold);
}
.free-note strong{color:var(--navy);display:block;margin-bottom:0.3rem;font-size:0.92rem;}
.free-note p{font-size:0.86rem;color:#333;margin:0;font-weight:400;}
/* Form */
.form-card{background:white;padding:3rem;border-radius:3px;box-shadow:0 30px 70px rgba(0,0,0,0.1);}
.form-title{font-family:'Bebas Neue',sans-serif;font-size:1.5rem;color:var(--navy);margin-bottom:0.4rem;}
.form-sub{color:#3a3a3a;font-size:0.85rem;margin-bottom:2rem;font-weight:300;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.form-group{margin-bottom:1.1rem;}
.form-group label{
  display:block;font-size:0.75rem;letter-spacing:0.09em;text-transform:uppercase;
  color:#3a3a3a;margin-bottom:0.35rem;font-weight:600;
}
.form-group input,.form-group select,.form-group textarea{
  width:100%;border:1.5px solid #e0dbd0;border-radius:2px;
  padding:0.75rem 0.9rem;font-family:'DM Sans',sans-serif;font-size:0.9rem;
  color:var(--text);background:var(--warm);outline:none;transition:border-color 0.2s;appearance:none;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--gold);background:white;}
.form-group textarea{resize:vertical;min-height:100px;}
.form-submit{
  width:100%;background:var(--navy);color:white;border:none;
  padding:1rem;font-family:'DM Sans',sans-serif;font-size:0.88rem;
  letter-spacing:0.1em;text-transform:uppercase;font-weight:600;
  cursor:pointer;border-radius:2px;transition:all 0.2s;margin-top:0.5rem;
}
.form-submit:hover{background:var(--gold);color:var(--navy);}
#success-msg{
  display:none;background:#e8f5e9;border:1px solid #a5d6a7;
  color:#2e7d32;padding:1rem;border-radius:3px;text-align:center;
  font-size:0.9rem;margin-top:1rem;
}

/* ── FOOTER ── */
footer{
  background:#F4F1ED;padding:3rem 8%;
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:1.5rem;border-top:1px solid var(--border);
}
.footer-brand{display:flex;align-items:center;gap:1rem;}
.footer-brand-logo{
  height:56px;width:auto;display:block;
  opacity:0.95;
}
@media(max-width:520px){
  .footer-brand-logo{height:44px;}
}
/* Legacy Klassen (nicht mehr genutzt) — Fallback falls doch */
.footer-logo-badge{display:none;}
.footer-brand-text{color:var(--text-mid);font-size:0.78rem;}
.footer-brand-name{color:var(--text);font-family:'Playfair Display',Georgia,serif;font-size:0.95rem;display:block;}
.footer-links{display:flex;gap:1.5rem;}
.footer-links a{color:var(--text-mid);text-decoration:none;font-size:0.78rem;transition:color 0.2s;}
.footer-links a:hover{color:var(--gold);}
.footer-copy{color:var(--text-mid);font-size:0.75rem;}

/* ── ANIMATIONS ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
.reveal{opacity:0;transform:translateY(28px);transition:opacity 0.65s ease,transform 0.65s ease;}
.reveal.visible{opacity:1;transform:translateY(0);}

/* ── RESPONSIVE ── */
@media(max-width:960px){
  .hero{grid-template-columns:1fr;min-height:auto;}
  .hero-left{padding:110px 6% 60px;}
  .hero-left::after{display:none;}
  .hero-right{height:55vw;}
  .about-grid,.contact-layout,.service-body{grid-template-columns:1fr;gap:40px;padding:60px 6%;}
  .about-credential-strip{right:0;}
  .usp-grid{grid-template-columns:1fr 1fr;}
  .gallery-strip{grid-template-columns:repeat(3,1fr);height:200px;}
  .gallery-strip-item:nth-child(n+4){display:none;}
  .services-grid{grid-template-columns:1fr;}
  .section{padding:60px 6%;}
  .service-cta-box{position:static;}
}
@media(max-width:700px){
  .nav-links{display:none;}
  .hamburger{display:flex;}
  .mobile-menu.open{display:block;}
  .hero-stats{flex-wrap:wrap;gap:1.5rem;}
  .form-row{grid-template-columns:1fr;}
  .usp-grid{grid-template-columns:1fr;}
  footer{flex-direction:column;text-align:center;}
  .footer-brand{justify-content:center;}
  .footer-links{justify-content:center;}
}

  /* Slide backgrounds loaded via img tags */

  /* ── HERO BANNER (mit Slideshow-Background) ── */
  .hero-banner {
    position: relative;
    height: 100vh;
    min-height: 680px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  /* Slideshow-Layer (etwas übergroß, damit Parallax-Shift keine Kanten zeigt) */
  .hero-slideshow {
    position: absolute;
    top: -80px; left: 0; right: 0; bottom: -80px;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition:
      opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
      transform 3.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
  }
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity 0.3s ease; transform: none; }
    .hero-slide.is-active { transform: none; }
  }
  /* Legacy .hero-banner-bg support */
  .hero-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    z-index: 0;
  }
  .hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      100deg,
      rgba(34,37,42,0.88) 0%,
      rgba(34,37,42,0.65) 50%,
      rgba(34,37,42,0.20) 100%
    );
    z-index: 1;
  }
  .hero-banner-content {
    position: relative;
    z-index: 3;
    padding: 0 8%;
    max-width: 750px;
  }
  .hero-banner-content .hero-badge-label {
    font-size: 0.72rem;
    margin-bottom: 1.2rem;
    animation: none;
  }
  .hero-banner-content .hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 1.5rem;
    animation: none;
    color: white !important;
  }
  .hero-banner-content .hero-badge-label {
    color: white;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
  }
  .hero-banner-content .hero-btns {
    animation: none;
    gap: 0.7rem;
  }
  .hero-banner-content .btn-primary { padding: 0.65rem 1.4rem; font-size: 0.8rem; }
  .hero-banner-content .btn-outline  { padding: 0.65rem 1.4rem; font-size: 0.8rem; }

  /* Portrait Freisteller (transparent PNG) */
  .hero-banner-portrait {
    position: absolute;
    right: 6%;
    bottom: 44px;
    height: 92%;
    max-height: 780px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
  }
  /* Weicher goldener Glow-Anker hinter dem Bauleiter */
  .hero-portrait-glow {
    position: absolute;
    inset: 12% -8% 8% -8%;
    background: radial-gradient(ellipse at 50% 60%,
      rgba(201,168,76,0.35) 0%,
      rgba(201,168,76,0.10) 40%,
      transparent 70%);
    filter: blur(20px);
    z-index: 0;
    opacity: 0;
    animation: heroGlowIn 1.4s 0.3s ease forwards;
  }
  @keyframes heroGlowIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
  }
  .hero-portrait-img {
    position: relative;
    z-index: 1;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(-6px 8px 24px rgba(0,0,0,0.55))
            drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    /* Entry-Animation: Bauleiter steigt sanft von unten mit leichtem Fade & Scale */
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: heroPortraitIn 1.4s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  @keyframes heroPortraitIn {
    0% { opacity: 0; transform: translateY(60px) scale(0.96); filter: drop-shadow(-6px 8px 24px rgba(0,0,0,0)) blur(4px); }
    60% { opacity: 1; filter: drop-shadow(-6px 8px 24px rgba(0,0,0,0.55)) blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(-6px 8px 24px rgba(0,0,0,0.55)) drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
  }
  /* Subtile Idle-Animation: leichtes Atmen (opacity:1 in jedem Keyframe — sonst Firefox/Chrome auf Windows fallen zurück auf initial 0) */
  @keyframes heroPortraitBreathe {
    0%, 100% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 1; transform: translateY(-4px) scale(1.005); }
  }
  .hero-portrait-img.is-idle {
    opacity: 1 !important;
    animation: heroPortraitBreathe 6s ease-in-out infinite;
  }
  /* Fallback: wenn animationend nie feuert (Windows Bug), nach 3s idle setzen — greift auch bei prefers-reduced-motion nicht mehr */
  .hero-portrait-img{
    animation-fill-mode: forwards;
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-portrait-glow, .hero-portrait-img { animation: none; opacity: 1 !important; transform: none; }
  }

  /* Stats bar */
  .hero-banner-stats {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(15,15,15,0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(201,168,76,0.2);
    padding: 0.65rem 6%;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 4;
  }
  .hero-banner-stats .stat { border-left: none; padding-left: 0; }
  .hero-banner-stats .stat-num { font-size: 1.1rem; }
  .hero-banner-stats .stat-label { font-size: 0.6rem; }
  .hero-stat-div { width: 1px; height: 24px; background: rgba(201,168,76,0.2); flex-shrink: 0; }

  /* Hero-Kontext-Label (wechselt mit Slide) */
  .hero-context {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.4rem;
    opacity: 0;
    animation: heroCtxIn 0.6s 0.3s ease forwards;
  }
  .hero-context strong { color: var(--gold); font-weight: 600; }
  .hero-context-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(201,168,76,0.7);
    animation: heroDotPulse 2s infinite;
  }
  @keyframes heroCtxIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes heroDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  }
  /* Fade Klasse für Kontext-Wechsel */
  .hero-context.is-changing { opacity: 0.35; transition: opacity 0.18s ease; }

  /* Hero Dots */
  .hero-dots {
    position: absolute;
    left: 8%;
    bottom: 76px;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
  }
  .hero-dot {
    width: 24px; height: 3px;
    background: rgba(255,255,255,0.25);
    border: none; padding: 0;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.65,0,0.35,1);
  }
  .hero-dot:hover { background: rgba(255,255,255,0.5); }
  .hero-dot.active {
    background: var(--gold);
    width: 42px;
    box-shadow: 0 0 12px rgba(201,168,76,0.5);
  }

  /* Scroll-Hint unten mittig */
  .hero-scroll-hint {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.3s;
  }
  .hero-scroll-hint:hover { opacity: 1; }
  .hero-scroll-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .hero-scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    position: relative;
    overflow: hidden;
  }
  .hero-scroll-line::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 40%;
    background: var(--gold);
    animation: scrollHint 2s ease-in-out infinite;
  }
  @keyframes scrollHint {
    0% { transform: translateY(-100%); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(250%); opacity: 0; }
  }
  /* Fade-out beim Scrollen */
  .hero-scroll-hint.hidden { opacity: 0; pointer-events: none; }

  @media(max-width:700px) {
    .hero-banner { height: 90vh; min-height: 560px; padding-bottom: 60px; }
    .hero-banner-portrait { right: 2%; height: 90%; opacity: 0.4; }
    .hero-banner-stats { gap: 1rem; }
    .hero-stat-div { display: none; }
    .hero-scroll-hint { display: none; }
    .hero-dots { bottom: 90px; left: 6%; }
    .hero-context { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
  }


  /* ── GLOBAL CONTENT READABILITY FIXES ── */

  /* All white-bg content sections */
  .contact-layout,
  .service-body,
  .section,
  .usp-band,
  .about-grid {
    background: #ffffff;
    color: #1e1e1e;
  }

  /* Dark text everywhere on light backgrounds */
  .contact-layout .section-title,
  .contact-layout h2,
  .contact-info-block .section-title {
    color: #1e1e1e !important;
  }
  .contact-info-block p {
    color: #2a2a2a !important;
    font-weight: 400;
  }
  .contact-detail {
    color: #2a2a2a !important;
    font-weight: 400;
  }
  .free-note strong { color: #1e1e1e !important; }
  .free-note p { color: #333 !important; }

  /* Service body */
  .service-body { background: #ffffff !important; }
  .service-body-text h2 { color: #1e1e1e !important; }
  .service-body-text p { color: #2a2a2a !important; font-weight: 400; }
  .service-checklist li { color: #2a2a2a !important; font-weight: 400; }

  /* About page light sections */
  .about-text p { color: #2a2a2a !important; font-weight: 400; }
  .about-text strong { color: #1e1e1e !important; }
  .cred-text { color: #333 !important; }
  .cred-text strong { color: #1e1e1e !important; }

  /* USP cards */
  .usp-desc { color: #3a3a3a !important; font-weight: 400; }
  .usp-title { color: #1e1e1e !important; }

  /* cream/warm sections */
  .usp-band { background: var(--cream) !important; }
  .usp-band .section-title { color: #1e1e1e !important; }

  /* Hero sub text on dark backgrounds - keep readable */
  .hero-banner-content .hero-sub { color: rgba(255,255,255,0.9) !important; }

  /* Form card always white */
  .form-card { background: #ffffff !important; }
  .form-title { color: #1e1e1e !important; }
  .form-sub { color: #444 !important; }
  .form-group label { color: #444 !important; }

  /* Section label (gold text) always visible */
  .section-label { color: var(--gold) !important; }

  /* Timeline entries on cream bg */
  .timeline-entry { color: #2a2a2a; }


  /* ── TRUST / QUALIFICATIONS SECTION ── */
  .trust-section {
    background: var(--warm);
    padding: 80px 5% 90px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .trust-inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1300px;
    margin: 0 auto;
  }

  /* Portrait column */
  .trust-portrait-col { display: flex; flex-direction: column; gap: 1.5rem; }
  .trust-portrait-wrap { position: relative; }
  .trust-portrait-img {
    width: 100%;
    border-radius: 3px;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
  }
  .trust-portrait-badge {
    position: absolute;
    bottom: -14px; right: -14px;
    background: var(--gold);
    padding: 0.9rem 1.1rem;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  .trust-badge-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem; color: #1e1e1e;
    line-height: 1; display: block;
    letter-spacing: 0.06em;
  }
  .trust-badge-label {
    font-size: 0.62rem; color: #1e1e1e;
    text-transform: uppercase; letter-spacing: 0.12em;
    font-weight: 600; line-height: 1.3;
  }
  .trust-quote {
    background: white;
    padding: 1.2rem 1.4rem;
    border-radius: 2px;
    border-left: 3px solid var(--gold);
    font-family: 'Playfair Display', 'Georgia', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
    margin-top: 1rem;
  }
  .trust-quote cite {
    display: block; margin-top: 0.6rem;
    font-size: 0.75rem; font-style: normal;
    color: var(--gold); letter-spacing: 0.05em;
  }

  /* Credentials column */
  .trust-creds-col {}
  .trust-label {
    font-size: 0.72rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold);
    font-weight: 500; margin-bottom: 0.6rem;
  }
  .trust-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #1e1e1e; line-height: 1.0;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 0.8rem;
  }
  .trust-title em { color: var(--gold); font-style: normal; }
  .trust-intro {
    color: #3a3a3a; font-size: 0.92rem;
    line-height: 1.7; font-weight: 400;
    margin-bottom: 1.5rem; max-width: 500px;
  }

  .trust-items { display: flex; flex-direction: column; gap: 0; }
  .trust-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }
  .trust-item:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
  .trust-item-icon { flex-shrink: 0; margin-top: 2px; }
  .trust-item-text {
    font-size: 0.87rem; color: #333; line-height: 1.5; font-weight: 400;
  }
  .trust-item-text strong {
    display: block; color: #1e1e1e;
    font-weight: 600; font-size: 0.9rem; margin-bottom: 0.15rem;
  }



  /* Responsive */
  @media(max-width:800px) {
    .trust-inner { grid-template-columns: 1fr; gap: 2rem; }
    .trust-portrait-img { max-width: 200px; margin: 0 auto; display: block; }
  }
  @media(max-width:650px) {
    .trust-inner { grid-template-columns: 1fr; gap: 2rem; }
    .trust-certs-grid { flex-direction: column; }
    .trust-portrait-img { max-width: 220px; margin: 0 auto; display: block; }
    .trust-portrait-badge { right: 50%; transform: translateX(60%); }
  }


  
  /* Dark sections removed: pages are now light-themed */
  /* Light sections: all text must be dark */
  .contact-layout p,
  .contact-layout li,
  .contact-layout span,
  .trust-section p,
  .trust-section li,
  .service-body p,
  .service-body li,
  .about-text p,
  .usp-band p,
  .section p,
  .section li {
    color: #2a2a2a !important;
  }
  /* Timeline entry text */
  .reveal > div:last-child { color: #2a2a2a; }


  /* ── FLOATING CTA BUTTON ── */
  .fab-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    background: var(--navy);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.6rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(139,115,85,0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fabPulse 3s ease-in-out infinite;
  }
  .fab-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(201,168,76,0.6);
    animation: none;
  }
  @keyframes fabPulse {
    0%,100% { box-shadow: 0 6px 24px rgba(34,37,42,0.35); }
    50%      { box-shadow: 0 6px 32px rgba(34,37,42,0.55); }
  }
  @media(max-width:480px) {
    .fab-cta { bottom: 1rem; right: 1rem; padding: 0.75rem 1.2rem; font-size: 0.9rem; }
  }

  /* ── POPUP MODAL ── */
  .popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  .popup-overlay.open {
    display: flex;
    animation: overlayIn 0.25s ease;
  }
  @keyframes overlayIn { from { opacity:0; } to { opacity:1; } }

  .popup-box {
    background: #fff;
    border-radius: 4px;
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: popupIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  }
  @keyframes popupIn {
    from { opacity:0; transform: scale(0.88) translateY(20px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
  }

  .popup-header {
    background: var(--navy);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .popup-header-text {}
  .popup-header-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.3rem;
  }
  .popup-header-title {
    font-family: 'Bebas Neue', sans-serif;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 0.07em;
    line-height: 1.1;
  }
  .popup-header-title em { color: var(--gold); font-style: normal; }
  .popup-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: background 0.2s;
  }
  .popup-close:hover { background: rgba(255,255,255,0.25); }

  .popup-free-bar {
    background: rgba(201,168,76,0.1);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 0.7rem 2rem;
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.82rem; color: #1e1e1e; font-weight: 500;
  }
  .popup-free-bar svg { color: var(--gold); flex-shrink: 0; }

  .popup-body { padding: 1.5rem 2rem 2rem; }

  .popup-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .popup-form .form-group { margin-bottom: 0.9rem; }
  .popup-form label {
    display: block; font-size: 0.73rem; letter-spacing: 0.09em;
    text-transform: uppercase; color: #555; margin-bottom: 0.3rem; font-weight: 600;
  }
  .popup-form input,
  .popup-form select,
  .popup-form textarea {
    width: 100%; border: 1.5px solid #ddd; border-radius: 2px;
    padding: 0.7rem 0.85rem; font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem; color: #1e1e1e; background: #fafafa;
    outline: none; transition: border-color 0.2s; appearance: none;
  }
  .popup-form input:focus,
  .popup-form select:focus,
  .popup-form textarea:focus { border-color: var(--gold); background: #fff; }
  .popup-form textarea { resize: vertical; min-height: 80px; }
  .popup-form .dsgvo-row {
    display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 1rem;
  }
  /* DSGVO-Checkbox: komplettes Reset — der globale .popup-form input overrideet sonst Padding/Border */
  .popup-form .dsgvo-row input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    margin: 2px 0 0 0;
    padding: 0;
    border: 1.5px solid #c4c4c4;
    border-radius: 3px;
    background: #ffffff;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
    appearance: auto;
    -webkit-appearance: checkbox;
  }
  .popup-form .dsgvo-row input[type="checkbox"]:hover {
    border-color: var(--gold);
  }
  .popup-form .dsgvo-row label {
    font-size: 0.8rem; text-transform: none; letter-spacing: 0;
    color: #555; font-weight: 400; line-height: 1.5;
    cursor: pointer;
    user-select: none;
  }
  .popup-form .dsgvo-row label a {
    color: var(--gold);
    text-decoration: underline;
  }
  .popup-submit {
    width: 100%; background: var(--navy); color: white; border: none;
    padding: 0.95rem; font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem; letter-spacing: 0.1em;
    cursor: pointer; border-radius: 2px;
    transition: background 0.2s;
  }
  .popup-submit:hover { background: var(--gold); color: white; }
  #popup-success {
    display: none; background: #e8f5e9; border: 1px solid #a5d6a7;
    color: #2e7d32; padding: 1rem; border-radius: 3px;
    text-align: center; font-size: 0.9rem; margin-top: 0.8rem;
  }

  @media(max-width:480px) {
    .popup-box { max-height: 96vh; }
    .popup-header, .popup-body { padding-left: 1.2rem; padding-right: 1.2rem; }
    .popup-form .form-row { grid-template-columns: 1fr; }
  }


  /* ── TARGETED TEXT CONTRAST FIXES (all sections now light) ── */
  .services-overview .tile-num  { color: rgba(139,115,85,0.3) !important; }
  .services-overview .tile-name { color: var(--text) !important; }
  .services-overview .tile-desc { color: var(--text-mid) !important; }
  .services-overview .tile-arrow { color: var(--gold) !important; }

  .region-band p { color: var(--text-mid) !important; }
  .region-band h2 { color: var(--text) !important; }

  .service-cta-box p { color: var(--text-mid) !important; }

  .service-hero-content .lead { color: var(--text-mid) !important; }


  /* ══ CERTIFICATE GALLERY ══ */
  .certs-section {
    background: var(--warm);
    padding: 90px 8%;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .certs-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,115,85,0.04) 0%, transparent 65%);
    pointer-events: none;
  }
  .certs-header { text-align: center; margin-bottom: 4rem; position: relative; }
  .certs-header .section-label { color: var(--gold); margin-bottom: 0.6rem; }
  .certs-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text); font-size: clamp(2rem,3.5vw,3rem);
    letter-spacing: 0.07em; text-transform: uppercase;
    line-height: 1.05;
  }
  .certs-header h2 em { color: var(--gold); font-style: normal; }
  .certs-header p {
    color: var(--text-mid);
    font-size: 0.92rem; max-width: 520px;
    margin: 0.8rem auto 0; line-height: 1.7; font-weight: 300;
  }

  /* Certs 2-Spalten-Layout */
  .certs-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
  }
  .certs-person {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
  }
  .certs-person-img {
    position: relative;
    aspect-ratio: 4/5;
    max-height: 520px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(34,37,42,0.18);
  }
  /* Querformat-Variante — zeigt Ganzkörper vorm Musterhaus */
  .certs-person-img.certs-person-img-landscape {
    aspect-ratio: 3/2;
    max-height: none;
  }
  .certs-person-img.certs-person-img-landscape img {
    object-position: center 30%;
  }
  .certs-person-img img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
    transition: transform 0.7s;
  }
  .certs-person-img:hover img { transform: scale(1.04); }
  .certs-person-badge {
    position: absolute;
    bottom: 1.3rem; left: 1.3rem;
    background: var(--gold);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  }
  .certs-person-badge svg { flex-shrink: 0; }
  .certs-person-badge span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
  }
  .certs-person-text { padding: 0 0.5rem; }
  .certs-person-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  .certs-person-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--navy);
    margin: 0;
    padding: 0;
    border: none;
  }
  .certs-person-cite {
    margin-top: 1rem;
    color: var(--text-mid);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }
  .certs-slider-col { min-width: 0; }

  /* Slider */
  .certs-slider-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
  }
  .certs-grid {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.77,0,0.175,1);
    will-change: transform;
    align-items: flex-start;
  }
  .cert-frame {
    min-width: 100%;
    padding: 30px 10px 10px;
  }
  /* Slider controls */
  .certs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  .certs-nav-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  .certs-nav-btn:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
  }
  .certs-dots {
    display: flex; gap: 0.5rem;
  }
  .certs-dot {
    width: 28px; height: 3px;
    border-radius: 2px;
    border: none; padding: 0;
    background: rgba(139,115,85,0.2);
    cursor: pointer;
    transition: all 0.3s;
  }
  .certs-dot.active {
    background: var(--gold);
    width: 48px;
  }

  /* Individual frame */
  .cert-frame {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1);
  }
  .cert-frame:hover { transform: translateY(-8px) rotate(-0.5deg); }


  /* Outer gold frame border */
  .cert-outer-frame {
    background: linear-gradient(145deg, #c9a84c 0%, #e8c97a 35%, #a07830 60%, #c9a84c 100%);
    padding: 10px;
    border-radius: 3px;
    box-shadow:
      0 2px 0 rgba(255,255,255,0.15) inset,
      0 -2px 0 rgba(0,0,0,0.3) inset,
      2px 0 0 rgba(255,255,255,0.1) inset,
      -2px 0 0 rgba(0,0,0,0.2) inset,
      0 20px 60px rgba(0,0,0,0.6),
      0 4px 12px rgba(201,168,76,0.3);
    position: relative;
  }

  /* Inner mat/passe-partout */
  .cert-mat {
    background: #f8f5ef;
    padding: 14px;
    position: relative;
  }
  .cert-mat::before {
    content: '';
    position: absolute; inset: 4px;
    border: 1px solid rgba(0,0,0,0.08);
    pointer-events: none;
    z-index: 1;
  }

  /* The certificate image */
  .cert-img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  /* Hanging wire effect */
  .cert-wire {
    position: absolute;
    top: -24px; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 24px;
    overflow: visible;
  }
  .cert-wire svg { width: 100%; height: 100%; overflow: visible; }

  /* Wall shadow */
  .cert-frame::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 5%; right: 5%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
  }

  /* Caption below frame */
  .cert-caption {
    text-align: center;
    margin-top: 1.2rem;
  }
  .cert-caption-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
  }
  .cert-caption-sub {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
  }

  /* Meisterbrief placeholder (styled card) */
  .cert-placeholder {
    background: linear-gradient(160deg, #faf8f2 0%, #f0ecdf 100%);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    position: relative;
  }
  .cert-placeholder::before {
    content: '';
    position: absolute; inset: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    pointer-events: none;
  }
  .cert-placeholder::after {
    content: '';
    position: absolute; inset: 16px;
    border: 0.5px solid rgba(0,0,0,0.06);
    pointer-events: none;
  }
  .cert-ph-logo {
    color: rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
  }
  .cert-ph-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; letter-spacing: 0.1em;
    color: #1e1e1e; margin-bottom: 0.5rem;
  }
  .cert-ph-issuer {
    font-size: 0.78rem; color: #666;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 1.2rem;
  }
  .cert-ph-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem; color: var(--gold);
    letter-spacing: 0.1em; line-height: 1;
    margin-bottom: 0.2rem;
  }
  .cert-ph-date-label {
    font-size: 0.68rem; color: #888;
    text-transform: uppercase; letter-spacing: 0.15em;
  }
  .cert-ph-badge {
    margin-top: 1.5rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 0.4rem 0.9rem; border-radius: 20px;
    font-size: 0.72rem; color: #8a6820;
    text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  }

  /* Responsive */
  @media(max-width:960px) {
    .certs-layout { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
    .certs-person-img { max-height: 420px; }
  }
  @media(max-width:600px) {
    .certs-slider-wrap { max-width: 320px; }
    .cert-placeholder { min-height: 240px; }
    .certs-person-quote { font-size: 1.05rem; }
  }

</style>
<style>
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ═══════════════════════════════════════════════
   CONSENT MANAGER (DSGVO — Klaro-Style)
═══════════════════════════════════════════════ */
.consent-banner{
  position:fixed; bottom:1.5rem; left:1.5rem; right:1.5rem;
  max-width:960px; margin:0 auto;
  background:var(--navy); color:#fff;
  padding:1.5rem 1.8rem; border-radius:4px;
  border:1px solid rgba(184,151,106,0.35);
  box-shadow:0 24px 60px rgba(0,0,0,0.4);
  z-index:9000;
  animation:consentIn 0.5s cubic-bezier(0.22,1,0.36,1);
}
.consent-banner.closing{opacity:0; transform:translateY(20px); transition:all 0.3s ease;}
@keyframes consentIn{from{opacity:0;transform:translateY(30px);}to{opacity:1;transform:translateY(0);}}
.consent-inner{display:grid; grid-template-columns:1fr auto; gap:1.5rem; align-items:center;}
.consent-copy strong{
  display:block; color:var(--gold); font-family:'Playfair Display',Georgia,serif;
  font-size:1.05rem; font-weight:600; margin-bottom:0.4rem;
}
.consent-copy p{font-size:0.85rem; line-height:1.55; color:rgba(255,255,255,0.85); margin:0;}
.consent-copy a{color:var(--gold); text-decoration:underline; text-decoration-color:rgba(184,151,106,0.4);}
.consent-copy a:hover{text-decoration-color:var(--gold);}
.consent-actions{display:flex; gap:0.6rem; flex-shrink:0; flex-wrap:wrap;}
.consent-btn{
  border:none; padding:0.7rem 1.2rem; border-radius:3px;
  font-family:inherit; font-size:0.78rem; font-weight:600;
  letter-spacing:0.06em; text-transform:uppercase; cursor:pointer;
  transition:all 0.25s cubic-bezier(0.34,1.5,0.64,1);
  white-space:nowrap;
}
.consent-btn-primary{background:var(--gold); color:#fff;}
.consent-btn-primary:hover{background:var(--gold-light); transform:translateY(-1px); box-shadow:0 6px 16px rgba(184,151,106,0.4);}
.consent-btn-outline{background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.3);}
.consent-btn-outline:hover{border-color:var(--gold); color:var(--gold);}
.consent-btn-ghost{background:transparent; color:rgba(255,255,255,0.7); border:1px solid transparent;}
.consent-btn-ghost:hover{color:var(--gold); border-color:rgba(184,151,106,0.3);}
@media(max-width:720px){
  .consent-banner{bottom:1rem; left:0.8rem; right:0.8rem; padding:1.2rem;}
  .consent-inner{grid-template-columns:1fr; gap:1rem;}
  .consent-actions{display:grid; grid-template-columns:1fr; gap:0.5rem;}
  .consent-btn{width:100%;}
}

/* Modal (Auswahl treffen) */
.consent-modal{
  position:fixed; inset:0; z-index:9500;
  background:rgba(20,22,26,0.65); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  display:none; align-items:center; justify-content:center;
  padding:1.5rem;
}
.consent-modal.open{display:flex; animation:consentModalIn 0.3s ease;}
@keyframes consentModalIn{from{opacity:0;}to{opacity:1;}}
.consent-modal-box{
  background:#fff; border-radius:4px; max-width:600px; width:100%;
  max-height:90vh; display:flex; flex-direction:column;
  box-shadow:0 30px 80px rgba(0,0,0,0.4);
  overflow:hidden;
}
.consent-modal-head{
  padding:1.4rem 1.8rem; border-bottom:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center;
  background:var(--cream);
}
.consent-modal-head h3{
  font-family:'Playfair Display',Georgia,serif;
  color:var(--navy); font-size:1.15rem; font-weight:600; margin:0;
}
.consent-modal-close{
  background:transparent; border:none; font-size:1.6rem; color:var(--text-mid);
  cursor:pointer; line-height:1; padding:0.2rem 0.4rem;
}
.consent-modal-close:hover{color:var(--navy);}
.consent-modal-body{padding:1.6rem 1.8rem; overflow-y:auto; flex:1;}
.consent-modal-intro{font-size:0.88rem; color:var(--text-mid); line-height:1.6; margin:0 0 1.4rem;}
.consent-cat{
  padding:1.1rem; margin-bottom:0.7rem;
  border:1px solid var(--border); border-radius:3px;
  background:#fafafa;
}
.consent-cat-head{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:0.4rem;
}
.consent-cat-head strong{color:var(--navy); font-size:0.95rem; font-weight:600;}
.consent-cat-head span{color:var(--gold); font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase; margin-left:0.5rem;}
.consent-cat p{font-size:0.82rem; color:var(--text-mid); line-height:1.55; margin:0;}
.consent-switch{position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0;}
.consent-switch input{opacity:0; width:0; height:0;}
.consent-switch span{
  position:absolute; inset:0; background:#ccc; border-radius:24px;
  cursor:pointer; transition:0.3s;
}
.consent-switch span::before{
  content:''; position:absolute; height:18px; width:18px;
  left:3px; bottom:3px; background:white; border-radius:50%; transition:0.3s;
}
.consent-switch input:checked + span{background:var(--gold);}
.consent-switch input:checked + span::before{transform:translateX(20px);}
.consent-switch input:disabled + span{opacity:0.6; cursor:not-allowed;}
.consent-modal-foot{
  padding:1.2rem 1.8rem; border-top:1px solid var(--border);
  background:#fff;
  display:flex; gap:0.6rem; justify-content:flex-end; flex-wrap:wrap;
}
@media(max-width:520px){
  .consent-modal-foot{grid-template-columns:1fr; display:grid;}
  .consent-modal-foot .consent-btn{width:100%;}
}

/* Alte Klassen (Legacy) — nicht mehr genutzt aber behalten */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  background: var(--navy);
  color: white;
  padding: 1.4rem 1.8rem;
  border-radius: 4px;
  border: 1px solid rgba(184,151,106,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 9000;
  transition: opacity 0.3s ease;
  animation: cookieBannerIn 0.5s ease;
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 380px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}
.cookie-banner-text strong {
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(184,151,106,0.4);
}
.cookie-banner-text a:hover {
  text-decoration-color: var(--gold);
}
.cookie-banner-btn {
  background: var(--gold);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-banner-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184,151,106,0.4);
}
@media (max-width: 640px) {
  .cookie-banner {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1.2rem 1.3rem;
  }
  .cookie-banner-inner {
    gap: 1rem;
  }
  .cookie-banner-btn {
    width: 100%;
  }
}
