@import url("fonts.css");

/* =========================================================
   Möhricke Holz- und Bautenschutz — Trockenbau
   Designsprache adaptiert von banhmivietnam.xyz
   Palette: Creme / Holzton / Rot / Grün, Asap Condensed + Poppins
   ========================================================= */

:root {
  --brand: #f5ecd7;
  --bg-body: var(--brand);
  --surface: #d4a373;
  --surface-red: #bc4749;
  --surface-green: #6a994e;
  --text-primary: #000000;
  --text-reverse: var(--brand);
  --glb-pad: 1.5rem;
  --glb-col-gap: 1.5rem;
  --viewport-height: 100dvh;
  --maxw: 82rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--bg-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
}
h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}
h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--surface-red);
}

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

section {
  width: 100%;
  padding: var(--glb-pad);
}

::selection {
  background-color: #000;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.spacer {
  width: 100%;
  height: clamp(5rem, 12vw, 12rem);
}

/* ---------- Buttons ---------- */
.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 10rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: 2px solid #000;
}
.btn-solid {
  background-color: #000;
  color: var(--brand);
}
.btn-solid:hover {
  background-color: var(--surface-red);
  border-color: var(--surface-red);
  color: var(--brand);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  color: #000;
}
.btn-outline:hover {
  background-color: #000;
  color: var(--brand);
  transform: translateY(-2px);
}
.btn-hint {
  font-weight: 400;
  opacity: 0.65;
  font-size: 0.85rem;
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 9999;
  background: #000;
  pointer-events: none;
}

/* ---------- Preloader ---------- */
.preload {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: var(--viewport-height);
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--brand);
  overflow: hidden;
}
.preload .bg-circle {
  width: 150rem;
  height: 150rem;
  border-radius: 999rem;
  background-color: var(--surface);
  position: absolute;
  z-index: 0;
  transform: scale(0);
}
.preload-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.preload-content h2 {
  font-size: clamp(2rem, 7vw, 4.5rem);
}
.preload-content span {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ---------- Navigation (Hero-Top, 5-Spalten-Raster) ---------- */
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--glb-col-gap);
  width: 100%;
  align-self: start;
}
/* Linke Seite als Einheit. Beide Aussenseiten bekommen flex-basis 0 und
   denselben Wachstumsfaktor — dadurch werden sie exakt gleich breit und
   der Hashtag in der Mitte sitzt wirklich mittig. Vorher zaehlte die
   Wortmarke zur linken Seite dazu und schob ihn nach rechts. */
.nav-side {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  flex: 1 1 0;
  min-width: 0;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  flex: none;
}

/* Wortmarke oben links */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.brand img {
  width: 5.2rem;
  height: auto;
  display: block;
}
.brand span {
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover {
  opacity: 0.75;
}
.nav-group.right {
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: 0;
}
.navlink {
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--surface-red);
  transition: width 0.25s ease;
}
.navlink:hover::after,
.navlink.is-active::after {
  width: 100%;
}
.hero-tag {
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Mobile-Menü */
.menu-mobile {
  display: none;
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  cursor: pointer;
}
.navmobile-wrap {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 150;
  top: 0;
  right: 0;
  width: 13rem;
}
.navmobile-wrap.is-open {
  display: flex;
}
.navmobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 3.5rem 1.5rem 1.5rem 1.5rem;
  background-color: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.navmobile a {
  font-weight: 600;
}
.navmobile a:hover {
  color: var(--text-reverse);
}
.navmobile-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

/* Fixed Menü-Button (erscheint beim Scrollen) */
.fixed-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 120;
  background: #000;
  color: var(--brand);
  border-radius: 10rem;
  transform: translateX(160%);
  transition: transform 0.25s ease;
  cursor: pointer;
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fixed-menu.is-appear {
  transform: translateX(0);
}

/* ---------- Kopfbereich mit Logo-Wasserzeichen ---------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}
.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}
.logo-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(138vw, 1875px);
  max-width: none;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.page-hero .logo-watermark {
  top: 56%;
  width: min(117vw, 1500px);
  opacity: 0.06;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: var(--viewport-height);
  gap: 1rem;
}
.hero-mid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--glb-col-gap);
  width: 100%;
  align-items: center;
}
.hero-h1 {
  font-size: clamp(2.75rem, 10vw, 9rem);
  align-self: center;
  justify-self: end;
}
.hero-h1.right {
  justify-self: start;
  font-size: clamp(2rem, 6.4vw, 5.5rem);
  line-height: 0.86;
  text-align: left;
}
/* Zusammenhängende Fassung — auf dem Desktop nicht im Weg */
.hero-h1.nur-mobil {
  display: none;
}
.hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(34vw, 26rem);
  position: relative;
  aspect-ratio: 1 / 1;
}
.hero-circle {
  width: 100%;
  height: 100%;
  border-radius: 999rem;
  background-color: var(--surface);
  position: absolute;
  inset: 0;
}
/* Bilderkarussell als Hintergrund des Kopfbereichs */
.hero > .hero-photos {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photos {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 5.4s ease-out;
  will-change: opacity, transform;
}
.hero-photo.is-active {
  opacity: 1;
  transform: scale(1);
}
/* Abdunkelung, damit die Schrift auf jedem Foto lesbar bleibt */
.hero-photos::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.8) 100%),
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
}

