/* ==========================================================
   Metallbau Bassauer – Gestaltung der gesamten Webseite
   Farben und Schriften werden hier zentral festgelegt.
   ========================================================== */

@font-face { font-family: 'Poppins'; font-weight: 300; font-display: swap; src: url(schriften/pxiByp8kv8JHgFVrLDz8Z1xlEA.ttf) format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(schriften/pxiEyp8kv8JHgFVrJJfedw.ttf) format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(schriften/pxiByp8kv8JHgFVrLGT9Z1xlEA.ttf) format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(schriften/pxiByp8kv8JHgFVrLEj6Z1xlEA.ttf) format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(schriften/pxiByp8kv8JHgFVrLCz7Z1xlEA.ttf) format('truetype'); }

:root {
  --dunkel: #131518;        /* Kopfzeile, Fußzeile, dunkle Abschnitte */
  --dunkel-2: #1d2025;
  --dunkel-3: #2a2e34;
  --rot: #cf2a1f;           /* Akzentfarbe aus dem Logo */
  --rot-hell: #e8463a;
  --rot-tief: #9e1b13;
  --text: #24262a;
  --text-leise: #6b7079;
  --hell: #f5f5f3;          /* helle Abschnitte */
  --linie: #e4e4e0;
  --weiss: #ffffff;
  --breite: 1200px;
  --radius: 14px;
  --radius-klein: 8px;
  --schatten: 0 1px 2px rgba(16,18,22,.04), 0 8px 28px rgba(16,18,22,.08);
  --schatten-gross: 0 2px 4px rgba(16,18,22,.05), 0 22px 50px rgba(16,18,22,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); transition: color .2s; }
