:root{
  /* Palette 3 (Dark + Warm Accent) */
  --bg:#111111;
  --bg-alt:#1a1a1a;
  --card:#202020;

  --text:#fafafa;
  --muted:#a3a3a3;

  --line:#2a2a2a;

  --accent:#f97316;
  --accent-2:#fb923c;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.6 Inter,system-ui,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.wrap{max-width:1150px;margin:0 auto;padding:0 24px}
#leistungen .wrap{
  max-width: 1280px;
}
/* =========================
   Header / Navigation
   ========================= */
.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background: rgba(17,17,17,.88);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav{
  position: relative; /* für Dropdown + Progressbar-Anker */
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:80px;
  transition:height .3s ease;
}

.header.shrink .nav{ height:66px; }

.brand img{
  height:65px;
  transition:height .3s ease;
}
.header.shrink .brand img{ height:58px; }

/* Menu (Desktop) */
.menu{
  display:flex;
  gap:18px;
  align-items:center;
}
.menu a{ opacity:.9; transition:opacity .15s ease, transform .20s ease-out; }
.menu a:hover{ opacity:1; }

/* Hover-Linie (außer Buttons) */
.menu a:not(.btn){
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}
.menu a:not(.btn):hover{ transform: scale(1.12); }
.menu a:not(.btn)::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:0%;
  height:2px;
  transform:translateX(-50%);
  opacity:0;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0 2px,
    transparent 0px 0px
  );
  transition: width .35s ease-out, opacity .25s ease-out;
}
.menu a:not(.btn):hover::after{
  width:100%;
  opacity:1;
}

/* Hamburger (Mobile) */
.nav-toggle{
  display:none;
  border:none;
  background:transparent;
  padding:0;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--text);
}

/* Buttons */
.btn{ cursor:pointer; }
.btn.small{
  padding:.45rem .75rem;
  border:1px solid var(--line);
  border-radius:10px;
  background: transparent;
  color: var(--text);
}

/* CTA (Anfrage) */
a.btn.primary.nav-cta{
  background: color-mix(in srgb, var(--accent) 78%, var(--bg) 22%);
  color:#111;
  border: 1px solid rgba(249,115,22,.35);
  box-shadow:
    0 10px 26px rgba(249,115,22,.28),
    0 0 0 1px rgba(249,115,22,.22) inset;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform, box-shadow;
}
a.btn.primary.nav-cta:hover{
  background: var(--accent-2);
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 14px 34px rgba(249,115,22,.42),
    0 0 0 1px rgba(249,115,22,.28) inset;
}

/* Subtiler Idle-Pulse */
@keyframes nexifer-cta-pulse{
  0%,100%{
    transform: scale(1);
    box-shadow:
      0 10px 26px rgba(249,115,22,.22),
      0 0 0 1px rgba(249,115,22,.22) inset;
  }
  50%{
    transform: scale(1.04);
    box-shadow:
      0 16px 44px rgba(249,115,22,.45),
      0 0 0 1px rgba(249,115,22,.32) inset;
  }
}
a.btn.primary.nav-cta:not(:hover):not(:focus-visible){
  animation: nexifer-cta-pulse 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  a.btn.primary.nav-cta{ animation:none !important; }
}

/* =========================
   Header Scroll Progress Bar
   ========================= */
.scroll-progress{
  position:absolute;
  left:0;
  right:0;
  width: 100vw;
  bottom:-1px;
  height:3px;                   
  margin-left: calc(50% - 50vw);/* 🔴 aus Container lösen */
  
  background: transparent;
  overflow:hidden;
  z-index: 60;
  pointer-events:none;
}
.scroll-progress__bar{
  height:100%;
  width:100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(249,115,22,.35);
  will-change: transform;
}

/* Optional: Track erst nach Scroll zeigen (JS toggelt .has-progress) */
.header.has-progress .scroll-progress{
  background: rgba(249,115,22,.14);
}

/* =========================
   Hero (Canvas)
   ========================= */
.hero{
  position: relative;
  height: 64vh;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

#hero-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  z-index:0;
}

