/* Schlosserei Jann, mobile-first */

/* Schriften lokal (keine Verbindung zu Google) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/archivo-800.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/archivo-900.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo-2-600.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-700.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-800.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-mono-700.woff2") format("woff2"); }

:root {
  --anthracite: #1d2127;
  --anthracite-deep: #15181c;
  --steel: #2c508e;
  --steel-light: #6e93d6;
  --accent: #e4312a;
  --accent-dark: #c4251f;
  --accent-tint: rgba(228, 49, 42, 0.07);
  --paper: #f4f4f2;
  --paper-2: #eceae6;
  --ink: #1a1d21;
  --ink-soft: #4b5158;
  --line: rgba(20, 24, 30, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --radius-sm: 6px;
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --gutter: 1.25rem;
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-head: "Baloo 2", "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
a { color: inherit; }

/* ---------- reveal animations ---------- */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-anim) [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  html:not(.no-anim) [data-reveal][data-delay="1"] { transition-delay: 0.1s; }
  html:not(.no-anim) [data-reveal][data-delay="2"] { transition-delay: 0.2s; }
  html:not(.no-anim) [data-reveal][data-delay="3"] { transition-delay: 0.3s; }
  html:not(.no-anim) [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; }
h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
.accent { color: var(--accent); }
.dot-blue {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  border-radius: 50%;
  background: var(--steel-light);
  margin-left: 0.1em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--steel); }
