:root{
  --brand:#e33f3f;          /* Primary Red */
  --brand-600:#c73737;      /* Hover Red */
  --ink:#0f1115;            /* Text */
  --muted:#616b77;          /* Secondary text */
  --bg:#f5f7fa;             /* Page background */
  --card:#ffffff;           /* Cards */
  --ring:0 0 0 6px rgba(227,63,63,.18);
  --radius:18px;
  --shadow:0 12px 34px rgba(15,17,21,.08), 0 2px 10px rgba(15,17,21,.04);
  --shadow-sm:0 3px 12px rgba(15,17,21,.06);
  --transition: all 0.3s ease;
}

/* wichtig für sticky: kein overflow am Scroll-Container */
html, body { overflow: visible; }

/* ✨ fix: keine feste Höhe mehr – sticky braucht die volle Dokumenthöhe */
*{box-sizing:border-box}
html{min-height:100%;}
body{
  /* height:100%;  <-- entfernt */
  margin:0; color:var(--ink);
  background:linear-gradient(180deg,#fafbfc 0%, #f2f5f7 100%);
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{max-width:1160px; margin-inline:auto; padding:24px}

/* Topbar */
.topbar{background:#fff; border-bottom:1px solid #e9edf2}
.topbar .container{display:flex; gap:18px; align-items:center; justify-content:flex-end}
.topbar__pill{padding:6px 10px; background:#f1f4f8; border-radius:999px; font-size:12px}
.topbar__link{font-weight:600; font-size:14px}

/* Header (sticky nav) – bleibt bis Footer */
.nav{
  position:-webkit-sticky;
  position:sticky;
  top:0;
  z-index:10000;
  isolation:isolate;                 /* eigener Stacking-Kontext */
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(255, 51, 51, 0.85);
  border-bottom:1px solid rgba(16,17,21,.06);
  will-change: top;                   /* Stabilitätshilfe */
}
.nav__wrap{display:flex; align-items:center; gap:24px}
.logo{font-weight:800; letter-spacing:.5px; display:inline-flex; align-items:center; gap:6px; font-size:20px; color:#1b1f27}
.logo__dot{width:7px; height:7px; background:var(--brand); border-radius:50%}
.menu{display:flex; gap:20px; margin-left:auto}
.menu a{padding:14px 10px; border-radius:10px; color:#1b1f27; font-weight:600; opacity:.9}
.menu a:hover{background:#f3f5f8}
.nav__actions{display:flex; gap:12px}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:12px 16px; border-radius:12px; font-weight:700; border:1px solid transparent; box-shadow:var(--shadow-sm); transition:.18s ease-in-out}
.btn--primary{background:var(--brand); color:#fff}
.btn--primary:hover{background:var(--brand-600); transform:translateY(-1px)}
.btn--primary:focus{box-shadow:var(--ring)}
.btn--ghost{background:#fff; border-color:#e7ebf2}
.btn--ghost:hover{background:#f6f7fb}
.btn--light{background:#fff; border-color:#e7ebf2; font-weight:700}

/* Hero */
.hero{padding:42px 0 18px}
.hero__wrap{display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:center}
.hero h1{font-size:46px; line-height:1.04; margin:0 0 12px; letter-spacing:-.02em}
.hero p{color:var(--muted); font-size:18px; margin:0 0 18px}
.accent{background:linear-gradient(90deg,var(--brand),#ff7a7a); -webkit-background-clip:text; background-clip:text; color:transparent}
.hero__media img{border-radius:20px; box-shadow:var(--shadow)}
.hero__cta{display:flex; gap:12px; margin:18px 0 8px}
.badges{display:flex; gap:10px; flex-wrap:wrap}
.badge{background:#fff; border:1px solid #e9ebf2; padding:8px 12px; border-radius:999px; font-size:12px; font-weight:600}

/* Section */
.section{padding:42px 0}
.section__title{font-size:28px; margin:0 0 16px}
.grid{display:grid; gap:18px}
.usp{grid-template-columns:repeat(3,1fr)}
.card{background:var(--card); border:1px solid #e9edf2; border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm)}
.icon{font-size:26px}
.usp__item h3{margin:8px 0 6px}
.usp__item p{margin:0; color:var(--muted)}

/* Split */
.section--split{padding-top:6px; /* position/z-index entfernt */ }
.grid--split{grid-template-columns:1.1fr .9fr; /* position/z-index entfernt */ }
/* .card{position:relative; z-index:0}  <-- entfernt, standard reicht */
.card__header{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.price__list{list-style:none; padding:0; margin:8px 0 12px; display:grid; gap:10px}
.price__list li{display:flex; justify-content:space-between; gap:12px; border:1px dashed #e9edf2; border-radius:12px; padding:10px 12px; background:#fff}
.price__list strong{font-weight:800}
.side{display:grid; gap:18px}
.reviews{display:grid; gap:8px; align-items:center; text-align:center}
.reviews__score{font-size:44px; font-weight:800}
.reviews__score span{font-size:20px; color:var(--muted)}
.reviews__logos{display:flex; gap:8px; justify-content:center}
.pill{background:#f1f4f8; border:1px solid #e7ebf2; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700}
.map h3{margin:0 0 4px}
.map p{margin:0 0 8px; color:var(--muted)}
.map__embed{height:200px; border-radius:14px; background:linear-gradient(135deg,#eef2f7,#dfe7f2); border:1px solid #dfe5ee; overflow:hidden; /* position/z-index entfernt */ }
.map__embed iframe{display:block; width:100%; height:100%; border:0; position:relative; z-index:0}

/* Services (mit Bildern) */
.services{grid-template-columns:repeat(3,1fr)}
.service{padding:0; overflow:hidden}
.service h3{margin:10px 12px 6px}
.service p{margin:0 12px 14px; color:var(--muted)}
.service__media{margin:0; overflow:hidden; border-top-left-radius:var(--radius); border-top-right-radius:var(--radius)}
.service__img{width:100%; aspect-ratio:16/10; object-fit:cover; display:block; transition:transform .35s ease}
.service:hover .service__img{transform:scale(1.03)}

/* CTA */
.cta{padding:42px 0}
.cta__wrap{display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:center; background:#fff; border:1px solid #e9edf2; border-radius:22px; padding:22px; box-shadow:var(--shadow)}
.cta__copy h2{margin:0 0 6px}
.cta__copy p{margin:0; color:var(--muted)}
.cta__form{display:grid; grid-template-columns:1fr 1fr auto; gap:10px}
.cta__form input{height:44px; border-radius:12px; padding:0 12px; border:1px solid #dfe5ee; font-weight:600; background:#fafcff}
.cta__form input:focus{outline:none; box-shadow:var(--ring); border-color:#f0caca}

/* Footer */
.footer{background:#232831; color:#e9edf2; margin-top:20px}
.footer a{color:#fff; opacity:.9}
.footer__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr .45fr;
  align-items: start;
}

.footer__right h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.footer__right p {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer__right .btn {
  margin-top: 6px;
}

.footer__links a {
  color: #fff;
  opacity: .9;
  margin-left: 12px;
  font-size: 14px;
}

.footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__nav{display:grid; grid-template-columns:repeat(3,auto); gap:10px; align-content:start}
.footer__legal{display:flex; justify-content: space-between; grid-column:1/-1; border-top:1px solid rgba(255,255,255,.08); padding:12px 0; font-size:14px; color:#b9c1cd}
.logo{color:#fff}

/* Links */
.link{color:var(--brand); font-weight:800}
.link:hover{text-decoration:underline}

/* Responsive */
@media (max-width: 1024px){
  .hero__wrap{grid-template-columns:1fr}
  .grid--split{grid-template-columns:1fr}
  .services{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 680px){
  .menu{display:none}
  .hero h1{font-size:36px}
  .usp{grid-template-columns:1fr 1fr}
  .services{grid-template-columns:1fr}
  .cta__wrap{grid-template-columns:1fr}
  .cta__form{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr}
}

/* Floating Button */
.floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-button:hover {
    background: var(--brand-600);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-button i {
    font-size: 1.2rem;
}

/* Responsive Design für den Floating Button */
@media (max-width: 768px) {
    .floating-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
} 

/* Navbar-Logo (Bild) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1px 0;               /* vertikal ausrichten wie Menü-Links */
}

.logo-img {
  display: block;
  height: 100px;                  /* → Logo-Höhe hier steuern */
  width: auto;
}

/* Screenreader-only Text (SEO/Accessibility) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,1px,1px); white-space: nowrap; border: 0;
}

/* Optional: kleinere Höhe auf Mobile, damit nix umbrecht */
@media (max-width: 680px){
  .logo-img { height: 32px; }
}

/* Popup Base */
.popup {
  display: none; /* standardmäßig versteckt */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup__content {
  background: #fff;
  max-height: 50vh;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.popup__content h3{
  margin:14px 0 6px;
  font-size:16px;
}

.popup__content p{ margin:6px 0; line-height:1.5; }

.popup__close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.8rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity:0; transform: translateY(-20px);}
  to   {opacity:1; transform: translateY(0);}
}
