:root{
  --bg:#f6f8ff;
  --card:#ffffff;
  --text:#111827;
  --muted:#5b6476;

  --c1:#22d3ee;
  --c2:#7c3aed;
  --c3:#ec4899;

  --accent: var(--c2);
  --wa:#16a34a;

  --line: rgba(17,24,39,.10);
  --shadow: 0 14px 30px rgba(17,24,39,.08);
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(900px 600px at 55% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(236,72,153,.14), transparent 60%),
    linear-gradient(180deg, #f6f8ff 0%, #ffffff 60%, #f7f7ff 100%);
  color:var(--text);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 18px; }

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 0;
}

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

.brandLogo{
  width: 180px;
  height: 54px;
  object-fit: contain;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.brandText{ display:flex; flex-direction:column; gap:2px; }
.brandText b{ font-size:15px; letter-spacing:.2px; }
.brandText span{ font-size:12px; color:var(--muted); }

.menu{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.menu a{
  font-size:13px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}

.menu a:hover{
  color:var(--text);
  border-color: rgba(124,58,237,.18);
  background: rgba(124,58,237,.06);
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Hero */
.hero{ padding: 40px 0 26px; }

.heroGrid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:18px;
  align-items:stretch;
}

.heroMain{ padding:26px; }
.heroSide{ padding:18px; }
.sideBox{ padding:16px; }

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(124,58,237,.22);
  color: rgba(17,24,39,.92);
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(124,58,237,.14), rgba(236,72,153,.10));
  font-size:12px;
}

h1{ margin:12px 0 10px; font-size:32px; line-height:1.15; }

.sub{
  color:var(--muted);
  font-size:15px;
  margin:0 0 14px;
}

.subTight{ margin-top:0; }

.bullets{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size:13px;
}

.bullets span{
  padding:6px 10px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:999px;
  background: rgba(255,255,255,.70);
}

.ctaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.ctaBelow{ margin-top:14px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.95);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.btn:hover{
  border-color: rgba(124,58,237,.22);
  background: rgba(124,58,237,.06);
}

.btnPrimary{
  border-color: rgba(124,58,237,.28);
  background: linear-gradient(135deg,
    rgba(34,211,238,.22),
    rgba(124,58,237,.20),
    rgba(236,72,153,.16)
  );
}

.btnPrimary:hover{
  border-color: rgba(124,58,237,.35);
  background: linear-gradient(135deg,
    rgba(34,211,238,.30),
    rgba(124,58,237,.26),
    rgba(236,72,153,.22)
  );
}

.btnWa{
  border-color: rgba(22,163,74,.35);
  background: rgba(22,163,74,.08);
  color: rgba(22,163,74,.95);
}

.small{ color:var(--muted); font-size:13px; margin:10px 0 0; }

.sideTitle{ font-weight:900; margin:0 0 6px; }
.sideText{ margin:0; color:var(--muted); font-size:14px; }

.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.chip{
  font-size:12px;
  color:var(--muted);
  border:1px solid rgba(17,24,39,.10);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.70);
}

/* Sections */
section{ padding: 22px 0; }

.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}

h2{ margin:0; font-size:22px; }
.hint{ color:var(--muted); font-size:13px; margin:0; }

/* Grids */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.item{ padding:16px; }
.item h3{ margin:0 0 6px; font-size:16px; }
.item p{ margin:0; color:var(--muted); font-size:14px; }

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

.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:14px;
}

