:root{
  --notice-offset: 0px;

  --accent:#35A8E0;
  --accent2:#62C8FF;

  --bg:#0b1220;
  --card:#0f1a33;
  --text:#e7ecff;
  --muted:#b6c0e6;

  --line: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.14);

  --shadow: 0 18px 55px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(98,200,255,.16), transparent 60%),
    radial-gradient(900px 600px at 85% 15%, rgba(53,168,224,.14), transparent 60%),
    linear-gradient(180deg, #071022, #070c18 60%, #060812);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{width:min(1180px, 92%); margin:0 auto}
.muted{color:var(--muted)}
.tiny{font-size:12px}
b{font-weight:900}

/* =========================
   ACTION BAR
   ========================= */
.noticeBar{
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, rgba(53,168,224,.26), rgba(98,200,255,.12));
  backdrop-filter: blur(10px);
}
.noticeInner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 0;
  gap: 12px;
}
.noticeLeft{display:flex; align-items:center; gap:10px; min-width:0}
.noticePill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(11,18,32,.25);
  font-weight:900;
  white-space:nowrap;
}
.noticeDot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(53,168,224,.18);
}
#noticeText{
  color: rgba(231,236,255,.92);
  font-weight:800;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.noticeLink{
  padding:7px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(11,18,32,.25);
  font-weight:900;
  white-space:nowrap;
}
.noticeLink:hover{background: rgba(255,255,255,.06)}

/* =========================
   HEADER
   ========================= */
.topbar{
  position:sticky;
  top: var(--notice-offset);
  z-index:20;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: rgba(8,28,44,.72);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  min-height: 88px;
  gap: 20px;
}
.brand{
  display:flex; align-items:center; gap:14px;
  font-weight:900;
  letter-spacing:.2px;
  min-width: 240px;
}
.brandMark{
  width:54px; height:54px;
  border-radius:16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(11,18,32,.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  display:grid; place-items:center;
  overflow:hidden;
}
.brand small{
  display:block;
  font-weight:700;
  color:var(--muted);
  margin-top:2px;
  line-height:1.35;
}

.menu{display:flex; gap:22px; align-items:center; flex-wrap:wrap}
.menu a{
  padding:10px 12px;
  border-radius:12px;
  color: rgba(231,236,255,.90);
  font-weight:900;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease;
  font-size:15px; line-height:1.2;
}
.menu a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

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

/* Buttons */
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22)}
.btn:active{transform: scale(.98)}
.btn.primary{
  background: linear-gradient(90deg, rgba(53,168,224,.72), rgba(98,200,255,.42));
  border-color: rgba(98,200,255,.35);
  box-shadow: 0 14px 36px rgba(53,168,224,.18);
}

/* =========================
   HERO (Backdrop FIX)
   ========================= */
.hero{
  position: relative;
  overflow: hidden;
  padding: calc(var(--notice-offset, 0px) + 120px) 0 26px;
  min-height: 520px; /* damit Backdrop IMMER wirkt */
}

.heroBackdrop{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;

  /* Backdrop-Look */
  background:
    radial-gradient(900px 520px at 22% 18%, rgba(98,200,255,.16), transparent 60%),
    radial-gradient(780px 420px at 82% 18%, rgba(53,168,224,.14), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.38)),
    url("img/hero-wdvs.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.02);
  opacity: 1;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  /* leichte Glas-Lage für Lesbarkeit */
  background: linear-gradient(90deg, rgba(6,10,20,.68) 0%, rgba(6,10,20,.42) 48%, rgba(6,10,20,.30) 100%);
}

.hero > .container{
  position: relative;
  z-index: 2;
}

.heroGrid{
  display:grid;
  grid-template-columns: 1.35fr .95fr;
  gap: 22px;
  align-items: start;
}

h1{
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}

.lead{
  color: rgba(231,236,255,.86);
  font-size: 15px;
  line-height: 1.55;
  margin:0 0 14px;
}

.chips{display:flex; flex-wrap:wrap; gap:10px; margin: 14px 0 18px}
.chip{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(11,18,32,.35);
  font-weight:900;
  color: rgba(231,236,255,.92);
  backdrop-filter: blur(10px);
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(53,168,224,.18);
}
.heroCta{display:flex; flex-wrap:wrap; gap:12px; margin-top: 6px}

/* Hero Card */
.heroCard{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(11,18,32,.42);
  border-radius:18px;
  padding: 14px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow:hidden;
  backdrop-filter: blur(12px);
}
.heroCard h3{margin:0 0 10px; font-size:15px; letter-spacing:.2px}
.step{
  display:flex; gap:10px; align-items:flex-start;
  padding: 10px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background: rgba(0,0,0,.10);
  margin-bottom: 10px;
}
.check{
  width:28px; height:28px; border-radius:10px;
  background: rgba(53,168,224,.20);
  border:1px solid rgba(98,200,255,.28);
  display:grid; place-items:center;
  color: var(--accent2);
  font-weight:900;
  margin-top: 1px;
}
.badge{
  display:inline-flex;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(11,18,32,.35);
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  color: rgba(231,236,255,.86);
}