.hero .wrap.hero-in{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-copy{ max-width:720px; text-align:left; }
.slide-left{opacity:0;transform:translateX(-24px);transition:opacity .6s ease, transform .6s ease}
.slide-left.in{opacity:1;transform:none}

.hero.hero-light .hero-copy{ color: #fafafa; }
.hero.hero-light .lead{ color: rgba(250,250,250,.78); }

.hero-bottom{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  width:min(1100px, calc(100% - 48px));
  z-index:3;
}

.hero-meta-inline{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.hb{
  padding:.35rem .75rem;
  background: rgba(249,115,22,.10);
  border: 1px solid rgba(249,115,22,.30);
  border-radius:12px;
  font-size:.85rem;
  font-weight:500;
  color: var(--text);
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================
   Sections / Layout
   ========================= */
.section{padding:72px 0}
.section-alt{
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-head h2{font-size:2rem;margin:0}
.section-head p{color:var(--muted);margin:.3rem 0 0}

.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:900px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  .section-head{ text-align:center; }
  .section-head p{ margin-left:auto; margin-right:auto; }
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}

/* =========================
   Work Grid
   ========================= */
.work-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  overflow:visible;
}
@media(max-width:900px){ .work-grid{ grid-template-columns:1fr; } }

.work{ position:relative; height:160px; }
.work .work-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  height:100%;
  width:100%;
  color:var(--text);
  z-index:1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.work .work-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  background: var(--card);
  border:1px solid var(--line);
  transform:scale(1);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  z-index:-1;
  pointer-events:none;
}
.work .work-card:hover::before{
  transform:scale(1.05);
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  border-color: rgba(249,115,22,.35);
}
.work .work-card:hover{ transform:translateY(-1px); }
.work-card strong{ font-size:1.05rem; font-weight:700; margin-bottom:.35rem; }
.work-card p{
  color: rgba(250,250,250,.78);
  font-weight:400;
  font-size:.95rem;
  line-height:1.55;
  max-width:85%;
  margin:0 auto;
}

/* =========================
   Steps
   ========================= */
.steps{
  list-style:none;
  position:relative;
  display:grid;
  gap:16px;
  padding-left:0;
  counter-reset: step;
}
.steps li{
  position:relative;
  padding:16px 16px 16px 56px;
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--line);
  z-index:1;
}
.steps li::before{
  content: counter(step);
  counter-increment: step;
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#111;
  display:grid;
  place-items:center;
  font-weight:800;
  z-index:2;
  box-shadow: 0 0 0 3px var(--card);
}
.steps::after{
  content:"";
  position:absolute;
  left:30px;
  top:14px;
  bottom:14px;
  width:2px;
  background:linear-gradient(var(--accent),var(--accent-2));
  opacity:.25;
  pointer-events:none;
  z-index:0;
}

/* =========================
   Plans (Accordion)
   ========================= */
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:start}
@media(max-width:900px){ .plans{ grid-template-columns:1fr; } }

.plans .plan{
  position:relative;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.plans .plan-head{ cursor:pointer; min-height:240px; }
@media(max-width:900px){ .plans .plan-head{ min-height:auto; } }

.plans .price{margin-top:10px;font-weight:800;font-size:22px}
.plan.highlight{
  box-shadow:0 10px 30px rgba(249,115,22,.18);
  outline:2px solid rgba(249,115,22,.22);
}
.plan .badge{
  position:absolute;
  top:10px;
  right:10px;
  background:var(--accent);
  color:#111;
  padding:.25rem .5rem;
  border-radius:999px;
  font-size:.8rem;
}
.plan .plan-details{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease, padding .35s ease;
  padding:0 4px;
}
.plan.open .plan-details{ max-height:340px; padding:10px 4px 6px; }
.plan.open{ outline:2px solid rgba(249,115,22,.20); }

.plan-hint{
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--accent);
  opacity: 0.85;
  cursor: pointer;
  transition: all 0.25s ease;
}
.plan-hint:hover{ opacity:1; transform:translateY(-1px); text-decoration:underline; }
.plan-hint::after{ content:" ▼"; font-size:.8em; transition: transform .3s ease; }
.plan.open .plan-hint::after{ transform: rotate(-180deg); }