/* Wortmarke im Kreis */
.hero-logo {
  position: absolute;
  width: 64%;
  height: auto;
  z-index: 1;
}

/* Feiner Punktring um die Scheibe — reine Zier, keine Zeitanzeige */
/* Keine CSS-Drehung auf dem Träger — die Einblendung setzt hier eine
   eigene Transformation, beides zusammen würde sich gegenseitig aufheben.
   Die Drehung des Blattes sitzt eine Ebene tiefer auf .saw-blade. */
.hero-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.hero-ring circle {
  fill: none;
  transform-origin: 50% 50%;
}
/* Sägeblatt: massiver Körper, 24 Zähne mit ausgerundeten Spanlücken */
.saw-blade {
  transform-origin: 50% 50%;
  animation: sawspin 30s linear infinite;
}
.saw-body {
  fill: rgba(0, 0, 0, 0.32);
  stroke: none;
  stroke-linejoin: round;
}
.saw-ring {
  fill: none;
  stroke: rgba(0, 0, 0, 0.16);
  stroke-width: 0.4;
}

/* Rechtslauf: die steilen Spanflächen zeigen in Laufrichtung */
@keyframes sawspin {
  to {
    transform: rotate(360deg);
  }
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr minmax(0, 28rem) 1fr;
  gap: var(--glb-col-gap);
  width: 100%;
  align-items: end;
}
.hero-b1 {
  align-self: end;
  justify-self: start;
  max-width: 16rem;
  font-size: 0.9rem;
}
.hero-b2 {
  text-align: center;
  width: 100%;
  justify-self: center;
}
.hero-b3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  align-self: end;
  font-size: 0.9rem;
  white-space: nowrap;
}
.hero-b3 .dot {
  width: 8px;
  height: 8px;
  border-radius: 999rem;
  background: var(--surface-red);
  animation: pulse 1.6s infinite ease-in-out;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.5;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
  background: #000;
  color: var(--brand);
  padding: 0.9rem 0;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scrollx 28s linear infinite;
}
.marquee-track span {
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "◆";
  margin-left: 3rem;
  color: var(--surface);
}
@keyframes scrollx {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Section-Kopf ---------- */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.eyebrow {
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--surface-red);
}
.sec-head p {
  max-width: 42rem;
}

/* ---------- Leistungs-Kacheln ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 2px solid #000;
  border-radius: 3px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface);
}
.card .num {
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--surface-red);
}
.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.card li::before {
  content: "→ ";
  color: var(--surface-green);
  font-weight: 700;
}

/* ---------- Sticky Ablauf ---------- */
.steps-wrap {
  width: 100%;
}
.step {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 2px solid #000;
  align-items: start;
}
.step:last-child {
  border-bottom: 2px solid #000;
}
.step .step-num {
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--surface);
}
.step h3 {
  margin-bottom: 0.35rem;
}

/* ---------- Zahlenband ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem;
  background: var(--surface);
  border-radius: 3px;
  padding: 2.5rem;
}
.fact {
  text-align: center;
}
.fact strong {
  display: block;
  font-family: "Asap Condensed", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
}
.fact span {
  font-size: 0.9rem;
}

/* ---------- Galerie ---------- */
.gallery {
  columns: 4;
  column-gap: 1rem;
}
.gallery figure {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid #000;
  cursor: zoom-in;
  background: #000;
}
.gallery img {
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.gallery figure:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}
.gallery-teaser figure {
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid #000;
  aspect-ratio: 4 / 5;
}
.gallery-teaser img {
  height: 100%;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: min(90vw, 60rem);
  max-height: 85vh;
  width: auto;
  border-radius: 3px;
  border: 3px solid var(--brand);
}