a:hover { color: var(--rot-hell); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; margin: 0 0 .6em; color: #15171a; letter-spacing: -.015em; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
::selection { background: var(--rot); color: #fff; }

.container { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.abschnitt { padding: 110px 0; }
.abschnitt.hell { background: var(--hell); }
.abschnitt.dunkel { background: var(--dunkel); color: #c9ccd1; }
.abschnitt.dunkel h2, .abschnitt.dunkel h3 { color: #fff; }
@media (max-width: 700px) { .abschnitt { padding: 72px 0; } }

/* Überschrift mit kleiner roter Dachzeile */
.ueberschrift { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.ueberschrift .dachzeile, .dachzeile-links {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  font-size: .74rem; color: var(--rot); margin-bottom: 14px;
}
.ueberschrift .dachzeile::before, .ueberschrift .dachzeile::after,
.dachzeile-links::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.ueberschrift h2 { margin: 0; }
.ueberschrift p { color: var(--text-leise); margin: 16px 0 0; }
.dunkel .ueberschrift .dachzeile, .dunkel .dachzeile-links { color: var(--rot-hell); }
.dunkel .ueberschrift p { color: #9ea3ab; }

/* ---------- Kopfzeile / Menü ---------- */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.kopf.gescrollt, .kopf.offen {
  background: rgba(19, 21, 24, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.25);
}
.kopf .container { display: flex; align-items: center; justify-content: space-between; height: 78px; transition: height .35s; }
.kopf.gescrollt .container { height: 66px; }
.kopf .logo img { height: 40px; width: auto; }
.menue { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menue a {
  position: relative; display: block; padding: 8px 14px; color: rgba(255,255,255,.85); text-decoration: none;
  font-weight: 500; font-size: .93rem; border-radius: 999px; transition: color .2s, background .2s;
}
.menue a:hover { color: #fff; background: rgba(255,255,255,.1); }
.menue a.aktiv { color: #fff; }
.menue a.aktiv::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px;
  background: var(--rot-hell); border-radius: 2px;
}
.menue .menue-anfrage a { background: var(--rot); color: #fff; padding: 9px 20px; margin-left: 10px; }
.menue .menue-anfrage a:hover { background: var(--rot-hell); }
.menue-knopf {
  display: none; background: rgba(255,255,255,.08); border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 10px;
}
.menue-knopf svg { width: 26px; height: 26px; display: block; }

@media (max-width: 900px) {
  .menue-knopf { display: block; }
  .menue {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(19, 21, 24, .97); padding: 10px 20px 22px;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .menue.offen { display: flex; }
  .menue a { padding: 13px 14px; font-size: 1.05rem; border-radius: 10px; }
  .menue a.aktiv { background: rgba(255,255,255,.07); }
  .menue a.aktiv::after { left: 0; top: 50%; bottom: auto; width: 3px; height: 22px; margin: -11px 0 0; }
  .menue .menue-anfrage a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Großes Titelbild (Startseite) ---------- */
.titelbild {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; padding: 130px 0 90px; overflow: hidden;
  background: #0d0e10 url(../bilder/home/titel.jpg) center / cover no-repeat;
}
.titelbild::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.72) 42%, rgba(10,11,13,.25) 100%),
    linear-gradient(0deg, rgba(10,11,13,.75) 0%, transparent 35%);
}
.titelbild > * { position: relative; }
.titelbild .container { width: 100%; }
.titel-inhalt { max-width: 640px; }
.titelbild .dachzeile-links { color: #ff8a80; }
.titelbild h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 22px;
}
.titelbild h1 em { font-style: normal; color: var(--rot-hell); }
.titelbild .einleitung { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 34px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.siegel { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 52px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.siegel img { width: 64px; }
.siegel div { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.4; }
.siegel strong { display: block; color: #fff; font-size: 1.35rem; font-weight: 700; }
.titelbild .runter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; color: #fff; animation: huepfen 2.4s infinite;
}
.titelbild .runter svg { width: 20px; height: 20px; }
@keyframes huepfen { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (max-width: 700px) { .titelbild .runter { display: none; } .siegel { gap: 18px; margin-top: 36px; } }

/* Maus-Animation (technik/animation.js): Netz-Zeichenfläche über dem Bild, unter dem Text */
.titelbild > canvas.netz, .seitenkopf > canvas.netz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.titelbild h1 { transition: transform .25s ease-out; will-change: transform; }

/* ---------- Kopfbild der Unterseiten ---------- */
.seitenkopf {
  position: relative; padding: 190px 24px 96px; text-align: center; color: #fff; overflow: hidden;
  background: #222 center / cover no-repeat;
}
.seitenkopf::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,.82), rgba(10,11,13,.55) 60%, rgba(10,11,13,.8)); }
.seitenkopf > * { position: relative; }
.seitenkopf h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 3.8rem); letter-spacing: -.03em; margin: 0; }
.seitenkopf p {
  display: inline-block; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 600;
  color: #fff; background: rgba(207,42,31,.85); padding: 6px 14px; border-radius: 999px;
}
.seitenkopf { display: flex; flex-direction: column-reverse; align-items: center; }
@media (max-width: 700px) { .seitenkopf { padding: 140px 20px 64px; } }

/* ---------- Raster & Karten ---------- */
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.raster-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.raster-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) {
  .zwei-spalten { grid-template-columns: 1fr; gap: 36px; }
  .raster-4 { grid-template-columns: repeat(2, 1fr); }
  .raster-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .raster-4 { grid-template-columns: 1fr; } }

.karte {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie);
  box-shadow: var(--schatten); display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.karte img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.karte .inhalt { padding: 28px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.karte .inhalt small { text-transform: uppercase; letter-spacing: .15em; color: var(--text-leise); font-size: .72rem; }
.karte .inhalt h3 { margin: 4px 0 12px; }
.karte .inhalt p { color: var(--text-leise); margin: 0; }
.karte .inhalt .knopf { margin-top: auto; align-self: flex-start; }
.karte .symbol {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--rot-hell), var(--rot-tief)); color: #fff;
  box-shadow: 0 8px 20px rgba(207,42,31,.3);
}
.karte .symbol svg { width: 26px; height: 26px; }

/* Leistungs-Kacheln (Startseite): Foto mit Text darauf */
.kachel {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  color: #fff; text-decoration: none; box-shadow: var(--schatten); isolation: isolate;
}
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.kachel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,11,13,0) 35%, rgba(10,11,13,.88)); transition: background .4s; }
.kachel:hover img { transform: scale(1.08); }
.kachel:hover::before { background: linear-gradient(180deg, rgba(158,27,19,.15) 20%, rgba(10,11,13,.92)); }
.kachel .kachel-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.kachel small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: rgba(255,255,255,.75); }
.kachel h3 { color: #fff; font-size: 1.5rem; margin: 4px 0 0; }
.kachel .mehr {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .88rem; font-weight: 500;
  color: #fff; opacity: .85; transition: gap .3s, opacity .3s;
}
.kachel:hover .mehr { gap: 12px; opacity: 1; color: #fff; }
.kachel .mehr svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .kachel { aspect-ratio: 4 / 3; } }

/* Leistungen auf der Startseite: modernes Kachel-Raster (großes Bild links, breites Bild unten) */
.leistungs-raster {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 20px;
}
.leistungs-raster .kachel { aspect-ratio: auto; height: 100%; }
.leistungs-raster .gross-kachel { grid-row: span 2; }
.leistungs-raster .breit-kachel { grid-column: span 2; }
.leistungs-raster .kachel h3 { font-size: 1.7rem; }
.leistungs-raster .gross-kachel h3 { font-size: 2.2rem; }
.leistungs-raster .kachel-text p {
  margin: 8px 0 0; font-size: .92rem; line-height: 1.5; color: rgba(255,255,255,.82); max-width: 420px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s, opacity .45s;
}
.leistungs-raster .kachel:hover .kachel-text p, .leistungs-raster .gross-kachel .kachel-text p { max-height: 120px; opacity: 1; }
.kachel .nummer {
  position: absolute; top: 18px; left: 20px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: #fff;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); padding: 4px 11px; border-radius: 999px;
}
@media (max-width: 960px) {
  .leistungs-raster { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .leistungs-raster .kachel { aspect-ratio: 4 / 3; height: auto; }
  .leistungs-raster .gross-kachel, .leistungs-raster .breit-kachel { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 9; }
  .leistungs-raster .kachel-text p { max-height: 120px; opacity: 1; }
}
@media (max-width: 560px) {
  .leistungs-raster { grid-template-columns: 1fr; }
  .leistungs-raster .kachel, .leistungs-raster .gross-kachel, .leistungs-raster .breit-kachel { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 1.5px solid var(--rot); color: var(--rot);
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.2; background: transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.knopf:hover { background: var(--rot); color: #fff; transform: translateY(-1px); }
.knopf.voll { background: var(--rot); color: #fff; box-shadow: 0 8px 22px rgba(207,42,31,.32); }
.knopf.voll:hover { background: var(--rot-hell); border-color: var(--rot-hell); box-shadow: 0 12px 28px rgba(207,42,31,.42); }
.knopf.hell { border-color: rgba(255,255,255,.45); color: #fff; }
.knopf.hell:hover { background: #fff; color: var(--dunkel); border-color: #fff; }
.knopf svg { width: 18px; height: 18px; flex: none; }

/* Ablauf: Entwurf – Planung – Herstellung – Montage */
.ablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: schritt; }
.ablauf > div {
  position: relative; padding: 32px 26px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--linie);
  box-shadow: var(--schatten); counter-increment: schritt; transition: transform .35s, box-shadow .35s;
}
.ablauf > div:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.ablauf > div::before {
  content: counter(schritt, decimal-leading-zero); position: absolute; top: 18px; right: 22px;
  font-size: 2.4rem; font-weight: 700; color: var(--hell); line-height: 1; letter-spacing: -.04em;
}
.ablauf svg { width: 34px; height: 34px; color: var(--rot); margin-bottom: 18px; position: relative; }
.ablauf small { display: block; text-transform: uppercase; letter-spacing: .15em; color: var(--text-leise); font-size: .7rem; }
.ablauf strong { display: block; font-size: 1.2rem; font-weight: 700; color: #15171a; margin-bottom: 6px; }
.ablauf p { font-size: .92rem; color: var(--text-leise); margin: 0; line-height: 1.6; }
@media (max-width: 960px) { .ablauf { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ablauf { grid-template-columns: 1fr; } }

/* Bildband mit Spruch */
.bildband {
  position: relative; padding: 150px 24px; text-align: center; color: #fff;
  background: #222 center / cover no-repeat fixed;
}
.bildband::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,13,.82), rgba(10,11,13,.45), rgba(10,11,13,.82)); }
.bildband > * { position: relative; }
.bildband p { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin-bottom: 14px; color: #ff8a80; }
.bildband h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; letter-spacing: -.03em; }
@media (max-width: 960px) { .bildband { background-attachment: scroll; padding: 110px 20px; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.team div {
  display: flex; flex-direction: column; justify-content: center; position: relative;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 22px 22px 22px 98px; min-height: 104px;
  transition: background .3s, border-color .3s, transform .3s;
}
.team div:hover { background: rgba(255,255,255,.07); border-color: rgba(232,70,58,.5); transform: translateY(-3px); }
.team div::before {
  content: attr(data-kuerzel); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rot-hell), var(--rot-tief)); color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
}
.team div.mit-foto::before { display: none; }
.team .team-foto {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--rot-hell); box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.team strong { display: block; color: #fff; font-size: 1.05rem; line-height: 1.3; }
.team span { font-size: .88rem; color: #a6abb3; line-height: 1.45; margin-top: 2px; }
.hell .team div { background: #fff; border-color: var(--linie); }
.hell .team strong { color: #15171a; }
.hell .team span { color: var(--text-leise); }

/* Fakten */
.fakten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fakten > div {
  padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); text-align: left;
}
.fakten strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; }
.fakten strong::before { content: ''; display: block; width: 28px; height: 3px; background: var(--rot-hell); border-radius: 3px; margin-bottom: 18px; }
.fakten span { color: #9ea3ab; font-size: .93rem; }
@media (max-width: 960px) { .fakten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .fakten { grid-template-columns: 1fr; } }

/* Aufruf-Band "Projekt anfragen" */
.aufruf { padding: 0 0 110px; }
.aufruf.hell { background: var(--hell); }
.aufruf-kasten {
  position: relative; overflow: hidden; border-radius: 22px; padding: 64px 56px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--rot) 0%, var(--rot-tief) 38%, var(--dunkel) 78%);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  box-shadow: var(--schatten-gross);
}
.aufruf-kasten::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05);
}
.aufruf-kasten h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.aufruf-kasten p { color: rgba(255,255,255,.8); margin: 0; }
.aufruf-kasten .knopf-reihe { justify-content: flex-end; position: relative; z-index: 1; }
.aufruf-kasten .knopf.voll { background: #fff; color: var(--rot-tief); border-color: #fff; box-shadow: none; }
.aufruf-kasten .knopf.voll:hover { background: var(--hell); }
.aufruf-kasten .knopf-reihe { align-items: center; }
.telefone { display: flex; flex-direction: column; gap: 8px; }
.telefone .knopf { justify-content: flex-start; }
.telefone small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; min-width: 40px; }
@media (max-width: 860px) {
  .aufruf-kasten { grid-template-columns: 1fr; padding: 44px 28px; }
  .aufruf-kasten .knopf-reihe { justify-content: flex-start; }
}

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.galerie a[hidden] { display: none; } /* vom Kategorie-Filter ausgeblendet */
.galerie a { display: block; position: relative; overflow: hidden; border-radius: var(--radius-klein); background: #ddd; aspect-ratio: 1; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.galerie a:hover img { transform: scale(1.07); }
.galerie a::after {
  content: '+'; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--rot); font-size: 1.3rem; font-weight: 500; line-height: 34px; text-align: center;
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s;
}
.galerie a:hover::after { opacity: 1; transform: scale(1); }
.galerie a span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; color: #fff; font-size: .84rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10,11,13,.85)); line-height: 1.35;
}
@media (max-width: 520px) { .galerie { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* Planungsbilder: Breiten passend zum Seitenverhältnis, damit alle gleich hoch sind – nicht beschneiden */
.galerie.planbilder { grid-template-columns: 2.61fr .98fr; gap: 14px; }
.galerie.planbilder a { aspect-ratio: auto; background: #fff; border: 1px solid var(--linie); }
.galerie.planbilder img { object-fit: contain; }
@media (max-width: 700px) { .galerie.planbilder { grid-template-columns: 1fr; } }

/* Vorher/Nachher: Planung (hochkant) – Pfeil – Foto (quer), gleich hoch */
.galerie.vorher-nachher { grid-template-columns: .72fr 56px 1.33fr; gap: 14px; align-items: center; }
.galerie.vorher-nachher a { aspect-ratio: auto; }
.galerie.vorher-nachher a:first-child { background: #fff; border: 1px solid var(--linie); }
.galerie.vorher-nachher a:first-child img { object-fit: contain; }
.vorher-nachher .pfeil { display: flex; justify-content: center; }
.vorher-nachher .pfeil svg {
  width: 48px; height: 48px; padding: 12px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--rot-hell), var(--rot-tief)); box-shadow: 0 8px 20px rgba(207,42,31,.35);
}
@media (max-width: 700px) {
  .galerie.vorher-nachher { grid-template-columns: 1fr; }
  .vorher-nachher .pfeil svg { transform: rotate(90deg); }
}

.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter button {
  font: inherit; font-weight: 500; font-size: .9rem; padding: 9px 20px; cursor: pointer;
  border: 1px solid var(--linie); background: #fff; color: var(--text); border-radius: 999px;
  transition: all .25s;
}
.filter button:hover { border-color: var(--rot); color: var(--rot); }
.filter button.aktiv { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
/* Referenzen: Kategorie-Kacheln und Kopf der geöffneten Kategorie */
.raster-kategorien { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.raster-kategorien .kachel { aspect-ratio: 4 / 3; flex: 0 0 calc((100% - 60px) / 4); }
.raster-kategorien .kachel h3 { font-size: 1.7rem; }
@media (max-width: 960px) { .raster-kategorien .kachel { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 520px) { .raster-kategorien .kachel { flex-basis: 100%; } }
.kategorie-kopf { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px; text-align: center; }
.kategorie-kopf h2 { margin: 0; }
.zur-uebersicht {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: .9rem;
  color: var(--text-leise); padding: 6px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.zur-uebersicht:hover { background: var(--hell); color: var(--rot); }
.zur-uebersicht svg { width: 18px; height: 18px; }
[hidden] { display: none !important; }
.galerie-hinweis { grid-column: 1 / -1; text-align: center; padding: 12px; color: var(--text-leise); }

/* Großansicht (Lightbox) */
.grossansicht {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,9,10,.94); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px;
}
.grossansicht.offen { display: flex; animation: einblenden .25s ease-out; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.grossansicht img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; }
.grossansicht p { color: #ddd; margin: 14px 0 0; text-align: center; }
.grossansicht button {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%; font-size: 26px; line-height: 50px; transition: background .2s;
}
.grossansicht button:hover { background: var(--rot); }
.grossansicht .zu { top: 16px; right: 16px; }
.grossansicht .zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.grossansicht .weiter { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Leistungen ---------- */
.unternavi {
  position: sticky; top: 66px; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie);
}
.unternavi .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.unternavi a {
  padding: 8px 18px; text-decoration: none; color: var(--text); font-weight: 500; white-space: nowrap; font-size: .92rem;
  border-radius: 999px; transition: background .2s, color .2s;
}
.unternavi a:hover { background: var(--dunkel); color: #fff; }

.prospekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.prospekte a { text-decoration: none; color: var(--text); display: block; }
.prospekte img {
  border-radius: 6px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: #fff;
  box-shadow: var(--schatten); transition: transform .35s, box-shadow .35s;
}
.prospekte a:hover img { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--schatten-gross); }
.prospekte p { font-size: .9rem; font-weight: 500; margin: 14px 0 2px; line-height: 1.4; }
.prospekte span { color: var(--rot); font-weight: 500; font-size: .84rem; }

.produkt {
  display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: center;
  padding: 22px; margin-bottom: 18px; background: #fff; border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten); transition: box-shadow .35s, transform .35s;
}
.produkt:hover { box-shadow: var(--schatten-gross); transform: translateY(-3px); }
.produkt img { border-radius: var(--radius-klein); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.produkt h3 { margin-bottom: 8px; }
.produkt p, .produkt li { color: var(--text-leise); }
.produkt p:last-child, .produkt ul:last-child { margin-bottom: 0; }
.produkt ul { padding-left: 1.1em; margin: 0; }
@media (max-width: 760px) { .produkt { grid-template-columns: 1fr; gap: 18px; padding: 16px; } }

details {
  border: 1px solid var(--linie); border-radius: var(--radius-klein); margin-bottom: 10px; background: #fff;
  transition: box-shadow .3s, border-color .3s;
}
details[open] { box-shadow: var(--schatten); border-color: transparent; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; position: relative; padding-right: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--hell); color: var(--rot);
  font-size: 1.2rem; line-height: 28px; text-align: center; transition: transform .3s, background .3s, color .3s;
}
details[open] summary::after { content: '–'; background: var(--rot); color: #fff; }
details > div { padding: 0 22px 18px; color: var(--text-leise); }

.bildstreifen { height: 300px; border-radius: var(--radius); background: center / cover no-repeat; margin: 64px 0; box-shadow: var(--schatten); }
.partner-hinweis {
  background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--rot);
  padding: 20px 24px; border-radius: var(--radius-klein); margin-top: 28px; box-shadow: var(--schatten);
}
.abschnitt:not(.hell) .partner-hinweis { background: var(--hell); box-shadow: none; }

/* Gerundete Bilder in Textspalten */
.bild-rund { border-radius: var(--radius); box-shadow: var(--schatten-gross); width: 100%; }

/* ---------- Shop (Ersatzteile) ---------- */
.ablauf.shop-schritte { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .ablauf.shop-schritte { grid-template-columns: 1fr; } }
.shop-werkzeuge { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px; }
.shop-werkzeuge .filter { margin-bottom: 0; }
.shop-suche { position: relative; width: 100%; max-width: 520px; }
.shop-suche svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-leise); }
.shop-suche input {
  width: 100%; font: inherit; font-size: 1rem; padding: 14px 20px 14px 50px; border-radius: 999px;
  border: 1px solid var(--linie); background: #fff; box-shadow: var(--schatten); outline: none; transition: border-color .2s;
}
.shop-suche input:focus { border-color: var(--rot); }
.shop-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.shop-karte {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--schatten); transition: transform .3s, box-shadow .3s;
}
.shop-karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-gross); }
.shop-bild { position: relative; aspect-ratio: 4 / 3; background: var(--hell); display: grid; place-items: center; color: #c4c6c9; }
.shop-bild img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 12px; } /* Produktfoto immer ganz zeigen */
.shop-bild svg { width: 64px; height: 64px; }
.shop-beispiel {
  position: absolute; top: 12px; left: 12px; background: #f2b134; color: #3a2a00; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
}
.shop-text { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.shop-kat { color: var(--rot); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 600; }
.shop-text h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.shop-beschreibung { color: var(--text-leise); font-size: .92rem; line-height: 1.55; margin-bottom: 8px; }
.shop-nr { color: var(--text-leise); font-size: .78rem; margin-bottom: 16px; }
.shop-fuss { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-preis { font-weight: 700; font-size: 1.2rem; color: #15171a; line-height: 1.2; }
.shop-netto { display: block; font-weight: 400; font-size: .74rem; color: var(--text-leise); margin-top: 3px; }
.shop-hinzu {
  font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; border: 0; border-radius: 999px; padding: 10px 16px;
  background: var(--dunkel); color: #fff; transition: background .2s;
}
.shop-hinzu:hover { background: var(--rot); }
.shop-hinzu.drin { background: #e8f3ea; color: #1d6b31; }
.shop-kategorien .kachel { flex-basis: calc((100% - 40px) / 3); }
@media (max-width: 960px) { .shop-kategorien .kachel { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 520px) { .shop-kategorien .kachel { flex-basis: 100%; } }
.shop-kachel img { object-fit: contain; background: #fff; padding: 18px 18px 70px; }
.shop-kachel.ohne-bild { background: linear-gradient(135deg, var(--dunkel-3), var(--dunkel)); }
.shop-kachel .kachel-symbol { position: absolute; inset: 0 0 60px; display: grid; place-items: center; color: rgba(255,255,255,.18); z-index: -1; }
.shop-kachel .kachel-symbol svg { width: 90px; height: 90px; }
.shop-leer, .shop-hinweis { text-align: center; color: var(--text-leise); }
.shop-leer { padding: 32px 0; }
.shop-hinweis { font-size: .82rem; max-width: 760px; margin: 40px auto 0; }

.anfrage-knopf {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border: 0; border-radius: 999px; padding: 14px 22px;
  background: var(--rot); color: #fff; box-shadow: 0 12px 30px rgba(207,42,31,.45);
}
.anfrage-knopf svg { width: 20px; height: 20px; }
.anfrage-knopf .zaehler { background: #fff; color: var(--rot); border-radius: 999px; min-width: 26px; padding: 1px 8px; text-align: center; }
.anfrage-knopf.wackeln { animation: wackeln .5s; }
@keyframes wackeln { 0%,100% { transform: scale(1); } 40% { transform: scale(1.12); } 70% { transform: scale(.96); } }
.anfrage-hintergrund { position: fixed; inset: 0; z-index: 180; background: rgba(10,11,13,.5); }
.anfrage-liste {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 190; width: min(440px, 100%); background: #fff;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.25);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.anfrage-liste.offen { transform: none; }
.anfrage-kopf { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--linie); }
.anfrage-kopf h3 { margin: 0; }
.anfrage-zu { border: 0; background: var(--hell); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.anfrage-inhalt { overflow-y: auto; padding: 18px 24px 28px; }
.anfrage-positionen { list-style: none; margin: 0; padding: 0; }
.anfrage-positionen li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.anfrage-positionen strong { display: block; font-size: .95rem; line-height: 1.3; }
.anfrage-positionen small { color: var(--text-leise); font-size: .78rem; }
.menge { display: flex; align-items: center; gap: 6px; }
.menge button, .entfernen { border: 1px solid var(--linie); background: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.menge span { min-width: 22px; text-align: center; font-weight: 600; }
.entfernen { color: var(--text-leise); }
.anfrage-summe { font-weight: 600; margin: 14px 0 20px; font-size: .92rem; }
.anfrage-formular { display: grid; gap: 12px; }
.anfrage-formular label { display: grid; gap: 4px; font-size: .85rem; font-weight: 500; }
.anfrage-formular input, .anfrage-formular select, .anfrage-formular textarea {
  font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: #fff;
}
.anfrage-formular input:focus, .anfrage-formular select:focus, .anfrage-formular textarea:focus { outline: none; border-color: var(--rot); }
.anfrage-formular .knopf { justify-content: center; margin-top: 6px; }
.anfrage-info { font-size: .78rem; color: var(--text-leise); margin: 0; }

/* Zertifikate als PDF-Liste (Über uns) */
.zertifikate { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.zertifikate a {
  display: block; position: relative; padding: 14px 18px 14px 58px; border: 1px solid var(--linie); border-radius: var(--radius-klein);
  background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.zertifikate a::before {
  content: 'PDF'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: .68rem; font-weight: 700; color: #fff; background: var(--rot); padding: 5px 6px; border-radius: 4px;
}
.zertifikate a:hover { border-color: var(--rot); box-shadow: var(--schatten); }
.zertifikate strong { display: block; }
.zertifikate small { color: var(--text-leise); font-size: .8rem; line-height: 1.4; display: block; }

/* ---------- Kontakt ---------- */
.kontakt-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kontakt-liste li {
  display: flex; gap: 16px; padding: 16px 18px; align-items: center;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-klein); transition: border-color .25s, box-shadow .25s;
}
.kontakt-liste li:hover { border-color: rgba(207,42,31,.4); box-shadow: var(--schatten); }
.kontakt-liste svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px; flex: none;
  color: var(--rot); background: rgba(207,42,31,.08);
}
.kontakt-liste small { display: block; color: var(--text-leise); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.kontakt-liste a, .kontakt-liste span { color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.kontakt-liste a:hover { color: var(--rot); }
.kasten { background: var(--dunkel); color: #c9ccd1; border-radius: var(--radius); padding: 40px; box-shadow: var(--schatten-gross); }
.kasten h3 { color: #fff; }
.kasten hr { border: 0 !important; border-top: 1px solid rgba(255,255,255,.1) !important; }
.kasten .knopf:not(.voll) { border-color: rgba(255,255,255,.45); color: #fff; }
.kasten .knopf:not(.voll):hover { background: #fff; color: var(--dunkel); }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 820px; }
.rechtstext h2 { font-size: 1.45rem; margin-top: 2.2em; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.8em; }
.rechtstext dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; }
.rechtstext dt { font-weight: 500; }
.rechtstext dd { margin: 0; }
@media (max-width: 560px) { .rechtstext dl { grid-template-columns: 1fr; } .rechtstext dd { margin-bottom: 8px; } }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--dunkel); color: #9ea3ab; padding: 80px 0 32px; font-size: .92rem; position: relative; }
.fuss::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rot-tief), var(--rot-hell), var(--rot-tief)); }
.fuss .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.fuss img { height: 36px; width: auto; margin-bottom: 18px; }
.fuss p { max-width: 340px; }
.fuss h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 18px; font-weight: 600; }
.fuss a { color: #d4d6d9; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 10px; }
.fuss .unten {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
@media (max-width: 760px) { .fuss .container { grid-template-columns: 1fr; gap: 32px; } .fuss { padding-top: 56px; } }

.text-mitte { text-align: center; }
.abstand-oben { margin-top: 48px; }

/* ---------- Einblenden beim Scrollen (wird per script.js aktiviert) ---------- */
.einblenden { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .einblenden { opacity: 1; transform: none; transition: none; }
  .titelbild .runter { animation: none; }
}
