/* =========================================================
   Messie-Notfallhilfe – Design System
   Tokens 1:1 aus der Originalseite:
   Rot #9f0000 · Dark #1b1b1b · Montserrat 600 (Headlines)
   Inter (Fließtext) · Poppins (Navigation/UI) · Container 1200px
   ========================================================= */

@import url('../fonts/fonts.css');

:root{
  --red:#9f0000;
  --red-dark:#870000;
  --red-light:#c1272d;
  --dark:#1b1b1b;
  --black:#000000;
  --text:#1a1a1a;
  --muted:#6a6a6a;
  --line:#e5e5e5;
  --grey:#f5f5f5;
  --shadow-btn:0 4px 10px 1px rgba(0,0,0,.5);
  --shadow-card:0 4px 15px 1px rgba(0,0,0,.5);
  --shadow-soft:0 6px 24px rgba(0,0,0,.10);
  --container:1200px;
  --font-head:'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body:'Inter', 'Segoe UI', Arial, sans-serif;
  --font-ui:'Poppins', 'Segoe UI', Arial, sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  font-family:var(--font-body);
  font-size:18px;
  line-height:1.8;
  color:var(--text);
  background:#fff;
  overflow-x:hidden;
}

/* height:auto ist Pflicht – sonst gewinnt das height-Attribut aus dem HTML
   gegen aspect-ratio und die Bilder werden verzerrt/falsch beschnitten.
   Regeln, die eine feste Höhe brauchen, setzen sie weiter unten explizit. */
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
h1,h2,h3,h4,p{margin:0}

