/* =========================================================================
   E&R FERTIGUNGSTECHNIK — DESIGN SYSTEM
   Ton: Präzisionsfertigung / CNC-Dreh- und Fräsbearbeitung
   Leitidee: Technische Zeichnung trifft modernes Web — Maßlinien,
   Messmarken (wie an einer Koordinatenmessmaschine) und ein klarer,
   ruhiger Raster ersetzen verspielte Deko-Elemente.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --ink: #14181d;              /* Graphit — Haupttext */
  --ink-soft: #454e57;         /* Sekundärtext */
  --steel-500: #6b7480;
  --surface: #ffffff;
  --surface-alt: #f3f5f7;      /* helle Kontrastfläche */
  --line: #e1e6ea;             /* Konturlinie / Rahmen */
  --line-strong: #c7cfd6;
  --graphite: #181d22;         /* dunkle Flächen: Header/Footer/Hero */
  --graphite-2: #262e35;
  --accent: #2c5c82;           /* Blaupause-Blau — primärer Akzent (wie im Original) */
  --accent-dark: #1f4562;
  --accent-ink: #15304a;
  --accent-light: #6ea0c4;
  --success: #1c7c4f;
  --success-bg: #e9f7f0;
  --error: #c62828;
  --error-bg: #fdecec;

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Roboto Mono", "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.3rem;
  --text-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --text-3xl: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);
  --text-4xl: clamp(2.5rem, 1.7rem + 4vw, 4.6rem);

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 29, 0.06), 0 1px 1px rgba(20,24,29,.04);
  --shadow-md: 0 12px 32px -12px rgba(20, 24, 29, 0.28);

  --container: 1240px;
}

/* ---------- Basis ---------- */
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

p {
  color: var(--ink-soft);
  overflow-wrap: break-word;
  word-break: break-word;
}
p + p { margin-top: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-7); }
}

section { position: relative; }

.section-pad { padding-block: var(--space-9); }
@media (max-width: 720px) {
  .section-pad { padding-block: var(--space-7); }
}

