/* =========================================================================
   mf.steintechnik — Entwurf
   Designsystem: warmes Anthrazit / Sandstein / Bronze-Terrakotta
   ========================================================================= */

/* ---------- Schriften (selbst gehostet, keine externen Aufrufe) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben */
  --ink: #211e1a;
  --ink-soft: #3a342d;
  --muted: #6e655b;
  --muted-light: #736a60;
  --line: #e4dbce;
  --line-strong: #cfc3b1;
  --paper: #fdfbf8;
  --sand: #f4eee5;
  --sand-deep: #eae0d2;
  --accent: #9a5a34;
  --accent-dark: #7c4728;
  --accent-tint: #f7ebe1;

  /* Typo */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Modulare Skala 1.25 (fluid) */
  --t--1: 0.8rem;
  --t-0: 1rem;
  --t-1: clamp(1.09rem, 0.4vw + 1rem, 1.25rem);
  --t-2: clamp(1.28rem, 0.85vw + 1.06rem, 1.5625rem);
  --t-3: clamp(1.5rem, 1.5vw + 1.1rem, 1.953rem);
  --t-4: clamp(1.75rem, 2.5vw + 1.1rem, 2.441rem);
  --t-5: clamp(2.05rem, 3.9vw + 1.05rem, 3.052rem);
  --t-6: clamp(2.4rem, 5.4vw + 0.95rem, 3.815rem);

  /* Raster & Rhythmus */
  --bund: clamp(1.25rem, 4vw, 2.5rem);
  --breite: 1200px;
  --sektion: clamp(4.5rem, 9vw, 8rem);
  --radius: 4px;
  --radius-gross: 10px;

  /* Bewegung & Tiefe */
  --tempo: 200ms;
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --schatten-s: 0 1px 2px rgba(33, 30, 26, 0.05), 0 2px 8px rgba(33, 30, 26, 0.05);
  --schatten-m: 0 2px 6px rgba(33, 30, 26, 0.06), 0 12px 28px rgba(33, 30, 26, 0.09);
  --schatten-l: 0 6px 14px rgba(33, 30, 26, 0.08), 0 26px 60px rgba(33, 30, 26, 0.14);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--t-0);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  text-wrap: balance;
}
h1 { font-size: var(--t-6); }
h2 { font-size: var(--t-5); }
h3 { font-size: var(--t-2); line-height: 1.25; }
h4 { font-size: var(--t-1); line-height: 1.3; }

p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Hilfsklassen ---------- */
.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--bund);
}
.huelle--schmal { max-width: 880px; }

.sektion { padding-block: var(--sektion); }
.sektion--sand { background: var(--sand); }
.sektion--ink { background: var(--ink); color: #cfc7bc; }
.sektion--ink h2, .sektion--ink h3 { color: var(--paper); }

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

.sprungmarke {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: var(--t--1);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--tempo) var(--easing);
}
.sprungmarke:focus { transform: translate(-50%, 0); color: var(--paper); }

/* Abschnittskopf */
.kopfzeile { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kopfzeile--mitte { text-align: center; margin-inline: auto; max-width: 44rem; }
.kopfzeile--mitte p { margin-inline: auto; }
.kopfzeile p { color: var(--muted); font-size: var(--t-1); }
.kopfzeile h2 { margin-bottom: 0.35em; }

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.marke::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.sektion--ink .marke { color: #c9915f; }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--t-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--tempo) var(--easing),
              color var(--tempo) var(--easing),
              border-color var(--tempo) var(--easing),
              transform var(--tempo) var(--easing),
              box-shadow var(--tempo) var(--easing);
}
.knopf svg { width: 1.15em; height: 1.15em; flex: none; }

.knopf--primaer {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--schatten-s);
}
.knopf--primaer:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--schatten-m);
}

