/* === global.css === */

:root {
  /* === Farbvariablen === */
  --color-bg: #111;
  --color-bg-light: #181818;
  --color-bg-menu: #444;
  --color-text: #f0f0f0;
  --color-muted: #ccc;
  --color-border: #333;
  --color-accent: #0ff;
  --color-accent-dark: #00cccc;
  --color-alert-success: rgba(76, 175, 80, 0.9);
  --color-alert-success-marker: rgb(26, 90, 28);
  --color-alert-info: rgba(255, 193, 7, 0.9);         /* warmes Gelb mit 90% Deckkraft */
  --color-alert-info-marker: rgb(102, 81, 0);         /* dunkler, satter Kontrast-Ton */
  --color-alert-error: rgba(244, 67, 54, 0.9);
  --color-alert-error-marker: rgb(143, 40, 33);
  --color-panel-overlay: rgba(20, 20, 20, 0.9);
  --color-border-muted: rgba(220, 221, 221, 0.247);
  --color-overlay-bg: rgba(0, 0, 0, 0.4);
  --color-lightbox-bg: rgba(0, 0, 0, 0.85);
  --color-text-inverse: #000;
  --color-input-bg: #111;
  --color-button-text: #000;
  --color-link: #f0f0f0;
  --color-link-visited: #f0f0f0;
  /* === Menu ===*/
  --menu-bg: #111;
  --menu-text: #fff;
  --menu-width: 100%;
  --menu-padding: 2rem;
  --z-menu: 1000;

  /* === Radien === */
  --radius-full: 999px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* === Layers === */
  --layer1: 1;
  --layer2: 100;
  --layer3: 500;
  --layer-menu: 1000;
  --layer-modal: 2000;
  
  /* === Schatten und Boxen === */
  --shadow-sm: 0 0 6px rgba(0, 255, 255, 0.2);
  --shadow-md: 0 0 10px rgba(0, 255, 255, 0.3);
  --shadow-lg: 0 0 16px rgba(0, 255, 255, 0.3);
  --shadow-inset: inset 0 0 12px rgba(0, 255, 255, 0.1);

  --shadow-sm-dark: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md-dark: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg-dark: 0 2px 20px rgba(0, 0, 0, 0.4);

  /* === Abstände === */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-header: 200px;
  
  /* === Sizees ===*/
  --button-min-size: 150px;
  --textarea-min-height: 6rem;
  --header-height: 200px;
  --buttom-min-height: 2.0rem;
  /* === Breakpoints === */
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* === Containerbreite === */
  --container-max-width: 1200px;

  /* === Typografie === */
  --font-body: 'Inter', sans-serif;
  --font-headline: 'Press Start 2P', monospace;
  --font-menu: 'Inter', sans-serif;
  --font-size-sm: 0.85rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.2rem;
  --font-size-xl: 2.0rem;

  /* === Sonstiges === */
  --media-height: 200px;
  --swiper-max-height: 200px;
  --lightbox-max-size: 90vw;

}
/* === Dark Red Theme === */
:root[data-theme="red"] {
  --color-bg: #0c0000;
  --color-bg-light: #160202;
  --color-bg-menu: #1c0000;
  --color-text: #fce8e8;
  --color-muted: #aa8888;
  --color-border: #330000;
  --color-border-muted: rgba(255, 0, 0, 0.15);
  --color-accent: #ff2b2b;
  --color-accent-dark: #cc0000;

  --color-alert-success: rgba(76, 175, 80, 0.9);
  --color-alert-success-marker: rgb(26, 90, 28);
  --color-alert-error: rgba(255, 80, 80, 0.9);
  --color-alert-error-marker: rgb(180, 30, 30);

  --color-panel-overlay: rgba(40, 0, 0, 0.9);
  --color-overlay-bg: rgba(50, 0, 0, 0.4);
  --color-lightbox-bg: rgba(20, 0, 0, 0.85);
  --color-input-bg: #220000;
  --color-button-text: #fff;

  --color-text-inverse: #fff;
  --color-link: #ff4d4d;
  --color-link-visited: #ff2b2b;

  --shadow-sm: 0 0 6px rgba(255, 30, 30, 0.2);
  --shadow-md: 0 0 10px rgba(255, 30, 30, 0.35);
  --shadow-lg: 0 0 16px rgba(255, 0, 0, 0.4);
  --shadow-inset: inset 0 0 12px rgba(255, 0, 0, 0.2);
}


