/* ============================================================
   MARKS METALL — SITE STYLES
   Layout, sections and components for the public website.
   Built on the design-system tokens (tokens/*.css) + base.css.
   Order: 1) primitives  2) components  3) sections  4) responsive
   ============================================================ */

/* ─────────────────────────────────────────────
   1) PRIMITIVES
   ───────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  /* Sticky header must not cover anchor targets. */
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
}

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

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--base {
  background: var(--bg-base);
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
}

/* A display value on a class beats the UA rule for [hidden], so the attribute
   silently stops working. Restore it. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--white);
}

/* Keyboard focus — visible on every interactive element. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Eyebrow / kicker — mono label with leading accent rule. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow--hero {
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
}
.eyebrow--hero::before {
  width: 28px;
}

/* Section heading lockup — eyebrow + display title + laser rule. */
.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-heading__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  line-height: 1.06;
  font-size: clamp(30px, 3.6vw, 48px);
  color: var(--text-strong);
  margin: 0;
  max-width: 20ch;
}
.section-heading__title .accent {
  color: var(--accent);
}

.section-heading__rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin-top: var(--space-5);
}

/* Animated laser sweep along a section edge. */
.laser-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.laser-edge--top {
  top: 0;
}
.laser-edge--bottom {
  bottom: 0;
}
.laser-edge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 36%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--laser-300),
    transparent
  );
  box-shadow: var(--glow-edge);
  animation: laser-sweep 6s linear infinite;
}

@keyframes laser-sweep {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

/* Scroll reveal — JS adds .is-visible once the element enters the viewport. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────
   2) COMPONENTS
   ───────────────────────────────────────────── */

/* — Button — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-h);
  padding: 0 26px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.btn--sm {
  height: var(--control-h-sm);
  padding: 0 18px;
  font-size: 12px;
}
.btn--lg {
  height: var(--control-h-lg);
  padding: 0 34px;
  font-size: 14px;
}
.btn--block {
  display: flex;
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-on-laser);
  box-shadow: var(--glow-laser-soft);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-laser);
  box-shadow: var(--glow-laser);
  transform: translateY(var(--hover-lift));
}
.btn--primary:active {
  background: var(--accent-press);
  transform: scale(var(--press-scale));
}

.btn--secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(var(--hover-lift));
}
.btn--secondary:active {
  transform: scale(var(--press-scale));
}

/* — Form field — */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__required {
  color: var(--accent);
  margin-left: var(--space-1);
}

.field__control {
  width: 100%;
  height: var(--control-h);
  padding: 0 14px;
  background: var(--ink-850);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.field__control::placeholder {
  color: var(--text-faint);
}
.field__control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
textarea.field__control {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
/* Native validation styling only after a submit attempt (see main.js). */
.form.was-validated .field__control:invalid {
  border-color: var(--danger-500);
}

/* — Icon frame — square outlined icon holder used across contact/strength blocks. */
.icon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--accent);
}
.icon-frame--sm {
  width: 34px;
  height: 34px;
  border-color: var(--hairline);
}

/* — Chip — mono label floating over imagery. */
.chip {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
  background: rgba(13, 15, 17, 0.82);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
}

/* — Framed media — bordered image container. */
.media-frame {
  margin: 0;
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame .chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
}

/* ─────────────────────────────────────────────
   3) SECTIONS
   ───────────────────────────────────────────── */

/* — Header / navigation — */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-block: 20px;
  background: rgba(13, 15, 17, 0.35);
  backdrop-filter: blur(var(--blur-nav));
  -webkit-backdrop-filter: blur(var(--blur-nav));
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-slow) var(--ease-out),
    padding var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
}
/* JS toggles .is-scrolled past 24px of scroll. */
.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(13, 15, 17, 0.92);
  border-bottom-color: var(--hairline);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header__logo img {
  display: block;
  width: 120px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--dur) var(--ease-out);
}
.site-nav__link:hover {
  color: var(--accent);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

/* Phone lockup — icon + label stack. */
.phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-strong);
}
.phone-link:hover {
  color: var(--text-strong);
}
.phone-link:hover .icon-frame {
  border-color: var(--accent);
}
.phone-link__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.phone-link__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.phone-link__number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}