/* =========================
   SECTIONS / CARDS
   ========================= */
.section{padding: 30px 0}
h2{margin:0 0 14px; font-size:18px; letter-spacing:.2px}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.card{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.35);
  border-radius:18px;
  overflow:hidden;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,.30);
}
.card:hover{transform: translateY(-2px); border-color: rgba(98,200,255,.25); background: rgba(11,18,32,.45)}
.cardImg{height:170px; overflow:hidden}
.cardImg img{width:100%; height:100%; object-fit:cover}
.cardBody{padding:12px 12px 14px}
.cardBody h3{margin:0 0 6px; font-size:15px}
.cardBody p{margin:0; color: rgba(231,236,255,.78); line-height:1.45; font-size:13px}

/* Panels */

.split{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.panel{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.35);
  border-radius:18px;
  padding: 14px 14px;
  backdrop-filter: blur(10px);
}
.panel h3{margin:0 0 8px; font-size:15px}
.panel p{margin:0; color: rgba(231,236,255,.78); line-height:1.45; font-size:13px}
/* Unterseiten: CTA unten */
.ctaBottom{
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.35);
  border-radius: 18px;
  padding: 14px 14px;
  backdrop-filter: blur(10px);
}
.ctaBottom h3{margin:0 0 8px; font-size:15px}
.ctaBottom p{margin:0 0 12px; color: rgba(231,236,255,.78); line-height:1.45; font-size:13px}


/* Kontakt */
.contactWrap{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  align-items: start;
}
.ctaRow{display:flex; flex-wrap:wrap; gap:12px; margin-top: 12px}
.form input, .form textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(98,200,255,.35);
  box-shadow: 0 0 0 4px rgba(53,168,224,.14);
}
.form label{display:block; font-weight:900; font-size:13px; color: rgba(231,236,255,.88); margin-bottom: 10px}
.row{display:grid; grid-template-columns: 1fr 1fr; gap: 10px}

/* Footer */
.footer{
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(8,16,32,.55);
  backdrop-filter: blur(10px);
}
.footRow{display:flex; align-items:center; justify-content:space-between; gap: 12px; color: rgba(231,236,255,.78); font-weight:800}
.footLinks{display:flex; gap: 12px}
.footLinks a{padding: 8px 10px; border-radius: 12px}
.footLinks a:hover{background: rgba(255,255,255,.06)}

/* Responsive */
@media (max-width: 980px){
  .topbar{padding: 12px 0}
  .heroGrid{grid-template-columns: 1fr}
  .grid3{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .contactWrap{grid-template-columns: 1fr}
  .row{grid-template-columns: 1fr}
  .nav{flex-wrap:wrap; min-height:80px; gap:10px}
  .brand{min-width:0; flex:1 1 100%}
  .menu{display:flex; width:100%; order:3; flex-wrap:wrap}
  .cta{width:100%; order:4; flex-wrap:wrap}
  .btn{padding:9px 12px; font-size:14px}
}

@media (max-width: 720px){
  .noticeInner{padding: 8px 0}
  #noticeText{white-space:normal; overflow:visible; text-overflow:clip}
  .noticeLeft{align-items:flex-start; flex-wrap:wrap}
  .hero{min-height: 560px;}
}
/* =========================
   FIX: "Projekt besprechen?" blockt links am Viewport
   ========================= */

/* Der Block heißt bei dir sehr wahrscheinlich .projectBox oder .ctaBox.
   Wir fangen beide ab + ein generisches Sicherheitsnetz. */

.projectBox,
.ctaBox,
#projectBox,
#ctaBox{
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px auto 0 !important;
}

/* Wenn der Block in einer section steckt, soll er wie die anderen Panels aussehen */
.projectBox,
.ctaBox,
#projectBox,
#ctaBox{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.35);
  border-radius: 18px;
  padding: 14px 14px;
  backdrop-filter: blur(10px);
}

/* Sicherheitsnetz: falls da inline style="position:fixed" drauf ist */
.projectBox[style*="fixed"],
.ctaBox[style*="fixed"],
#projectBox[style*="fixed"],
#ctaBox[style*="fixed"]{
  position: relative !important;
}

/* Wenn du auf den Unterseiten einen zentrierten Content-Block hast: 
   innerhalb dieses Blocks soll die Projektbox sauber sitzen */
.pageContent .projectBox,
.pageContent .ctaBox{
  margin-left: 0 !important;
}
/* Unterseiten: Navigation klickbar halten */
.pageNav {
  position: relative;
  z-index: 10;
}

.ctaBottom {
  position: relative;
  z-index: 5;
}

