/* ==========================================================================
   Druckmaschinen Geiling — Industrial / Technisch
   Vanilla CSS (no framework). Accent color set via --accent.
   ========================================================================== */

:root {
  --accent: #d4550a;
  --accent-dark: #9c3d05;
  --ink: #22262b;
  --ink-strong: #181b1f;
  --muted: #5a626b;
  --mono-muted: #6d7681;
  --bg: #f5f6f7;
  --line: #d7dbdf;
  --line-strong: #b8bec5;
  --dark: #22262b;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* Überschriften bringen vom Browser je 1em Außenabstand mit. Der addiert sich
   in Karten auf den ohnehin gesetzten Abstand und reißt Lücken. Abstände
   kommen hier immer aus der jeweiligen Komponente. */
h1, h2, h3, h4, h5, h6 { margin: 0; }

/* Lange deutsche Komposita ("Datenschutzerklärung") sprengen auf schmalen
   Displays sonst die Textspalte. Netz für alles, was keine Trennstelle hat
   (lange URLs, Mail-Adressen); die weiche Silbentrennung kommt zusätzlich
   erst unter 760px dazu, damit das Desktop-Schriftbild unverändert bleibt. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .hero__title, .page-hero__title, .news__h, .news-card__title,
.serv-cell__title, .step__title, .ref__title, .ds-item__title, .prose__h,
.contact-card__v, .faq__q {
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
::selection { background: var(--accent); color: #fff; }

/* Sichtbarer Tastatur-Fokus (Barrierearmut) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sprung zum Inhalt – nur bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--accent); color: #fff; padding: 10px 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

img { max-width: 100%; display: block; }

@keyframes gScan { 0% { background-position: 0 0; } 100% { background-position: 0 48px; } }
@keyframes gPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
/* Verschiebung = Breite EINER Gruppe (JS setzt --marquee-shift in px). Dadurch
   läuft das Band unabhängig von Fensterbreite und Anzahl der Kopien nahtlos. */
@keyframes gMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); }
}

/* ---------- Shared layout helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; }
.wrap--narrow { max-width: 820px; }

.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--mono-muted);
  margin-bottom: 12px;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow .pulse,
.eyebrow--accent .pulse { display: inline-flex; }

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 8px;
  animation: gPulse 2s ease-in-out infinite;
  vertical-align: middle;
}
.eyebrow--accent { display: flex; align-items: center; }

.h1 {
  font-size: clamp(30px, 4vw, 52px);
  margin: 0 0 40px;
  font-weight: 800;
  color: var(--ink-strong);
}
.h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0 0 40px;
  font-weight: 800;
  color: var(--ink-strong);
}
.h2--light { color: #fff; margin-bottom: 20px; }

.p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; }
.p--muted { color: #aab2ba; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}
.btn--solid {
  background: var(--accent);
  color: #fff;
  padding: 16px 28px;
  font-weight: 700;
  letter-spacing: .02em;
}
.btn--solid:hover { background: var(--accent-dark); color: #fff; }
.btn--outline {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 16px 28px;
}
.btn--outline:hover { color: var(--ink); border-color: var(--accent); }
.btn--block { width: 100%; padding: 16px; text-align: center; letter-spacing: .02em; }
.btn--block:hover { filter: brightness(.9); }

/* Bot-geschützte Kontaktangaben (per JS zum Link aufgebaut) */
.cloak { cursor: pointer; }

/* Textlinks sind sonst nur so hoch wie ihre Zeile (~15px) und damit auf dem
   Touchscreen kaum zu treffen. Innenabstand statt größerer Schrift, damit das
   Schriftbild gleich bleibt. */
