/* AtmoVac Microsite — Farben aus img/logo.png entnommen */

/* DM Sans, selbst gehostet (SIL OFL). Variabel: wght 100–1000, opsz 9–40.
   Kein Google-Fonts-CDN — kein externer Request, DSGVO-seitig unbedenklich. */
@font-face {
  font-family: "DM Sans";
  src: url("../font/dm-sans-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --av-ink:    #231f20;
  --av-red:    #ed1d24;
  --av-white:  #ffffff;
  --av-panel:  #f1f1f2;
  --av-rule:   #d9d9db;
  --av-muted:  #6b6765;
  --av-tint:   #fde7e8;

  --av-font: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --av-step--1: 0.875rem;
  --av-step-0:  1.0625rem;
  --av-step-1:  clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem);
  --av-step-2:  clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --av-step-3:  clamp(2.25rem, 1.15rem + 4.6vw, 4.5rem);

  --av-gutter: clamp(1.25rem, 5vw, 4rem);
  --av-measure: 62ch;
  --av-max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--av-white);
  color: var(--av-ink);
  font-family: var(--av-font);
  font-size: var(--av-step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--av-red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--av-gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--av-ink);
  color: var(--av-white);
  text-decoration: none;
}

.wrap {
  max-width: var(--av-max);
  margin-inline: auto;
  padding-inline: var(--av-gutter);
}

/* ---------- Kopfbereich ---------- */

.site-head {
  border-bottom: 1px solid var(--av-rule);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

.brand { display: block; line-height: 0; }
.brand img { height: clamp(38px, 5.5vw, 64px); width: auto; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: var(--av-step--1);
  letter-spacing: 0.02em;
}

.site-nav a {
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--av-red); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: var(--av-step-3);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero p {
  margin: clamp(1rem, 2.4vw, 1.5rem) 0 0;
  max-width: 30ch;
  font-size: var(--av-step-1);
  line-height: 1.4;
  color: var(--av-muted);
}

/* Die Heizlinie: das einzige grosse Rot der Seite */
.heatline {
  height: 6px;
  background: var(--av-red);
}

/* ---------- Kontakt / Typenschild ---------- */

.kontakt {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.kontakt h2 {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  font-size: var(--av-step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plate {
  background: var(--av-panel);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

@media (min-width: 46rem) {
  .plate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

.plate__name {
  margin: 0 0 0.35rem;
  font-size: var(--av-step-1);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.plate address {
  font-style: normal;
  line-height: 1.5;
}

.plate dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
}

.plate dt {
  color: var(--av-muted);
  font-size: var(--av-step--1);
  padding-top: 0.28rem;
}

.plate dd {
  margin: 0;
  border-bottom: 1px solid var(--av-rule);
  padding-bottom: 0.35rem;
}
.plate dd a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.plate dd a:hover { border-bottom-color: var(--av-red); }

.actions {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--av-ink);
  border-radius: 2px;
  font-size: var(--av-step-0);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 120ms linear, color 120ms linear;
}

@media (max-width: 30rem) {
  .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

.btn--primary {
  background: var(--av-ink);
  color: var(--av-white);
}
.btn--primary:hover { background: #3a3436; border-color: #3a3436; }
.btn:not(.btn--primary):hover { background: var(--av-panel); }

/* ---------- Fliesstext (Impressum / Datenschutz) ---------- */

.prose { padding-block: clamp(2.5rem, 7vw, 5rem); }

.prose h1 {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  font-size: var(--av-step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h2 {
  margin: clamp(2.5rem, 6vw, 4rem) 0 1rem;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--av-rule);
  font-size: var(--av-step-1);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: var(--av-measure);
}

.prose h3 {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0.5rem;
  font-size: var(--av-step-0);
  font-weight: 700;
  max-width: var(--av-measure);
}

.prose h4 {
  margin: 1.5rem 0 0.35rem;
  font-size: var(--av-step-0);
  font-weight: 500;
  color: var(--av-muted);
  max-width: var(--av-measure);
}

/* Gesetzlich hervorgehobene Absaetze (Art. 21 DSGVO) stehen im Original
   in Versalien. Wortlaut bleibt, nur etwas kleiner und weiter gesetzt. */
.prose .hervor {
  font-size: var(--av-step--1);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.prose .stand {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--av-rule);
  font-size: var(--av-step--1);
  color: var(--av-muted);
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  max-width: var(--av-measure);
}

.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

.prose address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Offene Stelle: muss vom Kunden geliefert werden. Schwarz auf hellem Rot,
   weil Rot als Textfarbe die Kontrastanforderung verfehlt (4,37:1). */
.offen {
  background: var(--av-tint);
  color: inherit;
  border-bottom: 2px solid var(--av-red);
  padding: 0.08em 0.32em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.platzhalter {
  max-width: var(--av-measure);
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding: 1rem 1.25rem;
  background: var(--av-panel);
  border-left: 6px solid var(--av-red);
  border-radius: 0 2px 2px 0;
  font-size: var(--av-step--1);
  line-height: 1.5;
}
.platzhalter strong { display: block; }

/* ---------- Fussbereich ---------- */

.site-foot {
  border-top: 1px solid var(--av-rule);
  margin-top: auto;
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  font-size: var(--av-step--1);
  color: var(--av-muted);
}

.site-foot__inner p { margin: 0; }

.site-foot nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.site-foot a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-foot a:hover { border-bottom-color: var(--av-red); }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
