/* =========================================================
   Stone Passion — style.css
   ========================================================= */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/quicksand-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/quicksand-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/quicksand-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  /* Farben */
  --cream: #FAF6F0;
  --ivory: #F1E9DD;
  --copper: #B8825E;
  --bronze: #8B5A36;
  --charcoal: #2A2420;
  --stone: #9C9284;
  --white: #FFFFFF;

  /* Typografie */
  --font-head: 'Quicksand', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  /* Abstände */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.75rem;
  --gap-lg: 3rem;
  --gap-xl: 5.5rem;

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --header-h: 81px; /* Höhe von .site-header (5rem + 1px Border), für #hero benötigt */

  --shadow-soft: 0 10px 30px rgba(42, 36, 32, 0.10);
  --shadow-card: 0 4px 16px rgba(42, 36, 32, 0.08);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0;
  color: var(--charcoal);
}

p {
  margin: 0;
  text-align: justify;
}

.service-grid p {
  text-align: left;
}

blockquote {
  text-align: justify;
}

section {
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.test-block {
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: 3rem;
  padding: 0 clamp(20px, 5vw, 48px)
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--charcoal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  transition: top .2s ease;
  z-index: 200;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: var(--bronze);
  margin: 0 0 14px;
  text-align: left;
}

.section-head {
  margin: 0 0 var(--gap-lg);
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.25;
}

.section-head p {
  margin-top: 14px;
  color: #544B43;
  font-size: 16.5px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow,
.section-head.center p {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 28px;
  border-radius: 30px;
  transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}

.btn-primary:hover {
  background: var(--bronze);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.btn-outline {
  background: transparent !important;
  color: var(--copper) !important;
  border-color: var(--copper) !important;
}

.btn-outline:hover {
  background: var(--copper) !important;
  color: #fff !important;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 36, 32, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
}

.main-nav a {
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.main-nav a:hover {
  color: var(--bronze);
  border-color: var(--copper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--charcoal);
}

.header-phone svg {
  width: 17px;
  height: 17px;
  stroke: var(--copper);
  flex-shrink: 0;
}

/* ---------- Sprachumschaltung ---------- */
.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(42, 36, 32, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--charcoal);
  transition: border-color .2s ease, background-color .2s ease;
}

.lang-switch-toggle:hover {
  border-color: var(--copper);
  background: rgba(184, 130, 94, 0.08);
}

.lang-switch[data-open="true"] .lang-switch-toggle {
  border-color: var(--copper);
  background: rgba(184, 130, 94, 0.08);
}

.lang-switch-toggle .lang-globe {
  width: 17px;
  height: 17px;
  stroke: var(--copper);
  flex-shrink: 0;
}

.lang-menu {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(42, 36, 32, 0.08);
  padding: 6px;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 110;
}

.lang-switch[data-open="true"] .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

.lang-menu a,
.lang-menu span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--charcoal);
}

.lang-menu a:hover {
  background: var(--ivory);
  color: var(--bronze);
}

.lang-menu li[aria-current="true"] a {
  color: var(--bronze);
  background: var(--ivory);
}

.lang-menu .lang-code {
  display: block;
  width: 22px;
  height: 16px;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(42, 36, 32, 0.15);
  line-height: 0;
}

.lang-menu .lang-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-menu-disabled span {
  color: var(--stone);
  cursor: default;
}

.lang-menu-disabled .lang-hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--stone);
  margin-left: auto;
}

.nav-toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background-color .2s ease;
}

.nav-toggle:hover {
  background: rgba(42, 36, 32, 0.06);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle::after {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(42, 36, 32, 0.15) 0%, rgba(42, 36, 32, 0.78) 100%),
    url('../img/hero-steinbruch.jpg') center 62% / cover no-repeat;
  color: #fff;
}

.hero-inner {
  padding-bottom: clamp(48px, 8vw, 96px);
  max-width: 850px;
}

.hero .eyebrow {
  color: #E9C9A8;
  font-size: clamp(17px, 4vw, 22px);
  margin-top: 2rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.16;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: #E9C9A8;
}

.hero-lede {
  font-size: clamp(16px, 3.6vw, 18px);
  color: #F1E9DD;
  max-width: 100%;
  margin-bottom: 34px;
  text-align: left;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   ÜBER MICH
   ========================================================= */
.about {
  /* Explizite Hintergrundfarbe (identisch zum body-Hintergrund):
     verhindert, dass der fixierte Hintergrund von #kontakt (siehe
     .contact::before weiter unten) durch diese Section "durchscheint",
     da .about sonst keinen eigenen (deckenden) Hintergrund hätte. */
  background: var(--cream);
  padding: var(--gap-xl) 0;
}

.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--copper);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 50%;
  width: 138px;
  height: 138px;
  box-sizing: border-box;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
}