/* Mobile menu toggle — hidden on desktop, shown at the nav breakpoint. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  cursor: pointer;
}

/* — Hero — */
.hero {
  position: relative;
  min-height: 680px;
  height: 80dvh;
  display: flex;
  align-items: center;
  /* Reserve space for the fixed header (~89px) so the centred content never
     slips underneath it on short viewports. box-sizing: border-box keeps this
     padding inside the height, and the bumped min-height guarantees the gap
     survives even when the window is short. */
  padding-top: 104px;
  padding-bottom: 40px;
  overflow: hidden;
}

/* Parallax layer — JS translates this on scroll; scaled up to hide the offset. */
.hero__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  transform: scale(1.08);
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: 80% 50%;
  display: block;
}

.hero__grid,
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  z-index: 1;
  background: var(--hairline-grid);
  opacity: 0.5;
}
.hero__scrim {
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(8, 9, 10, 0.94) 0%,
    rgba(8, 9, 10, 0.78) 42%,
    rgba(8, 9, 10, 0.3) 78%,
    rgba(8, 9, 10, 0.55) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 4;
}
.hero__content {
  max-width: 820px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  line-height: 0.98;
  font-size: clamp(46px, 7.4vw, 92px);
  color: var(--text-strong);
  margin: 0 0 22px;
}

.hero__lead {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: clamp(20px, 2.5vw, 31px);
  line-height: 1.25;
  color: var(--text-strong);
  margin: 0 0 26px;
  max-width: 720px;
}
.hero__lead .accent {
  color: var(--accent);
}

.hero__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 var(--space-10);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Floating 24h badge — parallaxed with the background. */
.hero__badge {
  position: absolute;
  top: var(--space-2);
  right: var(--gutter);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 280px;
  padding: 12px 18px 12px 14px;
  background: rgba(13, 15, 17, 0.72);
  border: 1px solid rgba(216, 93, 0, 0.35);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--blur-overlay));
  -webkit-backdrop-filter: blur(var(--blur-overlay));
  box-shadow: var(--glow-laser-soft);
  will-change: transform;
}
.hero__badge-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}
.hero__badge-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-body);
}

/* — Leistungen — */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  /* One transition covers both the scroll reveal and the hover. Reveal runs on
     opacity + `translate` at the slow reveal speed with the per-card stagger
     (--reveal-delay); hover runs on `transform` and the surface props at the
     fast speed with no delay. Keeping reveal on `translate` and hover on
     `transform` means the two never fight over the same property — and the
     stagger delay no longer leaks into the hover. */
  transition:
    opacity var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    translate var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}
/* Reveal the card via `translate`, not `transform`, so it stays clear of the
   hover lift. Scoped to :not(.is-visible) so nothing lingers into the hover
   state. */
.service-card[data-reveal]:not(.is-visible) {
  transform: none;
  translate: 0 22px;
}
.service-card[data-reveal].is-visible {
  translate: 0 0;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 93, 0, 0.5);
  box-shadow: var(--glow-laser-soft);
  background: linear-gradient(
    165deg,
    rgba(216, 93, 0, 0.12) 0%,
    var(--surface-card) 55%
  );
}

/* Icons are inlined SVG stroked with currentColor, so they recolour on hover by
   inheriting `color`. They were previously CSS masks, which Safari refused to
   render: the source SVGs carry only a viewBox and no width/height, leaving a
   mask image with no intrinsic size to resolve. */
.service-card__icon {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  color: var(--paper);
  transition: color var(--dur) var(--ease-out);
}
.service-card:hover .service-card__icon {
  color: var(--accent);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: var(--fs-h3);
  color: var(--text-strong);
  margin: 0 0 var(--space-3);
}
.service-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 var(--space-4);
}

.service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-card__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--text-body);
}
.service-card__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--accent);
}

.section-note {
  text-align: center;
  margin: var(--space-10) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* — Unternehmen — */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.about__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  line-height: 1.08;
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--text-strong);
  margin: 0 0 var(--space-6);
  max-width: 16ch;
}
.about__title .accent {
  color: var(--accent);
}

.about__text {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 var(--space-8);
  max-width: 56ch;
}

