/* Garagenpark Uchte – Platzhalterseite
   Schriften lokal (keine Verbindung zu Google): Big Shoulders für die
   Überschrift, Golos Text für Fließtext (nur 404-Seite). */

@font-face {
  font-family: "Big Shoulders";
  src: url("/fonts/big-shoulders-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --beton: #e4e0d8;
  --asphalt: #1a1b1d;
  --tor: #3a4044;
  --tor-hell: #444b50;
  --innen: #0d0e0f;
  --licht: 242 179 61;

  --breite: 1240px;
  --rand: clamp(20px, 5vw, 56px);

  --schrift-kopf: "Big Shoulders", "Arial Narrow", sans-serif;
  --schrift-text: "Golos Text", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--beton);
  color: var(--asphalt);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  line-height: 1.6;
  hyphens: manual;
}

h1 {
  margin: 0;
  font-family: var(--schrift-kopf);
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--asphalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.inhalt {
  flex: 1;
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

/* ---- Startseite ---------------------------------------------------------- */

.start {
  display: grid;
  align-content: center;
  gap: clamp(40px, 8vw, 72px);
  padding-block: clamp(40px, 8vh, 96px);
}

/* "Garagenpark Uchte." (rund 7,8 em) soll immer in eine Zeile passen,
   deshalb richtet sich die Größe nach der Spaltenbreite. */
.titel {
  container-type: inline-size;
}

.start h1 {
  font-size: min(5.75rem, 12cqi);
  line-height: 0.95;
  letter-spacing: -0.005em;
}

@media (min-width: 1024px) {
  .start {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    column-gap: clamp(56px, 6vw, 96px);
  }

  .tor {
    justify-self: end;
  }
}

/* ---- Das Tor: Sektionaltor in RAL 7016, öffnet sich nach dem Laden einen
   Spalt und beim Scrollen weiter. Rein dekorativ (aria-hidden). ----------- */

.tor {
  --auf: 0;
  width: 100%;
  max-width: 620px;
}

.tor-oeffnung {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--innen);
  border-radius: 2px 2px 0 0;
}

/* Licht aus dem Inneren */
.tor-innen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 100%, rgb(var(--licht) / 0.42), rgb(var(--licht) / 0) 62%),
    linear-gradient(to bottom, #16181a, var(--innen) 55%);
}

.tor-blatt {
  position: absolute;
  inset: 0;
  background:
    /* Fugen zwischen den fünf Sektionen */
    repeating-linear-gradient(
      to bottom,
      rgb(255 255 255 / 0) 0 calc(20% - 4px),
      rgb(0 0 0 / 0.5) calc(20% - 4px) calc(20% - 2px),
      rgb(255 255 255 / 0.1) calc(20% - 2px) 20%
    ),
    /* Sicke in der Mitte jeder Sektion */
    repeating-linear-gradient(
      to bottom,
      rgb(255 255 255 / 0) 0 calc(10% - 2px),
      rgb(0 0 0 / 0.22) calc(10% - 2px) calc(10% - 1px),
      rgb(255 255 255 / 0.06) calc(10% - 1px) 10%
    ),
    linear-gradient(to bottom, var(--tor-hell), var(--tor));
  box-shadow: inset 0 -6px 0 #1b1e20;
  transform: translateY(calc(var(--auf) * -100%));
  transition: transform 1.2s cubic-bezier(0.5, 0, 0.2, 1);
  will-change: transform;
}

/* Lichtkegel, der unter dem Tor nach vorn fällt */
.tor-licht {
  height: clamp(36px, 7vw, 72px);
  margin-inline: -5%;
  background: linear-gradient(to bottom, rgb(var(--licht) / 0.5), rgb(var(--licht) / 0));
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  opacity: calc(var(--auf) * 2.4);
  transition: opacity 1.2s cubic-bezier(0.5, 0, 0.2, 1);
}

.tor--folgt .tor-blatt,
.tor--folgt .tor-licht {
  transition-duration: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .tor-blatt,
  .tor-licht {
    transition: none;
  }
}

/* ---- 404 ----------------------------------------------------------------- */

.fehler {
  max-width: 44rem;
  padding-block: clamp(40px, 10vh, 120px);
}

.fehler h1 {
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem);
  line-height: 0.95;
}

.fehler p {
  margin-top: 16px;
}