.about-badge strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.test-block blockquote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.5;
  color: var(--bronze);
  margin: 0 0 22px;
  padding-left: 22px;
  border-left: 3px solid var(--copper);
  margin-top: 5rem;
  font-style: italic;
}

.about-body h2 {
  margin-bottom: 1rem;
  font-size: 23px;
}

.about-body p {
  margin-bottom: 16px;
  color: #4B4238;
}

.about-body p a {
  color: var(--bronze);
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.about-facts li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--ivory);
  color: var(--bronze);
  padding: 9px 16px;
  border-radius: 20px;
}

/* =========================================================
   LEISTUNGEN
   ========================================================= */
.services {
  padding: var(--gap-xl) 0;
  background: var(--ivory);
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--copper);
  fill: none;
  stroke-width: 1.6;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  color: #5C5248;
  line-height: 1.6;
}

/* =========================================================
   MATERIALIEN
   ========================================================= */
.materials {
  /* Siehe Kommentar bei .about: deckender Hintergrund verhindert das
     Durchscheinen des fixierten #kontakt-Hintergrunds (.contact::before). */
  background: var(--cream);
  padding: var(--gap-xl) 0;
}

.material-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
  margin-bottom: var(--gap-lg);
}

.material-intro p {
  margin-top: 14px;
  color: #544B43;
}

.material-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.material-chips li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  border: 1.5px solid var(--copper);
  color: var(--bronze);
  padding: 8px 16px;
  border-radius: 20px;
}

.material-areas {
  color: #5C5248;
  font-size: 15px;
}

.material-areas strong {
  color: var(--charcoal);
}

/* Materialschiene — Signature-Element */
.material-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
}

.material-rail figure {
  position: relative;
  margin: 0;
  height: 250px;
  overflow: hidden;
}

.material-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.material-rail figure:hover img {
  transform: scale(1.06);
}

.material-rail figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   GALERIE
   ========================================================= */
.gallery {
  padding: var(--gap-xl) 0;
  background: var(--ivory);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid .tall {
  grid-row: span 2;
}

.gallery-grid .wide {
  grid-column: span 2;
}

/* =========================================================
   KONTAKT
   ========================================================= */
.contact {
  position: relative;
  padding: var(--gap-xl) 0;
}

/* iOS/iPadOS Safari unterstützt "background-attachment: fixed" nicht
   (das Bild scrollt dort einfach mit dem Inhalt mit). Deshalb wird der
   fixierte Hintergrund stattdessen über ein ::before-Pseudo-Element mit
   "position: fixed" nachgebaut, das hinter dem Inhalt liegt. Das erzeugt
   auf allen Geräten (inkl. iOS Safari) exakt dasselbe Verhalten und
   Ergebnis wie zuvor "background-attachment: fixed" unter Windows/Chrome. */
.contact::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../img/contact-steinbruch.jpg');
  background-size: cover;
  background-position: center;
}

.contact .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 52px);
  width: min(500px, 100%);
}

.contact-card .eyebrow {
  color: #E9C9A8;
}

.contact-card h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 14px;
}

.contact-card p {
  color: #D9CFC2;
  margin-bottom: 28px;
  font-size: 15.5px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color .2s ease;
}

.contact-list a:hover {
  color: var(--copper);
}

.contact-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--copper);
  flex-shrink: 0;
}

.contact-region {
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-region img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--charcoal);
  color: #C9BFB2;
  padding: var(--gap-lg) 0 var(--gap-md);
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
}

.footer-brand img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #9A9082;
}