/* =========================
   Forms
   ========================= */
.form input,
.form select,
.form textarea{
  font-family: Inter,system-ui,sans-serif;
  font-size:1rem;
  line-height:1.5;
  color:var(--text);
  background: var(--bg-alt);
  border:1px solid var(--line);
  border-radius:12px;
  padding:.9rem 1rem;
  width:100%;
  transition: all .25s ease;
  box-shadow:none;
}
.form input::placeholder,
.form textarea::placeholder{
  color: rgba(163,163,163,.85);
}
.form input:focus,
.form select:focus,
.form textarea:focus{
  outline:none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}

.form select{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor:pointer;
}

.form-group{ margin-top:14px; }

.form-actions .btn.primary{
  margin-top:8px;
  width:100%;
  text-align:center;
  background: var(--accent);
  color:#111;
  border:none;
  border-radius:12px;
  padding:.9rem 1.6rem;
  font-weight:700;
  box-shadow:0 10px 26px rgba(249,115,22,.25);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-actions .btn.primary:hover{
  transform: translateY(-2px);
  background: var(--accent-2);
  box-shadow:0 14px 34px rgba(249,115,22,.35);
}
.form-actions .btn.primary:active{
  transform:none;
  box-shadow:0 6px 18px rgba(249,115,22,.22);
}

.form input.is-error,
.form select.is-error,
.form textarea.is-error{
  border-color:#e53935;
  box-shadow:0 0 0 3px rgba(229,57,53,.12);
}
.honeypot{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Autofill Fix */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus,
.form textarea:-webkit-autofill,
.form textarea:-webkit-autofill:hover,
.form textarea:-webkit-autofill:focus,
.form select:-webkit-autofill,
.form select:-webkit-autofill:hover,
.form select:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-alt) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-alt) inset !important;
  border-color: var(--line) !important;
  transition: background-color 9999s ease-out 0s;
}

/* =========================
   Footer / Modals / Cookie
   ========================= */