/* Backdrop darf keine Klicks abfangen */
.heroBackdrop,
.subBackdrop,
.section::before,
.section::after {
  pointer-events: none;
}
/* =========================
   GLOBAL CLICK-SAFETY FIX
   ========================= */

/* Navigationen IMMER klickbar */
.pageNav,
.subheader,
header,
header * {
  position: relative;
  z-index: 20;
}

/* Inhalt über Backdrops */
.section,
.section .container {
  position: relative;
  z-index: 5;
}

/* Alle Backdrops dürfen KEINE Klicks abfangen */
.heroBackdrop,
.subBackdrop,
.section::before,
.section::after,
body::before,
body::after {
  pointer-events: none !important;
}
/* Unterseiten-Navi erzwingen (falls irgendwo display:none gesetzt wurde) */
.pageNav{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin: 6px 0 18px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pageNav a{
  display:inline-flex !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
/* =========================
   HEADER-LOGO – SAUBER
   ========================= */

/* NUR das eigentliche Logo */
.header .brand img {
  height: 50px;
  width: auto;
  display: block;
}

/* Logo sauber zentrieren */
.header .brand {
  display: flex;
  align-items: center;
}

/* auf großen Screens minimal größer */
@media (min-width: 1200px) {
  .header .brand img {
    height: 54px;
  }
}
/* Header: Logo + Text sauber auf eine Linie bringen */
.header .brand{
  display: flex;
  align-items: center;
  gap: 12px;              /* Abstand Logo -> Text */
}

.header .brand img{
  height: 50px;           /* bleibt so */
  width: auto;
  display: block;
  margin-top: -2px;       /* minimal hochziehen (optische Zentrierung) */
}
/* ================================
   HERO UNTERSEITEN – DESKTOP FIX
   ================================ */

/* Unterseiten-Hero */
.subpageHero,
.subHero,
.heroSub {
  min-height: 70vh;              /* statt 100vh */
  background-position: top center;
  padding-top: 140px;            /* Platz für Header + Aktionsbalken */
}

/* Desktop stärker korrigieren */
@media (min-width: 1024px) {
  .subpageHero,
  .subHero,
  .heroSub {
    min-height: 65vh;
    background-position: top center;
    padding-top: 160px;
  }
}
/* =========================
   Unterseiten-Navi (Trockenbau / Putz / ...)
   Rahmen + Active-State
   ========================= */

.pageNav{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin: 10px 0 18px !important;
  position: relative;
  z-index: 20;
}

.pageNav a{
  display:inline-flex !important;
  align-items:center;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(11,18,32,.28) !important;
  color: rgba(231,236,255,.92) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.pageNav a:hover{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.22) !important;
  transform: translateY(-1px);
}

.pageNav a.active{
  background: linear-gradient(90deg, rgba(53,168,224,.75), rgba(98,200,255,.40)) !important;
  border-color: rgba(98,200,255,.38) !important;
  box-shadow: 0 14px 34px rgba(53,168,224,.18) !important;
  color: #fff !important;
}


/* =========================
   COOKIE BANNER (DSGVO)
   ========================= */

#cookieBanner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 9999;
  display: none;
  pointer-events: none; /* nur Box ist klickbar */
}

#cookieBanner .cookieBox{
  pointer-events: auto;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 18px;

  background: rgba(8, 16, 26, 0.72);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#cookieBanner .cookieBox p{
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  line-height: 1.35;
}

#cookieBanner .cookieBox a{
  color: rgba(120, 200, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(120, 200, 255, 0.25);
}
#cookieBanner .cookieBox a:hover{
  border-bottom-color: rgba(120, 200, 255, 0.55);
}

#cookieBanner .cookieBox button{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

#cookieBanner .cookieBox button:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}
#cookieBanner .cookieBox button:active{
  transform: translateY(1px);
}

/* Primary Button (Akzeptieren) */
#cookieBanner #acceptCookies{
  background: linear-gradient(135deg, rgba(48,150,210,0.95), rgba(36,115,175,0.95));
  border-color: rgba(100,200,255,0.35);
  color: #fff;
}
#cookieBanner #acceptCookies:hover{
  background: linear-gradient(135deg, rgba(60,175,235,0.98), rgba(38,130,190,0.98));
}

/* Secondary (Ablehnen) */
#cookieBanner #declineCookies{
  background: rgba(255,255,255,0.05);
}

/* Mobile */
@media (max-width: 720px){
  #cookieBanner{
    bottom: 10px;
    padding: 0 10px;
  }
  #cookieBanner .cookieBox{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 14px;
  }
  #cookieBanner .cookieBox button{
    width: 100%;
  }
}
/* Bautrockner-Bild vollständig anzeigen */
.cardImg.bautrockner img{
  object-fit: contain;
  background: #0b1522; /* passt zu deinem Dark-Design */
}




