/* ============================================================
   Hess Erodiertechnik – Stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --blue:       #1472C8;
  --blue-light: #3B9EF5;
  --blue-dim:   rgba(59,158,245,0.10);
  --black:      #08090D;
  --dark:       #0C0F18;
  --surface:    #111520;
  --surface-2:  #161B28;
  --text:       #F0F3FA;
  --muted:      #5E6B88;
  --grey:       #8A96B0;
  --grey-light: #B8C2D8;
  --border:     #1A2035;
  --border-2:   #232D45;
  --header-h:   38px; /* info strip */
  --nav-h:      64px;
  --total-h:    calc(var(--header-h) + var(--nav-h));
  --r:          4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--dark);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ---------- Shared ---------- */
.c {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   SITE HEADER  (info strip + nav — always solid)
   ============================================================ */

/* --- Info strip --- */
.header-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.header-strip__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-strip__left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.header-strip__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
}
.header-strip__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-strip__link {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--grey);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.header-strip__link svg { width: 12px; height: 12px; flex-shrink: 0; }
.header-strip__link:hover { color: var(--blue-light); }

/* --- Main nav --- */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--dark);
  border-bottom: 1px solid var(--border-2);
}
/* Blue accent line at very bottom of nav */
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: var(--blue);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0 18px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue-light);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav__links a:first-child { border-left: 1px solid var(--border); }
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: background 0.2s;
}
.nav__contact svg { width: 14px; height: 14px; }
.nav__contact:hover { background: var(--blue-light); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 9px 8px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: rgba(59,158,245,0.06);
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.nav__burger[aria-expanded="true"] {
  border-color: var(--blue);
  background: rgba(59,158,245,0.12);
}
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--total-h); left: 0; right: 0;
  background: var(--black);
  border-bottom: 2px solid var(--blue);
  z-index: 99;
  flex-direction: column;
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s, padding-left 0.2s;
}
.nav__drawer a:hover { color: var(--blue-light); padding-left: 28px; }
.nav__drawer a:last-child {
  background: var(--blue);
  color: #fff;
  border-bottom: none;
  text-align: center;
}

@media (max-width: 860px) {
  .nav__links, .nav__contact { display: none; }
  .nav__burger { display: flex; }
  .header-strip__left { display: none; }
}
@media (max-width: 480px) {
  .header-strip__right { gap: 12px; }
  .header-strip__link span { display: none; }
}

/* Scroll-Offset für sticky Header bei Anker-Navigation */
#leistungen, #ueber, #zertifizierung, #referenzen, #kontakt {
  scroll-margin-top: var(--total-h);
}

/* ============================================================
   HERO  — vollbild, text zentriert
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  overflow: hidden;
  padding-top: var(--total-h);
  padding-bottom: 80px;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
/* Diagonal vignette */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 30%, rgba(8,9,13,0.55) 100%);
}
/* Horizontal scan-line effect (subtle) */
.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 40px 20px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 28px;
}
.hero__kicker::before,
.hero__kicker::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--blue);
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--blue-light);
}
.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--grey);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero__hl { color: var(--blue-light); font-weight: 700; }
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-prime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: 2px solid var(--blue);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-prime:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  box-shadow: 0 4px 24px rgba(59,158,245,0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--grey-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: 2px solid var(--border-2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--grey); color: var(--text); }
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero__scroll-track {
  width: 2px;
  height: 64px;
  background: var(--border-2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-track::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--blue-light) 50%, var(--blue-light));
  box-shadow: 0 0 8px 2px var(--blue-light);
  animation: trackDrop 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Dot at bottom of track */
