/* Baustellenseite wiegraefe.de – Farben nur Schwarz, Weiß, Orange */

@font-face {
  font-family: "Manrope";
  src: url("Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --schwarz: #000000;
  --weiss: #ffffff;
  /* Orange auf Schwarz: Kontrast 7,1 : 1 (AA und AAA für normalen Text) */
  --orange: #ff641f;
  --rand: clamp(1.25rem, 4.5vw, 3.5rem);
  color-scheme: dark;
}

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

html {
  background: var(--schwarz);
  color: var(--weiss);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--schwarz);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.startseite {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--rand);
  padding-top: max(var(--rand), env(safe-area-inset-top));
  padding-bottom: max(var(--rand), env(safe-area-inset-bottom));
}

/* Ebene 0: Animation bzw. statischer Ersatz (ohne JavaScript oder ohne WebGL2) */
.hintergrund {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 78% 30%, rgba(255, 100, 31, 0.22), rgba(255, 100, 31, 0) 70%),
    var(--schwarz);
}

.hintergrund.laeuft {
  background: var(--schwarz);
}

/* Ebene 1: dunkler Verlauf hinter dem Text, damit er auf hellen Lamellen lesbar bleibt */
.schleier {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Nur dort abdunkeln, wo Text steht: oben rechts (Name) und unten links (Hinweis).
     Mindestens ca. 60 % Deckung hinter weißer Schrift, damit auch weiße Glanzlichter AA einhalten. */
  background:
    radial-gradient(26rem 12rem at 100% 0%, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 100%),
    radial-gradient(70rem 42rem at 0% 100%, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.74) 45%, rgba(0, 0, 0, 0) 100%);
}

@media (max-width: 40rem) {
  .schleier {
    background:
      radial-gradient(22rem 9rem at 100% 0%, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 100%),
      linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.76) 38%, rgba(0, 0, 0, 0) 66%);
  }
}

.kopf,
.hinweis {
  position: relative;
  z-index: 2;
}

.kopf {
  display: flex;
  justify-content: flex-end;
}

.marke {
  margin: 0;
  font-size: clamp(2rem, 2.6vw, 2.25rem);   /* doppelt so groß wie zuerst (Wunsch Jens) */
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--weiss);
  text-decoration: none;
}

.hinweis {
  margin-top: auto;
  max-width: 44rem;
}

.hinweis h1 {
  margin: 0 0 0.45em;
  color: var(--orange);   /* Wunsch Jens: Überschrift in Orange */
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.zeile {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 450;
  text-wrap: pretty;
}

.kontakt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Beide Aktionen (E-Mail, Datenschutz) gleich gestaltet: schlichtes Rechteck mit feinem weißem Rand,
   dezent hinterlegt, damit sie über der Animation ruhig stehen. Hover und Fokus in Orange. */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--weiss);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.knopf:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(0, 0, 0, 0.55);
}

.knopf:focus-visible {
  outline-color: var(--orange);
  border-radius: 0;
}

/* ---------- Textseiten (Datenschutz) ---------- */

.textseite {
  padding: var(--rand);
  padding-top: max(var(--rand), env(safe-area-inset-top));
}

.textseite .kopf {
  margin-bottom: clamp(2.5rem, 8vh, 5rem);
}

.textseite .marke {
  text-decoration: none;
}

.textseite .marke:hover {
  color: var(--orange);
}

.text {
  max-width: 42rem;
}

.text h1 {
  margin: 0 0 0.3em;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.text h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--orange);
}

.text p {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

.text a {
  color: var(--orange);
  text-underline-offset: 0.2em;
}

.stand {
  font-size: 0.875rem;
}

.zurueck {
  margin-top: 3rem;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