.link-accent { color: var(--accent); font-weight: 700; font-size: 15px; cursor: pointer; display: inline-block; padding: 7px 0; }
.link-accent:hover { color: #f5924e; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: rgba(245, 246, 247, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 20;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__logo {
  width: 34px; height: 34px; background: var(--accent);
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px;
}
.brand__name { font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.brand__name--light { font-size: 14px; color: #fff; }
.brand__sub { font-family: var(--mono); font-size: 10px; color: var(--mono-muted); letter-spacing: .12em; }

.nav__links {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; flex-wrap: wrap;
}
.nav__link { color: #454c54; cursor: pointer; }
.nav__link:hover { color: var(--accent); }
.nav__cta {
  color: #fff; background: var(--accent); padding: 10px 18px;
  font-weight: 600; cursor: pointer;
}
.nav__cta:hover { background: var(--accent-dark); color: #fff; }

/* Hamburger – nur auf schmalen Viewports sichtbar (siehe Responsive) */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 1px solid var(--line-strong); cursor: pointer;
  padding: 0 9px;
}
.nav__toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.section--white { background: #fff; }
.section--dark { background: var(--dark); color: #e6e9ec; position: relative; overflow: hidden; }
.section--gridbg {
  background-image:
    linear-gradient(rgba(60,70,80,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,70,80,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.anchor { scroll-margin-top: 90px; }

.dark-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  background-image:
    linear-gradient(rgba(60,70,80,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,70,80,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__scan {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(212,85,10,.05) 1px, transparent 1px);
  background-size: 100% 48px;
  animation: gScan 5s linear infinite;
}
.hero__ghost {
  position: absolute; top: -4vw; left: -2vw;
  font-size: clamp(120px, 22vw, 340px); font-weight: 800; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px #eef1f3;
  pointer-events: none; user-select: none; line-height: 1; white-space: nowrap;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 72px); max-width: 1280px; margin: 0 auto; align-items: center;
}
.hero__title {
  font-size: clamp(30px, 4vw, 68px); line-height: 1.02; margin: 0 0 26px;
  font-weight: 800; letter-spacing: -.025em; color: var(--ink-strong); text-transform: uppercase;
}
.hero__lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  margin-top: 44px;
  display: grid;
  /* Fluides Umbrechen 3 → 2 → 1 Spalten, immer gleich breit. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  /* Die Trennlinien zeichnet jede Zelle selbst (box-shadow), nicht der
     Container. Sonst bliebe beim Umbruch auf 2 Spalten das ungenutzte
     dritte Rasterfeld als grauer Block stehen. */
  gap: 1px;
  width: 100%;
  max-width: 520px;
}
.hero__stat { padding: 16px 24px; background: #fff; min-width: 0; box-shadow: 0 0 0 1px var(--line); }
.hero__stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.hero__stat-label { font-family: var(--mono); font-size: 10px; color: var(--mono-muted); letter-spacing: .1em; }

.hero__media { position: relative; }
.hero__fig-label {
  position: absolute; top: -14px; left: -14px;
  font-family: var(--mono); font-size: 10px; color: var(--mono-muted); letter-spacing: .12em;
}
.corner-mark {
  position: absolute; bottom: -14px; right: -14px; width: 80px; height: 80px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); pointer-events: none;
}
.tag {
  position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  padding: 11px 18px; pointer-events: none; color: #fff;
}
.tag--dark { top: 34px; left: -18px; background: var(--dark); box-shadow: 0 8px 24px rgba(24,27,31,.25); }
.tag--accent { bottom: 30px; right: -16px; background: var(--accent); box-shadow: 0 8px 24px rgba(212,85,10,.3); }

/* ---------- Framebox + image slots ---------- */
.framebox { border: 1px solid var(--line-strong); padding: 10px; background: var(--bg); }
.framebox--dark { border-color: #3a4048; background: #1b1e22; }
.slot {
  width: 100%; position: relative; overflow: hidden;
  background: repeating-linear-gradient(45deg, #e9edf0 0 12px, #e2e7ea 12px 24px);
  display: grid; place-items: center;
}
.framebox--dark .slot { background: repeating-linear-gradient(45deg, #24282d 0 12px, #1f2327 12px 24px); }
.slot--43 { aspect-ratio: 4 / 3; }
.slot--11 { aspect-ratio: 1 / 1; }
.slot--32 { aspect-ratio: 3 / 2; }
.slot::after {
  content: attr(data-placeholder);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--mono-muted); text-align: center; padding: 0 18px;
}
.slot.has-image { background: none; }
.slot.has-image::after { content: none; }
/* Bilder liegen direkt oder in einem <picture> im Slot – beides deckt die
   Fläche vollständig aus; das aspect-ratio des Slots verhindert Layout-Sprünge. */
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--dark); padding: 14px 0; }
.marquee__track {
  display: flex; width: max-content; animation: gMarquee var(--marquee-dur, 26s) linear infinite;
  will-change: transform;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: #c3c9d0;
}
.marquee__group { display: flex; }
.marquee__item { padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee__item span { color: var(--accent); }

/* ---------- Cell grids (stats / services) ---------- */
/* Trennlinien wie bei .hero__stats über die Zellen, damit ungenutzte
   Rasterfelder (3 Kacheln auf 2 Spalten, 4 auf 3) nicht grau aufscheinen. */
.cellgrid {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: 1px;
}
.cellgrid--stats { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.cellgrid--serv { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

.stat-cell { background: #fff; padding: 36px 30px; box-shadow: 0 0 0 1px var(--line); }
.stat-cell__num { font-size: clamp(38px, 5vw, 60px); font-weight: 800; color: var(--ink-strong); line-height: 1; letter-spacing: -.02em; }
.stat-cell__rule { width: 40px; height: 4px; background: var(--accent); margin: 16px 0 14px; }
.stat-cell__label { font-family: var(--mono); font-size: 11px; color: var(--mono-muted); letter-spacing: .1em; }

.serv-cell { background: #fff; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 1px var(--line); }
.serv-cell:hover { background: #fdf6f1; }
.serv-cell__nr { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.serv-cell__title { font-size: 20px; font-weight: 700; color: var(--ink-strong); line-height: 1.3; }
.serv-cell__text { font-size: 14px; line-height: 1.55; color: var(--muted); }
.serv-cell__spec { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--mono-muted); letter-spacing: .06em; margin-top: auto; padding-top: 8px; }

/* ---------- Feature (dark) ---------- */
.split {
  position: relative; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.split--center { align-items: center; }
.section--dark .split { align-items: center; }
.feature__foot { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.chip { font-family: var(--mono); font-size: 12px; color: #e6e9ec; border: 1px solid #3a4048; padding: 12px 18px; letter-spacing: .08em; }

/* ---------- Steps (Ablauf) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: clamp(20px, 3vw, 36px); }
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step__nr { font-family: var(--mono); font-size: 12px; color: var(--mono-muted); letter-spacing: .1em; margin-bottom: 10px; }
.step__title { font-size: 18px; font-weight: 700; color: var(--ink-strong); margin-bottom: 8px; }
.step__text { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- Über uns ---------- */
.ticklist { font-family: var(--mono); font-size: 12px; color: #454c54; display: grid; gap: 10px; margin-top: 12px; }

/* ---------- Referenzen ---------- */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.ref { border: 1px solid var(--line); background: var(--bg); }
.ref__body { padding: 20px 22px; }
.ref__branche { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.ref__title { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--ink-strong); }
.ref__text { font-size: 13px; line-height: 1.6; color: var(--mono-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 4px;
  font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: var(--ink-strong);
  line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 24px; font-weight: 400; color: var(--accent);
  line-height: 1; transition: transform .25s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--accent); }
.faq__a { padding: 0 4px 24px; max-width: 70ch; }
.faq__a p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0 0 12px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a strong { color: var(--ink); }

/* ---------- News (Startseite, nach Hero) ---------- */
.news__head { margin-bottom: clamp(28px, 4vw, 44px); }
.news__h {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-strong);
  margin: 6px 0 0;
}
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: clamp(20px, 2.5vw, 30px);
}
.news-card {
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.news-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #eef1f3 0 12px, #e7ebee 12px 24px);
  border-bottom: 1px solid var(--line);
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; flex: 1 1 auto; }
.news-card__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.news-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-strong);
  margin: 0 0 12px;
}
.news-card__text { font-size: 15px; line-height: 1.7; color: var(--muted); }
.news-card__text p { margin: 0 0 12px; }
.news-card__text p:last-child { margin-bottom: 0; }
.news-card--nomedia { border-left: 3px solid var(--accent); }

/* ---------- Kontakt ---------- */
.contact-lines { display: grid; gap: 18px; font-family: var(--mono); font-size: 14px; margin-top: 32px; }
.contact-lines span { color: var(--mono-muted); }
.contact-lines .contact-addr { color: var(--ink); }

.card { border: 1px solid var(--line-strong); background: #fff; padding: clamp(24px, 3vw, 40px); }

/* ---------- Kontaktkarte ---------- */
.contact-card { display: grid; gap: 0; }
.contact-card__row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-card__row:first-child { padding-top: 0; }
.contact-card__k { font-family: var(--mono); font-size: 11px; color: var(--mono-muted); letter-spacing: .12em; margin-bottom: 8px; }
.contact-card__v { font-size: 20px; font-weight: 700; color: var(--ink-strong); line-height: 1.5; }
a.contact-card__v { display: inline-block; padding: 6px 0; }
a.contact-card__v:hover { color: var(--accent); }
.contact-card__v--break { word-break: break-all; font-size: 17px; }
.contact-card__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 24px; }
.contact-card__actions .btn { flex: 1 1 auto; text-align: center; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; color: var(--mono-muted); letter-spacing: .1em; }
/* 16px ist Pflicht: darunter zoomt Safari auf iOS beim Antippen automatisch
   ins Feld hinein und der Nutzer muss von Hand zurückzoomen. */
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink);
  padding: 13px 14px; font-size: 16px; font-family: var(--sans); outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--mono-muted); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 2px; accent-color: var(--accent); }

.sent { text-align: center; padding: 40px 12px; }
.sent__check { font-size: 40px; color: var(--accent); margin-bottom: 12px; }
.sent__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--ink-strong); }
.sent__text { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Legal (Impressum / Datenschutz) ---------- */
.legal { min-height: 60vh; }
.legal__stack { display: grid; gap: 28px; }
.panel { border: 1px solid var(--line); background: #fff; padding: 28px 30px; }
.panel__label { font-family: var(--mono); font-size: 11px; color: var(--mono-muted); letter-spacing: .12em; margin-bottom: 14px; }
.panel__body { font-size: 17px; line-height: 1.8; color: var(--ink); }
.panel__meta { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.panel__meta span { color: var(--ink-strong); }
.mono-lines { display: grid; gap: 4px; font-family: var(--mono); font-size: 14px; }
.mono-lines span { color: var(--mono-muted); }
.mono-lines a { display: inline-block; padding: 6px 0; }
.copyline { font-size: 12.5px; color: #8a929b; font-family: var(--mono); letter-spacing: .06em; }

.ds-stack { display: grid; gap: 24px; }
.ds-item { border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; }
.ds-item__title { font-size: 19px; font-weight: 700; color: var(--ink-strong); margin-bottom: 10px; }
.ds-item__text { font-size: 15px; line-height: 1.75; color: var(--muted); }

/* ---------- Login ---------- */
.login {
  min-height: 70vh; display: grid; place-items: center;
  background-image:
    linear-gradient(rgba(60,70,80,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,70,80,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.login__wrap { width: 100%; max-width: 440px; }
.login__card { border: 1px solid var(--line-strong); background: #fff; }
.login__head { background: var(--dark); padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; }
.login__title { color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.login__secure { font-family: var(--mono); font-size: 10px; color: #8a929b; letter-spacing: .14em; }
.login__body { padding: clamp(26px, 4vw, 40px); }
.login__h { font-size: 26px; margin: 0 0 8px; font-weight: 800; color: var(--ink-strong); }
.login__lead { font-size: 14px; color: var(--mono-muted); line-height: 1.6; margin: 0 0 28px; }
.login__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.login__row a { font-size: 13px; }
.inline-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.inline-check input { accent-color: var(--accent); }
.login__note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--accent); border: 1px solid #f0d3c0; background: #fdf6f1; padding: 12px 14px; line-height: 1.5; }
.login__foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--mono-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #c3c9d0; }
.footer__grid {
  max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px);
}
.brand--footer { margin-bottom: 16px; }
.footer__about { font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; }
.footer__label { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .14em; margin-bottom: 16px; }
.footer__links { display: grid; gap: 4px; font-size: 14px; justify-items: start; }
.footer__links a { color: #c3c9d0; cursor: pointer; display: inline-block; padding: 7px 0; }
.footer__links a:hover { color: var(--accent); }
.footer__contact { display: grid; gap: 6px; font-size: 14px; justify-items: start; }
.footer__contact a { color: #c3c9d0; display: inline-block; padding: 7px 0; }
.footer__mail { word-break: break-all; }
.footer__bar { border-top: 1px solid #3a4048; }
.footer__bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 20px clamp(20px, 5vw, 64px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: #8a929b; letter-spacing: .08em;
}
.footer__legal { display: flex; gap: 20px; margin: -8px 0; }
.footer__legal a { color: #8a929b; cursor: pointer; display: inline-block; padding: 8px 0; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Subpage header (Impressum / Datenschutz) ---------- */
.page-hero {
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  background-image:
    linear-gradient(rgba(60,70,80,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,70,80,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero__inner { max-width: 820px; margin: 0 auto; }
.page-hero__title { font-size: clamp(30px, 4vw, 52px); margin: 6px 0 16px; font-weight: 800; color: var(--ink-strong); }
.page-hero__lead { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 640px; margin: 0; }
.backlink { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mono-muted); display: inline-block; padding: 8px 0; margin-bottom: 10px; }
.backlink:hover { color: var(--accent); }

/* ---------- Table of contents ---------- */
.toc { border: 1px solid var(--line); background: #fff; padding: 24px 28px; margin-bottom: 40px; }
.toc ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 2px; font-size: 14px; }
/* block, nicht inline-block: ein umbrechendes inline-block wird an seiner
   letzten Zeile ausgerichtet, wodurch die Listennummer aus der ersten Zeile
   nach unten rutscht. */
.toc a { color: var(--ink); display: block; padding: 6px 0; }
.toc a:hover { color: var(--accent); }

/* ---------- Legal prose ---------- */
.prose { color: var(--muted); }
.prose__h {
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; color: var(--ink-strong);
  margin: 36px 0 12px; scroll-margin-top: 90px; line-height: 1.25;
}
.prose__h:first-child { margin-top: 0; }
.prose p { font-size: 15px; line-height: 1.8; margin: 0 0 14px; }
.prose__list { font-size: 15px; line-height: 1.8; margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.prose__list strong { color: var(--ink); }
.prose .panel { margin: 8px 0 6px; }
.prose .panel__body { font-size: 15px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal][data-shown] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scan, .marquee__track, .pulse { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Kein horizontales Überlaufen durch absolut positionierte Deko-Elemente.
   Nur auf body (nicht html) – sonst bricht position:sticky in der Navigation. */
body { overflow-x: hidden; }
img, svg, video { max-width: 100%; }

/* ---- Tablet & darunter ---- */
@media (max-width: 900px) {
  /* Die schwebenden Hero-Badges brauchen den Negativ-Rand nicht mehr –
     sie werden als statische Chips unter dem Bild dargestellt. */
  .hero__media { padding-bottom: 4px; }
  .tag { position: static; display: inline-block; margin: 10px 8px 0 0; box-shadow: none; }
  .corner-mark { display: none; }
  .hero__fig-label { position: static; display: block; margin-bottom: 8px; }
}

/* ---- Mobile Navigation (Hamburger-Dropdown) ---- */
@media (max-width: 860px) {
  .nav { flex-wrap: nowrap; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    /* Zwingend, sobald unten eine max-height steht: die Grundregel erlaubt
       Umbruch, und ein Spalten-Flexbox mit begrenzter Höhe schiebt die
       überzähligen Einträge sonst in eine zweite Spalte nach rechts aus dem
       Bild, statt sie scrollbar zu machen. */
    flex-wrap: nowrap;
    /* Deckend, nicht durchscheinend: das übergeordnete .nav hat selbst einen
       backdrop-filter und bildet damit einen eigenen Backdrop-Root — der
       Weichzeichner des Kindes greift dort nicht mehr, übrig bliebe nur ein
       scharf durchschimmernder Textschatten der Seite hinter dem Menü. */
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px clamp(20px, 5vw, 64px) 18px;
    box-shadow: 0 14px 24px rgba(24, 27, 31, .08);
    /* 100% = Höhe der Navigationsleiste (dem Containing Block). Ohne die
       Begrenzung ragt das Menü im Querformat unter den Bildschirmrand und der
       Anfrage-Knopf ist nicht erreichbar — mitscrollen kann er nicht, weil er
       an der klebenden Leiste hängt. */
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
  }
  body.nav-open .nav__links { display: flex; }
  .nav__link {
    padding: 15px 2px; width: 100%;
    border-bottom: 1px solid var(--line);
    font-size: 13px; letter-spacing: .12em;
  }
  .nav__cta {
    margin-top: 14px; text-align: center; padding: 14px 18px;
    letter-spacing: .08em;
  }
}

/* ---- Große Handys / kleine Tablets ---- */
@media (max-width: 760px) {
  .hero__title { text-transform: none; }
  .hero__ghost { font-size: clamp(84px, 30vw, 180px); opacity: .55; }

  .toc { padding: 20px 22px; }

  /* Erst hier die weiche Silbentrennung: lange Komposita wie
     "Datenschutzerklärung" passen sonst nicht in die schmale Textspalte.
     Die Trennstellen liefert lang="de" im <html>-Element. */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .hero__title, .page-hero__title, .news__h, .news-card__title,
  .serv-cell__title, .step__title, .ref__title, .ds-item__title, .prose__h,
  .faq__q, .p, .prose p { hyphens: auto; }
}

/* ---- Handys ---- */
@media (max-width: 520px) {
  .brand__logo { width: 30px; height: 30px; font-size: 14px; flex: none; }
  .brand__name { font-size: 13px; }
  /* Nicht unter 10px – darunter ist der Untertitel kaum noch lesbar. */
  .brand__sub { font-size: 10px; letter-spacing: .06em; }
  /* Marke darf schrumpfen und der Untertitel umbrechen (kein Nav-Überlauf) */
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand > div:last-child { min-width: 0; }
  .nav { padding: 12px 16px; }

  /* Alle Sektionen etwas kompakter am Rand */
  .section, .hero, .page-hero { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 48px; }
  .hero__ghost { opacity: .4; }
  .hero__stat { padding: 14px 18px; }

  .hero__actions { gap: 10px; }
  .btn { width: 100%; text-align: center; }
  .feature__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chip { width: 100%; text-align: center; }

  /* Kontaktkarte: Buttons untereinander */
  .contact-card__actions { flex-direction: column; }
  .contact-card__actions .btn { width: 100%; }

  .footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__legal { flex-wrap: wrap; }

  .login__wrap { max-width: 100%; }
  .panel { padding: 22px 20px; }
  .page-hero__lead, .prose p, .prose__list { font-size: 14.5px; }

  /* Adminbereich */
  .admin-bar__inner { gap: 12px; }
  .admin-bar__actions { gap: 14px; width: 100%; }
  .admin-logout { margin-left: auto; }
}
