/* baureiniger.ch — Immobilien & Bauprojekte, hellblau */
:root {
  --color-bg: #eef6fc;
  --color-bg-deep: #e0f0fa;
  --color-surface: #ffffff;
  --color-text: #0c1929;
  --color-muted: #5c6b7a;
  --color-accent: #3b82f6;
  --color-accent-light: #93c5fd;
  --color-accent-hover: #2563eb;
  --color-accent-soft: rgba(59, 130, 246, 0.14);
  --color-border: #cfe4f4;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(12, 25, 41, 0.08);
  --shadow-lg: 0 24px 64px rgba(30, 64, 175, 0.12);
  --max: 1180px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.has-cookie-banner {
  padding-bottom: 120px;
}

@media (min-width: 640px) {
  body.has-cookie-banner {
    padding-bottom: 100px;
  }
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveal */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 246, 252, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(240px, 55vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .logo img {
    height: 44px;
    max-width: 280px;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease-out), transform 0.2s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  color: #fff;
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-accent-soft);
  border-color: transparent;
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1.02rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-bg);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  /* über Seiteninhalt, aber unter Cookie-Banner (1000); nicht im Header: backdrop-filter würde fixed falsch begrenzen */
  z-index: 200;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.85rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.nav-mobile .btn-primary {
  margin-top: 0.5rem;
  text-align: center;
}

/* Hero — Vollbild-Video + Text (Startseite), Inhalt vertikal zentriert */
.hero-video {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c1929;
  box-sizing: border-box;
  /* top, right, bottom, left — mehr Luft von links */
  padding: calc(var(--header-h) + 0.75rem) 1.25rem 2rem clamp(2rem, 5.5vw, 3.5rem);
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(12, 25, 41, 0.85) 0%,
    rgba(30, 64, 175, 0.5) 48%,
    rgba(12, 25, 41, 0.78) 100%
  );
  pointer-events: none;
}

.hero-video__content {
  position: relative;
  z-index: 2;
  flex: 0 1 var(--max);
  width: 100%;
  max-width: var(--max);
  padding: 0;
  text-align: left;
  box-sizing: border-box;
  transform: translateY(-1.75rem);
}

@media (max-width: 640px) {
  .hero-video__content {
    transform: translateY(-1rem);
  }
}

.hero-video .hero-animate > * {
  animation: fade-up 0.85s var(--ease-out) backwards;
}

.hero-video .hero-tagline {
  color: #93c5fd;
}

.hero-video h1 {
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero-video .hero-lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
}

.hero-video .hero-trust {
  color: rgba(255, 255, 255, 0.85);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.hero-video .hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-video .hero-trust__ic {
  flex-shrink: 0;
  opacity: 0.92;
}

.hero-video .hero-trust strong {
  color: #fff;
}

.hero-video .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-video .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero-video.is-reduced .hero-video__media {
  display: none;
}

.hero-video.is-reduced .hero-video__bg {
  background: var(--hero-poster, #1e3a5f) center / cover no-repeat;
}

/* Stats unter Hero */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3.25rem;
  position: relative;
  z-index: 3;
  margin-top: -2rem;
}

@media (max-width: 900px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -0.5rem;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
}

.stat-card__label {
  font-size: 0.84rem;
  color: var(--color-muted);
  margin: 0.1rem 0 0;
}

/* Qualitätssiegel */
.siegel-section {
  padding: 3.5rem 1.25rem 4rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  border-top: 1px solid var(--color-border);
}

.siegel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .siegel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .siegel-grid {
    grid-template-columns: 1fr;
  }
}

.siegel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.25s;
}

.siegel-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.siegel-card__badge {
  width: 62px;
  height: 62px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-accent-soft), rgba(147, 197, 253, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
  border: 2px solid rgba(59, 130, 246, 0.28);
}

.siegel-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
}

.siegel-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Kundenstimmen */
.testimonial-section {
  padding: 4rem 1.25rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  left: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
}

.testimonial-card blockquote {
  margin: 0 0 1.1rem;
  padding-top: 0.35rem;
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.testimonial-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
  color: #f59e0b;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.94rem;
  margin: 0;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0.1rem 0 0;
}

/* Warum wir — Icon-Kacheln */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.25rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.section-alt .why-card {
  background: var(--color-surface);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.why-card .card-icon {
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Hero — full-bleed feel */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #dbeafe 0%, #eef6fc 45%, #f0f9ff 100%);
}

.hero-wrap::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(147, 197, 253, 0.45) 0%, transparent 65%);
  animation: hero-glow 8s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wrap::before {
    animation: none;
    opacity: 0.6;
  }
}