/* Strengths — numbered spec columns. */
.strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: 0;
  padding: 0; /* remove the default <ul> left indent */
  list-style: none;
}
.strength {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 0 var(--space-4) var(--space-4);
  border-left: 2px solid var(--accent);
}
.strength__num {
  font-family: var(--font-mono);
  font-weight: var(--fw-semibold);
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
}
.strength__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  font-size: var(--fs-sm);
  line-height: 1.25;
  color: var(--text-strong);
}
.strength__text {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-muted);
}

.about__media {
  position: relative;
}
.about__media .media-frame img {
  height: 440px;
  object-fit: contain;
  padding: 40px;
}

/* Stats plate — overlaps the image corner. */
.stats {
  position: absolute;
  right: -10px;
  bottom: -26px;
  display: flex;
  gap: 28px;
  padding: 20px 26px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat__value {
  font-family: var(--font-mono);
  font-weight: var(--fw-semibold);
  font-size: 30px;
  line-height: 1;
  color: var(--text-strong);
}
.stat__value--accent {
  color: var(--accent);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stats__divider {
  width: 1px;
  background: var(--hairline);
}

/* — Kontakt — */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-8);
  /* stretch: both columns take the height of the taller one (the form), for a
     balanced bento layout. */
  align-items: stretch;
}

/* Gap between the two stacked cards matches the bento column gap (space-8). */
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-card {
  display: flex;
  flex-direction: column;
  /* Grow to fill the column height and spread the rows evenly, so the contact
     card matches the form's height instead of leaving a gap below. The tighter
     row gap keeps the rows from getting airy and leaves headroom so the last
     line never crowds the card edge. */
  flex: 1;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 32px 30px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.contact-item--top {
  align-items: flex-start;
}
.contact-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-item__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-item__value {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.contact-item__value--plain {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-regular);
  font-style: normal;
  line-height: 1.5;
}
a.contact-item:hover .contact-item__value {
  color: var(--accent);
}
a.contact-item:hover .icon-frame {
  border-color: var(--accent);
}

/* Address text that links to Google Maps — keeps the surrounding colour and,
   like every other link on the site, only changes colour on hover (no
   underline). */
.address-link {
  color: inherit;
  text-decoration: none;
}
.address-link:hover {
  color: var(--accent);
}

.divider {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

.hours-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: 24px 30px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.hours-card .icon-frame {
  background: var(--surface-card);
}
.hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.hours__row time {
  font-family: var(--font-mono);
  color: var(--text-strong);
}

.form-panel {
  padding: 36px 36px 34px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
/* Button left, the two notes stacked to its right. */
.form__submit {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.form__submit-notes {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Same treatment as the „Vom Einzelstück bis zur Serie." captions — readable
   muted body text rather than tiny faint mono. */
.form__note,
.form__privacy {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}
.form__privacy a {
  color: var(--text-body);
  text-decoration: underline;
}
.form__privacy a:hover {
  color: var(--accent);
}

/* Honeypot — visually and from assistive tech hidden, but still submitted, so
   bots that fill every field give themselves away. Not display:none, since some
   bots skip fields they can't "see". */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Server/network error — shown by main.js if the fetch submit fails. */
.form__error {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(218, 74, 64, 0.12);
  border: 1px solid rgba(218, 74, 64, 0.4);
  border-radius: var(--radius-sm);
  color: var(--danger-500);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* — Datei-Upload (Zeichnungen) — */
/* The whole box is a <label> wrapping a visually hidden file input, so a click
   or Enter opens the picker; main.js adds drag & drop and the file list. */
.upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 24px var(--space-5);
  text-align: center;
  cursor: pointer;
  background: var(--ink-850);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition:
    border-color var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out);
}
.upload:hover,
.upload.is-dragover,
.upload:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
}
/* Hidden but still focusable, so keyboard users reach it (:focus-within lights
   up the box above). */
.upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.upload__icon {
  color: var(--accent);
  display: inline-flex;
}
.upload__button {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-sm);
  color: var(--text-strong);
}
.upload__hint {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  line-height: 1.5;
  color: var(--text-faint);
}

.upload__list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.upload__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.upload__item-icon {
  color: var(--accent);
  flex-shrink: 0;
  display: inline-flex;
}
.upload__item-name {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload__item-size {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-faint);
  flex-shrink: 0;
}
.upload__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}
.upload__remove:hover {
  color: var(--danger-500);
  border-color: var(--danger-500);
}

/* Success state — swapped in by JS after a valid submit. */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding: var(--space-10) var(--space-3);
}
.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  color: var(--accent);
  background: var(--laser-tint);
  border: 1px solid rgba(216, 93, 0, 0.4);
  box-shadow: var(--glow-laser-soft);
}
.form-success__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  font-size: 26px;
  color: var(--text-strong);
  margin: 0;
}
.form-success__text {
  margin: 0;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

.map {
  margin-top: var(--space-8);
  position: relative;
  box-shadow: var(--shadow-md);
}
.map img {
  height: 530px;
}
.map .chip {
  position: absolute;
  left: 16px;
  top: auto;
  bottom: 16px;
}

/* — Footer — */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  padding: var(--space-16) 0 28px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 360px;
}
.site-footer__brand img {
  width: 160px;
  height: auto;
}
.site-footer__brand p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.site-footer__col a,
.site-footer__col address {
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: 1.6;
  color: var(--text-body);
}
.site-footer__col a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  max-width: var(--container);
  margin: var(--space-10) auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.site-footer__legal {
  display: flex;
  gap: var(--space-4);
}
.site-footer__legal a {
  color: var(--text-faint);
}
.site-footer__legal a:hover {
  color: var(--accent);
}

