/* ==========================================================================
   Fischer Metallbearbeitung – Stylesheet
   Erstellt mit Xtra Website – Xtra Graphics
   ========================================================================== */

/* ---------- Schriften (lokal, keine externen Anfragen) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --rot: #E8412C;          /* Signalrot aus dem Logo */
  --rot-dunkel: #BF321F;   /* für Buttons/Links mit ausreichend Kontrast */
  --graphit: #2B3035;
  --graphit-2: #363C42;
  --stahl: #5A6168;
  --blech: #E4E7EA;
  --papier: #F4F5F6;
  --weiss: #FFFFFF;
  --linie: #CDD2D6;

  --font-text: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;

  --max: 1400px;
  --pad: clamp(20px, 4vw, 48px);
  --gap: clamp(24px, 3vw, 40px);
  --sektion: clamp(64px, 9vw, 120px);
  --radius: 2px;
  --header-h: 88px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.6;
  color: var(--graphit);
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--graphit); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  color: var(--graphit);
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.55rem, 2.2vw, 1.9rem); font-weight: 600; }
h4 { font-size: 1.35rem; font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--graphit); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sektion { padding: var(--sektion) 0; }
.sektion--grau { background: var(--papier); }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--stahl); max-width: 62ch; }
.textbreite { max-width: 68ch; }

/* Kopfzeile einer Sektion: Titel links, optionaler Link rechts */
.sektion-kopf {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px);
}
.sektion-kopf h2 { margin: 0; }
.sektion-kopf p { margin: .5em 0 0; color: var(--stahl); max-width: 58ch; }