.list li{ margin:6px 0; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.step{ padding:16px; }
.num{
  width:34px;
  height:34px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(124,58,237,.10);
  border:1px solid rgba(124,58,237,.22);
  color: rgba(124,58,237,.95);
  font-weight:900;
  margin-bottom:10px;
}

/* FAQ */
.faq{ padding:16px; }

details{
  border:1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
  border-radius: 14px;
  padding: 10px 12px;
}

details + details{ margin-top:10px; }

summary{
  cursor:pointer;
  font-weight:900;
  list-style:none;
}

summary::-webkit-details-marker{ display:none; }

details p{ margin:8px 0 0; color:var(--muted); font-size:14px; }

/* Contact */
.contact{ padding:16px; }

.contactGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.contactBox{ padding:16px; }

/* Kontaktformular */
.contactForm{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.contactForm label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:800;
  font-size:13px;
}

.contactForm input,
.contactForm textarea{
  font: inherit;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  outline: none;
}

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

.contactForm input:focus,
.contactForm textarea:focus{
  border-color: rgba(124,58,237,.30);
  box-shadow: 0 0 0 3px rgba(124,58,237,.10);
}

.consent{
  font-weight:700;
  color: var(--muted);
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start;
  gap:10px;
  line-height:1.35;
}

.consent input{
  width:18px;
  height:18px;
  margin-top:2px;
}

.captchaRow{
  display:grid;
  grid-template-columns: 1fr 160px;
  gap:10px;
  align-items:end;
}

.captchaQ{
  font-weight:900;
  font-size:13px;
  color: var(--muted);
}

.hpField{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Map Card */
.mapCard{
  margin-top:14px;
  padding:16px;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.70);
}

.mapEmbed{
  margin-top:10px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.04);
  min-height: 340px;
}

.mapPlaceholder{
  min-height: 340px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 18px;
  text-align:center;
}

.mapTitle{ font-weight: 900; font-size: 16px; }

.mapText{
  color: var(--muted);
  font-size: 13px;
  max-width: 520px;
}

.mapLinks{
  margin-top: 6px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

#leafletMap{
  width:100%;
  height: 420px;
}

/* Leaflet Custom Marken-Pin */
.brandPin .pinOuter{
  width:34px;
  height:34px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(34,211,238,1), rgba(124,58,237,1), rgba(236,72,153,1));
  box-shadow:
    0 12px 24px rgba(17,24,39,.18),
    0 0 0 3px rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}

.brandPin .pinOuter::after{
  content:"";
  position:absolute;
  bottom:-10px;
  left:50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid rgba(124,58,237,1);
  filter: drop-shadow(0 8px 10px rgba(17,24,39,.18));
}

.brandPin .pinInner{
  width:12px;
  height:12px;
  border-radius:999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 14px rgba(17,24,39,.10);
}

/* Footer */
footer{
  padding: 22px 0 70px;
  border-top: 1px solid rgba(17,24,39,.08);
  color: var(--muted);
  font-size: 13px;
}

.foot{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Sticky mobile actions */
.stickyActions{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display:none;
  gap:10px;
  z-index: 60;
}

.stickyActions a{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 900;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.stickyActions a.call{ border-color: rgba(124,58,237,.22); }
.stickyActions a.wa{ border-color: rgba(22,163,74,.35); color: rgba(22,163,74,.95); }

/* Galerie */
.gallery{ padding:16px; }

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

.galleryBtn{
  border:1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
  border-radius: 14px;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.galleryBtn:hover{
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.25);
}

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

/* +X weitere Badge */
.galleryBtn.hasMore{
  position: relative;
}

.moreBadge{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 18px;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(34,211,238,.35), rgba(124,58,237,.35), rgba(236,72,153,.28));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  text-shadow: 0 10px 20px rgba(0,0,0,.25);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background: rgba(15,23,42,.70);
  z-index:999;
  padding: 18px;
}

.lightbox.show{
  display:grid;
}

.lightboxInner{
  position:relative;
  width:min(980px, 100%);
  background: rgba(255,255,255,.96);
  border:1px solid rgba(17,24,39,.10);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(17,24,39,.20);
  padding: 12px;
}

.lightboxStage{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  touch-action: pan-y;
}

.lightboxImg{
  width:100%;
  height: min(70vh, 620px);
  object-fit: contain;
  display:block;
  border-radius: 14px;
  background: rgba(17,24,39,.06);
}

.lightboxClose{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border-radius: 999px;
  border:1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.95);
  color: rgba(17,24,39,.92);
  cursor:pointer;
  font-size:18px;
  font-weight:900;
}

