/* ============================================
   GLOBAL – gilt für alle Seiten
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fira Code', 'Courier New', monospace;
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
}

/* ============================================
   HINTERGRUND-SVG
   ============================================ */

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.bg-index {
  background-image: url('backgrounds/background-index.svg');
}

.bg-dark {
  background-image: url('backgrounds/background-dark.svg');
}

/* ============================================
   HAUPT-INHALT (liegt über dem Hintergrund)
   ============================================ */

.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ============================================
   NAVIGATION (die Pfeile + Links oben)
   ============================================ */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
               0 0 20px rgba(255, 255, 255, 0.4);
}

/* ============================================
   BOTTOM NAVIGATION (Route Table + History)
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 3rem;
  pointer-events: none;
  z-index: 10;
}

.nav-arrow {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 3.6rem;
  color: #555;
  text-decoration: none;
  pointer-events: all;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-arrow:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* ============================================
   ANIMATION – Pulsierende Lichtstreifen
   ============================================ */

@keyframes pulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1.0; }
  100% { opacity: 0.6; }
}

.bg-index {
  animation: pulse 4s ease-in-out infinite;
}

/* ============================================
   INDEX – Schwebende Links
   ============================================ */

.floating-link {
  position: absolute;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.95rem;
  letter-spacing: 0.2em;
  opacity: 0.9;
  transition: text-shadow 0.3s, opacity 0.3s;
}

.floating-link:hover {
  text-shadow:
    0 0 10px rgba(255,255,255,1),
    0 0 25px rgba(255,255,255,0.8),
    0 0 50px rgba(255,255,255,0.4);   /* ← dritte Ebene für mehr Tiefe */
  opacity: 1;
}
.floating-link {
  font-size: 1.6rem;      /* ← das ist der entscheidende Zusatz */
  letter-spacing: 0.15em;
}

/* Position der drei Links – angepasst an dein SVG */
.link-routetable {
  top: 28%;
  left: 37%;
}

.link-history {
  top: 53%;
  right: 16%;
}

.link-namespace {
  bottom: 10%;
  left: 45%;
}

/* ============================================
   INDEX – Einleitungstext links unten
   ============================================ */

.intro-text {
  position: absolute;
  bottom: 8%;
  left: 14%;
  font-size: 1rem;
  line-height: 2.2;
  max-width: 440px;
  opacity: 0.8;
}

.intro-name {
  font-weight: 600;        /* semibold — war 700 (bold) */
  letter-spacing: 0.1em;
  text-align: center;      /* ← neu */
  display: block;          /* ← wichtig! ohne das ignoriert p text-align */
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  position: fixed;
  top: 2rem;
  left: 3rem;
  z-index: 100;
}

.page-title {
  font-family: 'FiraCode Mono', monospace;
  font-size: 1.1rem;
  color: #ccc;
  letter-spacing: 0.05em;
}

/* ============================================================
   PAGE: ROUTE TABLE
   ============================================================ */

.page-route-table {
  background-image: url('backgrounds/background-dark.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ------------------------------------------------------------
   GRID LAYOUT
   ------------------------------------------------------------ */

.route-table-grid {
  display: grid;
  grid-template-columns: 2rem repeat(6, 1fr);
  gap: 1rem;
  padding: 5rem 3rem 5rem;
  align-items: stretch;
}

.row-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-family: 'FiraCode Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #888;
  text-transform: uppercase;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 0.5rem 0.25rem;
}

/* ------------------------------------------------------------
   TILES
   ------------------------------------------------------------ */

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 1.25rem 1rem;
  min-height: 120px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tile a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.tile-active {
  background-color: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.tile-active:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.tile-active:hover .tile-label {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6),
               0 0 24px rgba(255, 255, 255, 0.3);
}

.tile-inactive {
  background-color: transparent;
  border-color: #ffffff;
  cursor: default;
  opacity: 0.2;
}

.tile-label {
  font-family: 'FiraCode Mono', monospace;
  font-size: 0.7rem;
  color: #aaa;
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* ------------------------------------------------------------
   BOTTOM NAVIGATION
   ------------------------------------------------------------ */

.bottom-nav {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 3rem;
  pointer-events: none;
}

.nav-arrow {
  font-family: 'FiraCode Mono', monospace;
  font-size: 3.6rem;
  color: #555;
  text-decoration: none;
  pointer-events: all;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-arrow:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

/* ============================================================
   PAGE: MINIPAGE (Template für alle Mockups)
   ============================================================ */

.page-minipage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minipage-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}

/* Titel */
.minipage-title {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 400;
  color: #cccccc;
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

/* Bildrahmen mit Schatten darunter */
.minipage-frame {
  position: relative;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background-color: #0d0d0d;
  overflow: hidden;
  margin-bottom: 1rem;

  /* Schatten unter dem Rahmen */
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Bild passt sich in den Rahmen ein */
.minipage-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

/* Textliste */
.minipage-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.72rem;
  color: #aaaaaa;
  line-height: 2;
  letter-spacing: 0.04em;
}

.minipage-list li::before {
  content: '– ';
  color: #666;
}

/* Zurück-Pfeil */
.minipage-back {
  display: inline-block;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 1.4rem;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.minipage-back:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* ============================================
   HISTORY PAGE STYLES
   ============================================ */

.page-history {
  background-color: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Hintergrund */
.page-history .bg.bg-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Header – Title links, Breadcrumb RECHTSBÜNDIG */
.page-header-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.page-header-history .page-title {
  /* Title bleibt links – styled durch bestehende Regeln */
}

/* Top-Nav: rechtsbündig, endet bündig mit dem rechten Nav-Pfeil unten */
.top-nav-history {
  margin-left: auto;
  padding-right: 20px;
}

.breadcrumb-flow {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #cccccc;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* Grid für Glow-Wörter */
.history-grid {
  flex-grow: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  margin: 0 20px;
  z-index: 1;
}

/* Subtile Grid-Linien im Hintergrund */
.history-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
}

/* Glowing Words – Gemeinsam */
.glow-word {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* HOT – Rot (maximale Intensität) */
.glow-hot {
  color: #ff0000;
  text-shadow:
    0 0 10px #ff0000,
    0 0 20px #ff0000,
    0 0 40px #ff0000,
    0 0 80px #ff0000;
  grid-column: 2;
  grid-row: 2;
  position: relative;
  top: -25%;
  left: 50%;
}

/* COOL – Blau (mittlere Intensität) */
.glow-cool {
  color: #0066ff;
  text-shadow:
    0 0 8px #0066ff,
    0 0 16px #0066ff,
    0 0 32px #0066ff;
  grid-column: 1;
  grid-row: 3;
  position: relative;
  top: -20%;
  left: 10%;
}

/* COLD – Weiß (niedrigere Intensität) */
.glow-cold {
  color: #ffffff;
  text-shadow:
    0 0 6px #ffffff,
    0 0 12px #ffffff,
    0 0 24px #ffffff;
  grid-column: 4;
  grid-row: 3;
  position: relative;
  top: -60%;
  left: -8%;
}

/* ARCHIVE – Grau (minimale Intensität) */
.glow-archive {
  color: #555555;
  text-shadow:
    0 0 4px #444444,
    0 0 8px #444444;
  grid-column: 2;
  grid-row: 3;
  position: relative;
  top: 55%;
  left: 40%;
}