/* ---------- Maßlinie (Signatur-Element aus der technischen Zeichnung) ---------- */
.masslinie {
  position: relative; height: 14px; margin: 0 0 18px;
  width: 100%; max-width: 220px;
}
.masslinie::before {             /* Linie */
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1.5px solid var(--rot);
}
.masslinie::after {              /* Begrenzungsstriche */
  content: ""; position: absolute; inset: 0;
  border-left: 1.5px solid var(--rot); border-right: 1.5px solid var(--rot);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--rot { background: var(--rot-dunkel); color: #fff; }
.btn--rot:hover { background: var(--graphit); color: #fff; }
.btn--linie { border-color: currentColor; color: var(--graphit); background: transparent; }
.btn--linie:hover { background: var(--graphit); color: #fff; border-color: var(--graphit); }
.btn--hell { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--hell:hover { background: #fff; color: var(--graphit); border-color: #fff; }
.btn-reihe { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: block; flex-shrink: 0; }
.logo img { height: 60px; width: auto; }

.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); }
.hauptnav a {
  display: block; padding: 8px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; letter-spacing: .02em;
  color: var(--graphit); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.hauptnav a:hover { color: var(--rot-dunkel); }
.hauptnav a[aria-current="page"] { border-bottom-color: var(--rot); }
.hauptnav .nav-telefon { display: none; }

.header-telefon {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.28rem;
  color: var(--graphit); text-decoration: none; white-space: nowrap;
}
.header-telefon svg { color: var(--rot); }
.header-telefon:hover { color: var(--rot-dunkel); }

.menue-toggle {
  display: none; width: 52px; height: 52px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--graphit);
  align-items: center; justify-content: center;
}
.menue-toggle span, .menue-toggle span::before, .menue-toggle span::after {
  display: block; width: 28px; height: 2.5px; background: currentColor; position: relative; transition: transform .25s, background-color .25s;
}
.menue-toggle span::before, .menue-toggle span::after { content: ""; position: absolute; left: 0; }
.menue-toggle span::before { top: -9px; }
.menue-toggle span::after { top: 9px; }
.menue-offen .menue-toggle span { background: transparent; }
.menue-offen .menue-toggle span::before { transform: translateY(9px) rotate(45deg); }
.menue-offen .menue-toggle span::after { transform: translateY(-9px) rotate(-45deg); }
.nav-overlay { display: none; }

@media (max-width: 1180px) {
  .header-telefon { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .logo img { height: 50px; }
  .menue-toggle { display: inline-flex; }
  .hauptnav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
    width: min(360px, 88vw);
    background: var(--graphit); color: #fff;
    padding: calc(var(--header-h) + 12px) 32px 32px;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; visibility: hidden;
  }
  .menue-offen .hauptnav { transform: none; visibility: visible; }
  .hauptnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .hauptnav li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .hauptnav a { color: #fff; font-size: 1.6rem; padding: 14px 0; border-bottom: 0; }
  .hauptnav a:hover { color: #fff; }
  .hauptnav a[aria-current="page"] { color: #fff; box-shadow: inset 4px 0 0 var(--rot); padding-left: 14px; }
  .hauptnav .nav-telefon { display: block; border-bottom: 0; margin-top: 24px; }
  .hauptnav .nav-telefon a { font-size: 1.35rem; color: #fff; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 99;
    background: rgba(20,24,28,.55); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .menue-offen .nav-overlay { opacity: 1; pointer-events: auto; }
  .menue-toggle { position: relative; z-index: 130; }
  .menue-offen .menue-toggle { color: #fff; }
}

/* ---------- Hero-Slider (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden;
  height: clamp(460px, 68vh, 640px);
  background: var(--graphit); color: #fff;
}
.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.aktiv { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,34,38,.88) 0%, rgba(30,34,38,.72) 42%, rgba(30,34,38,.18) 100%);
}
.hero .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-inhalt { max-width: 720px; }
.hero-inhalt .masslinie { max-width: 160px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 56ch; margin-bottom: 1.6em; }
.hero-punkte {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px;
}
.hero-punkte .container { height: auto; display: flex; gap: 10px; }
.hero-punkte button {
  width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero-punkte button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  background: rgba(255,255,255,.45); transition: background-color .3s;
}
.hero-punkte button[aria-current="true"]::before { background: var(--rot); }

@media (max-width: 700px) {
  .hero::after { background: rgba(30,34,38,.74); }
}

/* ---------- Unterseiten-Kopf ---------- */
.seitenkopf {
  position: relative; color: #fff;
  background: var(--graphit) url("../images/allgemein/unterseiten-header.jpg") center / cover no-repeat;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.seitenkopf h1 { color: #fff; margin-bottom: .2em; }
.seitenkopf p { color: rgba(255,255,255,.85); font-size: 1.3rem; margin: 0; max-width: 60ch; }
.brotkrumen { margin-bottom: 18px; font-size: 1rem; }
.brotkrumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brotkrumen li { color: rgba(255,255,255,.7); }
.brotkrumen li + li::before { content: "/"; margin-right: 6px; color: var(--rot); }
.brotkrumen a { color: #fff; text-decoration: none; }
.brotkrumen a:hover { text-decoration: underline; color: #fff; }

/* ---------- Bild mit versetztem Rahmen (Signatur) ---------- */
.rahmenbild { position: relative; margin: 0 22px 22px 0; }
.rahmenbild::before {
  content: ""; position: absolute; z-index: 0;
  top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 2px solid var(--rot);
}
.rahmenbild img, .rahmenbild > div { position: relative; z-index: 1; width: 100%; }
.rahmenbild--links { margin: 0 0 22px 22px; }
.rahmenbild--links::before { left: -22px; right: 22px; }
.rahmenbild figcaption { position: relative; z-index: 1; font-size: 1rem; color: var(--stahl); padding-top: 12px; }

/* ---------- Zwei-Spalten ---------- */
.zweispaltig {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.zweispaltig--text-breit { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 880px) {
  .zweispaltig, .zweispaltig--text-breit { grid-template-columns: 1fr; }
}

.haken-liste { list-style: none; margin: 1.2em 0 0; padding: 0; }
.haken-liste li { position: relative; padding-left: 34px; margin-bottom: .55em; }
.haken-liste li::before {
  content: ""; position: absolute; left: 2px; top: .38em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--rot); border-bottom: 2.5px solid var(--rot);
  transform: rotate(-45deg);
}

/* ---------- Kennzahlen mit Maßlinien ---------- */
.kennzahlen {
  position: relative; color: #fff;
  background: var(--graphit) url("../images/allgemein/zeichnung-dunkel.jpg") center / cover no-repeat;
  padding: clamp(56px, 7vw, 96px) 0;
}
.kennzahlen-raster {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.kennzahl .wert {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; color: #fff;
}
.kennzahl .masslinie { margin: 16px 0 14px; max-width: none; }
.kennzahl .text { display: block; color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.4; }
@media (max-width: 900px) { .kennzahlen-raster { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 460px) { .kennzahlen-raster { grid-template-columns: 1fr; } }

/* ---------- Leistungen (Startseite) ---------- */
.leistungen-raster {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.leistung { display: flex; flex-direction: column; }
.leistung-bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blech); margin-bottom: 20px; }
.leistung-bild img { width: 100%; height: 100%; object-fit: cover; }
.leistung-bild--hell img { object-fit: contain; padding: 8%; }
.leistung h3 { margin-bottom: .35em; }
.leistung p { color: var(--stahl); font-size: 1.08rem; flex-grow: 1; }
.textlink {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem;
  color: var(--graphit); text-decoration: none;
  border-bottom: 2px solid var(--rot); padding-bottom: 2px; align-self: flex-start;
}
.textlink:hover { color: var(--rot-dunkel); }
@media (max-width: 1100px) { .leistungen-raster { grid-template-columns: 1fr 1fr; row-gap: 56px; } }
@media (max-width: 560px) { .leistungen-raster { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.galerie {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 18px);
}
.galerie li[hidden] { display: none; }
.galerie-link {
  position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--graphit); color: #fff; text-decoration: none;
}
.galerie-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galerie-link .unterschrift {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, rgba(30,34,38,0) 0%, rgba(30,34,38,.9) 100%);
  font-family: var(--font-head); font-weight: 600; font-size: 1.22rem; line-height: 1.2;
  transform: translateY(8px); opacity: 0; transition: opacity .35s, transform .35s;
}
.galerie-link .unterschrift::before {
  content: ""; display: block; width: 32px; height: 2px; background: var(--rot); margin-bottom: 8px;
}
.galerie-link:hover img, .galerie-link:focus-visible img { transform: scale(1.06); }
.galerie-link:hover .unterschrift, .galerie-link:focus-visible .unterschrift { opacity: 1; transform: none; }
@media (hover: none) {
  .galerie-link .unterschrift { opacity: 1; transform: none; }
}
@media (max-width: 1000px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .galerie { grid-template-columns: repeat(2, 1fr); } .galerie-link .unterschrift { font-size: 1.05rem; padding: 36px 12px 12px; } }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter button {
  min-height: 46px; padding: 8px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
  background: var(--weiss); color: var(--graphit);
  border: 1.5px solid var(--linie); border-radius: var(--radius); cursor: pointer;
}
.filter button:hover { border-color: var(--graphit); }
.filter button[aria-pressed="true"] { background: var(--graphit); border-color: var(--graphit); color: #fff; }
.filter .anzahl { color: var(--rot); margin-left: 6px; }
.filter button[aria-pressed="true"] .anzahl { color: #ffb3a8; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20,23,26,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.offen { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox figcaption {
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; margin-top: 14px;
}
.lightbox figcaption .zaehler { color: rgba(255,255,255,.55); font-family: var(--font-text); font-weight: 400; font-size: 1rem; margin-left: 12px; }
.lb-btn {
  position: absolute; width: 56px; height: 56px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
.lb-btn:hover { background: var(--rot-dunkel); }
.lb-schliessen { top: 16px; right: 16px; }
.lb-zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-zurueck, .lb-weiter { top: auto; bottom: 16px; transform: none; }
  .lightbox img { max-height: 68vh; }
}

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--rot-dunkel); color: #fff; padding: clamp(48px, 6vw, 80px) 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); max-width: 56ch; }
.cta-band .btn--weiss { background: #fff; color: var(--graphit); }
.cta-band .btn--weiss:hover { background: var(--graphit); color: #fff; }

/* ---------- Leistungen-Seite ---------- */
.leistung-detail { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--linie); }
.leistung-detail:last-child { border-bottom: 0; }
.leistung-detail .zweispaltig { align-items: start; }
.leistung-detail--gedreht .zweispaltig > :first-child { order: 2; }
@media (max-width: 880px) { .leistung-detail--gedreht .zweispaltig > :first-child { order: 0; } }
.bild-hellgrund { background: var(--papier); }
.bild-hellgrund img { mix-blend-mode: multiply; padding: 6%; }

.drei-spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.zwei-spalten { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .drei-spalten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .drei-spalten, .zwei-spalten { grid-template-columns: 1fr; } }

.infoblock { border-top: 3px solid var(--graphit); padding-top: 20px; }
.infoblock h3 { margin-bottom: .4em; }
.infoblock p { color: var(--stahl); font-size: 1.08rem; }

.material-sektion { background: var(--papier) url("../images/allgemein/drehteil-hell.jpg") center / cover no-repeat; }

/* ---------- Über uns: Zeitleiste & Maschinenpark ---------- */
.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; border-left: 2px solid var(--linie); }
.zeitleiste li { position: relative; padding: 0 0 36px 44px; }
.zeitleiste li:last-child { padding-bottom: 0; }
.zeitleiste li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px;
  background: var(--weiss); border: 3px solid var(--rot); border-radius: 50%;
}
.zeitleiste .jahr { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1.1; }
.zeitleiste p { color: var(--stahl); margin: 4px 0 0; }

.maschinen-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.maschinen-gruppe h3 { font-size: 1.5rem; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 3px solid var(--rot); }
.maschinen-gruppe ul { list-style: none; margin: 0; padding: 0; }
.maschinen-gruppe li { padding: 10px 0; border-bottom: 1px solid var(--linie); font-weight: 500; }
@media (max-width: 1000px) { .maschinen-raster { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px)  { .maschinen-raster { grid-template-columns: 1fr; } }

/* ---------- Jobs ---------- */
.stelle { background: var(--weiss); border-left: 4px solid var(--rot); padding: clamp(24px, 3vw, 40px); }
.stelle + .stelle { margin-top: 24px; }
.stelle h3 { margin-bottom: .4em; }
.stellen-hinweis { color: var(--stahl); font-size: 1.05rem; margin-top: 24px; }

/* ---------- Kontakt ---------- */
.kontakt-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.kontakt-karte { border-top: 3px solid var(--graphit); padding-top: 22px; }
.kontakt-karte .icon { color: var(--rot); margin-bottom: 14px; }
.kontakt-karte h2 { font-size: 1.7rem; margin-bottom: .4em; }
.kontakt-karte a.gross {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1.7rem;
  color: var(--graphit); text-decoration: none; overflow-wrap: anywhere;
}
.kontakt-karte a.gross:hover { color: var(--rot-dunkel); }
.kontakt-karte p { color: var(--stahl); }
@media (max-width: 880px) { .kontakt-karten { grid-template-columns: 1fr; row-gap: 40px; } }

/* ---------- Zertifikat ---------- */
.zertifikat-vorschau { display: block; max-width: 420px; background: var(--weiss); box-shadow: 0 14px 40px rgba(43,48,53,.16); }
.zertifikat-vorschau img { transition: opacity .2s; }
.zertifikat-vorschau:hover img { opacity: .9; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 78ch; }
.rechtstext h2 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); margin-top: 1.6em; }
.rechtstext h3 { font-size: 1.45rem; margin-top: 1.4em; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li { margin-bottom: .3em; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }
.rechtstext a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphit); color: rgba(255,255,255,.78); font-size: 1.05rem; }
.footer-oben { padding: clamp(56px, 7vw, 88px) 0 48px; }
.footer-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
.footer-logo img { height: 56px; width: auto; margin-bottom: 20px; }
.site-footer h2 { color: #fff; font-size: 1.45rem; margin-bottom: .8em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.footer-kontakt li { display: flex; flex-wrap: wrap; gap: 0 10px; }
.footer-kontakt .label { color: rgba(255,255,255,.55); min-width: 64px; }
.footer-kontakt a { overflow-wrap: anywhere; }
.footer-unten { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .95rem; }
.footer-unten .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.footer-unten nav ul { display: flex; gap: 24px; }
.footer-unten li { margin: 0; }
@media (max-width: 880px) { .footer-raster { grid-template-columns: 1fr 1fr; } .footer-raster > :first-child { grid-column: 1 / -1; } }
@media (max-width: 540px) { .footer-raster { grid-template-columns: 1fr; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