/* === Cold Blue Theme === */
:root[data-theme="blue"] {
  --color-bg: #000d1a;
  --color-bg-light: #00182b;
  --color-bg-menu: #002233;
  --color-text: #e0f8ff;
  --color-muted: #a8c7d1;
  --color-border: #00334d;
  --color-border-muted: rgba(0, 204, 255, 0.15);
  --color-accent: #00caff;
  --color-accent-dark: #009ed6;

  --color-alert-success: rgba(50, 200, 200, 0.9);
  --color-alert-success-marker: rgb(0, 120, 120);
  --color-alert-error: rgba(255, 60, 60, 0.85);
  --color-alert-error-marker: rgb(160, 30, 30);

  --color-panel-overlay: rgba(0, 20, 40, 0.9);
  --color-overlay-bg: rgba(0, 0, 20, 0.4);
  --color-lightbox-bg: rgba(0, 0, 20, 0.85);
  --color-input-bg: #00111f;
  --color-button-text: #fff;

  --color-text-inverse: #fff;
  --color-link: #00caff;
  --color-link-visited: #00a9dd;

  --shadow-sm: 0 0 6px rgba(0, 200, 255, 0.2);
  --shadow-md: 0 0 10px rgba(0, 200, 255, 0.3);
  --shadow-lg: 0 0 16px rgba(0, 170, 255, 0.4);
  --shadow-inset: inset 0 0 12px rgba(0, 170, 255, 0.2);
}

 
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

main {
  flex: 1 0 auto;
  padding: var(--space-lg);
  background-color: var(--color-bg-light); 
  color: var(--color-text);
  overflow-y: auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-lightbox-bg);
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm-dark);
  backdrop-filter: blur(6px);
}
.unmasked-link {
  text-decoration: none;
}
.menu-left,
.menu-center {
  display: flex;
  align-items: center;
}
.menu-center {
  flex-direction: column;
  text-align: center;
  flex: 1;
}
.menu-left,
.menu-right {
  flex: 0 0 auto;
}
.menu-left .logo-mini {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
  font-size: var(--font-size-md);
}

.menu-right {
  display: flex;
  flex-direction: column;      
  align-items: flex-start;    
  gap: var(--space-sm);
}


.brand h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--font-size-xl);
  margin: 0;
  line-height: 1.4;
}

.brand .tagline {
  font-size: 1.0rem;
  margin: 0;
  color: var(--color-muted);
}

header {
  width: 100%;
  position: fixed;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: var(--space-lg);
  z-index: var(--layer3);
  transition: transform 0.4s ease, opacity 0.4s ease;
  border-radius: var(--radius-md);
}
.spacer {
  height: 500px;
  margin: 5px solid red;
  position: relative;
}
footer {
  flex-shrink: 0;
  background-color: var(--color-bg);
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-md);
  font-size: var(--font-size-sm);
  border-top: 1px solid var(--color-border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg, #111);
  color: var(--color-text, #fff);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.6);
  gap: var(--space-md);
}

.typewriter-line {
  display: block; /* oder inline-flex */
  white-space: pre-wrap;      /* wichtig, damit Leerzeichen erhalten bleiben */
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
}

.typewrite-cursor {
  display: inline;
  margin-left: 2px;
  color: var(--color-text);
  animation: blink 1s step-start infinite;
}
.typewriter-text {
  display: inline;
  word-break: break-word;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

h1, h2, h3 {
  font-family: var(--font-headline);
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: var(--breakpoint-md)) {
  main {
    padding: var(--space-md);
  }
  footer {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: var(--breakpoint-sm)) {
  .container {
    padding: 0 var(--space-sm);
  }
  h1, h2, h3 {
    font-size: var(--font-size-md);
  }
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
} 

.ad-box {
  background: var(--color-bg-menu);
  color: var(--color-muted);
  padding: var(--space-md);
  text-align: center;
  border-top: 1px solid var(--color-border-muted);
  margin: var(--space-lg) auto;
  max-width: 600px;
  font-size: var(--font-size-md);
}



@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


.ad-box {
  background: #222;
  color: #aaa;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #444;
  margin: 2rem auto;
  max-width: 600px;
  font-size: 0.9rem;
}