.footer{
  border-top:1px solid var(--line);
  background: var(--bg-alt);
}
.foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}
.foot a{
  color: var(--muted);
  margin-left:16px;
  text-decoration: underline;
}
@media(max-width:900px){
  .foot{ flex-direction:column; align-items:flex-start; gap:8px; }
  .foot nav{ display:flex; flex-wrap:wrap; gap:10px; margin-left:0; }
  .foot nav a{ margin-left:0; }
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(10,15,20,.35);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  z-index:100;
  opacity:0;
  transition:opacity .25s ease;
}
.modal[aria-hidden="false"]{ display:flex; opacity:1; }
.modal-dialog{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  max-width:720px;
  max-height:80vh;
  overflow:visible;
  position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  animation:modalIn .28s ease both;
}
@keyframes modalIn{ from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.modal-close{
  position:absolute;
  top:-22px;
  right:-22px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:3px solid var(--accent);
  background:var(--card);
  color:var(--accent);
  font-size:24px;
  line-height:38px;
  text-align:center;
  font-weight:900;
  box-shadow:0 6px 18px rgba(249,115,22,.25);
  cursor:pointer;
}
.modal-content p{ color: rgba(250,250,250,.78); }

/* Feedback Modal */
.modal.feedback{ align-items:center; justify-content:center; }
.modal-dialog.feedback{ padding:26px 20px 20px; max-width:460px; text-align:center; border:2px solid #4caf50; }
.modal-dialog.feedback.error{ border-color:#e53935; }
.modal-dialog.feedback h3{ margin:0 0 .5rem; font-size:1.3rem; }
.modal-dialog.feedback p{ margin:0 0 1.2rem; line-height:1.4; }
.modal-actions{ display:flex; justify-content:center; }
.modal-actions .btn.small{
  background:#4caf50;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:.8rem 2.2rem;
  font-weight:600;
  transition: all .25s ease;
}
.modal-dialog.feedback.error .btn.small{ background:#e53935; }
.modal-actions .btn.small:hover{ transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.25); }

/* Cookie */
.cookie-banner{
  position:fixed;
  left:0; right:0; bottom:0;
  background:var(--card);
  border-top:1px solid var(--line);
  box-shadow:0 -12px 30px rgba(0,0,0,.35);
  padding:14px;
  z-index:9999;
}
.cb-inner{
  max-width:1150px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
}
.cb-actions{ display:flex; gap:8px; }

/* Cookie Modal */
.cookie-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(10,15,20,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index:10000;
  opacity:0;
  transition:opacity .25s ease;
}
.cookie-modal[aria-hidden="false"]{ display:flex; opacity:1; }

.cm-center{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  width:min(92vw,640px);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  animation:cmIn .25s ease both;
}
@keyframes cmIn{ from{ opacity:0; transform:translateY(10px)} to{opacity:1; transform:none} }
.cm-center h3{ margin:0 0 .35rem; font-size:1.25rem; }
.cm-lead{ margin:.25rem 0 1rem; color:var(--muted); }
.cm-actions{ display:flex; gap:12px; justify-content:flex-end; flex-wrap:wrap; }
@media(max-width:520px){ .cm-actions{ justify-content:center; } }

/* =========================
   Reveal Animation
   ========================= */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.is-visible{opacity:1;transform:none}

/* =========================
   Referenzen-Seite (body.ref)
   ========================= */
body.ref{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
body.ref .ref-main{ flex:1; }

.ref-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:24px;
}
@media(max-width:520px){
  .ref-grid{ grid-template-columns:1fr; gap:16px; }
}

.ref-card{
  display:flex;
  flex-direction:column;
  border-radius:0;
  border:1px solid var(--line);
  background:var(--card);
  overflow:hidden;
  text-decoration:none;
  color:inherit;
}
.ref-thumb{ position:relative; overflow:hidden; background:#0b1220; border-radius:0; }
.ref-thumb img{
  width:100%;
  height:280px;
  object-fit:cover;
  transform:scale(1.08);
  transition:transform .4s ease-out;
  border-radius:0;
}
@media(max-width:520px){ .ref-thumb img{ height:220px; } }

.ref-body{ padding:1.2rem 1.25rem 1.35rem; }
.ref-body h3{ margin:0 0 .45rem; font-size:1.25rem; }
.ref-body p{ margin:0; font-size:1.02rem; line-height:1.55; color:var(--muted); }
.ref-card:hover .ref-thumb img{ transform:scale(1.3); }

/* =========================
   Mobile Navigation + Mobile Header Fix
   ========================= */
@media (max-width: 900px){
  .wrap{ padding:0 16px; }

  .nav{ height:64px; }
  .brand img{ height:48px; }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    width:38px;
    height:38px;
    margin-left:auto;
    border-radius:999px;
    border:1px solid var(--line);
    background:rgba(32,32,32,.9);
    cursor:pointer;
  }

  /* Dropdown */
  .menu{
    position:absolute;
    top:100%;
    right:16px;
    left:16px;
    background:rgba(26,26,26,.98);
    border-radius:16px;
    border:1px solid var(--line);
    box-shadow:0 18px 35px rgba(0,0,0,.35);
    flex-direction:column;
    padding:12px 16px 16px;
    gap:10px;
    z-index:70;
    display:none;
  }
  .menu.is-open{ display:flex; }
  .menu a{ font-size:.98rem; }
  .menu a.btn.small{ align-self:stretch; text-align:center; }

  /* HERO */
  .hero{
    height:520px;
    min-height:420px;
  }
  .hero .wrap.hero-in{ padding-bottom:88px; }
  .hero-copy{ text-align:center; max-width:720px; margin:0 auto; }
  .hero-bottom{ bottom:12px; width:calc(100% - 32px); }
  .hb{ font-size:13px; padding:6px 10px; }

  /* Mobile Header robust: fixed (gegen Sticky-Bugs) */
  .header{
    position: fixed;
    top:0; left:0; right:0;
    z-index: 999;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    background: rgba(17,17,17,.96);
  }
  body{ padding-top: var(--header-h, 80px); }
}
/* =========================
   Cookie Buttons – einheitliche Form
   ========================= */
.cookie-banner .btn{
  border-radius: 999px;
  padding: .75rem 1.8rem;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text);
  transition: all .2s ease;
}
.cookie-banner .btn.reject{
  background: rgba(32,32,32,.9);
  color: var(--muted);
}

.cookie-banner .btn.reject:hover{
  background: rgba(42,42,42,.95);
  color: var(--text);
}
.cookie-banner .btn.accept{
  background: color-mix(in srgb, var(--accent) 80%, var(--bg) 20%);
  color:#111;
  border: 1px solid rgba(249,115,22,.35);
  box-shadow:
    0 10px 26px rgba(249,115,22,.28),
    0 0 0 1px rgba(249,115,22,.22) inset;
}

.cookie-banner .btn.accept:hover{
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(249,115,22,.42),
    0 0 0 1px rgba(249,115,22,.28) inset;
}
/* =========================
   Cookie Modal Buttons – gleiche Form, Accept wie CTA
   ========================= */

.cookie-modal .cm-actions .btn{
  border-radius: 999px;
  padding: .75rem 1.8rem;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

/* Ablehnen (neutral) */
.cookie-modal #cb-reject{
  background: rgba(32,32,32,.9);
  color: var(--muted);
}
.cookie-modal #cb-reject:hover{
  background: rgba(42,42,42,.95);
  color: var(--text);
}

/* Akzeptieren (hervorgehoben wie Anfrage-Button) */
.cookie-modal #cb-accept{
  background: color-mix(in srgb, var(--accent) 80%, var(--bg) 20%);
  color:#111;
  border: 1px solid rgba(249,115,22,.35);
  box-shadow:
    0 10px 26px rgba(249,115,22,.28),
    0 0 0 1px rgba(249,115,22,.22) inset;
}
.cookie-modal #cb-accept:hover{
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(249,115,22,.42),
    0 0 0 1px rgba(249,115,22,.28) inset;
}
/* Canvas Interaction – Mobile Scroll erlauben */
#hero-canvas{
  touch-action: pan-y;
}

