/* ═══════════════════════════════════════════════
   Thomas Hübner – Gas- & Wasserinstallation Celle
   CSS – Clean Minimal White · DM Sans
   ═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --blue:         #1f4fad;
  --blue-dark:    #143680;
  --blue-light:   #2d5fc4;
  --blue-pale:    #f0f5ff;
  --blue-mid:     #dde8fa;
  --red:          #cc1f26;
  --red-light:    #e02a31;

  --white:        #ffffff;
  --off-white:    #f8f9fb;
  --gray-50:      #f4f5f7;
  --gray-100:     #eaecf0;
  --gray-200:     #d1d5db;
  --gray-500:     #6b7280;
  --gray-700:     #374151;
  --text:         #0f172a;
  --text-muted:   #64748b;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --transition:   .2s ease;
  --max-w:        1140px;
  --header-h:     72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 80px 0; }

/* ════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.logo img {
  height: 50px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}
.site-nav {
  display: none;
  gap: 2rem;
  list-style: none;
}
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 2px;
  background: var(--blue);
  transition: right var(--transition);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a:hover::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.btn-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--red);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.btn-phone:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-phone svg { width: 14px; height: 14px; flex-shrink: 0; }
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  border-top: 1px solid var(--gray-100);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav .btn-phone { font-size: 1rem; padding: .75rem 2rem; }

/* ════════════════════════════════════════════════
   HERO – Aurora Background
════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--blue) 30%, var(--blue-light) 100%);
  z-index: 2;
}

/* Aurora blobs */
.aurora-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.aurora-blob--1 {
  width: 600px; height: 600px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, #bfdbfe 0%, transparent 70%);
  animation: aurora1 12s ease-in-out infinite alternate;
}
.aurora-blob--2 {
  width: 500px; height: 500px;
  top: 10%; right: -80px;
  background: radial-gradient(circle, #a5f3fc 0%, transparent 70%);
  animation: aurora2 10s ease-in-out infinite alternate;
}
.aurora-blob--3 {
  width: 700px; height: 400px;
  bottom: -100px; left: 20%;
  background: radial-gradient(circle, #c7d2fe 0%, transparent 70%);
  animation: aurora3 14s ease-in-out infinite alternate;
}
.aurora-blob--4 {
  width: 400px; height: 400px;
  top: 30%; left: 35%;
  background: radial-gradient(circle, #bae6fd 0%, transparent 70%);
  animation: aurora4 9s ease-in-out infinite alternate;
  opacity: 0.25;
}
.aurora-blob--5 {
  width: 350px; height: 350px;
  bottom: 5%; right: 15%;
  background: radial-gradient(circle, #fecaca 0%, transparent 70%);
  animation: aurora5 11s ease-in-out infinite alternate;
  opacity: 0.2;
}
@keyframes aurora1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes aurora2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 80px) scale(1.1); }
}
@keyframes aurora3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.2); }
}
@keyframes aurora4 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, -40px) scale(0.9); }
}
@keyframes aurora5 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -30px) scale(1.15); }
}

/* Hero content */
.hero-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.hero-content {
  flex: 1;
  max-width: 560px;
}
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.hero-title .accent { color: var(--blue); }
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 500px;
  line-height: 1.75;
  font-weight: 400;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--gray-100);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
}
.trust-badge svg { color: var(--blue); width: 15px; height: 15px; flex-shrink: 0; }

/* Card */
.hero-card {
  width: 340px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 8px 40px rgba(31,79,173,.1), 0 2px 12px rgba(0,0,0,.06);
}
.hero-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: .5rem 0 .75rem;
}
.hero-card-sub {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}
.hero-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .95rem 1.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(31,79,173,.3);
}
.hero-card-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31,79,173,.4);
}
.hero-card-note {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  .hero-card { width: 100%; }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--blue);
  color: #fff;
  padding: .8rem 1.6rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(31,79,173,.25);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31,79,173,.3);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: transparent;
  color: var(--text);
  padding: .8rem 1.6rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--gray-100);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
}
.trust-badge svg { color: var(--blue); width: 15px; height: 15px; flex-shrink: 0; }

