/* ==========================================================================
   SCHWANDT BAU GmbH – Relaunch 2026
   Modernes, framework-freies Stylesheet (Custom Properties, Grid, Flexbox)
   ========================================================================== */

:root {
  --red: #e60003;
  --red-dark: #b80002;
  --dark: #16203A;
  --dark-soft: #23262b;
  --text: #393e41;
  --text-muted: #6b7076;
  --line: #e4e6e9;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .16);
  --fs-headline: clamp(2.4rem, 4.6vw, 3.45rem);
  --fs-headline-2: clamp(2.1rem, 4vw, 3rem);
  --fs-text: 1.22rem;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  /* Übersteher der Reveal-Animationen (translateX der Headlines) dürfen die
     Layout-Breite nicht aufweiten – "clip" wirkt auch auf Mobil-Safari
     zuverlässig, wo "hidden" auf dem Body allein nicht reicht */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  /* verhindert horizontales Scrollen durch die 100vw-Galerien
     (100vw schließt die Scrollbar-Breite mit ein) */
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-text);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(0,0,0,.06); }

/* width:100% nötig: als Flex-Kind des Headers würde der Container sonst auf
   Inhaltsbreite schrumpfen und das Logo stünde nicht bündig zu den Sektionen */
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 40px; width: auto; max-width: min(70vw, 320px); object-fit: contain; object-position: left center; }

.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-text);
  font-weight: 600;
  color: var(--dark);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--red); background: var(--bg-alt); }
.main-nav a.active { color: var(--red); }
.main-nav a.nav-cta { background: var(--red); color: #fff; margin-left: 8px; }
.main-nav a.nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform .3s, opacity .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}
/* Automatischer Bildwechsel: weiche Überblendung + langsamer Zoom,
   keine Steuerelemente */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: heroSlideZoom 9s ease-out forwards;
}

.mobile{display:none;}
.desktop{display:block;}

@keyframes heroSlideZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; animation: none !important; transform: none; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(10, 11, 13, .32) 0%, rgba(10, 11, 13, .35) 55%, rgba(10, 11, 13, .15) 100%);
}
.hero .container { position: relative; z-index: 2; width: 100%; padding-top: var(--header-h); }

.hero-kicker {
  display: inline-block;
  font-size: var(--fs-text);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: var(--fs-text);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  font-size: 1.35em;
  max-width: 640px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 1);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: var(--fs-text);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 8px auto 0;
  background: rgba(255, 255, 255, .6);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: var(--fs-text);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #fff; }

.section-head { max-width: 720px; margin-bottom: 52px; }
/* alle Sektionsköpfe linksbündig – die frühere Zentrierung ist abgeschafft */
.section-head.center { margin-inline: 0; text-align: left; }
.kicker {
  display: inline-block;
  font-size: var(--fs-text);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: var(--fs-text);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--text-muted); font-size: var(--fs-text); margin: 0; }
.section.dark .section-head p { color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   Über uns / Philosophie
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  /* Bild oben bündig zum Textblock */
  align-items: start;
}
.about-text p { margin: 0 0 18px; }
.about-text .claim {
  font-size: var(--fs-text);
  font-weight: 800;
  color: var(--dark);
  margin-top: 28px;
}
.about-text .claim .accent { color: var(--red); }

