/* =====================================================================
   ABOUT: Titel + Menue wie auf allen oeffentlichen Seiten, darunter ein
   Terminal-Monitor im Stil eines alten Roehrenbildschirms (CRT).
   Schriften liegen lokal in assets/fonts (keine Anfrage an Google).
   Mobil-Korrekturen der Kopfzeile: responsive_about.css (bis 900px)
   ===================================================================== */

@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/vt323-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2");
}

body {
    background-image: url('../img/clean_background.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 0;
}

:root { /* Flicker Effekt des Titels */
    --tube-on-glow: 0 0 4px #fff, 0 0 12px #fff, 0 0 28px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.5);
}

.content-title {
    margin: 0;
    margin-top: 7vh;
    padding-bottom: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 8vw, 100px);
    line-height: 1.1;
    z-index: 20;
    color: #e0e0e0;
}

/* From Uiverse.io by Voxybuns */
button {
  --button_radius: 0.75em;
  --button_color: #e8e8e8;
  --button_outline_color: #000000;
  font-size: 17px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
}

.button_top {
  display: block;
  box-sizing: border-box;
  border: 2px solid var(--button_outline_color);
  border-radius: var(--button_radius);
  padding: 0.75em 1.5em;
  background: var(--button_color);
  color: var(--button_outline_color);
  transform: translateY(-0.2em);
  transition: transform 0.1s ease;
}

.menubutton {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  gap: 20px;
}

button:hover .button_top {
  transform: translateY(-0.33em);
}

button:active .button_top {
  transform: translateY(0);
}

/* =====================================================================
   MONITOR (CRT)
   Aufbau:  .crt           Gehaeuse (Rahmen) + Vignette (::after)
              .crt__scan   Scanlines (nur Zierde)
              .crt__glow   leuchtender Schein (nur Zierde)
              .crt__screen der eigentliche Text
   Die Zierelemente haben pointer-events: none - Links und Textmarkieren
   funktionieren darunter ganz normal.
   ===================================================================== */
.crt {
  --crt-fg: var(--term-color, #14fdce);          /* Tuerkis aus der Vorlage */
  --crt-fg-hi: var(--term-hi, #b8fff0);       /* helleres Gruen fuer Ueberschrift und Hervorhebungen */
  --crt-bg: var(--term-bg, #031e11);          /* Bildschirm: fast schwarz mit gruenem Stich */
  --crt-dim: rgba(var(--term-rgb, 20, 253, 206), 0.6);
  position: relative;
  width: min(1100px, calc(100% - 2rem));
  margin: 1.5rem auto 5rem;
  background: var(--crt-bg);
  border: 1rem solid;
  border-color: #020202 #080808 #121212 #080808;   /* oben, rechts, unten, links: leicht gewoelbter Rahmen */
  border-radius: 2rem;
  box-shadow: 0 0 3rem rgba(var(--term-rgb, 20, 253, 206), 0.12), 0 1rem 4rem rgba(0, 0, 0, 0.8);
  overflow: hidden;
  isolation: isolate;
}

/* Vignette: Bildraender werden dunkler, wie bei einer Roehre */
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.85), inset 0 0 1.2rem #000;
}

.crt__scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.42));   /* etwas weicher als im Vorbild: Text bleibt klarer */
  background-size: 100% 0.3rem;
}

.crt__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(var(--term-rgb, 20, 253, 206), 0.55) 0%, rgba(var(--term-rgb, 20, 253, 206), 0.25) 55%, rgba(var(--term-rgb, 20, 253, 206), 0) 100%);
  opacity: 0.12;
  mix-blend-mode: screen;
  animation: crt-glow 20s ease-in-out infinite alternate;
}

.crt__screen {
  position: relative;
  z-index: 1;
  min-height: clamp(320px, 52vh, 620px);
  padding: 3rem 2.5rem 2.5rem;
  color: var(--crt-fg);
  font-family: "VT323", "Courier New", monospace;
  font-size: 1.5rem;
  line-height: 1.25;
  text-shadow: 0 0.2rem 1rem rgba(var(--term-rgb, 20, 253, 206), 0.4);
  animation: crt-on 0.9s ease-out both;
}

.crt__screen > * { max-width: 46em; }

.crt__prompt {
  margin: 0 0 1rem;
  color: var(--crt-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crt__title {
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crt-fg-hi);
  text-shadow: 0 0 0.7rem rgba(var(--term-rgb, 20, 253, 206), 0.75);
}

.crt__screen p { margin: 0 0 1.3rem; }

.crt__screen strong { color: var(--crt-fg-hi); font-weight: 400; text-decoration: underline; text-decoration-thickness: 0.1rem; text-underline-offset: 0.25rem; }

.crt__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.8rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.crt a,
.crt a:visited {
  display: inline-block;
  padding: 0.45rem 0.2rem;
  border-bottom: 0.2rem solid var(--crt-fg);
  color: var(--crt-fg);
  text-decoration: none;
}

.crt a:hover,
.crt a:active,
.crt a:focus-visible {
  background-color: var(--crt-fg);
  color: var(--crt-bg);
  text-shadow: none;
  outline: none;
}

.crt__note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 0.15rem dashed rgba(var(--term-rgb, 20, 253, 206), 0.5);
}