.bg-alt { background: var(--surface-alt); }
.bg-graphite { background: var(--graphite); color: #fff; }
.bg-graphite p { color: #b7c0c9; }

/* Eyebrow / Kicker-Label (Mono, Tracking) — kennzeichnet den Abschnitt */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.bg-graphite .eyebrow { color: #79b0d9; }
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head.center { max-width: 680px; margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--text-3xl); }
.section-head p { margin-top: var(--space-4); font-size: var(--text-lg); }

/* ---------- Maßlinien-Divider (Signature-Element) ----------
   Zitiert die Maßlinie technischer Zeichnungen: zwei Linien mit
   Endstrichen ("Messmarken") und einem zentrierten Label — genau wie
   die Bemaßung an einem CNC-Werkstück oder der Report einer
   Koordinatenmessmaschine. */
.dim-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--steel-500);
  margin-block: var(--space-8);
}
.dim-divider .dim-line {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  position: relative;
}
.dim-divider .dim-line::before,
.dim-divider .dim-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--line-strong);
}
.dim-divider .dim-line::before { left: 0; }
.dim-divider .dim-line::after { right: 0; }
.dim-divider .dim-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bg-graphite .dim-divider,
.bg-graphite .dim-divider .dim-line,
.bg-graphite .dim-divider .dim-line::before,
.bg-graphite .dim-divider .dim-line::after { color: #4b5560; background: none; }
.bg-graphite .dim-divider .dim-line { background: #333c44; }
.bg-graphite .dim-divider .dim-line::before,
.bg-graphite .dim-divider .dim-line::after { background: #333c44; }

/* ---------- Messmarken / Corner-Ticks (Hover-Signatur) ----------
   Vier kurze Eckwinkel, wie Referenzpunkte einer Bauteilvermessung.
   Werden auf Bild-Frames beim Hover eingeblendet. */
.tick-frame { position: relative; overflow: hidden; }
.tick-frame::before,
.tick-frame::after,
.tick-frame .tick-br,
.tick-frame .tick-bl { display: none; }
.tick-frame .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  z-index: 2;
}
.tick-frame .corner::before,
.tick-frame .corner::after { content: ""; position: absolute; background: var(--accent); }
.corner.tl { top: 10px; left: 10px; }
.corner.tr { top: 10px; right: 10px; }
.corner.bl { bottom: 10px; left: 10px; }
.corner.br { bottom: 10px; right: 10px; }
.corner.tl::before, .corner.tr::before, .corner.bl::before, .corner.br::before { width: 100%; height: 2px; top: 0; }
.corner.tl::after, .corner.tr::after, .corner.bl::after, .corner.br::after { width: 2px; height: 100%; left: 0; }
.corner.tr::before { top: 0; }
.corner.bl::before, .corner.br::before { top: auto; bottom: 0; }
.tick-frame:hover .corner, .tick-frame:focus-within .corner { opacity: 1; transform: scale(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.bg-graphite .btn-secondary { color: #fff; border-color: #46505a; }
.bg-graphite .btn-secondary:hover { border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--text-base); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

/* Nav-Bewerbungsbutton — bewusst der einzige gefüllte Button in der Nav */
.btn-apply {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
}
.btn-apply:hover { background: var(--accent-dark); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 29, 34, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.5); }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.brand-text { display: none; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: var(--space-6); }
.main-nav a {
  color: #cfd6dc;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .01em;
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; border-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  color: #cfd6dc;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.header-phone:hover { color: #fff; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  color: #fff;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 980px) {
  .brand-text { display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; color: #9aa4ad; text-transform: uppercase; }
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobiles Menü */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--graphite);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-8); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav a {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav .btn-apply { margin-top: var(--space-6); align-self: flex-start; }
.mobile-nav-foot { margin-top: auto; color: #97a1aa; font-family: var(--font-mono); font-size: var(--text-sm); }
.mobile-nav-foot a { color: #fff; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--graphite);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,29,.35) 0%, rgba(15,18,22,.55) 55%, rgba(12,14,17,.92) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: var(--space-9) var(--space-6); }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #79b0d9;
  margin-bottom: var(--space-4);
}
.hero h1 { font-size: var(--text-4xl); max-width: 16ch; }
.hero-lede { max-width: 46ch; font-size: var(--text-lg); color: #d7dce0; margin-top: var(--space-5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-7); }

/* Statleiste unter dem Hero — Maßlinien-Look */
.stat-strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stat-strip .stat {
  padding: var(--space-5) var(--space-5) var(--space-6);
  border-right: 1px solid rgba(255,255,255,.14);
  position: relative;
}
.stat-strip .stat::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 1px; height: 8px;
  background: rgba(255,255,255,.4);
}
.stat .stat-value { font-family: var(--font-mono); font-size: var(--text-xl); color: #fff; font-weight: 700; }
.stat .stat-label { font-size: var(--text-xs); color: #97a1aa; letter-spacing: .04em; margin-top: var(--space-1); }
@media (min-width: 720px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

/* Seiten-Header für Unterseiten (statt großem Hero) */
.page-header {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: var(--graphite);
}
.page-header::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,29,.25) 0%, rgba(14,17,20,.85) 100%);
}
.page-header-inner { position: relative; z-index: 2; padding-block: var(--space-8) var(--space-6); width: 100%; }
.page-header h1 { font-size: var(--text-3xl); }
.breadcrumb { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: #b9c2ca; margin-bottom: var(--space-3); }
.breadcrumb a:hover { color: #fff; }
.page-lede { max-width: 60ch; color: #d7dce0; font-size: var(--text-lg); margin-top: var(--space-4); }

/* ---------- Intro / Zwei-Spalten ---------- */
.split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > *:first-child { order: 2; }
}
.split img { border-radius: var(--radius-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Karten-Grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Schutz gegen Textüberlauf: Grid-Kinder dürfen unter ihre Inhaltsbreite
   schrumpfen, statt den Container zu sprengen (z. B. bei langen,
   unteilbaren Wörtern wie "Zerspanungsmechaniker"). */
.grid > *, .split > *, .value-list > *, .form-grid > *, .footer-top > *, .stat-strip > * {
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: var(--space-5);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { font-size: var(--text-sm); }
.job-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* Maschinen-Karten mit Bild + Spec-Liste */
.machine-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.machine-media { position: relative; aspect-ratio: 4/3; background: var(--surface-alt); }
.machine-media img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-5); }
.machine-body { padding: var(--space-5); border-top: 1px solid var(--line); }
.machine-body h3 { font-size: var(--text-base); margin-bottom: var(--space-3); }
.spec-list { display: flex; flex-direction: column; gap: var(--space-2); }
.spec-list li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); border-bottom: 1px dashed var(--line); padding-bottom: var(--space-2); }
.spec-list li span:first-child { color: var(--ink-soft); }
.spec-list li span:last-child { font-family: var(--font-mono); font-weight: 600; text-align: right; }

/* ---------- Referenzen-Galerie + Lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item button { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,12,14,.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 999px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: var(--space-5); right: var(--space-5); }
.lightbox-prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: var(--space-5); left: 50%; transform: translateX(-50%); color: #cfd6dc; font-family: var(--font-mono); font-size: var(--text-sm); }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
}
.cta-band.has-image { background-size: cover; background-position: center; }
.cta-band.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,18,21,.94), rgba(15,18,21,.72)); }
.cta-band > * { position: relative; z-index: 1; min-width: 0; }
.cta-band h2 { font-size: var(--text-2xl); max-width: 22ch; }
.cta-band p { max-width: 50ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1.2fr 1fr; align-items: center; padding: var(--space-9); }
}
.cta-contact-line { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-family: var(--font-mono); font-size: var(--text-sm); color: #cfd6dc; }
.cta-contact-line a:hover { color: #fff; }

/* ---------- Job / Werte-Liste (Karriere) ---------- */
.value-list { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .value-list { grid-template-columns: repeat(2, 1fr); } }
.value-item { display: flex; gap: var(--space-4); }
.value-item .num { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
.value-item h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.value-item p { font-size: var(--text-sm); }

/* ---------- Formulare ---------- */
.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 700; }
.field .hint { font-size: var(--text-xs); color: var(--steel-500); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  font-size: var(--text-base);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

.checkbox-field { display: flex; align-items: flex-start; gap: var(--space-3); }
.checkbox-field input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-field label { font-size: var(--text-sm); font-weight: 400; color: var(--ink-soft); }
.checkbox-field a { color: var(--accent); text-decoration: underline; }

/* Datei-Upload Dropzone */
.dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
  background: var(--surface-alt);
}
.dropzone.is-dragover { border-color: var(--accent); background: #eaf3fa; }
.dropzone svg { width: 32px; height: 32px; color: var(--accent); margin-inline: auto; margin-bottom: var(--space-3); }
.dropzone strong { display: block; font-size: var(--text-base); }
.dropzone span { display: block; font-size: var(--text-xs); color: var(--steel-500); margin-top: var(--space-2); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.file-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}
.file-list .file-name { font-family: var(--font-mono); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list button { background: transparent; border: 0; color: var(--error); font-weight: 700; font-size: var(--text-lg); line-height: 1; padding: var(--space-1); }

.form-status { display: none; border-radius: var(--radius-sm); padding: var(--space-4) var(--space-5); font-size: var(--text-sm); margin-top: var(--space-5); }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--success-bg); color: var(--success); border: 1px solid #bfe6d3; }
.form-status.is-error { background: var(--error-bg); color: var(--error); border: 1px solid #f3c6c6; }

/* ---------- Kontakt-Karte ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.contact-row { display: flex; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ico { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-row .label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--steel-500); }
.contact-row .value { font-weight: 600; }
.contact-row a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #97a1aa; }
.footer-top { display: grid; gap: var(--space-8); padding-block: var(--space-9) var(--space-7); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: var(--space-4); }
.footer-brand p { color: #97a1aa; font-size: var(--text-sm); max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: var(--text-sm); letter-spacing: .05em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { font-size: var(--text-sm); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal-on-Scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 0; top: -60px; background: var(--accent); color: #fff;
  padding: var(--space-3) var(--space-5); z-index: 999; transition: top .15s ease;
}
.skip-link:focus { top: 0; }
