/* mondlift.de - gemeinsames Stylesheet. Dunkel, technisch, warme Lichter. */

:root {
  --bg: #070a12;
  --bg-panel: rgba(13, 18, 32, 0.72);
  --ink: #e9edf6;
  --ink-soft: #b3bdd1;
  --ink-dim: #8290a8;
  --amber: #ffb64d;
  --amber-hot: #ffdc9a;
  --line: rgba(152, 168, 198, 0.18);
  --focus: #ffd27a;

  --col: 64ch;
  --step: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: var(--step);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--amber);
  text-decoration-color: rgba(255, 182, 77, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--amber-hot);
  text-decoration-color: currentColor;
}

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

/* Sprungmarke fuer Tastatur und Screenreader */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.6em 1em;
  background: #11182a;
  color: var(--ink);
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

#ride {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  /* Fallback, solange das Canvas noch nicht gezeichnet hat */
  background: radial-gradient(120% 80% at 50% 95%, #141c2e 0%, #05080f 70%);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.1rem, 3vw, 2.5rem);
  pointer-events: none;
}

@supports (min-height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

/* Dunkle Verlaeufe oben und unten, damit die Schrift vor der Animation
   lesbar bleibt, ohne sie zu verdecken. */
.hero::before,
.hero::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 42vh;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 6, 14, 0.92) 0%,
    rgba(4, 6, 14, 0.55) 45%,
    rgba(4, 6, 14, 0) 100%
  );
}

.hero::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(4, 6, 14, 0.95) 0%,
    rgba(4, 6, 14, 0.66) 42%,
    rgba(4, 6, 14, 0) 100%
  );
}

.hero a,
.hero button {
  pointer-events: auto;
}

.hero__head {
  text-align: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 36px rgba(255, 176, 64, 0.22);
}

.hero__sub {
  margin: 0.9rem auto 0;
  max-width: 34ch;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 2.6vw, 0.88rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- Footer */

.foot {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-dim);
  text-align: center;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.35rem;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}

.foot__nav a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 182, 77, 0.3);
  padding-bottom: 1px;
}

.foot__nav a:hover {
  border-bottom-color: currentColor;
}

/* Der kurze Disclaimer, gut sichtbar aber ruhig */
.disclaimer {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.disclaimer strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------------------------------------------------- Inhaltsseiten */

.page {
  position: relative;
  min-height: 100vh;
  /* Dezenter Nachthimmel ohne Canvas */
  background:
    radial-gradient(
      68% 48% at 78% -8%,
      rgba(142, 160, 210, 0.11),
      transparent 70%
    ),
    radial-gradient(
      110% 70% at 50% 108%,
      rgba(255, 150, 50, 0.07),
      transparent 68%
    ),
    linear-gradient(#070a12, #0b1120 55%, #0a0e1a);
}

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem) clamp(1.1rem, 4vw, 1.6rem) 4rem;
}

.back {
  display: inline-block;
  margin-bottom: 2.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.page h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 0.4rem;
}

.page h2 {
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  line-height: 1.3;
  margin: 2.6rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.page h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
  color: var(--ink-soft);
}

.page p,
.page ul,
.page ol,
.page dl {
  color: var(--ink-soft);
}

.page ul,
.page ol {
  padding-left: 1.3rem;
}

.page li + li {
  margin-top: 0.35rem;
}

.lead {
  font-size: 1.06em;
  color: var(--ink) !important;
}

address {
  font-style: normal;
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

/* Hervorgehobener Kasten, etwa fuer den Disclaimer im Impressum */
.note {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  font-size: 0.93em;
}

.note > :first-child {
  margin-top: 0;
}

.note > :last-child {
  margin-bottom: 0;
}

.note__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.meta {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-dim);
}

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

.center {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
}

.center .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(3rem, 16vw, 7rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-shadow: 0 0 40px rgba(255, 176, 64, 0.25);
  margin: 0;
}

/* --------------------------------------------- Reduzierte Bewegung */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------- Kontaktformular */

.form {
  margin-top: 2rem;
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  font: inherit;
  color: var(--ink);
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.6;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(170, 186, 216, 0.34);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}

.field__hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* Honigtopf: aus dem Bild geschoben statt display:none, weil manche Bots
   verborgene Felder sonst überspringen. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.75em 1.8em;
  font: inherit;
  font-weight: 600;
  color: #10131c;
  background: linear-gradient(180deg, var(--amber-hot), var(--amber));
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition:
    filter 0.15s ease,
    transform 0.05s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: progress;
  filter: grayscale(0.5) brightness(0.8);
}

.form__note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

/* Turnstile-Widget bekommt etwas Luft */
.cf-turnstile {
  margin: 0 0 1.5rem;
  min-height: 65px;
}

/* Rückmeldungen über dem Formular */
.status:empty {
  display: none;
}

.status__msg {
  margin: 0 0 1.6rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 4px;
  background: var(--bg-panel);
  color: var(--ink) !important;
}

.status__msg--ok {
  border-left-color: #6fd08c;
}

.status__msg--warn {
  border-left-color: var(--amber);
}