html, body{ overflow-x: hidden; }
/* Leistungen: 4 Karten nebeneinander auf Desktop */
#leistungen .grid-3{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Breakpoints: ab hier wieder runter skalieren */
@media (max-width: 1100px){
  #leistungen .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  #leistungen .grid-3{ grid-template-columns: 1fr; }
}
/* Mobile: Modal so begrenzen, dass Close-Button sichtbar bleibt */
@media (max-width: 520px){
  .modal-dialog{
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 18px 16px 16px;
    overflow: auto;
  }

  .modal-close{
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 36px;
  }
}
/* Mobile Safari/Chrome: Header darf beim Scrollen nicht "wegblenden" */
@media (hover: none) and (pointer: coarse){
  .header{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(17,17,17,.96) !important;

    /* iOS repaint / compositing stabilisieren */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
  }
}
/* Modals immer über dem fixed Header */
.modal{ z-index: 20000 !important; }
.cookie-modal{ z-index: 20000 !important; }
/* Mobile: Modal-Dialog darf nicht unter dem Header starten */
@media (hover: none) and (pointer: coarse){
  .modal{
    padding-top: calc(var(--header-h, 80px) + 12px);
    align-items: flex-start;
  }
}
@media (hover: none) and (pointer: coarse){
  .modal-close{
    position: sticky; /* klebt innerhalb des Dialogs */
    top: 10px;
    right: 10px;
    margin-left: auto;
  }
}
/* Mobile: Close-Button wieder sauber rechts oben im Modal */
@media (hover: none) and (pointer: coarse){
  .modal-close{
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    margin: 0;
    z-index: 25000;
  }
}
@media (max-width: 900px){
  .hero-badges{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }
  .hero-badges .hb{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
