/* YNOTIQ – Onepager. Nur eigene Dateien, kein JavaScript, keine Inline-Stile (CSP). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("schriften/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("schriften/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #edf0f3;
  --flaeche: #ffffff;
  --tinte: #18202b;
  --schiefer: #4e5966;
  --petrol: #0e5c63;
  --petrol-hell: #d5e7e8;
  --marker: #f3d54e;
  --auf-marker: #18202b;
  --linie: #c6cdd5;
  --fehlt: #a8261d;
  --fehlt-grund: #fbe9e7;

  --anzeige: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, sans-serif;

  --breite: 72rem;
  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --abstand: clamp(4.5rem, 10vw, 8rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #11161d;
    --flaeche: #18202a;
    --tinte: #e6ebf0;
    --schiefer: #a7b1bc;
    --petrol: #72c7cc;
    --petrol-hell: #1c3438;
    --linie: #2e3844;
    --fehlt: #ff9b8f;
    --fehlt-grund: #3a1d1b;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--anzeige);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-stretch: 85%;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
h3 { font-size: 1.3rem; font-stretch: 90%; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--petrol); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }

.breite { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }

.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--tinte); color: var(--grund);
  padding: 0.6rem 1rem; border-radius: 0.3rem;
}
.sprung:focus { top: 1rem; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.marke {
  font-family: var(--anzeige); font-weight: 800; font-stretch: 80%;
  font-size: 1.35rem; letter-spacing: 0.04em;
  color: var(--tinte); text-decoration: none;
}
.kopf ul { list-style: none; display: flex; gap: clamp(0.75rem, 2.5vw, 2rem); margin: 0; padding: 0; }
.kopf nav a { color: var(--tinte); text-decoration: none; font-size: 1rem; padding-block: 0.4rem; }
.kopf nav a:hover { color: var(--petrol); text-decoration: underline; }
@media (max-width: 34rem) {
  .kopf-innen { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 0.5rem; }
  .kopf ul { gap: 1rem; }
  .kopf nav a { font-size: 0.95rem; }
  html { scroll-padding-top: 6.5rem; }
}

/* Start */
.start { padding-block: clamp(2rem, 6vw, 4.5rem) var(--abstand); overflow: hidden; }

.wortmarke {
  display: flex; justify-content: space-between;
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  font-family: var(--anzeige);
  font-size: clamp(4.75rem, 21vw, 17.5rem);
  line-height: 0.8;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.02em;
  color: var(--tinte);
  font-variation-settings: "opsz" 96;
  user-select: none;
}
.wortmarke span { display: block; }

.start-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 54rem) { .start-raster { grid-template-columns: minmax(0, 1fr); } }

.start h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}
.einleitung { font-size: 1.2rem; color: var(--schiefer); max-width: 38rem; }
.unterschrift {
  font-family: var(--anzeige); font-weight: 600; font-stretch: 80%;
  font-size: 1.15rem; margin-top: 1.5rem;
}
.unterschrift::before { content: ""; display: inline-block; width: 2rem; height: 2px; background: var(--tinte); vertical-align: middle; margin-right: 0.6rem; }

/* Prüfstrecke im Start */
.strecke {
  margin: 0;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 0.6rem;
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
}
.strecke figcaption {
  font-family: var(--anzeige); font-weight: 600; font-stretch: 85%;
  font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--schiefer);
}
.strecke ol { list-style: none; margin: 0; padding: 0; }
.strecke li {
  --i: 0;
  display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  align-items: center; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--linie);
  font-size: 1rem; line-height: 1.35;
}
.strecke li:nth-child(2) { --i: 1; }
.strecke li:nth-child(3) { --i: 2; }
.strecke li:nth-child(4) { --i: 3; }
.strecke li:nth-child(5) { --i: 4; }

.strecke li::before {
  content: "";
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--petrol)
    url("haken.svg") center / 100% no-repeat;
}
.stand { display: grid; justify-items: end; font-size: 0.9rem; }
.stand > span { grid-area: 1 / 1; padding: 0.1rem 0.5rem; border-radius: 0.25rem; white-space: nowrap; }
.laeuft { opacity: 0; color: var(--schiefer); }
.ok {
  color: var(--auf-marker);
  background: linear-gradient(var(--marker), var(--marker)) left / 100% 100% no-repeat;
  font-weight: 600;
}

.freigabe { margin: 1.25rem 0 0; display: flex; justify-content: flex-end; }
.stempel {
  display: inline-block;
  font-family: var(--anzeige); font-weight: 800; font-stretch: 78%;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--petrol);
  border: 3px solid currentColor;
  border-radius: 0.4rem;
  padding: 0.15rem 0.7rem;
  transform: rotate(-4deg);
}

/* Bewegung nur, wenn erwünscht */
@media (prefers-reduced-motion: no-preference) {
  .wortmarke span {
    animation: aufziehen 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }
  .wortmarke span:nth-child(2) { animation-delay: 0.07s; }
  .wortmarke span:nth-child(3) { animation-delay: 0.14s; }
  .wortmarke span:nth-child(4) { animation-delay: 0.21s; }
  .wortmarke span:nth-child(5) { animation-delay: 0.28s; }
  .wortmarke span:nth-child(6) { animation-delay: 0.35s; }

  .strecke li::before { animation: kreis-laeuft 0.55s ease-out both; animation-delay: calc(1s + var(--i) * 0.6s); }
  .laeuft { animation: laeuft-weg 0.6s steps(1, end) both; animation-delay: calc(0.4s + var(--i) * 0.6s); }
  .ok { animation: markieren 0.45s ease-out both; animation-delay: calc(1s + var(--i) * 0.6s); }
  .stempel { animation: stempeln 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: 4.15s; }
}