.hero__scroll-track::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 6px var(--blue-light);
  z-index: 1;
}
@keyframes trackDrop {
  0%   { top: -60%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

@media (max-width: 600px) {
  .hero__scroll-hint { display: none; }
  .hero__title { font-size: 2.4rem; }
}
@media (max-height: 660px) {
  .hero__scroll-hint { display: none; }
}

/* ============================================================
   LEISTUNGEN  — horizontale Reihen statt Karten
   ============================================================ */
.leistungen {
  background: var(--dark);
  padding-block: 96px;
}
.section-head {
  margin-bottom: 56px;
}
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
}
.section-title + p {
  margin-top: 14px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 660px;
}

/* Service rows */
.service-list {
  border-top: 1px solid var(--border-2);
}
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 280px;
  align-items: start;
  gap: 0 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
}
.service-row::before {
  content: '';
  position: absolute;
  left: -20px; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform 0.25s;
  transform-origin: top;
}
.service-row:hover::before { transform: scaleY(1); }
.service-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border-2);
  line-height: 1;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  transition: color 0.2s;
}
.service-row:hover .service-num { color: var(--blue); }
.service-body {}
.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: 560px;
}
/* Bild je Leistung */
.service-media {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.3s;
  filter: saturate(0.8);
}
.service-row:hover .service-media img {
  transform: scale(1.05);
  filter: saturate(1);
}
/* Platzhalter, bis die Fotos vom Kunden geliefert sind */
.service-media--soon {
  border-style: dashed;
  border-color: var(--border-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}
.service-media--soon svg { width: 26px; height: 26px; opacity: 0.6; }
.service-media--soon span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .service-row { grid-template-columns: 64px 1fr 220px; }
}
@media (max-width: 700px) {
  .service-row { grid-template-columns: 48px 1fr; gap: 0 20px; }
  .service-media { grid-column: 2 / -1; margin-top: 20px; max-width: 420px; }
  .service-row::before { display: none; }
}

/* ============================================================
   ÜBER UNS  — geteilte Fläche, linke Seite solid blau
   ============================================================ */
.ueber {
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
.ueber__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
/* Left: solid dark-blue panel */
.ueber__panel {
  background: var(--blue);
  padding: 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ueber__panel::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}
.ueber__panel::after {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.ueber__person {
  position: relative;
  z-index: 1;
}
.ueber__photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 18px 40px rgba(8,9,13,0.25);
}
.ueber__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.ueber__person-name {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.ueber__person-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}
.ueber__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ueber__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.ueber__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.ueber__contact-item a { transition: color 0.2s; }
.ueber__contact-item a:hover { color: #fff; }
/* Right: text content */
.ueber__body {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ueber__body .section-label { margin-bottom: 10px; }
.ueber__body .section-title { margin-bottom: 24px; }
.ueber__body p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.85;
  margin-bottom: 20px;
}
@media (max-width: 860px) {
  .ueber__layout { grid-template-columns: 1fr; }
  .ueber__panel { padding: 56px 32px; }
  .ueber__body { padding: 56px 32px; }
}
@media (max-width: 480px) {
  .ueber__photo { max-width: 320px; }
  .ueber__panel, .ueber__body { padding: 40px 24px; }
}

/* ============================================================
   REFERENZEN
   ============================================================ */
.referenzen {
  padding-block: 96px;
  background: var(--dark);
}
.referenzen__head {
  margin-bottom: 48px;
}
.referenzen__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 3px;
  background: var(--border);
}
/* Span-Schema für genau 7 Bilder — geht in jedem Breakpoint lückenlos auf.
   ACHTUNG: Bei anderer Bildanzahl müssen die Spans neu gerechnet werden.
   4 Spalten: 1×(2×2) + 4×(1×1) + 2×(2×1) = 12 Zellen = 3 volle Zeilen */
.referenzen__grid .ref-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.referenzen__grid .ref-card:nth-child(6),
.referenzen__grid .ref-card:nth-child(7) {
  grid-column: span 2;
}
.ref-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.ref-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.3s;
  filter: saturate(0.75);
}
.ref-card:hover img {
  transform: scale(1.07);
  filter: saturate(1);
}
.ref-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,9,13,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.ref-card:hover .ref-card__overlay { opacity: 1; }
.ref-card__plus {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ref-card__plus svg { width: 18px; height: 18px; }

/* 3 Spalten: 2×(2×1) + 5×(1×1) = 9 Zellen = 3 volle Zeilen */
@media (max-width: 860px) {
  .referenzen__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .referenzen__grid .ref-card:first-child { grid-column: span 2; grid-row: span 1; }
  .referenzen__grid .ref-card:nth-child(4) { grid-column: span 2; }
  .referenzen__grid .ref-card:nth-child(6),
  .referenzen__grid .ref-card:nth-child(7) { grid-column: span 1; }
}
/* 2 Spalten: 1×(2×1) + 6×(1×1) = 8 Zellen = 4 volle Zeilen */
@media (max-width: 600px) {
  .referenzen__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .referenzen__grid .ref-card:first-child { grid-column: span 2; grid-row: span 1; }
  .referenzen__grid .ref-card:nth-child(4) { grid-column: span 1; }
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt {
  padding-block: 96px;
  background: var(--surface);
  border-top: 1px solid var(--border-2);
}
.kontakt__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.kontakt__info .section-label { margin-bottom: 10px; }
.kontakt__info .section-title { margin-bottom: 14px; }
.kontakt__info > p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Contact table */
.kontakt__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.kontakt__table tr {
  border-bottom: 1px solid var(--border);
}
.kontakt__table tr:first-child { border-top: 1px solid var(--border); }
.kontakt__table td {
  padding: 14px 16px;
  vertical-align: middle;
  font-size: 0.875rem;
}
.kontakt__table td:first-child {
  width: 40%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0;
}
.kontakt__table td:last-child {
  color: var(--text);
}
.kontakt__table a { transition: color 0.2s; }
.kontakt__table a:hover { color: var(--blue-light); }

/* Opening hours box */
.kontakt__hours {
  background: var(--dark);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--blue);
  padding: 22px 24px;
  border-radius: 0 var(--r) var(--r) 0;
}
.kontakt__hours-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.kontakt__hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--grey);
}
.kontakt__hours-row:last-child { border-bottom: none; }
.kontakt__hours-row strong { color: var(--text); font-weight: 500; }