.knopf--rand {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.knopf--rand:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.knopf--hell {
  background: var(--paper);
  color: var(--ink);
}
.knopf--hell:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.knopf--klein { padding: 0.6rem 1.05rem; font-size: var(--t--1); }

/* ---------- Entwurfs-Banner (Pflichtkennzeichnung, nicht ausblendbar) ---------- */
.entwurf-banner {
  background: var(--ink);
  color: #e6dfd4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.entwurf-banner__inhalt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.6rem var(--bund);
  max-width: var(--breite);
  margin-inline: auto;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
}
.entwurf-banner__punkt {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9915f;
}
.entwurf-banner strong { color: #fff; font-weight: 600; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 251, 248, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tempo) var(--easing), box-shadow var(--tempo) var(--easing);
}
.kopf--gescrollt {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(33, 30, 26, 0.05);
}
.kopf__reihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo__punkt { color: var(--accent); }

/* Bildlogo im Kopfbereich. Hoehe steuert die Groesse, die Breite folgt aus dem
   Seitenverhaeltnis der width/height-Attribute — so entsteht kein Layoutsprung. */
.logo--bild {
  align-items: center;
  flex: 0 0 auto;
}
.logo--bild img {
  display: block;
  width: auto;
  height: 3rem;
  transition: opacity var(--tempo) var(--easing);
}
.logo--bild:hover img { opacity: 0.82; }
@media (max-width: 22rem) {
  .logo--bild img { height: 2.5rem; }
}
.logo__zusatz {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 0.15rem;
}

.nav { display: none; }
.nav__liste {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__liste li { margin: 0; }
.nav__link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color var(--tempo) var(--easing);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tempo) var(--easing);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.kopf__aktionen { display: flex; align-items: center; gap: 0.6rem; }
.kopf__tel { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0 0.6rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--tempo) var(--easing);
}
.burger:hover { background: var(--sand); }
.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--tempo) var(--easing), opacity var(--tempo) var(--easing);
}
.burger[aria-expanded='true'] span:nth-child(1),
.burger[data-menue-schliessen] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2),
.burger[data-menue-schliessen] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3),
.burger[data-menue-schliessen] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobilmenü — im Ruhezustand vollständig entfernt (display:none) */
.mobilmenue { display: none; }
.mobilmenue.ist-offen {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding: 1.5rem var(--bund) 2.5rem;
  overflow-y: auto;
  animation: einblenden 220ms var(--easing);
}
@keyframes einblenden {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.mobilmenue__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  margin-bottom: 1.5rem;
}
.mobilmenue__liste { list-style: none; margin: 0 0 2rem; padding: 0; }
.mobilmenue__liste li { margin: 0; border-bottom: 1px solid var(--line); }
.mobilmenue__liste a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: var(--t-2);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobilmenue__aktionen { display: grid; gap: 0.75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 78%;
  background: linear-gradient(180deg, var(--sand) 0%, rgba(244, 238, 229, 0) 100%);
  z-index: -1;
}
.hero__raster {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__text { max-width: 36rem; }
.hero h1 {
  font-size: clamp(2.05rem, 3.5vw + 0.5rem, 3.05rem);
  margin-bottom: 0.5em;
}
.hero h1 .akzent {
  color: var(--accent);
  font-style: italic;
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 90;
}
.hero__unter {
  font-size: var(--t-1);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }
.hero__belege {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero__belege li { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.hero__belege svg { width: 1rem; height: 1rem; color: var(--accent); flex: none; }

.hero__bilder { position: relative; }
.hero__bild-haupt {
  position: relative;
  border-radius: var(--radius-gross);
  overflow: hidden;
  box-shadow: var(--schatten-l);
}
.hero__bild-haupt img { width: 100%; height: 100%; object-fit: cover; }
.hero__bild-neben {
  display: none;
  position: absolute;
  right: -1.5rem;
  bottom: -2rem;
  width: 42%;
  border-radius: var(--radius-gross);
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--schatten-m);
}
.hero__bild-neben img { width: 100%; height: auto; }
.hero__plakette {
  position: absolute;
  left: -1rem;
  top: 1.75rem;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.75rem 1.05rem;
  box-shadow: var(--schatten-m);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 11.5rem;
}
.hero__plakette b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Vorteilsband ---------- */
.band { background: var(--ink); color: #cfc7bc; }
.band__raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.band__zelle {
  background: var(--ink);
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
}
.band__zelle b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-1);
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.3rem;
}
.band__zelle span { font-size: 0.88rem; color: #a89e92; }

/* ---------- Leistungen ---------- */
.leistungen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-gross);
  overflow: hidden;
  transition: transform var(--tempo) var(--easing),
              box-shadow var(--tempo) var(--easing),
              border-color var(--tempo) var(--easing);
}
.kachel:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--schatten-m);
}
.kachel__bild {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 4 / 5;
}
.kachel__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--easing);
}
.kachel:hover .kachel__bild img { transform: scale(1.045); }
.kachel__bild::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 30, 26, 0) 45%, rgba(33, 30, 26, 0.42) 100%);
}
.kachel__text { padding: 1.4rem clamp(1.15rem, 2vw, 1.6rem) 1.6rem; }
.kachel__text h3 { margin-bottom: 0.4rem; }
.kachel__text p { font-size: 0.93rem; color: var(--muted); margin: 0; }