/* — Legal pages (Impressum / Datenschutz) — */
.legal {
  padding-top: 148px;
}
.legal__inner {
  max-width: var(--container-narrow);
}
.legal h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 48px);
  margin: 0 0 var(--space-8);
}
.legal h2 {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  margin: var(--space-10) 0 var(--space-4);
}
.legal p,
.legal ul {
  color: var(--text-body);
  line-height: var(--lh-body);
  max-width: 70ch;
}
.legal ul {
  padding-left: var(--space-5);
}
.legal address {
  font-style: normal;
  color: var(--text-body);
  line-height: var(--lh-body);
}

.notice {
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-10);
  background: var(--laser-tint);
  border: 1px solid rgba(216, 93, 0, 0.4);
  border-radius: var(--radius-md);
  color: var(--text-strong);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.notice strong {
  display: block;
  margin-bottom: var(--space-1);
}

/* ─────────────────────────────────────────────
   4) RESPONSIVE
   ───────────────────────────────────────────── */

/* Collapse the desktop nav into a menu button. */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--bg-base);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav__link {
    padding: var(--space-4) 0;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--hairline);
  }

  .site-header__actions .btn {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --section-y: 80px;
    --gutter: 24px;
  }
  html {
    scroll-padding-top: 72px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .about__title,
  .about__text {
    max-width: none;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }

  /* The badge would collide with the headline once the column narrows. */
  .hero__badge {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 0;
    padding-block: 140px 80px;
  }
  .map img {
    height: 380px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: var(--gutter-sm);
  }

  .phone-link__text {
    display: none;
  }
  .strengths {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 24px 20px;
  }
  .contact-card,
  .hours-card {
    padding: 24px 20px;
  }
  .service-card {
    padding: 26px 22px;
  }
  .about__media .media-frame img {
    height: 280px;
  }

  /* Free-floating stats plate has no room — inline it under the image. */
  .stats {
    position: static;
    margin-top: var(--space-5);
    justify-content: space-around;
  }

  .hero__actions .btn {
    width: 100%;
  }
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer__bottom {
    justify-content: flex-start;
  }
  .legal {
    padding-top: 120px;
  }
}

/* ─────────────────────────────────────────────
   MOTION PREFERENCES
   ───────────────────────────────────────────── */
@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;
  }

  /* Reveal content immediately rather than leaving it at opacity 0. */
  [data-reveal] {
    opacity: 1;
    transform: none;
    translate: none;
  }
  .laser-edge::after {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   PRINT
   ───────────────────────────────────────────── */
@media print {
  .site-header,
  .hero__bg,
  .hero__grid,
  .laser-edge,
  .nav-toggle,
  .map {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
