/* =========================================================================
   Metallbau Adam – Stylesheet
   Nachbau der bisherigen WordPress-Seite (Betheme), ohne Theme-Ballast.
   Farben, Schrift und Abstände entsprechen dem Original; abweichende
   Farbtöne nur dort, wo Text sonst zu wenig Kontrast hätte (WCAG 2.1 AA).
   ========================================================================= */

:root {
  --anthrazit: #232323;
  --kupfer: #B97A46;           /* Originalfarbe: Flächen, Balken, große Schrift */
  --kupfer-text: #9D683C;      /* kleiner Kupfertext auf Weiß (4,7:1) */
  --kupfer-text-grau: #8F5E36; /* kleiner Kupfertext auf Hellgrau #e9e9e9 */
  --kupfer-hell: #C7956B;      /* kleiner Kupfertext auf dunklem Grund */
  --text: #626262;
  --schwarz: #000;
  --weiss: #fff;
  --topbar: #222;
  --container: 1045px;
  --spalte: 12px;              /* halber Spaltenabstand wie im Original */
  --schrift: Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font: 14px/25px var(--schrift);
  overflow-x: hidden;
}

img, video, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--kupfer-text); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 15px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 15px; font-weight: 400; color: var(--schwarz); }
h1 { font-size: 48px; line-height: 50px; }
h2 { font-size: 46px; line-height: 48px; }
h3 { font-size: 32px; line-height: 35px; }
h4 { font-size: 20px; line-height: 28px; }
h5 { font-size: 15px; line-height: 25px; font-weight: 700; }
h6 { font-size: 14px; line-height: 25px; font-weight: 700; letter-spacing: 5px; }
hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .08); margin: 0 auto 20px; }
ul { padding-left: 1.4em; }

/* sichtbarer Tastaturfokus – im Original fehlte er */
:focus-visible { outline: 3px solid var(--kupfer); outline-offset: 2px; }
.dunkel :focus-visible, .kopf :focus-visible, .fuss :focus-visible { outline-color: #e6b98f; }

.nur-screenreader {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--weiss); color: var(--schwarz); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--spalte); }
@media (max-width: 1069px) { .container { padding: 0 24px; } }
@media (max-width: 480px)  { .container { padding: 0 16px; } }

.augenbraue { color: var(--kupfer-text); }