/* ════════════════════════════════════════════════
   LEISTUNGEN
════════════════════════════════════════════════ */
#leistungen { background: var(--off-white); }
.leistungen-header {
  text-align: center;
  margin-bottom: 2.75rem;
}
.leistungen-header .section-subtitle { margin: 0 auto; }
.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.leistung-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.leistung-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.leistung-icon {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.leistung-icon svg { width: 22px; height: 22px; }
.leistung-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.leistung-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════
   ÜBER UNS – helles Blau-Weiß
════════════════════════════════════════════════ */
#ueber-uns { background: var(--blue-pale); }
.ueber-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.ueber-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin: .875rem 0 2rem;
  line-height: 1.75;
}
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: flex;
  gap: 1.125rem;
  padding-bottom: 1.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.timeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 5px;
}
.timeline-item.future .timeline-dot {
  background: transparent;
  border: 2px dashed var(--blue);
  width: 10px; height: 10px;
}
.timeline-connector {
  width: 1.5px;
  flex: 1;
  background: var(--blue-mid);
  min-height: 32px;
  margin-top: 4px;
}
.timeline-item:last-child .timeline-connector { display: none; }
.timeline-year {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .15rem;
}
.timeline-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.timeline-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ueber-visual { display: flex; flex-direction: column; gap: .875rem; }
.photo-placeholder {
  aspect-ratio: 4/3;
  background: var(--white);
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--gray-500);
  font-size: .85rem;
  text-align: center;
}
.photo-placeholder svg { width: 36px; height: 36px; opacity: .35; }
.ueber-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.ueber-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-sm);
  padding: 1rem .75rem;
  text-align: center;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ════════════════════════════════════════════════
   PARTNER
