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; /* Wert anpassen, bis Position passt */
    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 {
  /* Variables */
  --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 { /* Abstand zwischen den Buttons */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* zentriert die Buttons horizontal */
  margin-top: 10px; /* Abstand nach oben */ 
  gap: 20px; /* <- Genau der da. 20px war start. */
}

button:hover .button_top {
  /* Pull the button upwards when hovered */
  transform: translateY(-0.33em);
}

button:active .button_top {
  /* Push the button downwards when pressed */
  transform: translateY(0);
}

/* ===== ORIGINAL BASIS (von Uiverse.io by pharmacist-sabot) ===== */
.card-container {
  width: 100%; /* Macht das Fenster flexibel */
  max-width: 400px; /* Verhindert, dass es auf Riesenmonitoren extrem breit wird */
  height: 300px;
  resize: both;
  overflow: hidden;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  padding: 2px;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #c0c0c0;
  border: 2px inset #c0c0c0;
  overflow: hidden;
  color: #000000;
}

.card-header {
  background: #000080;
  padding: 0;
  flex-shrink: 0;
  border-bottom: 1px solid #000000;
}

.card-tabs {
  display: flex;
  background: linear-gradient(to right, #ffffff, #505050);
  border-bottom: 1px solid #808080;
  height: 20px;
}

.card-tab {
  padding: 2px 8px;
  font-size: 11px;
  color: #000000;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  border-bottom: none;
  cursor: pointer;
  height: 18px;
  margin-top: 1px;
}

.card-tab.active {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
  margin-top: 0;
  height: 19px;
  position: relative;
  z-index: 2;
}

.card-body {
  display: flex;
  flex-grow: 1;
  overflow: auto;
  padding: 4px 0 4px 2px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.2;
  background: #ffffff;
  border: 1px inset #808080;
  margin: 2px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #c0c0c0;
  padding: 2px 4px;
  border-top: 1px solid #808080;
  flex-shrink: 0;
  height: 22px;
}

.copy-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #c0c0c0;
  color: #000000;
  border: 2px outset #c0c0c0;
  border-radius: 0;
  padding: 0 6px;
  cursor: pointer;
  font-size: 11px;
  height: 18px;
}

.copy-button:active {
  border: 2px inset #c0c0c0;
  padding: 1px 5px 0 7px;
  border-radius: 0;
}

.copy-button-text {
  display: none;
}

.card-body::-webkit-scrollbar {
  width: 16px;
}

.card-body::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
}

.card-body::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
}

.card-body::-webkit-scrollbar-button {
  display: block;
  height: 16px;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
}

/* ===== CHAT-ERG?NZUNGEN ===== */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.chat-launcher-btn {
  position: fixed;
  bottom: 20px;
  right: 190px; /* links neben dem FAQ-Button (der liegt bei right: 20px) */
  z-index: 9999;
  padding: 20px 44px;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 19px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  /* Desktop-Standard: versteckt, da der Chat dort standardmaessig offen
     startet. Auf Mobil wird das in responsive_menu.css wieder auf "flex"
     gesetzt - rein per CSS, kein JS-Timing-Risiko mehr. */
  display: none;
}

.chat-launcher-btn:active {
  border: 2px inset #c0c0c0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.name-gate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
}

.name-gate input,
.message-input {
  padding: 3px;
  border: 2px inset #c0c0c0;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
  background: #ffffff;
}

.message-input {
  flex-grow: 1;
}

.copy-button-text-visible {
  font-size: 11px;
}

.chat-message {
  padding: 2px 4px;
  word-wrap: break-word;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}

.chat-message .msg-name {
  font-weight: bold;
  color: #000080;
}

.chat-message .msg-time {
  color: #808080;
  font-size: 10px;
  margin-left: 4px;
}

.name-bar {
  gap: 6px;
}

.name-label {
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
  flex-shrink: 0;
}

.card-tabs {
  justify-content: space-between; /* Tab links, Buttons rechts */
  padding-right: 4px;
}

.titlebar-buttons {
  display: flex;
  gap: 2px;
  padding: 1px 2px;
  margin-left: auto; /* schiebt die Buttons unabh?ngig von .card-tab nach rechts */
}

.title-btn {
  width: 16px;
  height: 16px;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  border-radius: 0;
  color: #000000;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.title-btn:active {
  border: 2px inset #c0c0c0;
  border-radius: 0;
}

#chatDragHandle {
  cursor: move;
}

.card-container.minimized .card-body,
.card-container.minimized .card-footer {
  display: none !important;
}

.card-container.minimized {
  height: auto !important;
}

#chatMessages { /* Chatnachrichten untereinander */
  flex-direction: column;
  align-items: flex-start;
}

/*Preview Fenster oben links*/
.window-preview {
  width: 100%; /* Macht das Fenster flexibel */
  max-width: 500px; /* Verhindert, dass es auf Riesenmonitoren extrem breit wird */
  height: 220px;
}

.preview-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  padding: 0;
  margin: 2px;
}

.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.preview-media img,
.preview-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*Haupt-News-Fenster*/
.window-news {
  width: 100%; /* Macht das Fenster flexibel */
  max-width: 800px; /* Verhindert, dass es auf Riesenmonitoren extrem breit wird */
  height: 489px;
  margin: 0; /* zentriert horizontal, Abstand nach oben */
}

.news-headline {
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #ffffff;
  background: #000000;
}

.news-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body.news-media {
  padding: 0;
  margin: 2px;
  background: #000000;
  border: 1px inset #808080;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-media img,
.news-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: none;
}

.news-subheadline {
  padding: 6px 10px;
  background: #e8e8e8;
  color: #000000;
  font-weight: bold;
  font-size: 13px;
}