.footer-legal a:hover {
  color: #fff;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   =========================================================
   Einheitliches Breakpoint-System (Desktop-first, max-width),
   ausgerichtet an den laut StatCounter (Stand 2026) weltweit
   häufigsten Bildschirmbreiten für Desktop/Laptop, Tablet und
   Smartphone. Reihenfolge im Code: absteigend von groß nach
   klein — so bleibt nachvollziehbar, was auf welcher Gerätegruppe
   passiert, und neue Regeln lassen sich am richtigen Breakpoint
   ergänzen statt eine neue Regel irgendwo anzuhängen.

     1600px+  Große Desktop-/Breitbild-Monitore
     ..1600   Standard-Desktop/Laptop (Basis-Stile, ungequeried)
     1100px   Tablets im Querformat (z.B. iPad 1024px) und
              schmale Laptop-Fenster → Hauptnavigation wird zum
              Offcanvas-/Hamburger-Menü. (Bewusst etwas oberhalb
              von 1024px, da Logo + 5 Nav-Punkte + Telefonnummer
              + Sprachwahl sonst ab ca. 1030–1079px umbrechen.)
      900px   Wende-Breakpoint für 4-spaltige Karten-/Bildraster
              (Leistungen, Materialschiene, Galerie) → 2 Spalten;
              Über-mich/Kontakt wechseln von 2 auf 1 Spalte
      768px   Tablets im Hochformat (häufigste Tablet-Breite,
              z.B. iPad 768×1024) — Feinschliff für Header/About
      640px   Große Smartphones/Phablets im Querformat, kleine
              Tablets — Bildraster/Materialschiene kompakter
      480px   Smartphones (Basis-Breakpoint „Phone") — Header-
              Elemente reduzieren sich, CTAs stapeln sich
      400px   Kleine/ältere Smartphones (schmalste verbreitete
              Breiten, u.a. iPhone SE) — letzter Feinschliff
   ========================================================= */

/* ---------- Große Desktops / breite Monitore ---------- */
@media (min-width: 1600px) {
  :root {
    --max-width: 1320px;
  }

  body {
    font-size: 17px;
  }
}

/* ---------- Tablet-Querformat / kleine Laptops: Hauptnavigation wird Offcanvas-Menü ---------- */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--cream);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    padding: 32px clamp(20px, 6vw, 40px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s linear 0s;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    font-size: 19px;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(42, 36, 32, 0.08);
  }

  .main-nav a {
    display: block;
    padding: 16px 2px;
  }

  .nav-toggle {
    display: block;
  }

  .material-rail {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Tablets / kleine Laptop-Fenster: Karten- & Bildraster auf 2 Spalten ---------- */
@media (max-width: 900px) {
  :root {
    --gap-xl: 4rem;
  }

  .service-grid,
  .material-rail,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 380px;
    margin: 0 auto;
    grid-row: 2;
  }

  .gallery-grid .wide {
    grid-column: span 1;
  }
}

/* ---------- Tablet-Hochformat: Header- & About-Feinschliff ---------- */
@media (max-width: 768px) {
  .brand img {
    height: 48px;
  }

  .about-facts {
    justify-content: center;
  }

  .about-badge {
    width: 112px;
    height: 112px;
    bottom: -18px;
    left: -18px;
    padding: 0 14px;
    font-size: 11px;
  }

  .about-badge strong {
    font-size: 23px;
  }
}

/* ---------- Große Smartphones / kleine Tablets: kompaktere Bildraster, gestapelte CTAs ---------- */
@media (max-width: 640px) {
  :root {
    --gap-lg: 2.25rem;
  }

  .material-rail figure {
    height: 190px;
  }

  .gallery-grid {
    grid-auto-rows: 160px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Smartphones ---------- */
@media (max-width: 480px) {
  :root {
    --gap-xl: 3rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .material-rail {
    grid-template-columns: 1fr;
  }

  .material-rail figure {
    height: 220px;
  }

  .header-phone span {
    display: none;
  }

  .lang-switch-toggle {
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ---------- Kleine / ältere Smartphones (u.a. iPhone SE) ---------- */
@media (max-width: 400px) {
  .section-head h2 {
    font-size: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-badge {
    width: 92px;
    height: 92px;
    bottom: -14px;
    left: -14px;
    font-size: 10px;
  }

  .about-badge strong {
    font-size: 19px;
  }
}

/* =========================================================
   RECHTSTEXTE (Impressum / Datenschutz)
   ========================================================= */
.legal-hero {
  padding: 64px 0 8px;
}

.legal-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.legal-hero .updated {
  font-size: 13.5px;
  color: var(--stone);
}

.legal-content {
  padding: 24px 0 var(--gap-xl);
}

.legal-content h2 {
  font-size: 21px;
  margin: 46px 0 16px;
  padding-top: 4px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--bronze);
  margin: 26px 0 10px;
}

.legal-content p {
  color: #4B4238;
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.legal-content ul li {
  color: #4B4238;
  font-size: 15.5px;
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.legal-content a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--copper);
}

.legal-content a.btn {
  text-decoration: none;
}

.legal-content strong {
  color: var(--charcoal);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14.5px;
}

.legal-content table th,
.legal-content table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(42, 36, 32, 0.08);
  color: #4B4238;
  vertical-align: top;
}

.legal-content table th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--charcoal);
  width: 38%;
}

.review-note {
  background: var(--ivory);
  border-left: 3px solid var(--copper);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 0 0 40px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #6B6156;
}

.review-note strong {
  color: var(--bronze);
}
/* ===== 404-Seiten: Footer immer am unteren Rand, Inhalt zentriert ===== */
body.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.page-404 main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-404 .error-404 {
  width: 100%;
  padding: 0;
}

.error-404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(40px, 8vw, 96px);
}

.error-404-inner .eyebrow,
.error-404-inner p {
  text-align: center;
}

.error-404-inner h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
}

.error-404-text {
  max-width: 560px;
  margin: 0 auto 28px;
}

.error-404-links {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.8;
}

body.page-404 .site-footer {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .error-404-links { margin-top: 24px; }
}

@media (max-width: 480px) {
  .error-404-inner {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .error-404-text {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .error-404-cta .btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }
  .error-404-links {
    font-size: 14px;
  }
}

.error-404-cta { width: 100%; text-align: center; }