.lightboxNav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border-radius: 999px;
  border:1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.95);
  color: rgba(17,24,39,.92);
  cursor:pointer;
  font-size:28px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightboxNav.left{ left:14px; }
.lightboxNav.right{ right:14px; }

.lightboxMeta{ margin-top: 10px; }

.lightboxCount{
  text-align:center;
  color: rgba(91,100,118,.95);
  font-weight:800;
  font-size:13px;
}

/* Thumbnails */
.thumbRow{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding: 10px 2px 2px;
  scrollbar-width: thin;
}

.thumbRow::-webkit-scrollbar{
  height: 8px;
}

.thumb{
  flex: 0 0 auto;
  width: 78px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.70);
  overflow: hidden;
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s ease, transform .15s ease, border-color .15s ease;
}

.thumb:hover{
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(124,58,237,.25);
}

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

.thumb.active{
  opacity: 1;
  border-color: rgba(22,163,74,.35);
  box-shadow: 0 0 0 2px rgba(22,163,74,.10) inset;
}

/* Kleine Karte auf kontakt.html */
.mapEmbed.small #leafletMap{
  height: 320px;
}

/* Responsive */
@media (max-width: 920px){
  .heroGrid{ grid-template-columns: 1fr; }
  h1{ font-size:28px; }

  .grid2{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .contactGrid{ grid-template-columns: 1fr; }
  .stickyActions{ display:flex; }

  .brandLogo{
    width: 150px;
    height: 46px;
  }

  .brandText b{
    font-size:14px;
  }

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

  .galleryBtn img{
    height:170px;
  }

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

  .thumb{
    width: 66px;
    height: 46px;
  }
}


/* Mini-Angebotsbox (Hero rechts) */
.miniQuote{
  margin-top:10px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.70);
}

.miniQuoteLine{
  margin:6px 0;
  color: var(--text);
}

.divider{
  height:1px;
  margin:12px 0;
  background: rgba(17,24,39,.10);
}


/* Formular: Loading-Button */
.btn .spinner{
  display:none;
  width:16px;
  height:16px;
  border:2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin .8s linear infinite;
}
.btn.loading .spinner{ display:inline-block; }
.btn.loading{ cursor: default; opacity: .92; }

/* Alert Banner */
.alert{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.80);
  color: var(--text);
  box-shadow: var(--shadow);
}
.alert.error{
  border-color: rgba(236,72,153,.28);
  background: rgba(236,72,153,.08);
}

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

.alert.success{
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
}


/* Toast (Erfolgsmeldung) */
.toastWrap{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
  pointer-events: none;
}
.toast{
  pointer-events: auto;
  max-width: min(560px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
  color: var(--text);
  box-shadow: var(--shadow);
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.toast b{ display:block; }
.toast .toastMsg{ color: var(--muted); font-size: 13px; margin-top: 2px; }
.toast .toastClose{
  margin-left:auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.toastWrap.show{
  display:block;
  animation: toastIn .18s ease-out;
}
.toastWrap.hide{
  display:block;
  animation: toastOut .18s ease-in forwards;
}

@keyframes toastIn{
  from{ opacity:0; transform: translateX(-50%) translateY(8px); }
  to{ opacity:1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut{
  from{ opacity:1; transform: translateX(-50%) translateY(0); }
  to{ opacity:0; transform: translateX(-50%) translateY(8px); }
}


/* Sticky Kontakt (nur Mobile) */
.stickyContact{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  gap: 10px;
  z-index: 9998;
}

.stickyBtn{
  flex: 1;
  text-align: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(8px);
}

.stickyBtn:hover{
  transform: translateY(-1px);
}

@media (max-width: 768px){
  .stickyContact{ display: flex; }
  body{ padding-bottom: 86px; }
}