.hero {
  position: relative;
  padding: 2.5rem 1.25rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-animate > * {
  animation: fade-up 0.85s var(--ease-out) backwards;
}

.hero-animate > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-animate > *:nth-child(2) {
  animation-delay: 0.18s;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent-hover);
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin: 0 0 1.75rem;
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero-trust strong {
  color: var(--color-text);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.hero-visual:hover img {
  transform: scale(1.04);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 25, 41, 0.45) 100%);
  pointer-events: none;
}

.hero-float-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 2;
  animation: float-soft 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-card {
    animation: none;
  }
}

.hero-float-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-accent-hover);
  font-size: 1.05rem;
}

.hero-float-card span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* 80 / 20 Leistungs-Split */
.split-section {
  padding: 4rem 1.25rem;
}

.split-section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.split-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.split-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.split-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.split-80-20 {
  display: grid;
  grid-template-columns: 5fr 1.25fr;
  gap: 1.25rem;
  align-items: stretch;
  min-height: 420px;
}

@media (max-width: 960px) {
  .split-80-20 {
    grid-template-columns: 1fr;
    min-height: unset;
  }
}

.card-bau {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.card-bau:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-bau-media {
  position: relative;
  flex: 1;
  min-height: 280px;
}

.card-bau-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.card-bau:hover .card-bau-media img {
  transform: scale(1.05);
}

.card-bau-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  z-index: 2;
}

.card-bau-body {
  padding: 1.75rem 1.75rem 1.85rem;
  position: relative;
  z-index: 1;
  background: var(--color-surface);
}

.card-bau-body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
}

.card-bau-body p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 52ch;
}

.split-secondary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-mini {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.card-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-mini-media {
  height: 120px;
  flex-shrink: 0;
}

.card-mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-mini-body {
  padding: 1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-mini-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.card-mini-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card-mini-body p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  flex: 1;
  line-height: 1.5;
}

.card-mini-body a {
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

@media (max-width: 960px) {
  .split-secondary {
    flex-direction: row;
  }

  .card-mini {
    flex: 1;
  }

  .card-mini-media {
    height: 100px;
  }
}

@media (max-width: 560px) {
  .split-secondary {
    flex-direction: column;
  }
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.35s var(--ease-out), transform 0.3s;
}

.section-alt .card {
  background: var(--color-surface);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-pad {
  padding: 1.75rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.card-thumb {
  height: 160px;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s var(--ease-out);
}

.card:hover .card-thumb img {
  transform: scale(1.06);
}

/* Image strip */
.img-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .img-strip {
    grid-template-columns: 1fr;
  }
}

.img-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.img-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.img-strip figure:hover img {
  transform: scale(1.05);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 40%, #60a5fa 100%);
  color: #fff;
  padding: 3.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 0.5rem;
  position: relative;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-band .btn-primary {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
}

.cta-band .btn-primary:hover {
  background: #eff6ff;
  color: #1e40af;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 1.15rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--color-accent-hover);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1.15rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  padding-right: 2rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #0c1222 100%);
  color: #94a3b8;
  padding: 3rem 1.25rem 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent-light);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -12px 40px rgba(12, 25, 41, 0.12);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.cookie-banner p strong {
  color: var(--color-text);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions .btn {
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
}

/* Legal pages */
.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
}

.legal-doc .legal-updated {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 2rem;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc code {
  font-size: 0.88em;
  background: var(--color-accent-soft);
  padding: 0.12em 0.45em;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}

/* Page hero */
.page-hero {
  padding: 2.5rem 1.25rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.page-hero .lead {
  color: var(--color-muted);
  margin: 0;
  max-width: 60ch;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

/* Service blocks */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 800px) {
  .service-block {
    grid-template-columns: 1fr;
  }
}

.service-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.service-block ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.service-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/11;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-img--focus-top img {
  object-position: top center;
}

.service-img--kontakt img {
  object-position: 58% center;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-card address {
  font-style: normal;
  line-height: 1.8;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.form-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.form-consent input {
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: #eff6ff;
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius);
  color: #1e40af;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* Services page: secondary pair */
.services-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .services-secondary-grid {
    grid-template-columns: 1fr;
  }
}

.services-secondary-grid .card-mini {
  min-height: 100%;
}

.services-secondary-grid .card-mini-media {
  height: 180px;
}

h2.service-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