.crt__note::before {
  content: "[ IN-GAME NOTICE ]";
  display: block;
  margin-bottom: 0.4rem;
  color: var(--crt-dim);
  letter-spacing: 0.06em;
}

.crt__cursor { display: inline-block; animation: crt-blink 1s steps(1) infinite; }

.crt ::selection { background-color: var(--crt-fg); color: var(--crt-bg); text-shadow: none; }

/* Die Zeilen erscheinen nacheinander (die Texte stehen aber immer im HTML:
   Screenreader, Suchmaschinen und Browser ohne Animation sehen alles sofort) */
.crt__screen > * { animation: crt-line 0.45s ease-out both; }
.crt__screen > :nth-child(1)  { animation-delay: 0.45s; }
.crt__screen > :nth-child(2)  { animation-delay: 0.55s; }
.crt__screen > :nth-child(3)  { animation-delay: 0.7s; }
.crt__screen > :nth-child(4)  { animation-delay: 0.85s; }
.crt__screen > :nth-child(5)  { animation-delay: 1s; }
.crt__screen > :nth-child(6)  { animation-delay: 1.15s; }
.crt__screen > :nth-child(7)  { animation-delay: 1.3s; }
.crt__screen > :nth-child(8)  { animation-delay: 1.45s; }
.crt__screen > :nth-child(n+9) { animation-delay: 1.6s; }

@keyframes crt-on {
  0%   { opacity: 0; transform: scaleY(0.004); filter: brightness(6); }
  35%  { opacity: 1; transform: scaleY(0.004); filter: brightness(6); }
  100% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
}
@keyframes crt-line {
  from { opacity: 0; transform: translateY(0.3rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes crt-glow {
  from { opacity: 0.08; }
  to   { opacity: 0.18; }
}
@keyframes crt-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Wer in den Systemeinstellungen "Bewegung reduzieren" gewaehlt hat: keine Animation, alles sofort da */
@media (prefers-reduced-motion: reduce) {
  .crt__screen, .crt__screen > *, .crt__glow, .crt__cursor { animation: none !important; }
}

/* =====================================================================
   GROESSEN
   ===================================================================== */

/* sehr grosse Bildschirme: Monitor und Schrift wachsen mit */
@media (min-width: 1900px) {
  .crt { width: 1280px; }
  .crt__screen { font-size: 1.7rem; padding: 3.5rem 3rem 3rem; }
}

/* Tablets und kleine Laptops */
@media (max-width: 1199px) {
  .crt { border-width: 0.75rem; border-radius: 1.5rem; }
  .crt__screen { padding: 2.4rem 1.8rem 2rem; }
}

/* Handys (bis 900px): schmalerer Rahmen, groesserer Zeilenabstand zum Antippen der Links */
@media (max-width: 899px) {
  .crt { width: calc(100% - 1.5rem); margin: 1.25rem auto 5rem; border-width: 0.55rem; border-radius: 1.1rem; }
  .crt::after { box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.85), inset 0 0 0.8rem #000; }
  .crt__scan { background-size: 100% 0.2rem; }
  .crt__screen { min-height: 0; padding: 1.5rem 1.1rem 1.6rem; font-size: 1.35rem; }
  .crt__title { margin-bottom: 1rem; }
  .crt__links { gap: 0.1rem 1.4rem; }
  .crt a, .crt a:visited { padding: 0.6rem 0.25rem; }   /* Tippflaeche mindestens 44px hoch */
  .crt__note { padding: 0.8rem 0.9rem; }
}

/* sehr schmale Handys */
@media (max-width: 380px) {
  .crt { width: calc(100% - 1rem); }
  .crt__screen { padding: 1.25rem 0.9rem 1.4rem; font-size: 1.25rem; }
}

/* Querformat mit wenig Hoehe: keine Mindesthoehe, weniger Polster */
@media (max-height: 520px) and (orientation: landscape) {
  .crt__screen { min-height: 0; padding-top: 1.4rem; padding-bottom: 1.2rem; }
}


/* =====================================================================
   Terminal-Effekte wie im Members-Fenster (siehe terminal.css)
   ===================================================================== */
/* durchlaufender Scan-Balken von oben nach unten (im Rahmen des Monitors abgeschnitten) */
.crt__scan { overflow: hidden; }
.crt__scan::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
  mix-blend-mode: screen;
  background-color: black;
  background-image:
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.5) 50%),
    linear-gradient(to top, rgba(5, 15, 5, 1), rgba(0, 0, 0, 0) 110%);
  background-size: 15px 15px, 100%;
  animation: term-scan 2.5s linear infinite, term-flicker 0.6s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .crt__scan::after { display: none; }
}