.news-controls {
  justify-content: flex-end;
  gap: 6px;
}

/*Audio-Leak-Fenster Radio */
.window-audio {
  width: 100%; /* Macht das Fenster flexibel */
  max-width: 800px; /* Verhindert, dass es auf Riesenmonitoren extrem breit wird */
  height: 90px;
  margin: 20px auto 0; /* zentriert horizontal, Abstand nach oben zur News-Box */
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.audio-waveform {
  flex-grow: 1;
  height: 40px;
  background: #000000;
}

/*===Live-Feed-Fenster Ticker===*/
.window-feed {
  width: 100%; /* Macht das Fenster flexibel */
  max-width: 800px; /* Verhindert, dass es auf Riesenmonitoren extrem breit wird */
  height: 589px;
}

.feed-list {
  flex-direction: column;
  align-items: flex-start;
  background: #000000;
  color: var(--term-color, #14fdce);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  gap: 8px;
  overflow-y: auto;
}

.feed-entry {
  padding: 2px 0;
  border-bottom: 1px solid rgba(var(--term-rgb, 20, 253, 206), 0.15);
  /* Kein text-shadow waehrend des Tippens - der Blur-Shadow wird sonst bei
     JEDEM Zeichen neu berechnet (teuer auf Mobil). Wird erst nach dem
     Tippen per .is-lit aktiviert, siehe menu.js */
}

.feed-entry.is-lit {
  text-shadow: var(--term-glow, 0 0 3px #14fdce, 0 0 6px rgba(20, 253, 206, 0.5));
}

.dashboard-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
 flex-wrap: wrap; /* WICHTIG: Erlaubt den Zeilenumbruch auf kleinen Screens */
}

.window-feed {
  width: 280px;
  height: 489px; /* H?he der Previews + News zusammen, damit es optisch passt */
}

/* ===== MEDIA-SEITE: LAUNCHER-BUTTONS + LADEBALKEN + BOXEN ===== */

.media-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 0 20px;
}

.window-media {
  width: 100%; /* Macht das Fenster flexibel */
  max-width: 800px; /* Verhindert, dass es auf Riesenmonitoren extrem breit wird */
  height: 340px;
}

.media-body {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  margin: 2px;
  border: 1px inset #808080;
  background: #ffffff;
}

.media-sidebar {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #c0c0c0;
  border-right: 1px solid #808080;
  overflow-y: auto;
  font-family: "MS Sans Serif", "Tahoma", sans-serif;
  font-size: 11px;
}

.media-sidebar-item {
  padding: 3px 8px;
  color: #000000;
  cursor: pointer;
  border: 2px outset #c0c0c0;
  margin: 1px;
  background: #c0c0c0;
}

.media-sidebar-item:active,
.media-sidebar-item.selected {
  border: 2px inset #c0c0c0;
  background: #000080;
  color: #ffffff;
}

.media-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: auto;
  padding: 4px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #ffffff;
}

.media-content iframe,
.media-content img,
.media-content audio,
.media-content video {
  width: 100%;
  height: 100%;
}

.media-content .media-placeholder {
  color: #808080;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.media-sidebar::-webkit-scrollbar {
  width: 16px;
}

.media-sidebar::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
}

.media-sidebar::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
}

.media-sidebar::-webkit-scrollbar-button {
  display: block;
  height: 16px;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
}

/* Launcher-Buttons */
.media-launcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

button.default {
  --button_radius: 0.75em;
  --button_color: #e8e8e8;
  --button_outline_color: #000000;
  font-size: 17px;
  font-weight: bold;
  border: 2px solid var(--button_outline_color);
  border-radius: var(--button_radius);
  cursor: pointer;
  background: var(--button_color);
  color: var(--button_outline_color);
  padding: 0.75em 1.5em;
  transition: transform 0.1s ease;
}

button.default:hover {
  transform: translateY(-0.2em);
}

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

/* Boxen standardm??ig versteckt, bis der passende Button geklickt wird */
.window-media.media-hidden {
  display: none;
}

/* Mobil-Anpassungen (< 900px) liegen zentral in assets/css/responsive.css und assets/css/responsive_menu.css */

/* ===== ZWISCHENBEREICH (Tablet/kleinere Laptops) ===== */
/* Zwischen dem Mobil-Breakpoint (900px) und der Breite, ab der Previews +
   News + Feed komplett nebeneinander passen (~1620px), wuerde der Feed
   sonst einfach automatisch zentriert in eine eigene Zeile umbrechen.
   Gewuenschtes Layout hier: GIFs links, News daneben, Ticker darunter -
   aber NICHT randlos ueber die volle Bildschirmbreite, sondern genauso
   breit wie GIFs+News zusammen (bzw. nur News, sobald die beiden nicht
   mehr nebeneinander passen und selbst stapeln). Der "flex-basis: 100%"-
   Trick auf dem Feed erzwingt den Zeilenumbruch, max-width begrenzt dann
   die sichtbare Breite passend zur Zeile darueber. */
@media (min-width: 901px) and (max-width: 1650px) {
  .preview-stack {
    order: 1;
  }

  .window-news {
    order: 2;
    max-width: 600px;
  }

  .window-feed {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }
}

/* GIFs (max. 500px) + Abstand (20px) + News (max. 600px) passen hier noch
   nebeneinander -> Ticker so breit wie beide zusammen (1120px). */
@media (min-width: 1121px) and (max-width: 1650px) {
  .window-feed {
    max-width: 1120px;
  }
}

/* Hier passen GIFs und News nicht mehr nebeneinander und stapeln sich
   selbst -> Ticker nur noch so breit wie die News-Box allein. */
@media (min-width: 901px) and (max-width: 1120px) {
  .window-feed {
    max-width: 600px;
  }
}