.kachel--akzent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fdf4ee;
  justify-content: center;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.kachel--akzent h3 { color: #fff; }
.kachel--akzent p { color: #fbf0e8; font-size: 0.95rem; }
.kachel--akzent ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: #fdf4ee;
}
.kachel--akzent li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.kachel--akzent li svg { width: 1rem; height: 1rem; margin-top: 0.28rem; flex: none; }
.kachel--akzent:hover { transform: translateY(-4px); box-shadow: var(--schatten-m); }

/* ---------- Material / Körnungen ---------- */
.material__raster {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
/* Neun Farbmuster gehen als 3x3 auf; bei zwei Spalten bliebe eines allein
   in der letzten Reihe stehen. */
.koernungen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}
@media (max-width: 30em) { .koernungen { grid-template-columns: repeat(2, 1fr); } }
.koernung { text-align: center; }
.koernung img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--paper);
  box-shadow: var(--schatten-s);
  transition: transform var(--tempo) var(--easing);
}
.koernung:hover img { transform: scale(1.03); }
.koernung figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Ablauf ---------- */
.ablauf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: schritt;
}
.schritt { position: relative; padding-top: 2.6rem; }
.schritt::before {
  counter-increment: schritt;
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.schritt::after {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: 0;
  width: 2.25rem;
  height: 1px;
  background: var(--line-strong);
}
.schritt h3 { font-size: var(--t-1); margin-bottom: 0.35rem; }
.schritt p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.sektion--ink .schritt p { color: #a89e92; }
.sektion--ink .schritt::after { background: rgba(255, 255, 255, 0.2); }
.sektion--ink .schritt::before { color: #c9915f; }

/* ---------- Über uns ---------- */
.betrieb__raster {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.betrieb__bild {
  border-radius: var(--radius-gross);
  overflow: hidden;
  box-shadow: var(--schatten-m);
}
.betrieb__bild img { width: 100%; height: 100%; object-fit: cover; }
.betrieb__inhaber {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.betrieb__signet {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.betrieb__inhaber b { display: block; color: var(--ink); font-size: 0.98rem; }
.betrieb__inhaber span { font-size: 0.85rem; color: var(--muted); }

.merkmale {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.merkmale li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.95rem;
}
.merkmale svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.24rem;
  color: var(--accent);
}
.merkmale b { display: block; }

/* ---------- Galerie ---------- */
.galerie {
  column-count: 2;
  column-gap: clamp(0.6rem, 1.4vw, 1.1rem);
}
.galerie__eintrag {
  break-inside: avoid;
  margin-bottom: clamp(0.6rem, 1.4vw, 1.1rem);
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
  display: block;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.galerie__eintrag img {
  width: 100%;
  height: auto;
  transition: transform 450ms var(--easing), filter var(--tempo) var(--easing);
  background: var(--sand-deep);
}
.galerie__eintrag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(33, 30, 26, 0);
  transition: background var(--tempo) var(--easing);
}
.galerie__eintrag:hover img { transform: scale(1.04); }
.galerie__eintrag:hover::after { background: rgba(33, 30, 26, 0.14); }

/* Lightbox */
.lupe {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: rgba(23, 21, 18, 0.95);
  color: var(--paper);
  overflow: hidden;
}
.lupe::backdrop { background: rgba(23, 21, 18, 0.9); }
.lupe__buehne {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100%;
  padding: clamp(3.25rem, 6vw, 4.5rem) clamp(0.75rem, 3vw, 3rem) clamp(1rem, 3vw, 2rem);
}
.lupe__bildbox { display: grid; place-items: center; min-height: 0; }
/* <picture> darf die Höhenbegrenzung nicht abfangen */
.lupe__bildbox picture { display: contents; }
.lupe__bildbox img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lupe__fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #b3a99c;
}
.lupe__bildunterschrift { max-width: 46ch; }
.lupe__zaehler { flex: none; font-variant-numeric: tabular-nums; }
.lupe__steuerung { display: flex; gap: 0.5rem; }
.lupe__knopf {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  cursor: pointer;
  transition: background var(--tempo) var(--easing), border-color var(--tempo) var(--easing);
}
.lupe__knopf:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }
.lupe__knopf svg { width: 1.15rem; height: 1.15rem; }
.lupe__zu {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 3vw, 3rem);
}

/* ---------- Kontakt ---------- */
.kontakt__raster {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.kontaktliste { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; }
/* min-width: 0 und ein erlaubter Umbruch: Die E-Mail-Adresse ist ein einziges
   unteilbares Wort und dehnte die Liste sonst über den Bildschirm — auf
   320-px-Geräten scrollte die ganze Seite seitlich weg. */
.kontaktliste li { display: flex; gap: 1rem; align-items: flex-start; margin: 0; min-width: 0; }
.kontaktliste li > div { min-width: 0; }
.kontaktliste a, .kontaktliste .wert { overflow-wrap: anywhere; }
.kontaktliste .symbol {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
}
.kontaktliste .symbol svg { width: 1.1rem; height: 1.1rem; }
.kontaktliste .bezeichnung {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.1rem;
}
.kontaktliste a, .kontaktliste .wert {
  font-size: var(--t-1);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.kontaktliste a:hover { color: var(--accent); text-decoration: underline; }
.kontaktliste .hinweis { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

.formular {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-gross);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--schatten-s);
}
.feld { margin-bottom: 1.15rem; }
.feld label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.feld .optional { font-weight: 400; color: var(--muted-light); }
.feld input,
.feld textarea,
.feld select {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color var(--tempo) var(--easing), box-shadow var(--tempo) var(--easing);
}
.feld textarea { resize: vertical; min-height: 8rem; }
.feld input:focus,
.feld textarea:focus,
.feld select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(154, 90, 52, 0.14);
}
.feld--paar { display: grid; gap: 1.15rem; }

.zustimmung {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.35rem;
}
.zustimmung input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--accent);
}
.formular__fuss {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted-light);
  line-height: 1.55;
}
.formular .knopf { width: 100%; }

