/* =============================================================
   TROCKENBAU HÄUSLER — Hauptstylesheet
   Mobile-first · Kein Framework · DSGVO-konform
============================================================= */

/* -------------------------------------------------------------
   0. FONTS (lokal gehostet, kein externer Request)
------------------------------------------------------------- */
@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm-serif-display-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v9-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v9-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3-v9-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------
   1. CUSTOM PROPERTIES
------------------------------------------------------------- */
:root {
  /* Primärfarben (vom Logo) */
  --navy:       #2D2B7F;
  --red:        #D94A1E;
  --lightblue:  #A8CBE3;

  /* Hintergründe & Neutrale */
  --bg:         #F7F6F3;
  --bg-dark:    #1E1C4F;
  --bg-darker:  #16143c;
  --text:       #1A1A1A;
  --text-light: #F7F6F3;
  --muted:      #5A5A6E;
  --border:     #D9D7D2;

  /* Abstände */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-xxl:  6rem;

  /* Layout */
  --container:  1140px;
  --nav-height: 72px;

  /* Typografie */
  --font-head:  'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  /* Übergänge */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur:        0.3s;
}

/* -------------------------------------------------------------
   2. RESET & BASIS
------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

/* -------------------------------------------------------------
   3. TYPOGRAFIE
------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* -------------------------------------------------------------
   4. CONTAINER & LAYOUT
------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

/* -------------------------------------------------------------
   5. BUTTONS
------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(217, 74, 30, 0.35);
}

.btn--primary:hover {
  background-color: #c03e18;
  box-shadow: 0 4px 20px rgba(217, 74, 30, 0.45);
}

.btn--ghost {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* -------------------------------------------------------------
   6. SECTION TYPOGRAPHY
------------------------------------------------------------- */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-xs);
}

.section-eyebrow--light {
  color: var(--lightblue);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.section-title--light {
  color: var(--text-light);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
}

.section-lead--light {
  color: rgba(247, 246, 243, 0.75);
}

.section-header {
  margin-bottom: var(--space-xl);
}

/* -------------------------------------------------------------
   7. NAVIGATION
------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: transparent;
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.nav.is-scrolled {
  background-color: rgba(30, 28, 79, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--nav-height);
  padding-inline: var(--space-md);
  max-width: var(--container);
  margin-inline: auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav__brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #fff;
  white-space: nowrap;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--dur) var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover {
  color: #fff;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  transition: background-color var(--dur) var(--ease);
  flex-shrink: 0;
}

.nav__cta:hover {
  background-color: #c03e18;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 8px; /* Touch-Target mind. 44px */
  color: #fff;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-Menü offen */
.nav__links.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: rgba(30, 28, 79, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-lg) var(--space-md);
  gap: var(--space-md);
  border-top: 1px solid rgba(168, 203, 227, 0.2);
}

.nav__links.is-open .nav__link {
  font-size: 1.25rem;
  padding-block: 0.5rem;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: flex;
  }
  .nav__toggle {
    display: none;
  }
  .nav__inner {
    padding-inline: var(--space-lg);
  }
}

/* -------------------------------------------------------------
   8. HERO
------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a285f 45%, #1a3a5c 100%);
  overflow: hidden;
}

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

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Bild spiegeln: Mitarbeiter links sichtbar, Autos rechts unter Overlay */
  transform: scaleX(-1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(30, 28, 79, 0.88) 0%,
    rgba(30, 28, 79, 0.75) 50%,
    rgba(30, 28, 79, 0.65) 100%
  );
}

/* Gradient-Fallback ist bereits über background-color: var(--bg-dark) gesetzt */

.hero__content {
  position: relative;
  z-index: 1;
  padding-inline: var(--space-md);
  padding-block: calc(var(--nav-height) + var(--space-xl)) var(--space-xl);
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}

.hero__logo-wrap {
  margin-bottom: var(--space-md);
}

.hero__logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lightblue);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lightblue);
  margin-bottom: var(--space-sm);
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(247, 246, 243, 0.8);
  max-width: 520px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(168, 203, 227, 0.12);
  border: 1px solid rgba(168, 203, 227, 0.28);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lightblue);
  margin-bottom: var(--space-sm);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color var(--dur) var(--ease);
}