/* ---------------------------------------------------------------- Kopf --- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 60px;
  transition: background-color .3s ease;
}
.kopf.ist-fixiert, .unterseite .kopf { background: var(--topbar); }
.kopf .container { position: relative; height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.logo { position: absolute; left: var(--spalte); top: 0; display: block; line-height: 0; }
.logo img { width: auto; height: 110px; transition: height .3s ease; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.kopf.ist-fixiert .logo img, .unterseite .logo img { height: 80px; }

.hauptmenue ul { list-style: none; margin: 0; padding: 0; display: flex; }
.hauptmenue a {
  display: block; padding: 0 20px; line-height: 60px;
  font-size: 16px; color: #c4c4c4; text-decoration: none;
}
.hauptmenue a:hover, .hauptmenue a[aria-current] { color: var(--weiss); }
.menue-knopf { display: none; }

@media (max-width: 959px) {
  .logo img, .kopf.ist-fixiert .logo img, .unterseite .logo img { height: 70px; }
  .kopf { background: rgba(34, 34, 34, .85); }
  .menue-knopf {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -8px; padding: 0;
    background: none; border: 0; color: var(--kupfer); cursor: pointer;
  }
  .menue-knopf svg { width: 28px; height: 28px; }
  .hauptmenue {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 85vw);
    background: #191919; padding: 70px 0 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
    box-shadow: -4px 0 20px rgba(0,0,0,.4);
  }
  .hauptmenue.ist-offen { transform: none; visibility: visible; }
  .hauptmenue ul { flex-direction: column; }
  .hauptmenue a { line-height: 1.4; padding: 14px 28px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .menue-schliessen {
    position: absolute; top: 8px; right: 8px; width: 48px; height: 48px;
    background: none; border: 0; color: #ddd; font-size: 30px; cursor: pointer;
  }
  .menue-schleier { position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.5); }
}
@media (min-width: 960px) { .menue-schliessen, .menue-schleier { display: none !important; } }

/* ----------------------------------------------------------- Videokopf --- */
.videokopf {
  /* ganzes 16:9-Bild zeigen, damit Texte im Video nie abgeschnitten werden */
  position: relative; z-index: 1; overflow: hidden; background: #000;
  width: 100%; aspect-ratio: 16 / 9; max-height: 100vh; max-height: 100svh;
}
.videokopf .poster, .videokopf .poster img,
.videokopf video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none;
}
@media (max-width: 959px) {
  .videokopf { margin-top: 60px; } /* Menüleiste nicht über das Video legen */
  .videokopf::after { display: none; }
}
.videokopf video { opacity: 0; transition: opacity .8s ease; }
.videokopf video.aktiv { opacity: 1; }
.videokopf::after { /* leichte Abdunklung oben, damit Logo und Menü lesbar bleiben */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0));
}
.kopf-steuerung {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px; border-radius: 24px; background: rgba(0,0,0,.35);
}
.kopf-steuerung .punkte { display: flex; }
.videokopf .ton {
  position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px; line-height: 40px; min-height: 40px; border-radius: 25px; cursor: pointer;
  font: 15px var(--schrift); color: var(--weiss);
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.45);
  transition: border-color .2s, background-color .2s;
}
.videokopf .ton:hover { border-color: rgba(255,255,255,.85); background: rgba(0,0,0,.45); }
.videokopf .ton svg { width: 20px; height: 20px; display: block; }
.videokopf .ton.ist-an { border-color: var(--kupfer); }
@media (max-width: 600px) { .videokopf .ton { bottom: 76px; } }
.kopf-steuerung button {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--weiss);
}
.kopf-steuerung .punkt::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--weiss); transition: background-color .2s;
}
.kopf-steuerung .punkt[aria-current="true"]::before { background: var(--kupfer); border-color: var(--kupfer); }
.kopf-steuerung .pause svg { width: 18px; height: 18px; }
.kopf-steuerung .trenner { width: 1px; height: 18px; background: rgba(255,255,255,.4); margin: 0 4px; }

/* -------------------------------------------------------- Abschnitte --- */
.abschnitt { position: relative; }
.zeile { display: flex; flex-wrap: wrap; margin: 0 calc(var(--spalte) * -1); }
.spalte { padding: 0 var(--spalte); }
.viertel { width: 25%; } .dreiviertel { width: 75%; } .haelfte { width: 50%; }
.zwei-fuenftel { width: 40%; } .drei-fuenftel { width: 60%; }
@media (max-width: 767px) {
  .viertel, .dreiviertel, .haelfte, .zwei-fuenftel, .drei-fuenftel { width: 100%; }
}
.zentriert { text-align: center; }
.kopfzeile { max-width: 523px; margin: 0 auto 40px; text-align: center; }

