/* =========================
   RESET & VARIABLES
========================= */

:root{
  --bg: #f9fafb;
  --text: #111827;
  --muted: #4b5563;

  --nav-bg: #0f172a;
  --blue: #2563eb;

  --container: 1100px;

  --header-h: 72px;

  /* Profilbild-Badge (Desktop) */
  --badge-w: 320px;
  --badge-h: 240px;
  --badge-gap: 24px;

  /* Bildrahmen */
  --frame-bg: #0f172a;
  --frame-pad: 10px; /* macht den schwarzen Rahmen schmaler */
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Bilder nie ausufern lassen */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links: kein lila, kein underline */
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

/* =========================
   LAYOUT
========================= */

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main{
  padding-top: 18px;

  /* Platz rechts reservieren für das Profilbild, damit nichts reinläuft */
  padding-right: calc(var(--badge-w) + var(--badge-gap));
}

/* Extra Abstand oben für Seitenüberschriften usw. */
.section{
  padding: 4rem 0;
}

.section-alt{
  padding: 4rem 0;
  background: #f3f4f6;
}

.section h2{
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-intro{
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
}

/* =========================
   HEADER / NAV
========================= */

.header{
  background: var(--nav-bg);
  color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner{
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;

  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text{
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #fff;
}

/* Desktop Navigation */
.nav{
  display: flex;
  gap: 1.1rem;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: nowrap;
}

.nav a{
  color: #e5e7eb;
  font-size: 1rem;
  padding: 0.4rem 0.65rem;
  border-radius: 12px;
  white-space: nowrap;
}

.nav a:hover{
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav a.active{
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Call Button */
.btn-primary,
.btn-secondary{
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary{
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover{ background: #1d4ed8; }

.btn-secondary{
  background: #e5e7eb;
  color: var(--text);
}
.btn-secondary:hover{ background: #d1d5db; }

.header-call{
  white-space: nowrap;
  margin-left: auto;
}

/* =========================
   PROFILBILD / LOGO BADGE
========================= */

/* FIXIERT (bleibt stehen), aber mit genug Abstand zum Header */
.logo-badge{
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 18px;
  z-index: 900;

  background: #ffffff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);

  width: var(--badge-w);
}

/* WICHTIG: Regeln für das Bild, nicht für den Container */
.logo-badge img{
  width: 100%;
  height: var(--badge-h);
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* =========================
   HERO
========================= */

.hero{ padding: 3.5rem 0 3rem; }

.hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.hero h1{
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.hero p{
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.hero-actions{
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
  color: #374151;
}

.hero-bullets li{ margin-bottom: 0.25rem; }

.hero-box{
  background: var(--nav-bg);
  color: #f9fafb;
  padding: 1.25rem;
  border-radius: 0.9rem;
  max-width: 360px;
  margin-left: auto;

  /* schiebt die Box etwas runter, damit sie nie ins Profilbild läuft */
  margin-top: 24px;
}

.hero-box h2{ margin: 0 0 0.5rem; }

.hero-phone{
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0.6rem 0 0.9rem;
}
.hero-phone:hover{ text-decoration: underline; }

.hero-small{
  font-size: 0.85rem;
  color: #d1d5db;
}

/* =========================
   GRIDS & CARDS
========================= */

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;

  /* mehr Luft nach oben -> weg vom Profilbild */
  margin-top: 24px;
}

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.card{
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card h3{ margin: 0 0 0.5rem; }
.card p{ margin: 0; color: var(--muted); }

/* =========================
   BEFORE/AFTER (Galerie)
   -> gleich groß, nicht abgeschnitten, Rahmen schmal
========================= */

.before-after-grid{
  display: grid;
  gap: 2rem;

  margin-top: 24px;
}

.ba-item{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Wrapper = Rahmen */
.ba-image-wrapper{
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--frame-bg);
  padding: var(--frame-pad);
}

/* Fixe, saubere Höhe/Format -> überall gleich */
.ba-image-wrapper{
  aspect-ratio: 16 / 9;
}

/* Das Bild selbst */
.ba-image-wrapper img{
  width: 100%;
  height: 100%;
  border-radius: calc(0.75rem - var(--frame-pad));
  object-fit: contain; /* WICHTIG: nichts wird abgeschnitten */
  background: var(--frame-bg);
}

.badge{
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-after{
  background: rgba(34, 197, 94, 0.95);
}

/* =========================
   TRANSPORT / IM EINSATZ
   -> gleich groß, nicht abgeschnitten, Rahmen schmal
========================= */

.transport-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;

  margin-top: 24px;
}

.transport-item{
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.transport-item img{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;

  background: var(--frame-bg);
  padding: var(--frame-pad);
  border-radius: 0.75rem;

  object-fit: contain; /* nichts abgeschnitten */
}

.transport-item figcaption{
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* =========================
   TIPPS & ABLAUF
========================= */

.tips-layout{
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 1.5rem;

  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.tips-card{
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.tips-card h3{
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.tips-list{
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.tips-list li{
  position: relative;
  padding-left: 1.6rem;
  color: #374151;
  line-height: 1.5;
}
.tips-list li::before{
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
}

.steps-compact{
  margin: 0;
  padding-left: 1.2rem;
  color: #374151;
}
.steps-compact li{ margin-bottom: 0.55rem; }

/* =========================
   KONTAKT
========================= */

.contact-list{
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-list li{ margin-bottom: 0.4rem; }

.contact-list a{
  color: var(--blue);
}
.contact-list a:hover{ text-decoration: underline; }

.contact-form{
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);

  /* mehr Luft nach oben wegen Profilbild */
  margin-top: 24px;
}

.form-row{ margin-bottom: 0.9rem; }

.form-row label{
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea{
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.form-row.checkbox-row{ margin: 1rem 0; }

.checkbox-label{
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}

.checkbox-label input[type="checkbox"]{
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.checkbox-label a{
  color: var(--blue);
  text-decoration: underline;
}

/* =========================
   FOOTER
========================= */

.footer{
  background: var(--nav-bg);
  color: #9ca3af;
  padding: 1.2rem 0;
  font-size: 0.85rem;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links{
  display: flex;
  gap: 1rem;
}
.footer-links a{ color: #e5e7eb; }
.footer-links a:hover{ text-decoration: underline; }

/* =========================
   COOKIE BANNER
========================= */

.cookie-banner{
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: none;
}

.cookie-box{
  background: var(--nav-bg);
  color: #f9fafb;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.cookie-box p{
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.cookie-box a{
  color: #93c5fd;
  text-decoration: underline;
}

/* =========================
   HAMBURGER / MOBILE NAV
   -> nur auf kleineren Screens sichtbar
========================= */

/* Standard: Hamburger aus */
.nav-toggle{
  display: none;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1250px){
  :root{
    --badge-w: 280px;
    --badge-h: 210px;
  }
  main{
    padding-right: calc(var(--badge-w) + var(--badge-gap));
  }
}

@media (max-width: 1050px){
  /* ab hier lieber kleiner + mehr Luft */
  :root{
    --badge-w: 220px;
    --badge-h: 180px;
  }
  main{
    padding-right: calc(var(--badge-w) + 18px);
  }
}

/* Tablet & Handy: Profilbild ausblenden (sonst Chaos), Hamburger aktiv */
@media (max-width: 900px){
  main{
    padding-right: 0; /* kein Platz rechts nötig */
  }

  .logo-badge{
    display: none; /* hier wird es sonst immer rein schneiden */
  }

  .hero-inner{
    grid-template-columns: 1fr;
  }

  .grid-3{
    grid-template-columns: 1fr;
  }

  .grid-2{
    grid-template-columns: 1fr;
  }

  .header-inner{
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  /* Hamburger sichtbar */
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
  }

  /* Desktop-Navigation verstecken */
  .nav{
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.8rem 0 0.5rem;
  }

  /* Wenn dein JS eine Klasse toggelt:
     nav.classList.toggle('is-open') */
  .nav.is-open{
    display: flex;
  }

  .nav a{
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
  }

  .header-call{
    margin-left: auto;
  }

  .tips-layout{
    grid-template-columns: 1fr;
  }

  .ba-item{
    grid-template-columns: 1fr;
  }
}

/* ganz klein */
@media (max-width: 600px){
  .hero h1{ font-size: 1.8rem; }
  .cookie-banner{
    left: 10px;
    right: 10px;
  }
  .cookie-box{ max-width: none; }
}
@media (max-width: 900px){

  /* Header Layout: links = HOME + Hamburger, Mitte = Anruf-Button */
  .header-inner{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }

  /* Linke Gruppe: HOME + Hamburger nebeneinander */
  .brand{
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* Hamburger direkt neben HOME */
  .nav-toggle{
    margin-left: 0 !important;
    justify-self: start;
  }

  /* Anruf-Button mittig */
  .header-call{
    grid-column: 2;
    justify-self: center;
    margin-left: 0 !important;
  }

  /* Navigation klappt als Liste unter den Header */
  .nav{
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 900px){

  /* Eine Zeile: HOME | Call | Burger */
  .header-inner{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:nowrap !important;
    gap:12px !important;
  }

  /* HOME links */
  .brand{
    order:1 !important;
    flex:0 0 auto !important;
  }

  /* Call-Button in die Mitte */
  .header-call{
    order:2 !important;
    margin:0 auto !important;      /* zentriert */
    flex:0 0 auto !important;
  }

  /* Hamburger ganz rechts */
  .nav-toggle{
    order:3 !important;
    margin:0 !important;
    flex:0 0 auto !important;
  }

  /* Menü klappt darunter aus */
  .nav{
    order:4 !important;
    display:none !important;
    width:100% !important;
    flex-basis:100% !important;
    margin-top:10px !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    justify-content:center !important;
  }
  .nav.is-open{ display:flex !important; }
}
/* ===== Handy: Profilfoto klein oben rechts (Desktop unverändert) ===== */
@media (max-width: 700px){
  .logo-badge{
    display: block;         /* falls es bisher ausgeblendet war */
    position: fixed;
    top: 74px;              /* unter der Header-Leiste */
    right: 10px;
    z-index: 9999;

    width: 86px;            /* Größe auf Handy */
    height: 86px;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
  }

  .logo-badge img{
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
  }

  /* Platz oben rechts, damit Überschrift/Text nicht unter das Foto rutscht */
  main{
    padding-right: 0;       /* kein rechter Rand nötig auf Handy */
  }

  /* Überschriften/Abschnitte etwas nach unten/rechts “freihalten” */
  .hero, .section{
    padding-top: 2.6rem;    /* schafft Luft unter dem Header */
  }

  /* Optional: wenn Überschrift trotzdem genau unter dem Foto steht */
  h1, h2{
    padding-right: 95px;    /* Platz für das Foto */
  }
}
/* ===== Mobile Hamburger Menü ===== */
.nav-toggle{
  display:none;
  border:0;
  background: rgba(255,255,255,0.08);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:18px;
  cursor:pointer;
}

@media (max-width: 700px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  /* Nav standardmäßig zu auf Handy */
  .nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#0f172a;
    padding:12px 12px;
    border-top:1px solid rgba(255,255,255,0.08);
    flex-direction:column;
    gap:8px;
    z-index:1000;
  }

  .nav.open{ display:flex; }

  .nav a{
    padding:12px 12px;
    border-radius:12px;
    background: rgba(255,255,255,0.06);
  }
}