.hero__scroll:hover {
  color: rgba(255,255,255,0.9);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Mobile: Bild oben (relativ), Text auf Navy-Grund darunter */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: var(--nav-height);
    background-color: var(--bg-dark);
  }

  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: 56vw;
    min-height: 200px;
    max-height: 320px;
    flex-shrink: 0;
  }

  .hero__media picture {
    height: 100%;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(30, 28, 79, 0.1) 0%,
      rgba(30, 28, 79, 0.5) 75%,
      var(--bg-dark) 100%
    );
  }

  .hero__content {
    padding-block: var(--space-md) var(--space-xl);
    padding-inline: var(--space-md);
  }

  .hero__logo {
    width: 56px;
    height: 56px;
  }

  .hero__scroll {
    display: none;
  }

  .hero__tagline {
    max-width: 100%;
  }

  /* Buttons auf Mobile stapeln, volle Breite */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  /* Titel auf sehr kleinen Screens etwas zurücknehmen */
  .hero__title {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
}

@media (min-width: 768px) {
  .hero__content {
    padding-inline: var(--space-lg);
  }
  .hero__logo {
    width: 100px;
    height: 100px;
  }
}

/* -------------------------------------------------------------
   9. LEISTUNGEN
------------------------------------------------------------- */
.leistungen {
  padding-block: var(--space-xxl);
  background-color: var(--bg);
}

.leistungen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 560px) {
  .leistungen__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .leistungen__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.leistung-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

@media (min-width: 560px) {
  .leistung-card {
    padding: var(--space-lg);
  }
}

.leistung-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 43, 127, 0.12);
  border-color: var(--lightblue);
}

.leistung-card:hover::before {
  transform: scaleX(1);
}

.leistung-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(168, 203, 227, 0.2);
  border-radius: 8px;
  margin-bottom: var(--space-md);
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.leistung-card:hover .leistung-card__icon {
  background-color: var(--red);
  color: #fff;
}

.leistung-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (min-width: 900px) {
  .leistung-card__title {
    font-size: 1.05rem;
  }
}

.leistung-card__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   10. TEAM
------------------------------------------------------------- */
.team {
  padding-block: var(--space-xxl);
  background-color: #fff;
}

.team__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .team__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
  }
}

.team__image-wrap {
  position: relative;
}

.team__photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background-color: var(--lightblue);
}

.team__image-deco {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  background-color: var(--red);
  border-radius: 4px;
  z-index: -1;
  display: none;
}

@media (min-width: 560px) {
  .team__image-deco {
    display: block;
  }
}

.team__content .section-title {
  margin-bottom: var(--space-md);
}

.team__text {
  color: var(--muted);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.team__facts {
  margin-block: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team__fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.team__fact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(217, 74, 30, 0.1);
  border-radius: 50%;
  color: var(--red);
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   11. FAQ
------------------------------------------------------------- */
.faq {
  padding-block: var(--space-xxl);
  background-color: #fff;
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl) var(--space-xxl);
}

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

.faq__item {
  padding-left: var(--space-md);
  border-left: 3px solid var(--red);
}

.faq__question {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.faq__answer {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* -------------------------------------------------------------
   12. KONTAKT
------------------------------------------------------------- */
.kontakt {
  padding-block: var(--space-xxl);
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Dekoratives Rautenmuster im Hintergrund */
.kontakt::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: rgba(168, 203, 227, 0.06);
  transform: rotate(45deg);
  pointer-events: none;
}

.kontakt::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 240px;
  height: 240px;
  background: rgba(217, 74, 30, 0.05);
  transform: rotate(45deg);
  pointer-events: none;
}

.kontakt .section-header {
  margin-bottom: var(--space-xl);
}

.kontakt__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

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

  /* Karte spannt volle Breite unter den zwei Boxen */
  .kontakt__map {
    grid-column: 1 / -1;
  }
}

/* Telefon-Block */
.kontakt__phones-heading,
.kontakt__info-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lightblue);
  margin-bottom: var(--space-md);
}

.kontakt__phone-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.kontakt__phone-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-md);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 203, 227, 0.15);
  border-radius: 6px;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.kontakt__phone-link:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(168, 203, 227, 0.35);
}


.kontakt__phone-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.55);
}