/* ---------- Split-Sektion (Bild + Text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split-media {
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid #000;
  aspect-ratio: 4 / 5;
}
.split-media img {
  height: 100%;
}
.split-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
/* Textblock ohne Bild — mittig gesetzt */
.split-body.solo {
  align-items: center;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

/* Nur fuer Screenreader und Suchmaschinen, optisch nicht vorhanden */
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Sprunglink — nur sichtbar, wenn er den Fokus hat */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.9rem 1.4rem;
  background: #000;
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Einzugsgebiet ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}
.area {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 1.5rem;
}
.area h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  margin-bottom: 0.6rem;
}
.area p {
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.faq details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 3rem 1.5rem 0;
  position: relative;
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq summary:hover {
  color: var(--surface-red);
}
.faq-a {
  padding: 0 3rem 1.75rem 0;
  max-width: 52rem;
}
.faq-a p {
  margin-bottom: 0.75rem;
}

/* ---------- CTA-Band ---------- */
.cta-band {
  background: #000;
  color: var(--brand);
  border-radius: 3px;
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cta-band h2 {
  color: var(--brand);
}
.cta-band .btn-solid {
  background: var(--brand);
  color: #000;
  border-color: var(--brand);
}
.cta-band .btn-solid:hover {
  background: var(--surface-red);
  border-color: var(--surface-red);
  color: var(--brand);
}
.cta-band a.tel {
  color: var(--surface);
  font-family: "Asap Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

/* ---------- Kontakt / Formular ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.infobox {
  background: var(--surface);
  border-radius: 3px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.infobox dl {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
}
.infobox dt {
  font-weight: 600;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
label {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
input,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 2px solid #000;
  border-radius: 2px;
  background: #fff;
}
input:focus,
textarea:focus {
  border-color: var(--surface-red);
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.85rem;
}
.check input {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  flex: none;
  margin-top: 0.15rem;
}
.map-static {
  border: 2px solid #000;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* ---------- Impressum ---------- */
.legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}
.legal h3 {
  margin-bottom: 0.75rem;
}
.legal p,
.legal dl {
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer {
  background: #000;
  color: var(--brand);
  padding: clamp(3rem, 6vw, 5rem) var(--glb-pad) 2rem;
  margin-top: 4rem;
}
footer a {
  color: var(--brand);
}
footer a:hover {
  color: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--maxw);
  margin-inline: auto;
}
.footer-grid h3 {
  color: var(--surface);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer-brand h2 {
  color: var(--brand);
  font-size: clamp(2rem, 5vw, 3rem);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 236, 215, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Seitenkopf für Unterseiten ---------- */
.page-head {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding-bottom: 2rem;
}
.page-head h1 {
  font-size: clamp(2.5rem, 8vw, 6.5rem);
}
.page-head p {
  max-width: 40rem;
}

/* ---------- Animation Startzustand ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gallery {
    columns: 3;
  }
}

@media (max-width: 900px) {
  .nav-group {
    display: none;
  }
  .hero-tag {
    display: none;
  }
  .hero-tag.mobile-keep {
    display: block;
    text-align: left;
    font-size: 1rem;
  }
  .menu-mobile {
    display: block;
  }
  .hero-mid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
  }
  /* Mobil bleibt die linke Seite so schmal wie ihr Inhalt — die
     Gleichverteilung gilt nur für den Desktop. */
  .nav-side {
    flex: none;
  }

  /* Geteilte Fassung raus, zusammenhängende rein */
  .hero-h1 {
    display: none;
  }
  .hero-h1.nur-mobil {
    display: block;
    justify-self: center;
    text-align: center;
    font-size: clamp(2.1rem, 11vw, 3.6rem);
    line-height: 0.95;
  }
  .hero-img {
    width: min(70vw, 20rem);
    order: -1;
  }
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    justify-items: center;
    text-align: center;
  }
  .hero-b1,
  .hero-b2,
  .hero-b3 {
    justify-self: center;
    align-self: center;
    text-align: center;
  }
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    columns: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --glb-pad: 1rem;
  }
  .gallery {
    columns: 1;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .infobox dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
  .infobox dt {
    margin-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-photo {
    transition: none;
    transform: none;
  }
  .saw-blade {
    animation: none;
  }
}