:focus-visible{outline:3px solid var(--red);outline-offset:3px}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.section{padding:80px 0}
.section-red{background:var(--red);color:#fff}
.section-grey{background:var(--grey)}

.skip-link{
  position:absolute;left:-9999px;top:0;
  background:var(--red);color:#fff;
  padding:12px 18px;z-index:3000;
  font-family:var(--font-ui);font-weight:600;
}
.skip-link:focus{left:0}

/* ---------- TYPO ---------- */

/* Überschriften ausgewogen umbrechen (kein einzelnes Wort auf der letzten
   Zeile), Fließtext ohne Schusterjungen. */
h1,h2,h3,h4,
.hero-sub,.page-hero-sub,
.article-title,.article-subtitle,
.blog-card h3,.service-card h3{
  text-wrap:balance;
}

p,li,.lead,.sec-intro{text-wrap:pretty}

h1{
  font-family:var(--font-head);
  font-weight:600;
  font-size:clamp(34px, 4.2vw, 60px);
  line-height:1.05;
  color:#fff;
}

h2{
  font-family:var(--font-head);
  font-weight:600;
  font-size:clamp(28px, 3.1vw, 40px);
  line-height:1.15;
  color:var(--dark);
  text-align:center;
}

.section-red h2{color:#fff}

h3{font-family:var(--font-head);font-weight:600}

.lead{
  font-size:clamp(17px, 1.5vw, 22px);
  line-height:1.8;
  text-align:center;
  max-width:1140px;
  margin:26px auto 0;
}

.section-red .lead{color:#fff}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:var(--font-body);
  font-size:clamp(17px, 1.4vw, 22px);
  font-weight:400;
  line-height:1;
  padding:16px 30px;
  border-radius:5px;
  border:none;
  cursor:pointer;
  color:#fff;
  background:var(--red);
  box-shadow:var(--shadow-btn);
  transition:background .2s ease, transform .2s ease;
  text-align:center;
}
.btn:hover{background:var(--red-dark);color:#fff;transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.btn svg{width:20px;height:20px;fill:currentColor;flex-shrink:0}

.btn-black{background:var(--black)}
.btn-black:hover{background:#242424}

.btn-white{background:#fff;color:var(--red)}
.btn-white:hover{background:#f0f0f0;color:var(--red)}

.btn-block{width:100%;text-transform:uppercase;letter-spacing:.12em;font-weight:500}

.btn-wrap{display:flex;justify-content:center;margin-top:46px}

/* ---------- HEADER ---------- */
.topbar{
  background:var(--red);
  color:#fff;
  font-family:var(--font-ui);
  font-size:14px;
}

.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:9px 0;
}

.topbar-claim{color:rgba(255,255,255,.88);letter-spacing:.02em}

.topbar-phone{display:inline-flex;align-items:center;gap:8px;color:#fff}
.topbar-phone strong{color:#ffd9a0;font-weight:600}
.topbar-phone svg{width:15px;height:15px;fill:currentColor}

.site-header{
  background:#fff;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 14px rgba(0,0,0,.08);
}

.header-main .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
}

.site-logo img{height:64px;width:auto}

.main-nav{display:flex;align-items:center;gap:34px}

.main-nav a{
  font-family:var(--font-ui);
  font-size:16px;
  font-weight:500;
  color:var(--dark);
  position:relative;
  padding:6px 0;
  transition:color .2s ease;
}

.main-nav a::after{
  content:"";
  position:absolute;left:0;bottom:0;
  height:2px;width:0;
  background:var(--red);
  transition:width .22s ease;
}
.main-nav a:hover{color:var(--red)}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after{width:100%}
.main-nav a[aria-current="page"]{color:var(--red)}

.nav-toggle{
  display:none;
  width:46px;height:46px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:6px;
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.nav-toggle span{width:22px;height:2.5px;background:var(--dark);border-radius:2px;transition:.25s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* ---------- FLOATING CONTACT ---------- */
.floating-contact{
  position:fixed;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  z-index:950;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.floating-contact a{
  width:54px;height:54px;
  border-radius:50%;
  background:#fff;
  color:var(--red);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 16px rgba(0,0,0,.28);
  transition:.22s ease;
}
.floating-contact a:hover{background:var(--red);color:#fff;transform:scale(1.08)}
.floating-contact svg{width:24px;height:24px;fill:currentColor}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:890px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:#1a1a1a url('../img/hero-bg.webp') center/cover no-repeat;
  color:#fff;
  padding:120px 0;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

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

.hero h1{margin-bottom:26px;text-shadow:0 2px 20px rgba(0,0,0,.45)}

.hero-sub{
  font-family:var(--font-head);
  font-weight:400;
  font-size:clamp(20px, 2.6vw, 40px);
  line-height:1.25;
  color:#fff;
  max-width:1100px;
  margin:0 auto;
  text-shadow:0 2px 18px rgba(0,0,0,.45);
}

.hero-actions{
  display:flex;
  gap:22px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:44px;
}

.hero-scroll{
  position:absolute;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  z-index:2;
  color:#fff;
  opacity:.85;
  animation:bob 2.4s ease-in-out infinite;
}
.hero-scroll svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2}

@keyframes bob{
  0%,100%{transform:translate(-50%,0)}
  50%{transform:translate(-50%,10px)}
}

/* ---------- TEAM ---------- */
.team{padding:90px 0;text-align:center}

.team h2{margin-bottom:52px}

.team-photos{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:48px;
}

.team-photos img{
  width:300px;
  height:300px;
  max-width:calc(50% - 10px);
  object-fit:cover;
}

.team p{
  max-width:1140px;
  margin:0 auto 22px;
  font-size:clamp(17px, 1.5vw, 22px);
  line-height:1.8;
}

/* ---------- PROBLEM (rot) ---------- */
.problem{padding:96px 0}

.problem-grid{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:60px;
  align-items:center;
  margin-top:60px;
}

.problem-icon{
  display:flex;
  align-items:center;
  justify-content:center;
}
.problem-icon img{width:200px;height:auto}

.problem-copy{text-align:center}
.problem-copy p{
  font-size:clamp(17px, 1.5vw, 22px);
  line-height:1.8;
  color:#fff;
  margin-bottom:22px;
}
.problem-copy p:last-child{margin-bottom:0}

/* ---------- LEISTUNGEN ---------- */
.services{padding:90px 0}
.services h2{margin-bottom:56px}

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

.service-card{
  background:var(--red);
  color:#fff;
  padding:28px 24px 32px;
  box-shadow:var(--shadow-card);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  transition:transform .25s ease, background .25s ease;
}
.service-card:hover{transform:translateY(-6px);background:#ad0000}

.service-icon{
  width:48px;height:48px;
  margin-bottom:20px;
  fill:#fff;
}

.service-card h3{
  font-size:20px;
  line-height:1.4;
  color:#fff;
  margin-bottom:18px;
}

.service-card p{
  font-size:16px;
  line-height:1.8;
  color:#fff;
}

/* ---------- WARUM (rot) ---------- */
.why{padding:96px 0}

.why-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px 60px;
  margin-top:60px;
}

.why-item{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:20px;
  align-items:center;
}

.why-item svg{width:38px;height:38px;fill:#fff;justify-self:center}

.why-item p{
  font-size:clamp(16px, 1.3vw, 20px);
  line-height:1.6;
  color:#fff;
}

/* ---------- VORHER / NACHHER ---------- */
.results{padding:90px 0}
.results h2{margin-bottom:56px}

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

.compare{
  position:relative;
  overflow:hidden;
  aspect-ratio:4/3;
  background:#111;
  user-select:none;
  touch-action:pan-y;
  box-shadow:var(--shadow-soft);
}

.compare img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
}

.compare .after-img{
  clip-path:inset(0 var(--split, 50%) 0 0);
}

.compare-label{
  position:absolute;
  bottom:14px;
  z-index:3;
  background:var(--red);
  color:#fff;
  font-family:var(--font-ui);
  font-size:15px;
  font-weight:500;
  padding:7px 16px;
  pointer-events:none;
}
.compare-label.is-after{left:14px}
.compare-label.is-before{right:14px}

.compare-handle{
  position:absolute;
  top:0;bottom:0;
  left:var(--split, 50%);
  width:3px;
  background:#fff;
  z-index:4;
  cursor:ew-resize;
  transform:translateX(-50%);
}

.compare-handle::after{
  content:"";
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:46px;height:46px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 3px 12px rgba(0,0,0,.4);
}

.compare-handle span{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  z-index:2;
  color:#fff;
  font-size:15px;
  letter-spacing:2px;
  line-height:1;
  pointer-events:none;
}

.compare-range{
  position:absolute;
  inset:0;
  z-index:5;
  width:100%;
  margin:0;
  opacity:0;
  cursor:ew-resize;
}

/* ---------- BEWERTUNGEN (Marquee) ---------- */
.reviews{
  padding:100px 0 110px;
  background:var(--grey);
  overflow:hidden;
}

.reviews-head{
  max-width:1000px;
  margin:0 auto 64px;
  padding:0 20px;
  text-align:center;
}

.reviews-eyebrow{
  color:var(--red);
  text-transform:uppercase;
  letter-spacing:4px;
  font-family:var(--font-ui);
  font-size:13px;
  font-weight:600;
  margin-bottom:18px;
}

.reviews-head h2{
  margin:0;
  color:var(--dark);
}
.reviews-head h2 span{color:var(--red)}

.reviews-desc{
  color:#5c5c5c;
  font-size:18px;
  margin-top:20px;
}

.reviews-badge{
  display:inline-flex;
  align-items:center;
  gap:20px;
  margin-top:38px;
  padding:16px 34px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:0 8px 26px rgba(0,0,0,.07);
}

.reviews-badge-g{width:34px;height:34px;flex-shrink:0}

.reviews-badge-sep{
  width:1px;height:40px;
  background:var(--line);
}

.reviews-badge-score{
  font-family:var(--font-head);
  font-size:42px;
  font-weight:700;
  color:var(--dark);
  line-height:1;
}

.reviews-badge-right{text-align:left;line-height:1.25}

.reviews-badge-stars{
  display:block;
  color:#d6a75f;
  font-size:19px;
  letter-spacing:3px;
}

.reviews-badge-label{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:3px;
}

.reviews-marquee{
  position:relative;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
  cursor:grab;
  overscroll-behavior-x:contain;
}
.reviews-marquee::-webkit-scrollbar{display:none}
.reviews-marquee{
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 170px,#000 calc(100% - 170px),transparent 100%);
  mask-image:linear-gradient(to right,transparent 0,#000 170px,#000 calc(100% - 170px),transparent 100%);
}
.reviews-marquee::before,
.reviews-marquee::after{display:none}
.reviews-marquee.is-drag{cursor:grabbing;user-select:none}
.reviews-marquee.is-drag *{user-select:none}

.reviews-marquee::before,
.reviews-marquee::after{
  content:"";
  position:absolute;
  top:0;
  width:170px;
  height:100%;
  z-index:2;
  pointer-events:none;
}
.reviews-marquee::before{left:0;background:linear-gradient(to right, var(--grey), transparent)}
.reviews-marquee::after{right:0;background:linear-gradient(to left, var(--grey), transparent)}

.reviews-track{
  display:flex;
  gap:20px;
  width:max-content;
  padding:12px 10px;
}

@keyframes revMarquee{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-50% - 10px))}
}

.rev-card{
  min-width:310px;
  max-width:310px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:24px;
  display:flex;
  flex-direction:column;
  transition:transform .3s ease, box-shadow .3s ease;
}
.rev-card:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(0,0,0,.10)}

.rev-stars{
  color:#d6a75f;
  font-size:14px;
  letter-spacing:3px;
  margin-bottom:12px;
  line-height:1;
}

.rev-text{
  color:#4a4a4a;
  font-size:14px;
  line-height:1.7;
  flex:1;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 16px;
}

.rev-line{
  width:100%;
  height:1px;
  background:var(--line);
  margin-bottom:20px;
}

.rev-author{
  display:flex;
  align-items:center;
  gap:14px;
}

.rev-avatar{
  width:38px;height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-ui);
  font-weight:600;
  font-size:14px;
  flex-shrink:0;
}

.av-a{background:rgba(159,0,0,.10);border:1px solid rgba(159,0,0,.28);color:var(--red)}
.av-b{background:rgba(214,167,95,.16);border:1px solid rgba(214,167,95,.38);color:#a97c2c}
.av-c{background:rgba(99,155,255,.14);border:1px solid rgba(99,155,255,.30);color:#3b6fc4}
.av-d{background:rgba(46,160,110,.13);border:1px solid rgba(46,160,110,.28);color:#248059}
.av-e{background:rgba(150,80,200,.13);border:1px solid rgba(150,80,200,.26);color:#7b3fa8}

.rev-info strong{
  display:block;
  font-family:var(--font-ui);
  color:var(--dark);
  font-size:15px;
  font-weight:600;
  line-height:1.3;
}

.rev-info span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

/* ---------- FAQ (rot) ---------- */
.faq{padding:96px 0}
.faq h2{margin-bottom:56px}

.faq-list{max-width:1130px;margin:0 auto}

.faq-item{border-bottom:1px solid rgba(255,255,255,.22)}

.faq-q{
  width:100%;
  background:none;
  border:0;
  padding:20px 4px;
  display:flex;
  align-items:center;
  gap:20px;
  text-align:left;
  cursor:pointer;
  font-family:var(--font-head);
  font-weight:600;
  font-size:clamp(17px, 1.6vw, 23px);
  line-height:1.35;
  color:#fff;
}

.faq-plus{
  font-family:var(--font-body);
  font-size:26px;
  font-weight:400;
  line-height:1;
  flex-shrink:0;
  transition:transform .25s ease;
}
.faq-item.active .faq-plus{transform:rotate(45deg)}

.faq-arrow{
  margin-left:auto;
  width:24px;height:24px;
  background:var(--black);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition:transform .25s ease;
}
.faq-arrow svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:3}
.faq-item.active .faq-arrow{transform:rotate(90deg)}

.faq-a{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .3s ease;
}
.faq-item.active .faq-a{grid-template-rows:1fr}
.faq-a > div{overflow:hidden}

.faq-a-inner{
  padding:0 4px 26px 46px;
  font-size:clamp(16px, 1.3vw, 19px);
  line-height:1.8;
  color:#fff;
}
.faq-a-inner strong{font-weight:600}

/* ---------- KONTAKT ---------- */
.contact{padding:90px 0}
.contact h2{margin-bottom:52px}

.contact-form{max-width:1140px;margin:0 auto}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-bottom:22px;
}

.field{margin-bottom:22px}

.field input,
.field select,
.field textarea{
  width:100%;
  padding:16px 18px;
  border:1px solid #b8b8b8;
  border-radius:3px;
  font-family:var(--font-body);
  font-size:17px;
  color:var(--text);
  background:#fff;
  transition:.2s ease;
}

.field textarea{min-height:150px;resize:vertical}

.field input::placeholder,
.field textarea::placeholder{color:#8a8a8a}

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(159,0,0,.10);
}

.field-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:6px 0 22px;
}

.field-check input{
  width:22px;height:22px;
  margin-top:1px;
  flex-shrink:0;
  accent-color:var(--red);
}

.field-check label{
  font-size:15px;
  line-height:1.6;
  color:#444;
}
.field-check a{color:var(--red);text-decoration:underline}

.form-status{
  margin-top:18px;
  padding:14px 18px;
  border-radius:3px;
  font-size:16px;
  display:none;
}
.form-status.is-visible{display:block}
.form-status.ok{background:#e9f6ec;color:#1c6b31}
.form-status.err{background:#fbeaea;color:var(--red)}

.form-hint{margin-top:14px;text-align:center;font-size:15px;color:var(--muted)}

/* ---------- BLOG (rot) ---------- */
.blog{padding:96px 0}
.blog h2{margin-bottom:56px;text-align:left}

.blog-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.blog-card{
  background:#f3e9e9;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease;
}
.blog-card:hover{transform:translateY(-5px)}

.blog-card img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}

/* Der Textbalken füllt den Rest der Karte, damit alle Karten einer Reihe
   gleich hohe Balken haben – egal wie lang der Titel ist. */
.blog-card h3{
  flex:1;
  display:flex;
  align-items:center;
  padding:22px;
  font-size:18px;
  line-height:1.5;
  color:var(--dark);
  margin-top:auto;
}

/* ---------- FOOTER ---------- */
.site-footer{
  background:var(--dark);
  color:#fff;
  font-family:var(--font-ui);
  font-size:14px;
}

.site-footer .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding:20px 0;
}

.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 8px;align-items:center}
.footer-links a{color:#fff;transition:color .2s ease}
.footer-links a:hover{color:#ffd9a0}
.footer-links span{opacity:.5}

/* ---------- TO TOP ---------- */
.to-top{
  position:fixed;
  right:18px;bottom:18px;
  z-index:940;
  width:44px;height:44px;
  background:var(--red);
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, background .2s ease;
}
.to-top.is-visible{opacity:1;pointer-events:auto}
.to-top:hover{background:var(--red-dark)}
.to-top svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:3}

/* ---------- MOBILE CALL BAR ---------- */
.mobile-bar{
  display:none;
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:960;
  background:#fff;
  border-top:1px solid var(--line);
  box-shadow:0 -6px 22px rgba(0,0,0,.12);
  padding:9px 10px calc(9px + env(safe-area-inset-bottom));
  gap:10px;
}

.mobile-bar a{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 8px;
  border-radius:5px;
  font-family:var(--font-ui);
  font-size:15px;
  font-weight:500;
}
.mobile-bar svg{width:18px;height:18px;fill:currentColor}
.mobile-bar .m-call{background:var(--red);color:#fff}
.mobile-bar .m-form{background:var(--black);color:#fff}

/* ---------- REVEAL ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease, transform .6s ease}
.reveal.is-in{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
  .reveal{opacity:1;transform:none}
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1150px){
  .main-nav{gap:22px}
  .main-nav a{font-size:15px}
}

/* Tablet: etwas mehr Luft am Rand als die 20px vom Handy */
@media (min-width: 641px) and (max-width: 1280px){
  .container{width:calc(100% - 64px)}
}

@media (max-width: 1024px){
  .services-grid,
  .results-grid{gap:24px}

  .problem-grid{grid-template-columns:1fr;gap:34px}
  .problem-icon img{width:150px}

  .why-grid{gap:26px 40px}

  .compare-label{font-size:13px;padding:5px 12px;bottom:10px}
  .compare-label.is-after{left:10px}
  .compare-label.is-before{right:10px}

  /* Ab Tablet die Anruf-/Anfrage-Leiste statt der schwebenden Buttons –
     die lagen bei 1024px über Karten und Hero-Gesichtern. */
  body{padding-bottom:70px}
  .mobile-bar{display:flex;justify-content:center}
  .mobile-bar a{max-width:360px}
  .floating-contact{display:none}
  .to-top{bottom:82px;right:12px}

  .nav-toggle{display:flex}

  .main-nav{
    position:fixed;
    inset:0 0 0 auto;
    width:min(340px, 84vw);
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    padding:92px 24px 30px;
    box-shadow:none;
    transform:translateX(100%);
    transition:transform .3s ease;
    z-index:1200;
    overflow-y:auto;
  }
  .main-nav.is-open{transform:translateX(0);box-shadow:-18px 0 44px rgba(0,0,0,.20)}
  .main-nav a{font-size:18px;padding:16px 0;border-bottom:1px solid var(--line)}
  .main-nav a::after{display:none}

  .nav-backdrop{
    position:fixed;inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;pointer-events:none;
    transition:opacity .3s ease;
    z-index:1100;
  }
  .nav-backdrop.is-open{opacity:1;pointer-events:auto}
  .nav-toggle{position:relative;z-index:1300}

  /* Der Header bildet einen eigenen Stacking-Context – ohne diese
     Anhebung landet das Nav-Panel unter dem Backdrop. */
  .site-header.nav-open{z-index:1200}
}

@media (max-width: 900px){
  .services-grid,
  .results-grid{grid-template-columns:repeat(2, 1fr)}
  /* ungerade letzte Karte (3 Vorher/Nachher) mittig statt links allein */
  .results-grid > :last-child:nth-child(odd){
    grid-column:1 / -1;
    justify-self:center;
    width:calc(50% - 12px);
  }

  .topbar-claim{display:none}
  .topbar .container{justify-content:center;padding:8px 0}

  .hero{min-height:600px;padding:90px 0}
  .hero-actions{gap:14px;flex-direction:column;align-items:center}
  .hero-actions .btn{width:100%;max-width:330px}
  .hero-scroll{display:none}

  .team-photos{gap:20px}
  .team-photos img{width:min(260px, 44vw)}

  .blog h2{text-align:center}

  .site-footer .container{justify-content:center;text-align:center}

  .reviews{padding:76px 0 84px}
  .reviews-head{margin-bottom:44px}
  .reviews-marquee{
    -webkit-mask-image:linear-gradient(to right,transparent 0,#000 70px,#000 calc(100% - 70px),transparent 100%);
    mask-image:linear-gradient(to right,transparent 0,#000 70px,#000 calc(100% - 70px),transparent 100%);
  }
  .rev-card{min-width:270px;max-width:270px;padding:20px}
  .reviews-badge{gap:14px;padding:14px 24px}
  .reviews-badge-score{font-size:34px}
}

@media (max-width: 640px){
  .hero h1{font-size:clamp(28px, 8.4vw, 34px)}
  h2{font-size:clamp(24px, 7.2vw, 28px)}

  .why-grid{grid-template-columns:1fr;gap:26px}
  .blog-grid{grid-template-columns:1fr}

  /* Tap-Targets >= 40px */
  .topbar .container{padding:0}
  .topbar-phone{padding:10px 0}
  .topbar-phone strong{white-space:nowrap}
  .footer-links a{padding:10px 4px}
  .site-footer .container{padding:14px 0 16px;gap:4px 18px}

  .section,
  .team,.services,.results,.contact{padding:60px 0}
  .problem,.why,.faq,.blog{padding:66px 0}

  .site-logo img{height:50px}

  .services-grid,
  .results-grid{grid-template-columns:1fr}
  .results-grid > :last-child:nth-child(odd){width:100%}

  .form-row{grid-template-columns:1fr;gap:14px;margin-bottom:14px}
  .field-check input{width:24px;height:24px;margin-top:0}

  .faq-a-inner{padding-left:34px}
  .faq-arrow{display:none}

  .btn{padding:14px 22px}
  .compare-label{font-size:13px;padding:5px 12px;bottom:10px}
  .compare-handle::after{width:38px;height:38px}
}

@media (max-width: 400px){
  .topbar{font-size:13px}
  .reviews-badge{gap:12px;padding:12px 18px}
  .reviews-badge-label{white-space:nowrap;font-size:12px}
}

/* Footer-Städteleiste (areas.css) auf schmalen Handys: statt zwei Spalten mit
   umbrechenden Namen ein zentrierter Fluss – jeder Name bleibt einzeilig. */
@media (max-width: 480px){
  .site-footer .footer-areas ul{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:0 18px;
  }
  .site-footer .footer-areas a{white-space:nowrap}
}
@media (max-width: 400px){
  .site-footer .footer-areas ul{gap:0 14px}
  .site-footer .footer-areas a{font-size:13px}
}

/* ---------- Bewertungen: Mehr anzeigen + Pop-up ---------- */
.rev-more{
  align-self:flex-start;
  background:none;border:0;padding:0 0 14px;margin:-6px 0 0;
  font:inherit;font-size:13.5px;font-weight:600;
  color:var(--accent,#b07a2a);
  text-decoration:underline;text-underline-offset:3px;
  cursor:pointer;
}
.rev-more[hidden]{display:none}
.rev-more:hover{opacity:.8}
.rev-modal{
  position:fixed;inset:0;z-index:2000;
  display:none;align-items:center;justify-content:center;
  padding:20px;background:rgba(20,20,20,.55);
}
.rev-modal.is-open{display:flex}
.rev-modal-box{
  position:relative;background:#fff;border-radius:20px;
  width:100%;max-width:520px;max-height:85vh;overflow-y:auto;
  padding:30px 28px 26px;box-shadow:0 24px 60px rgba(0,0,0,.3);
}
.rev-modal-close{
  position:absolute;top:10px;right:12px;width:36px;height:36px;
  border:0;background:none;font-size:28px;line-height:1;color:#555;cursor:pointer;
}
.rev-modal-body .rev-text{
  display:block;-webkit-line-clamp:unset;overflow:visible;
  font-size:15px;line-height:1.75;margin:0 0 20px;
}
.rev-modal-body .rev-stars{margin-bottom:14px;padding-right:30px}