.about-media { position: relative; }
/* width:100%, damit auch kleinere Bilddateien die Spalte füllen */
.about-media img { width: 100%; height: auto; box-shadow: var(--shadow-lg); }

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
}
.usp {
  position:relative;
  background: var(--red);
  color: #fff;
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s;
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usp h3 { margin: 0 0 8px; font-size: var(--fs-text); color: #fff; }
.usp p { margin: 0; font-size: var(--fs-text); color: rgba(255, 255, 255, .88); }
.icon{position:absolute;height:25px;width:25px;top:15px;right:15px;}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */
.service { padding: 88px 0; }
.service:nth-of-type(odd) { background: var(--bg-alt); }

.service-head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.service-head h2 { font-size: var(--fs-text); margin: 0; font-weight: 800; line-height: 1.1;}

.service-claim {
  font-size: var(--fs-text);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.service-intro { max-width: 780px; color: var(--text-muted); margin: 0 0 53px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.service-tags li {
  font-size: var(--fs-text);
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 16px;
  color: var(--text);
}
.service:nth-of-type(odd) .service-tags li { background: #fff; }

.service h3.sub {
  font-size: var(--fs-text);
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

/* Behind the Build: gleicher Zusatzabstand zwischen Text und Galerie */
#behind .gallery { margin-top: 25px; }

/* Galerie: Panel-Ansicht — schmale Streifen, das aktive Motiv entfaltet
   sich großflächig. Steuerung direkt über die Streifen (Hover/Tap),
   Klick auf das offene Motiv öffnet die Lightbox. */
.gallery {
  display: flex;
  gap: 10px;
  height: min(62vh, 540px);
  /* Full-Bleed: Galerie läuft über die gesamte Fensterbreite,
     aus dem zentrierten Container ausgebrochen */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.gallery a {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-soft);
  transition: flex 1.6s cubic-bezier(.19, 1, .22, 1);
}
.gallery a.open { flex: 6; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s cubic-bezier(.19, 1, .22, 1);
}
.gallery a:not(.open) img { transform: scale(1.05); }
/* Farb-Balken (#0d3b66, 70 %) am unteren Bildrand, 50 px hoch */
.gallery a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  z-index: 1;
  background: rgba(13, 59, 102, .7);
  pointer-events: none;
}
/* Bildbeschreibung: linksbündig mit festem Abstand, weiße Schrift */
.gallery a .cap {
  position: absolute;
  left: 24px;
  bottom: 0;
  height: 50px;
  display: flex;
  align-items: center;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  max-width: calc(100% - 48px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s cubic-bezier(.19, 1, .22, 1), transform .6s cubic-bezier(.19, 1, .22, 1);
  pointer-events: none;
}
.gallery a.open .cap { opacity: 1; transform: none; }
/* roter Schrägstrich vor jeder Bildbeschreibung */
.gallery a .cap::before {
  content: "/ ";
  color: var(--red);
  font-weight: 700;
}
/* Großansicht-Button: transparent, weiße 2px-Outline, Plus exakt mittig
   (als zwei weiße Balken gezeichnet – geometrisch zentriert, kein Font-Versatz) */
.gallery a.open::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  background:
    linear-gradient(#fff, #fff) center / 2px 14px no-repeat,
    linear-gradient(#fff, #fff) center / 14px 2px no-repeat;
  opacity: 0;
  transition: opacity .35s;
}
.gallery a.open:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   Bau-DNA
   -------------------------------------------------------------------------- */
.dna-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.dna-grid p { margin: 0; color: var(--text-muted); font-size: var(--fs-text); line-height: 1.75; }
.dna-claim {
  margin: 40px 0 0;
  font-size: var(--fs-text);
  font-weight: 800;
  color: var(--dark);
}
.dna-claim .accent { color: var(--red); }
@media (max-width: 720px) {
  .dna-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 20px;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-card .avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-text);
  letter-spacing: .02em;
}
.team-card.lead-card .avatar { background: var(--red); }
.team-card h3 { margin: 0; font-size: var(--fs-text); line-height: 1.3; }
.team-card .role { font-size: var(--fs-text); color: var(--text-muted); }
.team-card .qual { font-size: var(--fs-text); color: var(--text-muted); font-style: italic; }
.team-card a.phone { font-size: var(--fs-text); font-weight: 600; white-space: nowrap; margin-left: auto; }

/* --------------------------------------------------------------------------
   Referenzen
   -------------------------------------------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.logo-grid a {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 192px;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s, opacity .3s, transform .2s, box-shadow .2s;
}
.logo-grid a:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
/* feste Höhe, damit auch kleine Logo-Dateien auf die doppelte Größe
   hochskalieren; object-fit hält die Proportionen */
.logo-grid img { height: 120px; width: auto; max-width: 100%; object-fit: contain; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: var(--fs-text); font-weight: 600; display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 0, 3, .12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-text); color: var(--text-muted); }
.checkbox-row input { width: auto; margin-top: 4px; }
.form-note { font-size: var(--fs-text); color: var(--text-muted); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { display: none; padding: 14px 18px; font-weight: 600; }
.form-status.ok { display: block; background: #e7f6ec; color: #1c7c3d; }
.form-status.error { display: block; background: #fdecec; color: var(--red-dark); }

.contact-info {
  background: var(--dark);
  color: #fff;
  padding: 36px;
}
.contact-info h3 { margin: 0 0 6px; font-size: var(--fs-text); }
.contact-info address { font-style: normal; margin: 0 0 24px; color: rgba(255, 255, 255, .85); }
.contact-info ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.contact-info li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .85); }
.contact-info li svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--red); }
.contact-info a { color: #fff; font-weight: 600; }
.contact-info a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: #16203A; color: rgba(255, 255, 255, .65); padding: 40px 0; font-size: var(--fs-text); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: rgba(255, 255, 255, .85); font-weight: 600; }
.site-footer a:hover { color: var(--red); }
.site-footer nav { display: flex; gap: 22px; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 10, .92);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  box-shadow: var(--shadow-lg);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 0;
  color: #fff;
  width: 52px;
  height: 52px;
  font-size: var(--fs-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lightbox button:hover { background: var(--red); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: var(--fs-text);
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
/* Headlines kommen zusätzlich von rechts nach links herein */
h1.reveal, h2.reveal { transform: translateX(70px); }
/* Hero: längere, ruhigere Einblendung */
.hero .reveal { transition-duration: 1.3s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Unterseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal-page { padding: calc(var(--header-h) + 60px) 0 80px; }
.legal-page h1 { font-size: var(--fs-text); margin: 0 0 30px; }
.legal-page .container { max-width: 860px; }
.legal-page h4 { margin-top: 2em; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  /* backdrop-filter macht den Header sonst zum Containing Block des fixed Overlays */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 17, .97);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 10px; }
  .main-nav a { color: #fff; font-size: var(--fs-text); }
  .main-nav a:hover { background: none; }
  .main-nav a.nav-cta { margin-left: 0; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }

  .mobile{display:block;}
  .desktop{display:none;}

  .hero .container {

    padding-top: 30vh;
  }

  .hero-actions .btn{
    padding:.5em .6em;font-size:.7em;
  }
  /* rote USP-Kacheln einspaltig untereinander */
  .usp-grid { grid-template-columns: 1fr; }
  /* Smartphone: horizontaler Swipe-Slider mit Snap statt Panels */
  .gallery {
    height: 260px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a,
  .gallery a.open {
    flex: 0 0 84vw;
    height: 100%;
    scroll-snap-align: center;
    transition: none;
  }
  .gallery a::before { display: block; }  /* blauer Layer bleibt auch mobil */
  .gallery a .cap,
  .gallery a.open .cap { opacity: 1; transform: none; left: 16px; bottom: 0;font-size: .7em; }
  .gallery a.open::after { display: none; } /* kein Großansicht-Hinweis */
  .gallery a:not(.open) img { transform: none; }
  .team-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }

  .icon{position:absolute;height:25px;width:25px;top:20px;right:20px;}

  .service {
    padding: 35px 0;
}
}

/* --------------------------------------------------------------------------
   Zwei-Größen-Typografie: --fs-headline für Headlines, --fs-text für alles
   andere. Hierarchie entsteht über Gewicht, Versalien und Farbe.
   -------------------------------------------------------------------------- */
.hero h1 { font-size: var(--fs-headline); }
.hero p.lead {
  font-size: 1em;

}
.section-head h2,
.service-head h2 { font-size: var(--fs-headline-2); }
/* Lightbox-Pfeile/Schließen sind Icon-Glyphen, keine Texte */
.lightbox button { font-size: 1.5rem; }

/* Namenskärtchen: Name einzeilig, Position kleiner darunter,
   Telefonnummer in Namensgröße */
.team-card h3 { font-size: 1rem; white-space: nowrap; }
.team-card .qual,
.team-card .role { font-size: .85rem; line-height: 1.25; }
/* Geschäftsführer-Karten: Qualifikation und Titel extrem dicht stapeln */
.team-card.lead-card .qual,
.team-card.lead-card .role { display: block; line-height: 1.05; }
.team-card.lead-card br { display: none; }
.team-card a.phone { font-size: 1rem; }