.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Fußbereich ---------- */
.fuss {
  background: var(--ink);
  color: #a89e92;
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.9rem;
}
.fuss a { color: #d8d0c5; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss__raster {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.fuss__logo { color: var(--paper); margin-bottom: 0.9rem; }
.fuss__logo:hover { color: var(--paper); }
.fuss h4 {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.fuss li { margin: 0; }
.fuss__unten {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem 2rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #90867a;
}
.fuss__ersteller {
  color: #b3a99c;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid #c9915f;
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}
.fuss__ersteller a { color: #e6dfd4; }
.fuss__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- Mobile Aktionsleiste ---------- */
.aktionsleiste {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 24px rgba(33, 30, 26, 0.14);
}
.aktionsleiste a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.aktionsleiste a.ist-primaer { background: var(--accent); }
.aktionsleiste svg { width: 1.1rem; height: 1.1rem; }
body { padding-bottom: 3.5rem; }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding-block: clamp(3rem, 6vw, 5rem) var(--sektion); }
.rechtstext h1 { font-size: var(--t-5); margin-bottom: 0.6em; }
.rechtstext h2 {
  font-size: var(--t-2);
  margin-top: 2.5em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.rechtstext h3 { font-size: var(--t-1); margin-top: 2em; }
.rechtstext p, .rechtstext li { font-size: 0.97rem; }
.rechtstext__zurueck {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2rem;
  color: var(--muted);
}
.rechtstext__zurueck:hover { color: var(--accent); }
.rechtstext__zurueck svg { width: 1rem; height: 1rem; }
.datenblock {
  background: var(--sand);
  border-radius: var(--radius-gross);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2rem;
}
.datenblock p { margin-bottom: 0.4em; }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms var(--easing), transform 550ms var(--easing);
}
.js .reveal.sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Breakpoints
   ========================================================================= */
@media (min-width: 34em) {
  .feld--paar { grid-template-columns: 1fr 1fr; }
  .galerie { column-count: 2; }
}

@media (min-width: 48em) {
  .hero__raster { grid-template-columns: 1.05fr 0.95fr; }
  .hero__bild-neben { display: block; }
  .betrieb__raster { grid-template-columns: 0.92fr 1.08fr; }
  .material__raster { grid-template-columns: 1fr 1.1fr; }
  .galerie { column-count: 3; }
  .fuss__raster { grid-template-columns: 1.4fr 1fr 1fr; }
  .fuss__unten { grid-template-columns: 1fr auto; align-items: center; }
  .fuss__ersteller { grid-column: 1 / -1; }
}

@media (min-width: 62em) {
  .nav { display: block; }
  .burger { display: none; }
  .kopf__tel { display: inline-flex; }
  .aktionsleiste { display: none; }
  body { padding-bottom: 0; }
  .galerie { column-count: 4; }
  .kontakt__raster { grid-template-columns: 0.95fr 1.05fr; }
  .hero__plakette { left: -2.5rem; }
}

@media (min-width: 75em) {
  .hero__raster { grid-template-columns: 1fr 1fr; }
}