/* Map */
.map-wrap {
  height: 440px;
  background: var(--dark);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}
.map-placeholder__icon {
  width: 48px; height: 48px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.map-placeholder__icon svg { width: 22px; height: 22px; }
.map-placeholder p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 240px;
}
.map-placeholder p a { color: var(--blue-light); }
.map-placeholder__btn {
  padding: 10px 24px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.map-placeholder__btn:hover { background: var(--blue-light); }

@media (max-width: 900px) {
  .kontakt__layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  border-top: 2px solid var(--blue);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__logo { height: 26px; width: auto; }
.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.footer__nav a,
.footer__nav button {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border-left: 1px solid var(--border-2);
  transition: color 0.2s;
}
.footer__nav a:last-child,
.footer__nav button:last-child { padding-right: 0; }
.footer__nav a:hover,
.footer__nav button:hover { color: var(--grey-light); }
.footer__nav button {
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  font-family: inherit;
}

/* Footer mobil: zentriert, Links untereinander, kleinere Schrift, keine Trennstriche */
@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .footer__copy { font-size: 0.7rem; line-height: 1.6; }
  .footer__nav {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .footer__nav a,
  .footer__nav button,
  .footer__nav a:last-child,
  .footer__nav button:last-child {
    border-left: none;
    padding: 7px 10px;
    font-size: 0.66rem;
  }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-top: 2px solid var(--blue);
  padding: 20px 22px;
  z-index: 200;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 16px;
}
.cookie-banner p a { color: var(--blue-light); }
.cookie-banner__btns {
  display: flex;
  gap: 8px;
}
.btn-accept {
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: background 0.2s;
}
.btn-accept:hover { background: var(--blue-light); }
.btn-necessary {
  padding: 8px 18px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  transition: color 0.2s;
}
.btn-necessary:hover { color: var(--grey); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,6,10,0.96);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 2.2rem;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s;
}
.lightbox__close:hover { color: #fff; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: var(--muted);
  padding: 0 12px;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox__nav:hover { color: #fff; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__counter {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ============================================================
   SUBPAGES
   ============================================================ */
.page-header {
  padding-top: calc(var(--total-h) + 56px);
  padding-bottom: 44px;
  background: var(--black);
  border-bottom: 1px solid var(--border-2);
}
.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color 0.2s;
}
.page-header__back:hover { color: var(--blue-light); }
.page-header__back svg { width: 14px; height: 14px; }
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
}
.page-body {
  padding-block: 60px 96px;
  background: var(--dark);
}
.page-body .c { max-width: 760px; }
.page-body h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 0;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.85;
  margin-bottom: 10px;
}
.page-body a { color: var(--blue-light); }
.page-body a:hover { text-decoration: underline; }
.page-body ul {
  list-style: disc;
  padding-left: 22px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.page-body ul li { margin-bottom: 4px; }
.page-body code {
  font-size: 0.85em;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--blue-light);
}
.impr-block {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--blue);
  padding: 20px 24px;
  margin-bottom: 10px;
  border-radius: 0 var(--r) var(--r) 0;
}
.impr-block p { margin-bottom: 4px; }
.impr-block p:last-child { margin-bottom: 0; }