.lead, .section-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }
.section-head { padding: 0 0 2.5rem; max-width: 760px; }
.section-head h2 + .section-lead { margin-top: 1.1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 700 0.95rem/1 var(--font-display);
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  min-height: 48px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: #234274; }
.btn-ghost { border-color: var(--line-light); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  max-width: 1200px; margin: 0 auto; padding: 0.7rem 1.25rem;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; text-decoration: none; padding: 0.35rem 0; }
.brand-logo { height: 40px; width: auto; }
.brand-tagline {
  font: 500 0.6rem var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); white-space: nowrap;
}
.brand-tagline b { font-weight: 500; color: var(--accent); }
.main-nav { display: none; }
.btn-call {
  margin-left: auto;
  background: transparent; border-color: var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  padding: 0.6rem 1rem; min-height: 44px;
}
.btn-call:hover { border-color: var(--accent); color: var(--accent); }
.call-num { display: none; }
@media (min-width: 640px) {
  .call-num { display: inline; }
  .call-short { display: none; }
}
.call-dot { width: 8px; height: 8px; border-radius: 50%; background: #3dd068; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .main-nav {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
  box-shadow: 0 16px 32px rgba(20, 24, 30, 0.12);
}
.main-nav a {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 0.9rem 1.5rem; color: var(--ink);
}
.main-nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  background: var(--anthracite-deep);
  border-top: 4px solid var(--steel);
  color: #fff;
  padding: 3.5rem var(--gutter) 0;
}
.hero .eyebrow { color: var(--steel-light); }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 2.5rem; }
.hero-copy .lead { color: rgba(255, 255, 255, 0.72); margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-media { position: relative; }
.hero-img { width: 100%; height: 300px; object-fit: cover; object-position: 30% center; border-radius: var(--radius-sm); }
.hero-badge {
  position: absolute; right: -8px; bottom: -16px;
  background: var(--accent); color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.hero-badge::before {
  content: ""; position: absolute; top: -9px; left: -9px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--steel); border: 3px solid var(--paper);
}
.hero-badge-top { display: block; font: 900 1.15rem/1.1 var(--font-display); }
.hero-badge-sub { display: block; font: 500 0.62rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-stats {
  max-width: 1200px; margin: 3.5rem auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-light);
}
.stat { padding: 1.4rem 0.5rem; border-bottom: 1px solid var(--line-light); }
.stat:nth-child(odd) { border-right: 1px solid var(--line-light); padding-right: 1rem; }
.stat:nth-child(even) { padding-left: 1.25rem; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; color: var(--steel-light); }
.stat span { font: 400 0.72rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }

/* ---------- sections shared ---------- */
.split, .privat, .galerie, .referenzen, .kontakt { padding: var(--section-y) var(--gutter); max-width: 1248px; margin: 0 auto; }
.firmen, .ueber { padding: var(--section-y) var(--gutter); }

/* ---------- split ---------- */
.split-grid { display: grid; gap: 1rem; }
.split-card {
  display: block; text-decoration: none;
  background: var(--anthracite); color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  position: relative; overflow: hidden;
  transition: background 0.2s ease;
}
.split-card.steel { background: var(--steel); }
.split-card.steel .split-link { color: #fff; }
.split-card:hover { background: #262b33; }
.split-card.steel:hover { background: #274880; }
.split-card h3 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 0.8rem; }
.split-card p { color: rgba(255, 255, 255, 0.75); max-width: 44ch; }
.split-link {
  display: inline-block; margin-top: 1.4rem;
  font: 700 0.9rem var(--font-display); color: var(--accent);
}
.split-card:hover .split-link { text-decoration: underline; }

/* ---------- privat / services ---------- */
.service-grid { display: grid; gap: 1rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.service-card img { width: 100%; height: 190px; object-fit: cover; }
.service-card h3 { padding: 1.1rem 1.25rem 0.4rem; }
.service-card p { padding: 0 1.25rem 1.4rem; font-size: 0.92rem; color: var(--ink-soft); }
.benefits {
  list-style: none;
  display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.25rem;
}
.benefits li {
  font-weight: 700; font-size: 0.92rem;
  padding: 0.85rem 1rem 0.85rem 2.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  position: relative;
}
.benefits li::before {
  content: ""; position: absolute; left: 0.9rem; top: 1.45rem;
  width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--accent);
}

.benefits li:nth-child(even)::before { background: var(--steel); }

/* ---------- firmen ---------- */
.firmen {
  background: var(--anthracite-deep);
  color: #fff;
}
.firmen > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.firmen .section-lead { color: rgba(255, 255, 255, 0.72); }
.firmen .eyebrow { color: var(--steel-light); }
.firmen-grid { display: grid; gap: 2.5rem; }
.cap-list h3, .cap-list .cap-title { font: 500 0.78rem var(--font-mono); letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 1rem; }
.cap-list ul { list-style: none; }
.cap-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-light);
}
.cap-list li:first-child { border-top: 1px solid var(--line-light); }
.cap-list li span { font-weight: 700; }
.cap-list li code { font: 400 0.78rem var(--font-mono); color: var(--steel-light); }
.firmen-img { width: 100%; aspect-ratio: 590 / 300; object-fit: cover; object-position: center top; border-radius: var(--radius-sm); }
.firmen-note { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
.cert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.cert-card {
  flex: 1 1 180px;
  text-decoration: none;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cert-card:hover { border-color: var(--accent); background: var(--accent-tint); }
.cert-card strong { display: block; font-size: 0.95rem; }
.cert-card span { font: 400 0.72rem var(--font-mono); color: rgba(255, 255, 255, 0.68); }
.cert-seal { background: #fff; border-radius: 50%; padding: 4px; }

/* ---------- galerie ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.chip {
  font: 700 0.82rem var(--font-display);
  padding: 0.6rem 1rem; min-height: 44px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--steel); }
.chip.is-active { background: var(--steel); border-color: var(--steel); color: #fff; }
.galerie-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g-item {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.g-item.hide { display: none; }
.g-item img { width: 100%; height: 210px; object-fit: cover; }
.g-item figcaption { padding: 0.8rem 1rem 0.95rem; font-weight: 700; font-size: 0.92rem; }
.g-item figcaption span { display: block; font: 400 0.75rem var(--font-mono); color: var(--ink-soft); margin-top: 0.15rem; }

/* ---------- referenzen ---------- */
.referenzen { padding-top: 1rem; }
.ref-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.ref-grid li { background: #fff; padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: 0.15rem; }
.ref-grid strong { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.ref-grid span { font: 400 0.75rem var(--font-mono); color: var(--ink-soft); }
.ref-logo { height: 54px; width: 100%; object-fit: contain; object-position: left center; margin-bottom: 0.8rem; }
img.ref-logo { mix-blend-mode: multiply; }
.ref-grid .ref-wordmark {
  display: flex; align-items: center;
  font: 800 1.6rem/1 var(--font-display) !important; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft) !important;
}
.ref-note { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- über uns ---------- */
.ueber { background: var(--paper-2); }
.ueber .eyebrow { color: var(--steel); }
.ueber > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.ueber-grid { display: grid; gap: 2.5rem; }
.timeline { list-style: none; border-left: 2px solid var(--steel); }
.timeline li { display: flex; gap: 1.25rem; padding: 0 0 2rem 1.5rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--paper-2);
}
.timeline time { font: 700 0.95rem var(--font-mono); color: var(--steel); min-width: 3.2em; }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { font-size: 0.92rem; color: var(--ink-soft); max-width: 48ch; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; align-self: start; }
.team-title { font: 500 0.75rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); padding: 0.5rem 0.5rem 0; }
.team-people { display: grid; gap: 1rem; padding: 1rem 0.5rem 0.5rem; }
.team-people strong { display: block; }
.team-people span { display: block; font: 400 0.75rem var(--font-mono); color: var(--ink-soft); }
.team-people a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--accent); text-decoration: none; }
.team-people a:hover { text-decoration: underline; }

/* ---------- kontakt ---------- */
.kontakt-grid { display: grid; gap: 2rem; align-items: start; }
.anfrage-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.form-leistungen { border: 0; margin-bottom: 1.5rem; }
.form-leistungen legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 0.8rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex; align-items: center;
  font: 700 0.82rem var(--font-display);
  padding: 0.6rem 1rem; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; user-select: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip-check input:checked + span { background: var(--steel); border-color: var(--steel); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-row { margin-bottom: 1.1rem; }
.form-row.two { display: grid; gap: 1.1rem; }
.form-row label { display: block; font-weight: 700; font-size: 0.88rem; }
.req { color: var(--accent); }
.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"], .form-row textarea {
  width: 100%; margin-top: 0.4rem;
  font: 400 1rem var(--font-display);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(44, 80, 142, 0.18);
  background: #fff;
}
.upload-label em { font: 400 0.75rem var(--font-mono); font-style: normal; color: var(--ink-soft); }
#foto-upload { position: absolute; width: 1px; height: 1px; opacity: 0; }
#foto-upload:focus-visible + .upload-drop { outline: 3px solid var(--accent); outline-offset: 3px; }
.upload-drop {
  display: grid; place-items: center;
  margin-top: 0.5rem; padding: 1.4rem 1rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer; text-align: center;
  font: 500 0.82rem var(--font-mono); color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-drop:hover, .upload-drop.drag { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.upload-preview .thumb {
  width: 64px; height: 64px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line); position: relative;
}
.upload-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .thumb.pdf { display: grid; place-items: center; font: 700 0.6rem var(--font-mono); background: var(--paper-2); }
.dsgvo-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--ink-soft); margin: 1.25rem 0; }
.dsgvo-check input { margin-top: 0.15rem; width: 22px; height: 22px; accent-color: var(--steel); flex-shrink: 0; }
.btn-submit { width: 100%; }
.form-error { margin-top: 0.8rem; font-size: 0.85rem; font-weight: 700; color: #c2330f; }
.form-success {
  margin-top: 1rem; padding: 1.1rem 1.25rem;
  background: #ecf7ee; border: 1px solid #bfe3c6; border-radius: var(--radius);
}
.form-success strong { color: #1c6b2d; }
.form-success p { font-size: 0.9rem; color: var(--ink-soft); }
.kontakt-card { background: var(--anthracite); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.kontakt-card h3 { margin-bottom: 0.5rem; }
.kontakt-card address { font-style: normal; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.kontakt-list { list-style: none; margin: 1.25rem 0; }
.kontakt-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.92rem;
}
.kontakt-list li:first-child { border-top: 1px solid var(--line-light); }
.kontakt-list span { font: 400 0.72rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.kontakt-list a { font-weight: 700; text-decoration: none; }
.kontakt-list a:hover { color: var(--accent); }
.map-link {
  display: block; margin-top: 1rem; padding: 0.9rem 1rem;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.map-link::after { content: " ↗"; color: var(--accent); }
.map-link span { display: block; font: 400 0.75rem var(--font-mono); color: rgba(255, 255, 255, 0.62); margin-top: 0.2rem; }
.map-link:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--anthracite-deep); color: rgba(255, 255, 255, 0.75); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid; gap: 2rem;
}
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 0.5rem 0.9rem; margin-bottom: 0.8rem; }
.footer-logo img { height: 48px; width: auto; display: block; }
.footer-brand p, .footer-col p { font-size: 0.9rem; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; font-family: var(--font-mono); font-weight: 500; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-legal {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem;
  border-top: 1px solid var(--line-light);
  font: 400 0.72rem var(--font-mono); color: rgba(255, 255, 255, 0.6);
}

/* ---------- legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.legal-page h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal-page p, .legal-page li { font-size: 0.98rem; color: var(--ink-soft); max-width: 68ch; }
.legal-page ul { padding-left: 1.25rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; font: 500 0.8rem var(--font-mono); color: var(--steel); }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--line-light); padding: 1.6rem 1.25rem; }
  .stat:last-child { border-right: 0; }
  .stat:nth-child(even) { padding-left: 1.25rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; gap: 0.25rem; margin-left: auto; }
  .main-nav a { padding: 0.6rem 0.8rem; font-size: 0.88rem; }
  .btn-call { margin-left: 0.5rem; }
  .hero { padding-top: 5.5rem; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4rem; }
  .hero-img { height: 420px; }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .split-card { padding: 2.5rem 2.25rem 2rem; min-height: 280px; display: flex; flex-direction: column; }
  .split-link { margin-top: auto; padding-top: 1.4rem; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .firmen-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .ueber-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .kontakt-grid { grid-template-columns: 1.4fr 1fr; }
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .anfrage-form { padding: 2.25rem 2rem; }
  .kontakt-card { padding: 2rem 1.75rem; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ---------- unterseiten (17.11.2026) ---------- */
.main-nav a[aria-current="page"] { color: var(--accent); }
.page-hero {
  background: var(--anthracite-deep);
  border-top: 4px solid var(--steel);
  color: #fff;
  padding: 3rem var(--gutter) 3.25rem;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.02; max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, 0.74); margin-top: 1.1rem; }
.page-hero .hero-actions { margin-top: 1.75rem; }
.crumbs { font: 500 0.75rem var(--font-mono); color: rgba(255, 255, 255, 0.6); margin-bottom: 1.1rem; }
.crumbs a { color: rgba(255, 255, 255, 0.82); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.block { padding: var(--section-y) var(--gutter); max-width: 1248px; margin: 0 auto; }
.block-tint { background: var(--paper-2); }
.block-tint > .block { padding-left: var(--gutter); padding-right: var(--gutter); }
.more-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.5rem;
  font-weight: 800; color: var(--accent); text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* Ablauf als Arbeitsschein */
.ablauf { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ablauf li { background: #fff; padding: 1.25rem 1.25rem 1.35rem; }
.ablauf h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.ablauf p { font-size: 0.92rem; color: var(--ink-soft); max-width: 52ch; }

/* Material-Tabelle */
.material { display: grid; gap: 1rem; }
.material div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.material strong { display: block; font-size: 1.05rem; }
.material p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* Startseite: Projekte-Auszug */
.teaser-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Abschluss-Band */
.cta-band { background: var(--steel); color: #fff; }
.cta-inner {
  max-width: 1200px; margin: 0 auto; padding: 3rem var(--gutter);
  display: grid; gap: 1.5rem; align-items: center;
}
.cta-inner h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.cta-inner p { color: rgba(255, 255, 255, 0.82); margin-top: 0.5rem; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.5); }

/* Über uns: Werkstatt */
.werkstatt-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 30% center; border-radius: var(--radius-sm); }
.werkstatt-caption { font: 400 0.75rem var(--font-mono); color: var(--ink-soft); margin-top: 0.6rem; }
.fakten { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.fakten li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.fakten li span { font: 400 0.78rem var(--font-mono); color: var(--ink-soft); }
.fakten li strong { text-align: right; }

/* Kontakt: Zeiten */
.zeiten { list-style: none; margin: 0 0 1.25rem; }
.zeiten li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line-light); font-size: 0.92rem; }
.zeiten li span:first-child { font: 400 0.75rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.kontakt-card h4 { font: 500 0.75rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin: 1.5rem 0 0.4rem; }

/* Firmenkunden auf hellem Grund: Zertifikate */
.cert-row.light .cert-card { color: var(--ink); border-color: var(--line); background: #fff; }
.cert-row.light .cert-card span { color: var(--ink-soft); }
.cert-row.light .cert-seal { border: 1px solid var(--line); }

@media (min-width: 640px) {
  .ablauf { grid-template-columns: 1fr 1fr; }
  .material { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .page-hero { padding: 4.5rem var(--gutter) 4.5rem; }
  .cta-inner { grid-template-columns: 1.5fr auto; padding: 3.5rem var(--gutter); }
  .ueber-grid.even { grid-template-columns: 1fr 1fr; }
}
.h3 { font-size: 1.2rem; line-height: 1.25; }
.timeline .h3 { margin-bottom: 0.3rem; }
.kontakt-list span.plain { font: 700 0.92rem var(--font-display); letter-spacing: 0; text-transform: none; color: #fff; }
.teaser-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split + .galerie { padding-top: 0; }
.page-hero + .firmen { padding-top: 1.5rem; }
.map-link { position: relative; padding-right: 2.5rem; }
.map-link::after { position: absolute; right: 1rem; top: 0.9rem; }
@media (min-width: 900px) { .benefits.three { grid-template-columns: repeat(3, 1fr); } }
.kontakt-list a { display: inline-flex; align-items: center; min-height: 44px; }
.kontakt-list li { padding: 0.15rem 0; align-items: center; }
.legal-page h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); }

/* ---------- Bilder vergrößern ---------- */
.g-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.g-zoom::after {
  content: ""; position: absolute; right: 0.6rem; bottom: 0.6rem; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(21, 24, 28, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: background-color 0.15s ease;
}
.g-zoom:hover::after { background-color: var(--accent); }
.g-zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
html.lb-open { overflow: hidden; }
.lightbox {
  border: 0; padding: 0; margin: 0; inset: 0; background: rgba(12, 14, 17, 0.95); color: #fff;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(12, 14, 17, 0.92); }
.lb-figure { margin: 0; padding: 4rem 1rem 5.5rem; width: 100%; max-width: 980px; text-align: center; }
.lb-img {
  display: block; margin: 0 auto; border-radius: var(--radius-sm); background: #222;
  width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 11rem); min-width: min(100%, 560px);
  object-fit: contain;
}
.lb-cap { margin-top: 0.9rem; font-weight: 700; font-size: 1rem; }
.lb-cap span { display: block; font: 400 0.8rem var(--font-mono); color: rgba(255, 255, 255, 0.7); margin-top: 0.2rem; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(21, 24, 28, 0.6); color: #fff;
  font: 400 2rem/1 var(--font-display); cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { border-color: #fff; background: var(--accent); }
.lb-close { top: 0.75rem; right: 0.75rem; }
.lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; top: 1.4rem; left: 50%; transform: translateX(-50%); font: 500 0.8rem var(--font-mono); color: rgba(255, 255, 255, 0.75); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 639px) {
  .lb-prev, .lb-next { top: auto; bottom: 0.9rem; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-img { min-width: 0; width: 100%; }
}
p, li, figcaption, .split-link, .more-link { text-wrap: pretty; }
@media (min-width: 1120px) { .ablauf { grid-template-columns: repeat(4, 1fr); } }
.kontakt-list li { min-height: 48px; }
/* Referenz-Logos zentriert (17.11.) */
.ref-grid li { align-items: center; text-align: center; }
.ref-logo { object-position: center; }
.ref-grid .ref-wordmark { justify-content: center; }
.ref-logo { max-width: 170px; }