@keyframes aufziehen {
  from { font-weight: 200; font-stretch: 75%; opacity: 0; transform: translateY(0.12em); }
  60% { opacity: 1; }
  to { font-weight: 800; font-stretch: 100%; opacity: 1; transform: none; }
}
@keyframes kreis-laeuft {
  from { background-color: transparent; background-size: 0; box-shadow: inset 0 0 0 2px var(--linie); transform: scale(0.8); }
  to { background-color: var(--petrol); background-size: 100%; box-shadow: inset 0 0 0 0 transparent; transform: none; }
}
@keyframes laeuft-weg {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes markieren {
  from { background-size: 0% 100%; color: transparent; }
  40% { color: var(--auf-marker); }
  to { background-size: 100% 100%; }
}
@keyframes stempeln {
  from { opacity: 0; transform: rotate(-12deg) scale(1.8); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* Was YNOTIQ ist */
.werkstatt {
  background: var(--flaeche);
  border-block: 1px solid var(--linie);
  padding-block: var(--abstand);
}
.spalte { max-width: calc(44rem + 2 * var(--rand)); margin-inline: auto; }
.werkstatt p { font-size: 1.25rem; }
.werkstatt p:last-child { margin-bottom: 0; }

/* Arbeitsweise */
.arbeitsweise { padding-block: var(--abstand); }
.schritte {
  list-style: none; counter-reset: schritt;
  margin: 0; padding: 0 0 0 3.75rem;
  position: relative;
  max-width: 46rem;
}
.schritte::before,
.schritte::after {
  content: ""; position: absolute;
  left: 1.2rem; top: 0.6rem; bottom: 0.6rem; width: 3px; border-radius: 2px;
}
.schritte::before { background: var(--linie); }
.schritte::after { background: var(--petrol); transform-origin: top; }
.schritte li { counter-increment: schritt; position: relative; padding-bottom: 2.5rem; }
.schritte li:last-child { padding-bottom: 0; }
.schritte li::before {
  content: counter(schritt);
  position: absolute; left: -3.75rem; top: -0.15rem;
  width: 2.65rem; height: 2.65rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--anzeige); font-weight: 700; font-size: 1.15rem;
  background: var(--grund); color: var(--petrol);
  border: 3px solid var(--petrol);
  z-index: 1;
}
.schritte h3 { font-size: 1.5rem; margin: 0.25rem 0 0.5rem; }
.schritte p { color: var(--schiefer); margin: 0; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .schritte::after {
      animation: linie-fuellen linear both;
      animation-timeline: view();
      animation-range: cover 25% cover 70%;
    }
    .schritte li::before {
      animation: punkt-an linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 45%;
    }
  }
}
@keyframes linie-fuellen { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes punkt-an {
  from { background: var(--grund); color: var(--petrol); }
  to { background: var(--petrol); color: var(--grund); }
}

/* Sicherheit */
.sicherheit {
  padding-block: var(--abstand);
  background: var(--petrol-hell);
  border-block: 1px solid var(--linie);
}
.vorspann { font-size: 1.25rem; max-width: 40rem; margin-bottom: 2.5rem; }
.regeln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2.25rem 2.5rem;
}
.regeln section { border-top: 3px solid var(--tinte); padding-top: 1rem; }
.regeln h3 { margin-bottom: 0.6rem; }
.regeln p { margin: 0; font-size: 1.05rem; }
.ehrlich { margin: 3rem 0 0; font-size: 1.15rem; max-width: 44rem; }

/* Projekte */
.projekte { padding-block: var(--abstand); }
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.liste > li {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  grid-template-areas: "name text" "name status" "name weiter";
  column-gap: 2.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--linie);
}
.liste .name {
  grid-area: name;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800; font-stretch: 82%;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.arbeitstitel {
  display: block; margin-top: 0.5rem;
  font-family: var(--text); font-size: 0.9rem; font-weight: 400; font-stretch: 100%;
  color: var(--schiefer);
}
.liste > li > p:not([class]) { grid-area: text; max-width: 38rem; }
.status { grid-area: status; color: var(--schiefer); font-size: 1rem; margin-bottom: 0.5rem; }
.status::before {
  content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--marker); box-shadow: 0 0 0 1px var(--tinte); margin-right: 0.55rem;
}
.weiter { grid-area: weiter; margin: 0; }
@media (max-width: 44rem) {
  .liste > li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "text" "status" "weiter"; }
}

/* Kontakt */
.kontakt { padding-block: 0 var(--abstand); }
.kontakt p { font-size: 1.2rem; margin-bottom: 0.5rem; }
.adresse a {
  font-family: var(--anzeige); font-weight: 700; font-stretch: 85%;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* Rechtliches */
.recht {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  padding-block: 4rem;
  font-size: 1rem;
}
.recht-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 3rem 4rem;
}
.recht h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.recht h3 { font-family: var(--text); font-size: 1rem; font-weight: 700; margin: 1.25rem 0 0.35rem; }
.recht p { max-width: 38rem; }
.fehlt {
  color: var(--fehlt);
  background: var(--fehlt-grund);
  border-left: 3px solid var(--fehlt);
  padding: 0.4rem 0.75rem;
}

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding-block: 2rem; font-size: 0.95rem; color: var(--schiefer); }
.fuss-innen { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: baseline; justify-content: space-between; }
.fuss p { margin: 0; }
.fuss a + a { margin-left: 1.25rem; }
.marke-klein { font-family: var(--anzeige); font-weight: 800; font-stretch: 80%; letter-spacing: 0.04em; color: var(--tinte); }

@media print {
  .kopf, .sprung { display: none; }
  body { background: #fff; color: #000; }
}

@media (prefers-color-scheme: dark) {
  .strecke li::before { background-image: url("haken-dunkel.svg"); }
}
