/* =========================================================
   Porto Hauswartungen GmbH - Stylesheet
   Modern, professionell, responsive
   ========================================================= */

:root {
  --blue:       #2f9cd8;
  --blue-dark:  #1f7cae;
  --blue-soft:  #eaf5fc;
  --navy:       #22303c;
  --grey:       #5b6169;
  --grey-light: #7c828b;
  --line:       #e6ebef;
  --bg:         #ffffff;
  --bg-alt:     #f5f9fc;
  --white:      #ffffff;
  --shadow:     0 10px 30px rgba(34, 48, 60, 0.08);
  --shadow-lg:  0 20px 50px rgba(34, 48, 60, 0.14);
  --radius:     14px;
  --max:        1140px;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* verhindert einen unnoetigen horizontalen Scrollbalken (clip bricht den Sticky-Header nicht) */
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.65;
  background-color: #f4f9fd;
  background-image:
    radial-gradient(55% 45% at 12% 8%, rgba(47,156,216,.08), transparent 60%),
    radial-gradient(50% 42% at 88% 22%, rgba(47,156,216,.07), transparent 60%),
    radial-gradient(55% 45% at 50% 55%, rgba(47,156,216,.05), transparent 62%),
    radial-gradient(50% 45% at 15% 88%, rgba(47,156,216,.06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(47, 156, 216, .35);
}
.btn--primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(47, 156, 216, .45);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn--ghost:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
}
.logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.logo img { height: 48px; width: auto; display: block; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav a {
  color: var(--navy);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s ease;
}
.nav a:hover, .nav a.active { color: var(--blue-dark); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav__cta { margin-left: 10px; }
.nav__cta a {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
}
.nav__cta a::after { display: none; }
.nav__cta a:hover { background: var(--blue-dark); }

.burger {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 60px 0 150px;
  overflow: hidden;
  background: #12324a url("bilder/hero-hochhaus.jpg") center/cover no-repeat;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
  transform: scale(1.12);
  animation: heroPan 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroPan {
  from { transform: scale(1.12) translateY(-3.2%); }
  to   { transform: scale(1.12) translateY(3.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: scale(1.05); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Blaeulicher Filter */
  background: linear-gradient(rgba(18,82,132,.55), rgba(15,52,90,.62));
  mix-blend-mode: multiply;
}
.hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: min(880px, 94vw);
  height: auto;
  opacity: .55;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.45));
}
.hero__content { max-width: 720px; position: relative; z-index: 3; }
.hero__content--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-shadow: 0 2px 14px rgba(15, 28, 38, .55);
}
.hero__content--center .hero__actions { justify-content: center; }
.hero__content--center .eyebrow { text-shadow: none; }

/* ---------- Hero Intro-Animation ---------- */
.hero__content {
  transition: opacity 1.1s cubic-bezier(.22,.7,.25,1) 1s,
              transform 1.1s cubic-bezier(.22,.7,.25,1) 1s;
}
.hero__intro {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 84vw);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: top 1.3s cubic-bezier(.4,0,.6,1), opacity .5s ease;
}
/* Sanfte blaue Beleuchtung von hinten */
.hero__intro::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 150%; height: 220%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
              rgba(86,190,240,.65) 0%,
              rgba(52,160,222,.32) 40%,
              rgba(47,156,216,0) 70%);
  z-index: -1;
  pointer-events: none;
}
.hero__intro-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.22));
}
/* Waehrend Intro: grosses Logo sichtbar, Text + Header-Logo versteckt */
body.intro:not(.intro-done) .hero__intro { opacity: 1; }
/* Text startet oberhalb und gleitet von oben herein */
body.intro:not(.intro-done) .hero__content { opacity: 0; transform: translateY(-52px); }
/* Nach Intro: Logo faehrt sichtbar nach unten hinter das blaue Banner */
body.intro.intro-done .hero__intro {
  top: 135%;
  opacity: 0;
  transition: top 1.3s cubic-bezier(.4,0,.6,1),
              opacity .4s ease 1.05s;
}
@media (prefers-reduced-motion: reduce) {
  .hero__intro-logo, .hero__content, .header .logo { transition: none; animation: none; }
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(47,156,216,.9);
  color: #fff;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5);
}
.hero h1 .hl { color: #4db8ef; }
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 34px;
  max-width: 600px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Intro / generic lead ---------- */
.lead {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 720px;
}
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow {
  color: var(--blue-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .85rem;
}
.section-head h2 { margin: 10px 0 16px; }
.section-head p { color: var(--grey); font-size: 1.1rem; }

/* ---------- Stats bar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--blue);
  border-radius: var(--radius);
  padding: 40px 30px;
  color: #fff;
  box-shadow: var(--shadow);
  margin-top: -70px;
  position: relative;
  z-index: 5;
}
.stats .stat { text-align: center; }
.stats .stat b { display: block; font-size: 2.2rem; font-weight: 800; }
.stats .stat span { font-size: .98rem; opacity: .92; }

/* ---------- Fakten-Wuerfel (Handy): kleiner blauer Balken, ein Fakt der sich wie ein Wuerfel kippt ---------- */
.fact-cube { display: none; }
@media (max-width: 760px) {
  .stats { display: none; }
  /* Balken bleibt statisch, nur die Schrift kippt wie ein Wuerfel */
  .fact-cube {
    display: flex; align-items: center; justify-content: center;
    height: 88px;
    margin-top: -44px;
    position: relative; z-index: 5;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    perspective: 1000px;
  }
  .fact-flip {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform .45s cubic-bezier(.5, .05, .2, 1);
  }
  .fact-face {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .fact-face b { font-size: 1.9rem; font-weight: 800; line-height: 1; }
  .fact-face span { font-size: .95rem; opacity: .92; margin-top: 3px; }
  .fact-face--back { transform: rotateX(180deg); }
}

/* ---------- Leistungen als Karussell (Handy) ---------- */
.svc-carousel { overflow: hidden; padding: 14px 0; margin-left: -24px; margin-right: -24px; touch-action: pan-y; }
.grid-3.carousel-on {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  transition: transform .5s cubic-bezier(.3, .1, .2, 1);
  will-change: transform;
}
.grid-3.carousel-on .card { flex: 0 0 auto; }
@keyframes svcWiggle {
  0%, 100% { transform: translateX(0) rotate(0); }
  30%      { transform: translateX(-5px) rotate(-1.2deg); }
  70%      { transform: translateX(5px) rotate(1.2deg); }
}
.grid-3.carousel-on .card.wiggle { animation: svcWiggle .5s ease-in-out; }

/* ---------- Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--blue);
  box-shadow: 0 12px 30px rgba(47,156,216,.20);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__img { height: 210px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 12px; }
.card__body p { color: var(--grey); margin-bottom: 16px; }
.card ul { list-style: none; margin-top: auto; }
.card ul li {
  padding: 7px 0 7px 28px;
  position: relative;
  color: var(--navy);
  border-top: 1px solid var(--line);
}
.card ul li:first-child { border-top: 0; }
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--blue-soft);
  border-radius: 50%;
}
.card ul li::after {
  content: "";
  position: absolute;
  left: 5px; top: 50%;
  width: 5px; height: 9px;
  border: solid var(--blue-dark);
  border-width: 0 2px 2px 0;
  transform: translateY(-60%) rotate(45deg);
}

/* ---------- Split feature (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__video { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; display: block; }

/* ---------- Dienstleistungen als animierte Wegkarte ---------- */
.roadmap { position: relative; background: var(--bg-alt); overflow: hidden; }
.roadmap .section { position: relative; z-index: 1; background: transparent; }
.roadmap__line { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.roadmap__line path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 6px rgba(47,156,216,.45));
}
/* Pfeilkopf in der Linien-Ebene -> faehrt hinter die Kaesten (z-Ordnung) */
.roadmap__line path.roadmap__arrow { fill: var(--blue); stroke: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); transition: fill .25s ease; }
/* Farbiger Rahmen pro Kasten (zeichnet sich beim Scrollen, Farbe je Kasten inline) */
.roadmap__border path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
/* Stationen mit blauem Linien-Icon */
.station {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.4);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(47,156,216,.30);
  z-index: 3;
  opacity: 0;
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,1.3,.4,1);
}
.station svg {
  width: 40px; height: 40px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.roadmap__stop.is-visible .station { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 760px) {
  .station { display: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .45s ease-out .04s, transform .45s ease-out .04s;
}
.roadmap__stop.reached { opacity: 1; transform: none; }
/* Blauer Zwischenstopp-Kreis oberhalb des Bereichs */
.waypoint {
  --wp: var(--blue);
  position: absolute;
  top: 72px; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--wp);
  border: 4px solid #fff;
  box-shadow: 0 0 0 5px rgba(47,156,216,.28), 0 8px 18px rgba(47,156,216,.4);
  z-index: 4;
  transition: transform .5s cubic-bezier(.2, 1.5, .4, 1);
}
.waypoint::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.roadmap__stop.reached .waypoint { transform: translate(-50%, -50%) scale(1); }
.roadmap__stop.reached .waypoint::after { animation: wpRing 1.1s ease-out .15s 2; }
.waypoint--green { --wp: #33a95f; box-shadow: 0 0 0 5px rgba(51,169,95,.28), 0 8px 18px rgba(51,169,95,.4); }
@keyframes wpRing {
  0%   { opacity: .55; box-shadow: 0 0 0 0 var(--wp); }
  100% { opacity: 0;   box-shadow: 0 0 0 22px var(--wp); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .roadmap__line path { stroke-dashoffset: 0; }
  .waypoint { transform: translate(-50%, -50%) scale(1); }
}
/* Farbige Kaesten pro Dienstleistung */
.ds-box {
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  align-items: center;
}
.ds-box--blue { background: #e7f3fb; border: 1px solid #cfe7f7; }
.ds-box--green { background: #e9f6ed; border: 1px solid #d0e9d7; }
@media (max-width: 760px) {
  /* Seitenabstand, damit der Kasten (und sein animierter Rahmen) nicht an der Bildschirmkante klebt */
  .ds-box { padding: 26px; max-width: calc(100% - 28px); margin-left: auto; margin-right: auto; }
}
.split h2 { margin-bottom: 18px; }
.split p { color: var(--grey); margin-bottom: 16px; }
.checklist { list-style: none; margin-top: 20px; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-weight: 500;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Why us (feature icons) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature {
  background: #fff;
  padding: 34px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.feature .icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}
.feature .icon svg { width: 32px; height: 32px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--grey); font-size: .98rem; }

/* "Was uns ausmacht" als Karten-Stapel (Handy) */
@media (max-width: 760px) {
  .features-vp { overflow: hidden; padding: 16px 0; }
  .features.stack-on {
    position: relative;
    display: block;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }
  .features.stack-on .feature {
    position: absolute;
    top: 0; left: 0; right: 0;
    margin: 0 auto;
    width: 90%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform .6s cubic-bezier(.34, 1.28, .5, 1), opacity .45s ease;
    will-change: transform, opacity;
  }
  .features.stack-on .feature.is-exiting {
    transition: transform .55s cubic-bezier(.5, 0, .75, 0), opacity .45s ease;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 54px 50px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 26px; font-size: 1.1rem; }

/* ---------- Page header (subpages) ---------- */
.page-hero {
  background: linear-gradient(rgba(23,44,60,.72), rgba(23,44,60,.66)), url("bilder/hero-hochhaus.jpg") center/cover no-repeat;
  color: #fff;
  padding: 96px 0 84px;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.page-hero h1 .hl { color: #4db8ef; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.member .avatar {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}
.member h3 { font-size: 1.15rem; margin-bottom: 6px; }
.member .role { color: var(--blue-dark); font-weight: 600; font-size: .95rem; }
.member .tag { color: var(--grey); font-size: .9rem; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 46px;
  align-items: start;
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.info-block { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-block:first-of-type { border-top: 0; padding-top: 0; }
.info-block .ic {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.info-block .ic svg { width: 22px; height: 22px; }
.info-block h3 { font-size: 1.05rem; margin-bottom: 3px; }
.info-block p, .info-block a { color: var(--grey); font-size: .98rem; margin: 0; }
.info-block a:hover { color: var(--blue-dark); }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
form input, form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-alt);
  transition: border .2s ease, background .2s ease;
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
form textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--grey-light); margin-top: 8px; }

.map-wrap {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-wrap--square {
  margin-top: 24px;
  aspect-ratio: 1 / 1;
  border: 4px solid var(--blue);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(47,156,216,.28);
}
.map-wrap--square iframe { height: 100%; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #c4ced7;
  padding: 60px 0 26px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo {
  background: #fff;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.footer__logo img { height: 42px; }
.footer p { color: #a9b4bf; font-size: .96rem; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a, .footer address a { color: #c4ced7; font-style: normal; }
.footer ul li a:hover, .footer address a:hover { color: var(--blue); }
.footer address { font-style: normal; color: #a9b4bf; line-height: 1.9; }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .9rem;
  color: #8a96a2;
}
.novein-credit { display: inline-flex; align-items: center; gap: 1px; }
.novein-credit a { display: inline-flex; align-items: center; }
.novein-logo { height: 30px; width: auto; display: block; opacity: .9; transition: opacity .2s ease; }
.novein-credit a:hover .novein-logo { opacity: 1; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: .95rem; line-height: 1.5; }
.form-status.is-ok { background: #e7f6ec; color: #1c7a3e; border: 1px solid #bfe6cc; display: flex; align-items: center; gap: 10px; }
.form-status.is-err { background: #fdecec; color: #b02a2a; border: 1px solid #f2c4c4; }
.form-status__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 50%; background: #1c7a3e; color: #fff;
  font-size: .8rem; font-weight: 700;
}
.footer__legal { display: inline-flex; gap: 18px; }
.footer__legal a { color: #8a96a2; }
.footer__legal a:hover { color: #cfd6dd; }
/* Handy: Copyright eigene Zeile, Impressum/Datenschutz + designed by novein auf gleicher Zeile */
@media (max-width: 640px) {
  .footer__bottom { justify-content: center; text-align: center; row-gap: 12px; column-gap: 16px; }
  .footer__bottom > span:first-child { flex: 0 0 100%; }
  .footer__legal { gap: 14px; }
  .footer__bottom .novein-logo { height: 24px; }
}
/* Rechtstexte (Impressum, Datenschutz) */
.legal-content { max-width: 780px; }
.legal-content h2 { margin: 32px 0 10px; font-size: 1.25rem; }
.legal-content p { color: var(--grey); margin-bottom: 12px; }
.legal-content a { color: var(--blue-dark); }
.legal-content a:hover { color: var(--blue); }
/* Kunden-Logo-Karussell auf dem Handy schneller laufen lassen */
@media (max-width: 760px) {
  .logos__track { animation-duration: 15s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .features { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Header: Logo mittig, rechts "Menue" mit Pfeil (aufklappbar) */
  .header {
    background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
    top: -1px;                 /* deckt haarfeinen Sub-Pixel-Spalt am oberen Rand ab (kein Flackern) */
  }
  .header__inner { height: 64px; padding-top: 1px; }
  .nav { top: 65px; }          /* Dropdown an die (um 1px verschobene) Header-Unterkante */
  .logo { left: 50%; transform: translate(-50%, -50%); }
  .logo img { height: 40px; }
  .burger {
    display: flex; flex-direction: row; align-items: center; gap: 7px;
    right: 18px; padding: 8px 2px 8px 12px;
  }
  .burger span { display: none; }
  .burger::before { content: "Menü"; color: var(--blue-dark); font-weight: 600; font-size: 1rem; }
  .burger::after {
    content: ""; width: 8px; height: 8px; margin-top: -4px;
    border-right: 2px solid var(--blue-dark); border-bottom: 2px solid var(--blue-dark);
    transform: rotate(45deg); transition: transform .25s ease;
  }
  .burger.open::after { transform: rotate(-135deg); margin-top: 3px; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line);
    padding: 8px 24px 18px;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav ul li { width: 100%; }
  .nav a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--blue-dark); font-weight: 600; }
  .nav a::after { display: none; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta a { display: inline-block; color: #fff !important; padding: 9px 22px; }
  .section { padding: 56px 0; }
  /* Hero kuerzer, Bild weniger lang gezogen */
  .hero { min-height: 50vh; text-align: left; padding: 22px 0 72px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: 1.7rem; margin-bottom: 12px; }
  .hero p { font-size: 1rem; margin-bottom: 22px; max-width: 100%; }
  .hero__actions { gap: 12px; }
  .cta-band { padding: 40px 26px; }
}

@media (max-width: 500px) {
  .grid-3, .features, .team-grid, .footer__grid, .stats { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
}

/* ---------- Team-Fotos ---------- */
.member { padding: 0; overflow: hidden; border: 2px solid var(--blue); box-shadow: 0 10px 26px rgba(47,156,216,.18); }
.member__photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--blue-soft); }
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform .4s ease;
}
.member:hover .member__photo img { transform: scale(1.05); }
.member__body { padding: 22px 18px 26px; }
.member__body h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* ---------- Referenzen Logo-Karussell ---------- */
.logos {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logosScroll 32s linear infinite;
  animation-play-state: paused; /* startet erst, wenn Logos geladen sind (konstantes Tempo, kein Ruckeln beim Laden) */
}
.logos.is-ready .logos__track { animation-play-state: running; }
/* Abstand als margin-right (nicht gap), damit translateX(-50%) pixelgenau auf eine Logo-Laenge zurueckspringt = nahtlose Schleife */
.logos__item { flex: 0 0 auto; margin-right: 70px; }
.logos__item img {
  height: 92px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .3s ease, opacity .3s ease;
}
.logos__item.is-center img { filter: grayscale(0); opacity: 1; }
@keyframes logosScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Google Bewertungen ---------- */
.reviews { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.reviews__summary {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
  position: sticky;
  top: 100px;
}
.g-logo { font-size: 1.7rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 6px; }
.g-logo .b{color:#4285F4}.g-logo .r{color:#EA4335}.g-logo .y{color:#FBBC05}.g-logo .g{color:#34A853}
.reviews__summary .rating { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 8px 0 4px; }
.stars { color: #FBBC05; font-size: 1.25rem; letter-spacing: 2px; }
.reviews__summary p { color: var(--grey); font-size: .95rem; margin: 8px 0 18px; }
.review-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 44px;
}
.review__name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.review__date { color: var(--grey-light); font-size: .82rem; }
.review .stars { font-size: 1rem; }
.review p { color: var(--grey); font-size: .96rem; margin: 0; }
.review__g { margin-top: auto; font-size: .8rem; color: var(--grey-light); display: flex; align-items: center; gap: 6px; }

@media (max-width: 920px) {
  .reviews { grid-template-columns: 1fr; }
  .reviews__summary { position: static; }
}
@media (max-width: 620px) {
  .review-cards { grid-template-columns: 1fr; }
}

/* ---------- Bewegter Nebel in blauen Bereichen ---------- */
.reviews-section, .cta-band, .page-hero, .hero { position: relative; }
.reviews-section, .cta-band, .page-hero { overflow: hidden; }
.reviews-section::before, .cta-band::before, .page-hero::before, .hero .fog {
  content: "";
  position: absolute;
  inset: -45%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 46% at 25% 35%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(46% 42% at 72% 58%, rgba(255,255,255,.12), transparent 70%),
    radial-gradient(38% 42% at 55% 82%, rgba(255,255,255,.10), transparent 70%);
  filter: blur(8px);
  animation: fogDrift 26s ease-in-out infinite alternate;
}
.reviews-section > *, .cta-band > *, .page-hero > .container { position: relative; z-index: 1; }
@keyframes fogDrift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.24); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-section::before, .cta-band::before, .page-hero::before, .hero .fog { animation: none; }
}

/* ---------- Bewertungen App-Design (Blau, animiert) ---------- */
.reviews-section { background: linear-gradient(165deg, #2f9cd8 0%, #1b6f9e 100%); padding: 50px 0 42px; }
.reviews-section .section-head { margin-bottom: 22px; }
.reviews-section .section-head .eyebrow { color: #dbeffb; }
.reviews-section .section-head h2 { color: #fff; }
.reviews-app { display: flex; justify-content: center; margin-bottom: 24px; }
.reviews-app__summary {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 20px 40px;
  text-align: center;
}
.reviews-marquee {
  overflow: hidden;
  padding: 14px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews-marquee__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  padding: 0 22px;
  animation: reviewsScroll 48s linear infinite;
}
.reviews-marquee .review {
  flex: 0 0 280px;
  width: 280px;
  border-radius: 18px;
  padding: 20px;
  transform-origin: center center;
  transform: scale(.86);
  will-change: transform, opacity;
}
.reviews-marquee .review p { font-size: .9rem; }
@keyframes reviewsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
@media (max-width: 500px) {
  .reviews-marquee .review { flex: 0 0 280px; width: 280px; }
  .reviews-app__summary { padding: 24px 26px; }
}