/* ============================================================
   ZERTIFIZIERUNG – Teaser (One-Pager) + Unterseite
   ============================================================ */

/* ---------- Teaser auf index.html ---------- */
.zert-teaser {
  background: var(--black);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding-block: 72px;
}
.zert-teaser__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: center;
}
.zert-teaser__media {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  transition: transform 0.25s, box-shadow 0.25s;
}
.zert-teaser__media img { display: block; width: 100%; height: auto; }
.zert-teaser__media:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(20,114,200,0.28);
}
.zert-teaser__body { min-width: 0; }
.zert-teaser__body p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 24px;
}
.zert-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Unterseite: Zertifikat-Dokument ---------- */
.zert {
  background: var(--dark);
  padding-block: 56px;
}
.zert__doc {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 48px;
  align-items: center;
}
.zert__preview {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 14px 44px rgba(0,0,0,0.40);
}
.zert__preview img { display: block; width: 100%; height: auto; }
.zert__zoom {
  position: absolute;
  bottom: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(8,9,13,0.82);
  color: #fff;                  /* fix weiß: der Chip ist immer dunkel, auch im hellen Theme */
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r);
  pointer-events: none;
}
.zert__zoom svg { width: 15px; height: 15px; }

.zert__facts { min-width: 0; }
.zert__seal {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: var(--blue-dim);
  border: 1px solid rgba(59,158,245,0.25);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.zert__title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.zert__lead {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}
.zert__list {
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
}
.zert__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.zert__row dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.zert__row dd {
  font-size: 0.92rem;
  color: var(--grey-light);
  line-height: 1.6;
}
.zert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.zert__actions .btn-prime svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Unterseite: Erläuterung / Prosa ---------- */
.zert-info {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding-block: 48px 80px;
}
.zert-info .c { max-width: 820px; }
.zert-info h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin-top: 44px;
  margin-bottom: 14px;
}
.zert-info h2:first-child { margin-top: 0; }
.zert-info p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.85;
  margin-bottom: 12px;
}
.zert-info ul {
  list-style: disc;
  padding-left: 22px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.zert-info ul li { margin-bottom: 8px; }
.zert-info li strong { color: var(--grey-light); }
.zert-info a { color: var(--blue-light); }
.zert-info a:hover { text-decoration: underline; }
.zert-info__sources { list-style: none; padding-left: 0; margin-top: 6px; }
.zert-info__sources li {
  padding: 11px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}
.zert-info__sources li:first-child { border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .zert__doc { grid-template-columns: 1fr; gap: 32px; }
  .zert__preview { max-width: 400px; margin-inline: auto; }
  .zert__row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 700px) {
  .zert-teaser__inner { grid-template-columns: 1fr; gap: 28px; }
  .zert-teaser__media { max-width: 210px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .zert-teaser__actions .btn-prime,
  .zert-teaser__actions .btn-ghost,
  .zert__actions .btn-prime,
  .zert__actions .btn-ghost { flex: 1 1 100%; justify-content: center; }
}