/* Über uns ------------------------------------------------------------- */
.wir {
  background: #373737 no-repeat 50% 100%;
  background-image: url(../img/ueber-uns/tor-hintergrund-1920.png);
  background-image: image-set(url(../img/ueber-uns/tor-hintergrund-1920.avif) type("image/avif"),
                              url(../img/ueber-uns/tor-hintergrund-1920.webp) type("image/webp"),
                              url(../img/ueber-uns/tor-hintergrund-1920.png) type("image/png"));
  padding: 0 0 170px;
}
@media (max-width: 960px) {
  .wir {
    background-image: url(../img/ueber-uns/tor-hintergrund-960.png);
    background-image: image-set(url(../img/ueber-uns/tor-hintergrund-960.avif) type("image/avif"),
                                url(../img/ueber-uns/tor-hintergrund-960.webp) type("image/webp"),
                                url(../img/ueber-uns/tor-hintergrund-960.png) type("image/png"));
  }
}
.wir .augenbraue { color: var(--kupfer-hell); }
.wir .titel { color: var(--weiss); text-align: center; margin: 50px 0 40px; }
.wir .einleitung { color: #b0b0b0; text-align: justify; }
.wir .kasten { background: rgba(0, 0, 0, .55); padding-bottom: 30px; }
.wir .kasten img { width: 100%; }
.wir .kasten .text { padding: 50px 40px 10px; color: #eee; text-align: justify; }
@media (max-width: 767px) {
  .wir { padding-top: 40px; padding-bottom: 120px; }
  .wir .titel { margin: 10px 0 20px; }
  .wir .einleitung { margin-bottom: 30px; }
  .wir .kasten .text { padding: 30px 20px 0; }
}

/* Team (Hintergrundbild, Parallax wie im Original: Bild steht, Seite scrollt) */
.parallax { position: relative; isolation: isolate; clip-path: inset(0); }
.parallax-bild { position: fixed; inset: 0; z-index: -2; background: #555 50% 50% / cover no-repeat; pointer-events: none; }
.team { padding: 150px 0 240px; }
.team .parallax-bild {
  background-image: url(../img/ueber-uns/team-1920.jpg);
  background-image: image-set(url(../img/ueber-uns/team-1920.avif) type("image/avif"),
                              url(../img/ueber-uns/team-1920.webp) type("image/webp"),
                              url(../img/ueber-uns/team-1920.jpg) type("image/jpeg"));
}
@media (max-width: 800px) { .team { padding: 60px 0 120px; } }
.team .spruch {
  width: 60%; background: rgba(255, 255, 255, .72); padding: 20px 24px 5px; margin-bottom: 40px;
}
.team .spruch h2 { margin-bottom: 15px; }
.fakt .zahl { display: block; font-size: 90px; line-height: 117px; color: var(--kupfer); }
.fakt h3 { margin: 0; }
.team .fakt { display: inline-block; background: rgba(255,255,255,.72); padding: 15px 24px 0; }
@media (max-width: 767px) {
  .team .spruch { width: 100%; }
  h2 { font-size: 30px; line-height: 36px; }
  .fakt .zahl { font-size: 64px; line-height: 80px; }
}

/* Firmengeschichte (grau) -------------------------------------------- */
.geschichte { background: #6e6e6e; color: var(--weiss); padding: 30px 0; }
.geschichte .spalten-text { columns: 2; column-gap: 24px; text-align: justify; padding: 30px 0 20px; }
.geschichte .spalten-text p { break-inside: avoid-column; }
.geschichte a { color: #f3d4b6; text-decoration: underline; }
.bilderreihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0 0 30px; }
.bilderreihe img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bilderreihe .video-link { display: block; position: relative; color: var(--weiss); }
.bilderreihe .video-link img { aspect-ratio: 4 / 3; }
.bilderreihe .video-link span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px;
  background: rgba(255,255,255,.92); color: var(--anthrazit); font-weight: 700; text-align: center;
}
.abspiel-symbol {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -60%);
  border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center;
  pointer-events: none;
}
.abspiel-symbol svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
@media (max-width: 767px) {
  .geschichte .spalten-text { columns: 1; padding-top: 10px; }
  .bilderreihe { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Angebot ------------------------------------------------------------- */
.angebot { padding: 110px 0; }
.angebot h3 { text-align: center; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 0 46px; padding: 0 var(--spalte); }
.kachel { margin: 0 0 0; }
.kachel-link { display: block; position: relative; color: inherit; text-decoration: none; }
.kachel-link:hover { text-decoration: none; }
.kachel-bild { position: relative; overflow: hidden; }
.kachel-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.kachel-hinweis {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(51, 51, 51, .8); color: var(--weiss); font-size: 16px; opacity: 0; transition: opacity .3s ease;
}
.kachel-hinweis svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.5; }
.kachel-link:hover .kachel-hinweis, .kachel-link:focus-visible .kachel-hinweis { opacity: 1; }
.kachel-link:hover img { transform: scale(1.04); }
.kachel-balken { display: block; width: 25%; height: 5px; margin: -3px auto 0; background: var(--kupfer); position: relative; }
.kachel .h4 { text-align: center; padding: 20px 0 10px; margin: 0; }
.kachel-trenner { grid-column: 1 / -1; border-top: 1px solid rgba(0,0,0,.08); margin: 0 0 30px; }
.kunden { margin-top: 0; }
.kunden h3 { text-align: left; }
.kunden .rechts { text-align: justify; }
@media (max-width: 767px) {
  .angebot { padding: 60px 0; }
  .kacheln { grid-template-columns: 1fr; padding: 0; }
  .kachel-trenner { display: none; }
  .kachel { margin-bottom: 20px; }
  .kachel-hinweis { opacity: 1; background: none; justify-content: flex-end; align-items: flex-end; padding: 10px; }
  .kachel-hinweis span { background: rgba(35,35,35,.8); padding: 2px 10px; font-size: 14px; }
  .kachel-hinweis svg { display: none; }
  .kunden h3 { font-size: 26px; line-height: 32px; }
}

/* Referenzen ---------------------------------------------------------- */
.referenzen { background: #e9e9e9; padding: 110px 0 70px; }
.referenzen .augenbraue, .referenzen .download { color: var(--kupfer-text-grau); }
.download { display: inline-flex; align-items: center; gap: 6px; }
.download svg { width: 14px; height: 14px; fill: currentColor; }
.galerie { display: grid; grid-template-columns: repeat(7, 1fr); list-style: none; margin: 0; padding: 0; }
.galerie a { display: block; overflow: hidden; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.galerie a:hover img { transform: scale(1.06); opacity: .9; }
@media (max-width: 959px) { .galerie { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 600px) { .galerie { grid-template-columns: repeat(3, 1fr); } .referenzen { padding: 60px 0 40px; } }

/* Videos (neu) -------------------------------------------------------- */
.videos { padding: 110px 0 80px; }
.filmliste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; list-style: none; margin: 0; padding: 0; }
.film { display: block; color: var(--anthrazit); }
.film:hover { text-decoration: none; }
.film-bild { position: relative; overflow: hidden; background: #000; }
.film-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.film:hover .film-bild img { transform: scale(1.04); }
.film-bild .abspiel-symbol { transform: translate(-50%, -50%); }
.film-titel { display: block; text-align: center; padding: 12px 0 0; font-size: 16px; }
.film-dauer { display: block; text-align: center; color: var(--text); font-size: 13px; }
@media (max-width: 959px) { .filmliste { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .filmliste { grid-template-columns: 1fr; } .videos { padding: 60px 0 40px; } }

/* Kontakt ------------------------------------------------------------- */
.dunkel { background: #262626; color: #bbb; }
.kontakt { padding: 110px 0 10px; }
.kontakt .augenbraue, .kontakt .adresse, .kontakt .telefon a, .kontakt .telefon span { color: var(--kupfer-hell); }
.kontakt h3 { color: var(--weiss); }
.telefon { font-size: 20px; line-height: 28px; margin: 0 0 15px; display: flex; align-items: center; gap: 8px; }
.telefon svg { width: 18px; height: 18px; fill: var(--kupfer-hell); flex: none; }
.kontakt .adresse { font-style: normal; margin-top: 20px; }
.karte { position: relative; margin-top: 40px; }
.karte a { display: block; color: #555; }
.karte img { width: 100%; }
.karte .bildunterschrift { display: block; background: #f4f4f4; color: #555; text-align: center; padding: 6px; }
.halle-streifen { background: #1d1f1f; height: 53px; position: relative; }
.halle-streifen .container { position: relative; height: 100%; }
.halle-streifen img { position: absolute; left: var(--spalte); bottom: 0; width: 394px; max-width: 40%; }
@media (max-width: 767px) { .halle-streifen { display: none; } .kontakt { padding-top: 60px; } }

/* Formular ------------------------------------------------------------ */
.formular .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.formular .feld { margin: 0 0 20px; }
.formular input[type=text], .formular input[type=email], .formular textarea {
  width: 100%; padding: 10px; font: 15px var(--schrift);
  background: #2e2e2e; color: #e8e2dc; border: 1px solid #4a4a4a; border-radius: 0;
  box-shadow: inset 0 0 2px 2px rgba(0,0,0,.02);
}
.formular textarea { min-height: 200px; resize: vertical; }
.formular ::placeholder { color: #aaa29b; opacity: 1; }
.formular input:focus, .formular textarea:focus { border-color: var(--kupfer); outline: none; box-shadow: 0 0 0 2px var(--kupfer); }
.formular .einwilligung { font-size: 13px; line-height: 22px; color: #a9a9a9; margin-bottom: 10px; }
.formular .einwilligung a { color: var(--kupfer-hell); }
.formular .haken { display: flex; gap: 10px; align-items: center; margin: 0 0 20px 6px; color: #a9a9a9; cursor: pointer; }
.formular .haken input { width: 18px; height: 18px; accent-color: var(--kupfer); }
.formular .honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.knopf {
  display: block; width: 100%; padding: 16px 20px; border: 0; cursor: pointer;
  background: var(--kupfer-text); color: var(--weiss); font: 14px var(--schrift);
  transition: background-color .2s;
}
.knopf:hover { background: #8a5a33; }
.knopf[disabled] { opacity: .6; cursor: wait; }
.formular .meldung { margin: 15px 0 0; padding: 10px 14px; border-left: 4px solid var(--kupfer); background: rgba(255,255,255,.06); color: #eee; }
.formular .meldung:empty { display: none; }
.formular .meldung.fehler { border-color: #e06c6c; }
.hell .formular .meldung { background: #f4f4f4; color: #333; }
@media (max-width: 600px) { .formular .reihe { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Fuß --- */
.fuss { background: #282828; color: #9b9b9b; padding: 70px 0 50px; }
.fuss .zeile { align-items: flex-start; }
.fuss-menue { list-style: none; margin: 0; padding: 0; }
.fuss-menue a {
  display: block; padding: 7px 10px; margin-bottom: 5px;
  background: rgba(0,0,0,.1); color: #ccc;
}
.fuss-menue a:hover, .fuss-menue a[aria-current] { color: var(--weiss); text-decoration: none; background: rgba(0,0,0,.25); }
.fuss .logo-fuss { display: flex; justify-content: center; }
.fuss .logo-fuss img { width: 225px; }
.drittel { width: 33.333%; }
@media (max-width: 767px) { .drittel { width: 100%; } .fuss .logo-fuss { margin-top: 30px; } }

/* --------------------------------------------------------- Unterseiten --- */
.unterseite main { padding-top: 60px; }
.seitenkopf { background: #f7f7f7; padding: 30px 0; text-align: center; }
.seitenkopf .seitentitel { font-size: 25px; line-height: 30px; color: #444; margin: 0 0 6px; }
.brotkrumen ol { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; font-size: 13px; }
.brotkrumen li + li::before { content: "›"; margin-right: 8px; color: #999; }
.brotkrumen a { color: var(--text); }
.rechtstext { padding-top: 40px; padding-bottom: 70px; overflow-wrap: anywhere; }
.rechtstext h1 { font-size: 40px; line-height: 46px; }
.rechtstext h2 { font-size: 34px; line-height: 40px; margin-top: 10px; }
.rechtstext h3, .rechtstext h2.h3 { font-size: 24px; line-height: 30px; margin-top: 25px; }
.rechtstext h4 { margin-top: 25px; }
.rechtstext li { margin-bottom: 8px; }
.rechtstext table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.rechtstext td, .rechtstext th { border: 1px solid rgba(0,0,0,.08); padding: 10px; text-align: center; vertical-align: middle; }
.rechtstext tr:nth-child(odd) td { background: rgba(0,0,0,.02); }
@media (max-width: 600px) {
  .rechtstext h1 { font-size: 28px; line-height: 34px; }
  .rechtstext h2 { font-size: 24px; line-height: 30px; }
  .rechtstext h3 { font-size: 20px; line-height: 26px; }
}

/* Karriere ------------------------------------------------------------ */
.karriere-grund { background: #fff; }
.karriere-grund .parallax-bild {
  background-color: #fff;
  background-image: url(../img/karriere/treppe-hintergrund-1600.jpg);
  background-image: image-set(url(../img/karriere/treppe-hintergrund-1600.avif) type("image/avif"),
                              url(../img/karriere/treppe-hintergrund-1600.webp) type("image/webp"),
                              url(../img/karriere/treppe-hintergrund-1600.jpg) type("image/jpeg"));
}
@media (max-width: 900px) {
  .karriere-grund .parallax-bild {
    background-image: url(../img/karriere/treppe-hintergrund-900.jpg);
    background-image: image-set(url(../img/karriere/treppe-hintergrund-900.avif) type("image/avif"),
                                url(../img/karriere/treppe-hintergrund-900.webp) type("image/webp"),
                                url(../img/karriere/treppe-hintergrund-900.jpg) type("image/jpeg"));
  }
}
.karriere-grund::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.9); }
.karriere-grund > .container { position: relative; }
.karriere-abschnitt { padding-top: 50px; padding-bottom: 30px; }
.karriere-abschnitt h2 { text-align: center; }
.karriere-abschnitt h2.h3 { text-align: left; margin-top: 10px; }
.karriere-abschnitt li { color: #5d666d; margin-bottom: 6px; }
.stellen-karte {
  background: #f5f5f5; border-radius: 10px; padding: 10px 10px 1px;
  box-shadow: 5px 5px 10px 5px rgba(0,0,0,.35);
  margin-bottom: 40px;
}
.stellen-karte h3 { text-align: center; }
.stellen-karte .untertitel { text-align: center; }
.karriere-abschnitt .kontaktzeile { text-align: center; }
.hell.formular-bereich { padding-top: 30px; padding-bottom: 60px; }
@media (max-width: 600px) {
  .karriere-abschnitt h1 { font-size: 32px; line-height: 38px; }
  .karriere-abschnitt h3 { font-size: 24px; line-height: 30px; }
}

/* ---------------------------------------------------------- Lightbox --- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(15, 15, 15, .96); color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-kopf { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 20px; }
.lb-titel { font-size: 14px; color: #ddd; }
.lb-buehne { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb-buehne picture, .lb-buehne img, .lb-buehne video { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; }
.lb-buehne video { width: min(100%, 1280px); background: #000; }
.lightbox button {
  background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox [hidden] { display: none; }
.lb-zurueck, .lb-weiter { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-zurueck { left: 8px; } .lb-weiter { right: 8px; }
.lb-fuss { text-align: center; padding: 10px 16px 16px; font-size: 13px; color: #bbb; min-height: 40px; }
@media (max-width: 600px) {
  .lb-buehne { padding: 0 4px; }
  .lb-zurueck, .lb-weiter { top: auto; bottom: -52px; transform: none; }
  .lb-zurueck { left: 16px; } .lb-weiter { right: 16px; }
}

/* ---------------------------------------------------------- 404 ------- */
.fehlerseite { padding: 80px 0 120px; text-align: center; }

@media print {
  .kopf, .videokopf, .kopf-steuerung, .formular, .fuss-menue { display: none !important; }
  .unterseite main { padding-top: 0; }
  body { color: #000; }
}

/* Überschriften-Optik unabhängig von der Gliederungsebene */
.h3 { font-size: 32px; line-height: 35px; font-weight: 400; color: var(--schwarz); }
.h4 { font-size: 20px; line-height: 28px; font-weight: 400; color: var(--schwarz); }
.h6 { font-size: 14px; line-height: 25px; font-weight: 700; letter-spacing: 5px; margin: 0 0 15px; }
.augenbraue.h6 { color: var(--kupfer-text); }
.wir .augenbraue.h6 { color: var(--kupfer-hell); }
.referenzen .augenbraue.h6 { color: var(--kupfer-text-grau); }
.kontakt .augenbraue.h6 { color: var(--kupfer-hell); }
.kontakt .h3, .wir .titel { color: var(--weiss); }
.hauptmenue a.aktiv { color: var(--weiss); }
@media (max-width: 767px) { .h3 { font-size: 26px; line-height: 32px; } }
@media (max-width: 767px) {
  /* Blocksatz reißt in schmalen Spalten Lücken – auf dem Handy linksbündig */
  .wir .einleitung, .wir .kasten .text, .geschichte .spalten-text, .kunden .rechts { text-align: left; }
}
/* Formular auf hellem Grund (Karriere) */
.hell .formular .einwilligung, .hell .formular .haken { color: var(--text); }
.hell .formular .einwilligung a { color: var(--kupfer-text); }
@media (max-width: 959px) {
  .wir .viertel, .wir .dreiviertel { width: 100%; }
  .wir { padding-top: 50px; }
  .wir .titel { margin: 10px 0 20px; }
  .wir .einleitung { max-width: 560px; margin: 0 auto 30px; text-align: center; }
}

/* Fußzeile liegt fest unten hinter dem Inhalt und wird beim Scrollen aufgedeckt (wie im Original) */
main { position: relative; z-index: 1; background: var(--weiss); }
@media (min-width: 768px) and (min-height: 640px) {
  .fuss { position: sticky; bottom: 0; z-index: 0; }
}

/* Hover wie im Original: dunkler Schleier + runder Knopf mit Symbol */
.wir .kasten a, .galerie a { position: relative; display: block; overflow: hidden; }
.wir .kasten a::before, .galerie a::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.18);
  opacity: 0; transition: opacity .3s ease;
}
.wir .kasten a::after, .galerie a::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: #fff 50% 50% / 24px no-repeat;
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
.wir .kasten a::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.6'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.galerie a::after { width: 40px; height: 40px; margin: -20px 0 0 -20px; background-size: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E"); }
.wir .kasten a:hover::before, .wir .kasten a:focus-visible::before, .galerie a:hover::before, .galerie a:focus-visible::before { opacity: 1; }
.wir .kasten a:hover::after, .wir .kasten a:focus-visible::after, .galerie a:hover::after, .galerie a:focus-visible::after { opacity: 1; transform: none; }
.galerie a:hover img { opacity: 1; }

@media (max-width: 600px) {
  .videokopf .ton { left: 10px; bottom: 10px; transform: none; padding: 0 12px; line-height: 32px; min-height: 32px; font-size: 13px; gap: 6px; }
  .videokopf .ton svg { width: 16px; height: 16px; }
  .kopf-steuerung { left: auto; right: 10px; bottom: 10px; transform: none; padding: 0 4px; }
  .kopf-steuerung button { width: 24px; height: 32px; }
  .kopf-steuerung .punkt::before { width: 9px; height: 9px; }
}

/* Leistungsauswahl im Formular */
.formular select {
  width: 100%; padding: 10px 36px 10px 10px; font: 15px var(--schrift); border-radius: 0;
  background: #2e2e2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7956b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  color: #e8e2dc; border: 1px solid #4a4a4a; appearance: none; -webkit-appearance: none;
}
.formular select:invalid, .formular select option[value=""] { color: #aaa29b; }
.formular select:focus { border-color: var(--kupfer); outline: none; box-shadow: 0 0 0 2px var(--kupfer); }
.formular .reihe .feld:only-child { grid-column: 1 / -1; }

/* „Angebot anfragen“ unter den Angebots-Kacheln */
.anfrage-link {
  display: table; margin: 0 auto 30px; padding: 4px 14px; border: 1px solid var(--kupfer);
  color: var(--kupfer-text); font-size: 14px; text-decoration: none; transition: background-color .2s, color .2s;
}
.anfrage-link:hover, .anfrage-link:focus-visible { background: var(--kupfer-text); color: var(--weiss); text-decoration: none; }
.kachel .h4 { padding-bottom: 8px; }

/* Schnellkontakt-Leiste auf dem Handy */
.handy-leiste { display: none; }
@media (max-width: 767px) {
  .handy-leiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--anthrazit); border-top: 1px solid rgba(255,255,255,.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .handy-leiste a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
    color: var(--weiss); font-size: 16px; text-decoration: none;
  }
  .handy-leiste a + a { background: var(--kupfer-text); }
  .handy-leiste svg { width: 20px; height: 20px; fill: currentColor; }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  .kopf-steuerung button { width: 20px; }
}
@media print { .handy-leiste { display: none !important; } }

/* Referenzen: Filter, Startauswahl, Projektnamen */
.ref-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -10px 0 30px; }
.ref-filter[hidden], .ref-mehr-zeile[hidden] { display: none; }
.ref-filter button {
  padding: 6px 14px; border: 1px solid var(--kupfer); background: transparent; cursor: pointer;
  font: 14px var(--schrift); color: var(--kupfer-text-grau); transition: background-color .2s, color .2s;
}
.ref-filter button:hover { background: rgba(185,122,70,.12); }
.ref-filter button[aria-pressed="true"] { background: var(--kupfer-text-grau); color: var(--weiss); }
.ref-filter .anzahl { opacity: .75; font-size: 12px; }
.galerie li { position: relative; animation: ref-ein .35s ease both; }
.galerie li[hidden] { display: none; }
@keyframes ref-ein { from { opacity: 0; transform: scale(.97); } }
.ref-titel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  padding: 4px 6px; background: rgba(35,35,35,.82); color: var(--weiss);
  font-size: 11px; line-height: 1.3; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere;
}
/* Startauswahl: bei 5 Spalten 20 statt 21 Bilder, damit die letzte Reihe voll ist */
@media (min-width: 601px) and (max-width: 959px) {
  .galerie.nur-auswahl li:nth-child(21) { display: none; }
}
.ref-mehr-zeile { text-align: center; margin: 30px 0 0; }
.ref-mehr {
  padding: 10px 22px; border: 1px solid var(--kupfer); background: transparent; cursor: pointer;
  font: 14px var(--schrift); color: var(--kupfer-text-grau); transition: background-color .2s, color .2s;
}
.ref-mehr:hover, .ref-mehr:focus-visible { background: var(--kupfer-text-grau); color: var(--weiss); }
@media (max-width: 600px) {
  .ref-filter { gap: 6px; }
  .ref-filter button { padding: 6px 10px; font-size: 13px; }
  .ref-titel { font-size: 10px; padding: 3px 4px; }
}

/* Nachweise bei den Zertifikaten */
.siegel { list-style: none; margin: 10px 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.siegel li {
  display: flex; flex-direction: column; align-items: center; min-width: 150px; padding: 10px 14px;
  border: 1px solid var(--kupfer); background: rgba(255,255,255,.55); line-height: 1.3;
}
.siegel strong { color: var(--anthrazit); font-size: 15px; }
.siegel span { color: var(--text); font-size: 12px; }
.formular input[type=tel] {
  width: 100%; padding: 10px; font: 15px var(--schrift);
  background: #2e2e2e; color: #e8e2dc; border: 1px solid #4a4a4a; border-radius: 0;
}
.formular input[type=tel]:focus { border-color: var(--kupfer); outline: none; box-shadow: 0 0 0 2px var(--kupfer); }
.filme-karriere { padding-bottom: 20px; }
.filme-karriere h2 { margin-bottom: 30px; }
@media (max-width: 600px) { .siegel li { min-width: 0; flex: 1 1 40%; } }
@media (min-width: 601px) { .filme-karriere .filmliste { grid-template-columns: repeat(3, 1fr); } }

/* Vorschau: offene Stellen in Rechtstexten */
mark.offen { background: #fff1b8; color: #3b2f00; padding: 0 3px; }
.pruefhinweis { border-left: 4px solid var(--kupfer); background: #fbf6ef; padding: 10px 14px; }
.rechtstext h2.h4, .rechtstext h3.h4 { font-size: 20px; line-height: 28px; margin-top: 30px; }
.rechtstext h3.h4 { font-size: 17px; margin-top: 20px; }
