:root {
  --fog: #DCE2E3;
  --fog-deep: #CBD3D5;
  --ink: #13293D;
  --slate: #566A73;
  --contour: #9DB0B7;
  --signal: #E8590C;
  --signal-ink: #B8440A;

  --measure: 34rem;
  --gutter: clamp(1rem, 5vw, 4rem);
  --font: "Archivo", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}

a { color: inherit; }

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

/* ---------- Hero: Gelände unter Nebel ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 9vh, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--contour);
}

.terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.terrain path {
  fill: none;
  stroke: var(--contour);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.terrain path.index-line {
  stroke: var(--slate);
  stroke-opacity: .55;
  stroke-width: 1.4;
}

/* Der Nebel hebt sich einmal beim Laden und gibt die Höhenlinien frei. */
.fog {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(60% 50% at 30% 70%, var(--fog) 30%, transparent 70%),
    linear-gradient(to top, var(--fog) 10%, transparent 75%);
  opacity: .92;
  pointer-events: none;
  animation: lift 3.2s cubic-bezier(.2, .6, .2, 1) .2s both;
}

@keyframes lift {
  from { opacity: 1; transform: translateY(0); background-color: var(--fog); }
  to   { opacity: .92; transform: translateY(6%); background-color: transparent; }
}

.hero-inner {
  position: relative;
  max-width: 46rem;
}

.wordmark {
  margin: 0 0 .25em;
  font-size: clamp(4.5rem, 17vw, 12.5rem);
  line-height: .8;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.035em;
  color: var(--ink);
}

h1 {
  margin: 0 0 .9rem;
  max-width: 26ch;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.01em;
}

.lede {
  margin: 0;
  max-width: var(--measure);
  color: var(--slate);
}

/* Positionsmarker in der Karte: eine Anwendung = ein Punkt im Gelände. */
.marker {
  position: absolute;
  left: 74%;
  top: 30%;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 50%;
}

.marker::before {
  content: "";
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--fog);
}

.marker-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
}

.marker-label {
  position: absolute;
  left: calc(100% + .35rem);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-variation-settings: "wdth" 125;
  font-size: .9375rem;
  color: var(--signal-ink);
}

.marker:hover .marker-ring { inset: -.35rem; transition: inset .2s; }

.marker-mlat { left: 86%; top: 66%; }

/* ---------- Verzeichnis der Anwendungen ---------- */

.index {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  max-width: 90rem;
}

.index-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 2rem;
  margin-bottom: 2.5rem;
}

.index-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.02em;
}

.index-head p { margin: 0; color: var(--slate); }

.app {
  display: grid;
  grid-template-columns: minmax(6rem, 15rem) 1fr;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.25rem 0;
  border-top: 1px solid var(--ink);
}

.app + .app { border-top-color: var(--contour); }

.app-code {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: .85;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: -.03em;
  color: var(--signal);
}

.app-body { max-width: 40rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--slate);
}

.status-live { color: var(--signal-ink); }

.dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--signal);
}

.app h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  font-variation-settings: "wdth" 112;
}

.app-desc { margin: 0 0 1.25rem; max-width: var(--measure); }

.facts {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
  max-width: var(--measure);
  color: var(--slate);
}

.facts li {
  padding-left: 1.25rem;
  position: relative;
}

/* Höhenlinien-Strich als Aufzählungszeichen */
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: .75rem;
  border-top: 1.5px solid var(--contour);
}

.open {
  display: inline-block;
  padding: .8rem 1.35rem;
  background: var(--ink);
  color: var(--fog);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
}

.open:hover { background: var(--signal-ink); }

.app-next .app-code { color: var(--contour); }
.app-next h3 { color: var(--slate); }

/* ---------- Fuß ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--contour);
  background: var(--fog-deep);
  color: var(--slate);
  font-size: .9375rem;
}

.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.5rem; }
.foot a { text-underline-offset: .2em; }

/* ---------- Rechtstexte ---------- */

.legal {
  max-width: 44rem;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}

.legal .back {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 700;
  font-variation-settings: "wdth" 125;
  font-size: 1.5rem;
  text-decoration: none;
}

.legal h1 { max-width: none; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.125rem; margin: 2rem 0 .5rem; }
.legal .todo {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--signal);
  background: var(--fog-deep);
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 40rem) {
  .app { grid-template-columns: 1fr; gap: .75rem; }
  .marker { left: 68%; top: 16%; }
  .marker-mlat { left: 72%; top: 36%; }
  .hero { min-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  .fog { animation: none; }
  .marker:hover .marker-ring { transition: none; }
}