════════════════════════════════════════════════ */
#partner { background: var(--white); padding: 60px 0; overflow: hidden; }
.partner-header { text-align: center; margin-bottom: 2rem; }
.partner-header .section-title { font-size: 1.4rem; }
.partner-marquee {
  overflow: hidden;
  position: relative;
  padding: .5rem 0;
}
.partner-marquee::before,
.partner-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.partner-marquee::before {
  left: 0;
  background: linear-gradient(to right, #fff 40%, transparent);
}
.partner-marquee::after {
  right: 0;
  background: linear-gradient(to left, #fff 40%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .partner-marquee::before,
  .partner-marquee::after { width: 40px; }
  .partner-logo img { height: 38px; }
  .partner-logo img[src*="Hoesch"],
  .partner-logo img[src*="hansa"] { height: 28px; }
  .partner-logo { padding: 0 .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 1.25rem;
}
.partner-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter var(--transition);
}
.partner-logo img[src*="Hoesch"],
.partner-logo img[src*="hansa"] {
  height: 34px;
}
.partner-logo img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ════════════════════════════════════════════════
   KONTAKT
════════════════════════════════════════════════ */
#kontakt { background: var(--off-white); }
.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.kontakt-lead {
  font-size: .975rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}
.kontakt-details { display: flex; flex-direction: column; gap: .875rem; }
.kontakt-row { display: flex; align-items: flex-start; gap: .875rem; }
.kontakt-row-icon {
  width: 34px; height: 34px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.kontakt-row-icon svg { width: 15px; height: 15px; }
.kontakt-row-text { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.kontakt-row-text strong { display: block; color: var(--text); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.kontakt-row-text a:hover { color: var(--blue); }
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 1.25rem;
  transition: background var(--transition), color var(--transition);
}
.map-btn:hover { background: var(--blue); color: #fff; }
.map-btn svg { width: 14px; height: 14px; }

/* Formular */
.kontakt-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; letter-spacing: -.01em; }
.form-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.form-group { margin-bottom: .875rem; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: .7rem .95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,79,173,.1);
}
.form-control.error { border-color: var(--red); }
.form-control::placeholder { color: var(--gray-500); font-size: .9rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.form-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  padding: .825rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-top: .375rem;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.form-submit:hover:not(:disabled) { background: var(--blue-light); transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-submit .spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: none;
}
.form-submit.loading .btn-label { display: none; }
.form-submit.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message {
  margin-top: .875rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: none;
}
.form-message.success { display: block; background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.form-message.error { display: block; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.site-footer {
  background: #1e293b;
  color: rgba(255,255,255,.45);
  padding: 1.75rem 0;
  border-top: 3px solid var(--blue);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
  text-align: center;
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: .78rem; }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
  .ueber-inner { grid-template-columns: 1fr 1fr; }
  .kontakt-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 1024px) {
  .leistungen-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Referenzen ─────────────────────────────────── */
#referenzen {
  padding: 5rem 0;
  background: var(--off-white);
}
#referenzen .section-subtitle {
  margin: 0.75rem auto 0;
  text-align: center;
}
/* ── Infinite Scroll Gallery ─────────────────────── */
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.referenzen-scroll-outer {
  margin-top: 2.5rem;
  overflow: hidden;
  mask: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.referenzen-scroll-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

.referenzen-scroll-track:hover {
  animation-play-state: paused;
}

.referenz-card {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.referenz-card:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.referenz-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.referenz-card figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .referenz-card { width: 260px; height: 260px; }
}
@media (min-width: 900px) {
  .referenz-card { width: 300px; height: 300px; }
}

/* ── Lightbox ───────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-caption {
  color: rgba(255,255,255,0.75);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 1rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }


/* ── Kontakt ────────────────────────────────────── */
#kontakt {
  background: #0c1a2e;
  padding: 100px 0;
}
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.kontakt-left .eyebrow { color: #7dd3fc; }
.kontakt-heading {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: .5rem 0 1.25rem;
}
.kontakt-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 380px;
}
.kontakt-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--blue);
  color: #fff;
  padding: .9rem 1.8rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(31,79,173,.4);
}
.kontakt-phone-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31,79,173,.5);
}
.kontakt-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
}
.kontakt-detail-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.kontakt-detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-align: right;
  line-height: 1.5;
}
a.kontakt-detail-value:hover { color: #7dd3fc; }
.kontakt-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.kontakt-map-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.kontakt-map-link:hover { color: #7dd3fc; }
@media (max-width: 768px) {
  .kontakt-layout { grid-template-columns: 1fr; gap: 3rem; }
  .kontakt-lead { max-width: 100%; }
}

/* ── Hero Logo Watermark & Tagline ──────────────── */
.hero-logo-bg {
  position: absolute;
  right: 160px;
  bottom: 40px;
  width: 660px;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-logo-bg img {
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .hero-logo-bg {
    width: 320px;
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    opacity: 0.06;
  }
}

/* ════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS (≤ 767px)
════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Reduce section padding */
  section { padding: 52px 0; }
  #kontakt { padding: 60px 0; }

  /* Hero */
  #hero { min-height: auto; }
  .hero-split { padding-top: 1.25rem; padding-bottom: 2rem; gap: 1.25rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { display: none; }
  .hero-trust { display: none; }
  .hero-content { text-align: center; }

  /* Kontakt dark section */
  .kontakt-heading { font-size: 2rem; }
  .kontakt-layout { gap: 2.5rem; }
}

/* ════════════════════════════════════════════════
   MOBILE HEADER (≤ 480px)
════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Hide phone number text – show icon only so header fits */
  .header-cta .btn-phone .phone-label { display: none; }
  .header-cta .btn-phone { padding: .5rem .7rem; min-height: 44px; }
  .logo img { max-width: 160px; }
}

/* ════════════════════════════════════════════════
   MOBILE UX OPTIMIERUNGEN
════════════════════════════════════════════════ */

/* form-row single column auf Mobile */
@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Kontakt-Details: stacking auf kleinen Screens */
@media (max-width: 480px) {
  .kontakt-detail { flex-direction: column; gap: .2rem; align-items: flex-start; }
  .kontakt-detail-value { text-align: left; }
}

/* Lightbox Touch-Targets ≥44px */
@media (max-width: 767px) {
  .lightbox-prev,
  .lightbox-next {
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
  }
  .lightbox-close {
    top: 1rem; right: 1rem;
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
  }
}

/* Aurora Blobs: kleiner + weniger auf Mobile */
@media (max-width: 767px) {
  .aurora-blob--1 { width: 280px; height: 280px; }
  .aurora-blob--2 { width: 240px; height: 240px; }
  .aurora-blob--3 { width: 300px; height: 180px; }
  .aurora-blob--4, .aurora-blob--5 { display: none; }
  .aurora-blob { opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none !important; }
  .referenzen-scroll-track { animation: none !important; }
  .marquee-track { animation: none !important; }
}

/* Hero Card: kompakter + Beschreibungstext ausblenden auf Mobile */
@media (max-width: 767px) {
  .hero-card { padding: 1.75rem 1.5rem 1.5rem; }
  .hero-card-sub { display: none; }
}


/* Kontakt: sekundärer Formular-Link */
.kontakt-form-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.kontakt-form-link:hover { color: #7dd3fc; }