.kontakt__phone-number {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.kontakt__cta-btn {
  width: 100%;
  justify-content: center;
}

/* Info-Block */
.kontakt__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.kontakt__info-block {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(168, 203, 227, 0.1);
}

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

.kontakt__email-link {
  font-size: 1rem;
  color: rgba(247, 246, 243, 0.85);
  word-break: break-all;
  transition: color var(--dur) var(--ease);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(247, 246, 243, 0.3);
}

.kontakt__email-link:hover {
  color: #fff;
  text-decoration-color: var(--red);
}

.kontakt__address,
.kontakt__hours {
  font-size: 1rem;
  color: rgba(247, 246, 243, 0.8);
  line-height: 1.7;
}

.kontakt__address-region {
  font-size: 0.85rem;
  color: rgba(247, 246, 243, 0.5);
}

/* Karte */
.kontakt__map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(168, 203, 227, 0.15);
}

.kontakt__map-embed iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  filter: saturate(0.85) brightness(0.92);
}

@media (min-width: 768px) {
  .kontakt__map-embed iframe {
    height: 280px;
  }
}

.kontakt__map-external {
  display: block;
  padding: 0.6rem var(--space-sm);
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(168, 203, 227, 0.8);
  letter-spacing: 0.03em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  text-align: center;
}

.kontakt__map-external:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--lightblue);
}

/* -------------------------------------------------------------
   13. FOOTER
------------------------------------------------------------- */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(168, 203, 227, 0.1);
  padding-block: var(--space-lg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer__logo {
  width: 36px;
  height: 36px;
  opacity: 0.85;
}

.footer__name {
  font-family: var(--font-head);
  font-size: 1rem;
  color: rgba(247, 246, 243, 0.7);
}

.footer__nav {
  display: flex;
  gap: var(--space-md);
}

.footer__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(247, 246, 243, 0.6);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(247, 246, 243, 0.4);
}

.footer__credit {
  color: rgba(168, 203, 227, 0.6);
  transition: color var(--dur) var(--ease);
}

.footer__credit:hover {
  color: var(--lightblue);
}

/* -------------------------------------------------------------
   14. STICKY CTA (Mobile)
------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(30, 28, 79, 0.98), rgba(30, 28, 79, 0));
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background-color: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(217, 74, 30, 0.5);
  transition: background-color var(--dur) var(--ease);
}

.sticky-cta__btn:hover {
  background-color: #c03e18;
}

/* Sticky CTA nur auf Mobile zeigen */
@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* -------------------------------------------------------------
   15. SCROLL-TO-TOP + TRUST BADGE
------------------------------------------------------------- */
.scroll-top-group {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.scroll-top-group.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--navy);
  border: 1px solid rgba(168, 203, 227, 0.25);
  border-radius: 100px;
  padding: 0.28rem 0.7rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lightblue);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(30, 28, 79, 0.3);
}

.scroll-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--navy);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(30, 28, 79, 0.35);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.scroll-top-btn:hover {
  background-color: var(--red);
  transform: translateY(-2px);
}

/* Auf Mobile: nicht zeigen (sticky CTA belegt den unteren Rand) */
@media (max-width: 767px) {
  .scroll-top-group {
    display: none;
  }
}

/* -------------------------------------------------------------
   16. FADE-IN ANIMATION
   Nur aktiv wenn JS geladen ist (html.js-Klasse).
   Ohne JS (Googlebot, Screen Reader, JS deaktiviert): alle
   Elemente sofort sichtbar — kein opacity:0 im Initial-State.
------------------------------------------------------------- */
html.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gestaffelte Delays für Grid-Kinder */
.leistungen__grid .fade-in:nth-child(1) { transition-delay: 0s; }
.leistungen__grid .fade-in:nth-child(2) { transition-delay: 0.07s; }
.leistungen__grid .fade-in:nth-child(3) { transition-delay: 0.14s; }
.leistungen__grid .fade-in:nth-child(4) { transition-delay: 0.21s; }
.leistungen__grid .fade-in:nth-child(5) { transition-delay: 0.28s; }
.leistungen__grid .fade-in:nth-child(6) { transition-delay: 0.35s; }
.leistungen__grid .fade-in:nth-child(7) { transition-delay: 0.42s; }
.leistungen__grid .fade-in:nth-child(8) { transition-delay: 0.49s; }

/* -------------------------------------------------------------
   15. PRINT
------------------------------------------------------------- */
@media print {
  .nav, .sticky-cta, .hero__scroll { display: none; }
  .hero { min-height: auto; padding-block: 2rem; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* -------------------------------------------------------------
   16. REDUZIERTE BEWEGUNG
------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .fade-in {
    opacity: 1;
    transform: none;
  }
}
