/* ==========================================
   NEON / CYBERPUNK APP THEME (GALAXY EDITION)
   ========================================== */

/* CUSTOM PROPERTY FÜR DIE BORDER-ROTATION */
@property --logo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg-dark: #05070e;
  --card-bg: rgba(18, 26, 43, 0.75);
  --card-border: rgba(255, 255, 255, 0.12);
  --input-bg: rgba(10, 14, 26, 0.8);
  --primary-cyan: #00e5ff;
  --primary-magenta: #e024b3;
  --primary-purple: #a855f7;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ANIMIERTER GALAXY HINTERGRUND */
body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 40px 70px, var(--primary-cyan), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, rgba(224, 36, 179, 0.9), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 230px 190px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 310px 80px, var(--primary-cyan), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 350px 350px;
  animation: galacticDrift 40s linear infinite;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ANIMIERTE GALAXY-NEBEL (MAGENTA & CYAN GLOW) */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -10%;
  left: -15%;
  width: 90vw;
  height: 90vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--primary-magenta) 0%, var(--primary-purple) 45%, transparent 70%);
  animation: nebulaPulse 14s ease-in-out infinite alternate;
}

body::after {
  bottom: -10%;
  right: -15%;
  width: 85vw;
  height: 85vw;
  max-width: 550px;
  max-height: 550px;
  background: radial-gradient(circle, var(--primary-cyan) 0%, rgba(168, 85, 247, 0.5) 50%, transparent 70%);
  animation: nebulaPulse 18s ease-in-out infinite alternate-reverse;
}

@keyframes galacticDrift {
  0% { background-position: 0 0; }
  100% { background-position: 350px 700px; }
}

@keyframes nebulaPulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.15) rotate(15deg); opacity: 0.55; }
  100% { transform: scale(0.95) rotate(-10deg); opacity: 0.4; }
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* LAYOUT CONTAINER */
.app-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.desktop-sidebar {
  display: none; /* Auf Mobilgeräten standardmäßig aus */
}

.desktop-topbar {
  display: none;
}

.desktop-footer {
  display: none;
}

.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px 12px 90px 12px;
  position: relative;
  z-index: 1;
}

/* SEITEN-STEUERUNG UND ANIMATION */
.page {
  display: none;
  animation: slideUpFade 0.3s ease-out;
}
.page.active {
  display: block;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MAIN GLASS CARD CONTAINER */
.app-card {
  background: rgba(13, 19, 33, 0.75);
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border-radius: 28px;
  padding: 24px 18px;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

/* HERO SECTION / LOGO & HEADER WRAPPER */
.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO & HIGHLIGHT GLOW (ANIMIERT) */
.logo-container {
  margin: 10px auto 16px auto;
  width: 110px;
  height: 110px;
  border-radius: 24px;
  padding: 3px;
  
  /* Rotierender Neon-Gradient */
  background: conic-gradient(
    from var(--logo-angle),
    var(--primary-cyan),
    var(--primary-purple),
    var(--primary-magenta),
    var(--primary-cyan)
  );
  
  box-shadow: 0 0 25px rgba(224, 36, 179, 0.45), inset 0 0 15px rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Kontinuierliche Rotation des Gradienten */
  animation: rotateLogoBorder 6s linear infinite;
  flex-shrink: 0;
}

@keyframes rotateLogoBorder {
  0% {
    --logo-angle: 0deg;
  }
  100% {
    --logo-angle: 360deg;
  }
}

.app-logo {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
  background-color: #000;
  display: block;
}

/* HEADERS & TYPOGRAPHIE */
.home-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.home-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 24px;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-subline {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animated-subline.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.animated-subline.fade-in {
  opacity: 0;
  transform: translateY(8px);
}

h1.form-header {
  font-size: 1.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
  line-height: 1.4;
}

/* TOP ROW: MAIN BUTTON + COUNTDOWN */
.top-action-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 12px;
  margin-bottom: 16px;
}

.glow-magenta-btn {
  width: 100%;
  padding: 16px 12px;
  background: linear-gradient(135deg, #d91baf, #a11492);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(224, 36, 179, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.glow-magenta-btn:disabled {
  background: #1e293b;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.8;
  border-color: var(--card-border);
}

/* VOLLBREITE RADIO BUTTON */
.full-width-radio-btn {
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid var(--primary-cyan);
  border-radius: 18px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.full-width-radio-btn:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(168, 85, 247, 0.35));
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.countdown-box {
  position: relative;
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 12px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;

  /* Rotierender Conic-Gradient Border */
  background-image: 
    linear-gradient(rgba(18, 26, 43, 0.95), rgba(18, 26, 43, 0.95)), 
    conic-gradient(
      from var(--logo-angle),
      var(--primary-cyan),
      var(--primary-purple),
      var(--primary-magenta),
      var(--primary-cyan)
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;

  /* Neon Glow Effect */
  box-shadow: 0 0 12px rgba(224, 36, 179, 0.25), inset 0 0 10px rgba(0, 229, 255, 0.15);
  animation: rotateLogoBorder 6s linear infinite;
}

.countdown-box span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: normal;
  margin-bottom: 2px;
}

/* 2-SPALTIGES GRID-LAYOUT FÜR BUTTONS (HOMEBUTTON MENÜ) */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.grid-btn {
  position: relative;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  text-decoration: none;
  line-height: 1.2;

  /* Rotierender Conic-Gradient analog zum Logo */
  background-image: 
    linear-gradient(rgba(18, 26, 43, 0.95), rgba(18, 26, 43, 0.95)), 
    conic-gradient(
      from var(--logo-angle),
      var(--primary-cyan),
      var(--primary-purple),
      var(--primary-magenta),
      var(--primary-cyan)
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;

  /* Neon-Glow & Schatten */
  box-shadow: 0 0 12px rgba(224, 36, 179, 0.25), inset 0 0 10px rgba(0, 229, 255, 0.15);
  
  /* Gleiche Border-Rotation wie das Logo */
  animation: rotateLogoBorder 6s linear infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-btn:hover {
  box-shadow: 0 0 22px rgba(224, 36, 179, 0.5), inset 0 0 12px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.grid-btn:active, .primary-btn:active, .secondary-btn:active, .full-width-radio-btn:active, .install-app-btn:active {
  transform: scale(0.98);
}

.grid-btn .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* BANNER BOX & GIVEAWAY LOOK */
.ig-banner-box {
  margin-top: 8px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(224, 36, 179, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 95px;
  position: relative;
}

.ig-banner-box a {
  display: block;
  width: 100%;
  height: 100%;
}

.ig-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: opacity 0.3s ease;
}

/* CLEAN MODE TOGGLE BUTTON STYLES */
.clean-toggle-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.clean-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
}

/* PWA INSTALL BUTTON (UNTER DEM BANNER - MOBILE & DESKTOP) */
.install-app-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid var(--primary-cyan);
  border-radius: 16px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.install-app-btn:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), rgba(168, 85, 247, 0.4));
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

.install-app-btn .icon {
  font-size: 1.2rem;
}

/* VERSIONSANZEIGE IN DER APP-CARD (MITTIG UNTEN) */
.app-version-badge {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

/* WEBPLAYER STYLES */
.player-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.vinyl-art {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 20%, #111 21%, #111 40%, #000 41%, #000 100%);
  border: 4px solid var(--primary-cyan);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0 25px 0;
  animation: spin 10s linear infinite;
  animation-play-state: paused;
  position: relative;
}

.vinyl-art.playing {
  animation-play-state: running;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.vinyl-center {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-magenta), var(--primary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  border: 2px solid #fff;
}

.track-info {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.track-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.track-artist {
  font-size: 0.9rem;
  color: var(--primary-cyan);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}

.play-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
  transition: transform 0.2s ease;
}

.play-btn:active {
  transform: scale(0.95);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 80%;
  margin: 0 auto;
}

.volume-slider {
  width: 100%;
  accent-color: var(--primary-cyan);
}

/* FORMULAR & ABSCHNITT DESIGN */
.primary-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-magenta), var(--primary-purple));
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(224, 36, 179, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secondary-btn {
  width: 100%;
  padding: 14px;
  background: var(--btn-bg);
  color: var(--text-main);
  border: 1px solid var(--btn-border);
  border-radius: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ZURÜCK-BUTTON MIT NEON GRADIENT BORDER & HOVER GLOW */
.back-btn {
  position: relative;
  background: rgba(10, 14, 26, 0.7);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(10, 14, 26, 0.8), rgba(10, 14, 26, 0.8)), 
                    linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-image: linear-gradient(rgba(0, 229, 255, 0.15), rgba(224, 36, 179, 0.15)), 
                    linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
  box-shadow: 0 0 20px rgba(224, 36, 179, 0.5);
  transform: translateY(-2px);
}

.section {
  background: rgba(10, 15, 28, 0.6);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--primary-magenta);
  text-align: left;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.85rem;
}

.points-table th, .points-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--card-border);
  text-align: left;
}

.points-table th { color: var(--primary-cyan); }
.points-table td:last-child { text-align: right; font-weight: 700; color: var(--primary-magenta); }

.slots-box {
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.slots-count { color: var(--primary-magenta); font-size: 1.05rem; }

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-magenta), var(--primary-cyan));
  width: 0%;
  border-radius: 10px;
  transition: width 0.8s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.form-group { margin-bottom: 16px; text-align: left; }

label {
  display: block;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 600;
}

label .required { color: #f43f5e; }
label .optional { color: var(--text-muted); font-size: 0.75rem; font-weight: normal; }

input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="file"], textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

textarea { resize: vertical; min-height: 80px; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary-magenta);
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  font-weight: normal;
}

.result-msg {
  display: none;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.88rem;
}

/* FIXED BOTTOM NAVIGATION BAR */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  max-width: 440px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-decoration: none;
  cursor: pointer;
  gap: 3px;
  width: 16.66%;
  transition: all 0.25s ease;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  background: linear-gradient(135deg, #00e5ff 0%, #a855f7 50%, #e024b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}

.nav-item.active span:not(.nav-icon),
.nav-item:hover span:not(.nav-icon) {
  background: linear-gradient(135deg, #00e5ff, #e024b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.nav-icon {
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.25s ease;
}

/* NEWS FEED */
.news-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.refresh-btn { background: rgba(0,229,255,0.1); border: 1px solid var(--primary-cyan); color: var(--primary-cyan); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 0.78rem; }
.news-feed { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.news-card { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--card-border); border-left: 3px solid var(--primary-cyan); border-radius: 12px; padding: 12px; }
.news-meta { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; }
.news-tag { background: rgba(224, 36, 179, 0.2); color: var(--primary-magenta); padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.news-card h4 { font-size: 0.88rem; color: #f1f5f9; margin-bottom: 8px; }
.news-link { font-size: 0.78rem; color: var(--primary-cyan); text-decoration: none; font-weight: 600; }
.loading-text, .error-text { font-size: 0.85rem; color: var(--text-muted); padding: 20px 0; text-align: center; }

/* ==========================================
   DESKTOP BROWSER LAYOUT
   ========================================== */
@media (min-width: 900px) {
  .app-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
  }

  /* 1. SEITEN-SIDEBAR (LINKS) */
  .desktop-sidebar {
    display: flex !important;
    flex-direction: column;
    width: 250px;
    background: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--card-border);
    padding: 24px 16px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    flex-shrink: 0;
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    padding-left: 8px;
  }

  .sidebar-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
  }

  .sidebar-link.active {
    background: rgba(0, 229, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(0, 229, 255, 0.3);
  }

  .sidebar-link .icon {
    font-size: 1.1rem;
  }

  /* 2. TOPBAR MIT SUCHFELD (OBEN RECHTS) */
  .desktop-topbar {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    left: 250px;
    height: 70px;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    z-index: 90;
  }

  .search-input-wrapper {
    position: relative;
    width: 260px;
  }

  .search-input-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 10px;
    background: rgba(20, 28, 48, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.88rem;
  }

  .search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  /* 3. HAUPT-CONTAINER BREITE & PLAZIERUNG */
  .container {
    max-width: 820px !important;
    margin: 80px auto 70px auto !important;
    padding: 20px !important;
    margin-left: calc(250px + (100vw - 250px - 820px) / 2) !important;
  }

  .app-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    text-align: left !important;
  }

  /* HERO AREA LAYOUT (TEXT LINKS, LOGO RECHTS) */
  .hero-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    text-align: left;
  }

  .hero-text {
    flex: 1;
    padding-right: 20px;
  }

  .home-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: none;
  }

  .home-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
    justify-content: flex-start;
  }

  .logo-container {
    width: 140px;
    height: 140px;
    border-radius: 30px;
    margin: 0;
  }

  /* BUTTON-GRIDS AUF DESKTOP ANPASSEN */
  .top-action-row {
    grid-template-columns: 1.8fr 1.2fr;
    gap: 16px;
    margin-bottom: 18px;
  }

  .button-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .grid-btn {
    padding: 18px 20px;
    font-size: 0.9rem;
  }

  .ig-banner-box {
    height: 110px;
  }

  /* FOOTER INKL. PWA-INSTALLATION (UNTEN FESTGEMACHT) */
  .desktop-footer {
    display: flex !important;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 250px;
    height: 60px;
    background: rgba(7, 11, 22, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--card-border);
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 95;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .desktop-pwa-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 28, 45, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .desktop-pwa-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
  }

  /* UNTERE HANDY-NAVI IM BROWSER AUSBLENDEN */
  .bottom-nav {
    display: none !important;
  }
}

/* ==========================================
   INSTALLIERTE APP (STANDALONE - MOBILE & DESKTOP APP)
   ========================================== */
.browser-only { display: block; }
.app-only { display: none; }

@media (display-mode: standalone), (display-mode: fullscreen) {
  /* Wenn die PWA bereits installiert ist, Install-Button verstecken */
  .install-app-btn,
  .desktop-pwa-btn {
    display: none !important;
  }

  .desktop-sidebar,
  .desktop-topbar,
  .desktop-footer {
    display: none !important;
  }

  /* Auf Handy & Installierter PWA wieder auf vertikalen Hero schalten */
  .hero-wrapper {
    flex-direction: column !important;
    text-align: center !important;
  }

  .home-subtitle {
    justify-content: center !important;
  }

  .container {
    max-width: 440px !important;
    margin: 0 auto !important;
    padding-top: env(safe-area-inset-top, 20px) !important;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 20px)) !important;
  }

  .app-card {
    background: rgba(13, 19, 33, 0.75) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px 18px !important;
    text-align: center !important;
  }

  /* Untere Mobile-Navigation in der installierten App wieder anzeigen */
  .bottom-nav {
    display: flex !important;
  }

  .browser-only { display: none !important; }
  .app-only { display: block !important; }
}

/* ==========================================
   CLEAN / STERILE MODE OVERRIDES
   ========================================== */
body.clean-mode {
  background-color: #0d1117 !important;
  background-image: none !important;
  color: #e6edf3 !important;
}

body.clean-mode #particles-canvas,
body.clean-mode::before,
body.clean-mode::after {
  display: none !important;
}

body.clean-mode * {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.clean-mode .logo-container,
body.clean-mode .countdown-box,
body.clean-mode .grid-btn,
body.clean-mode .back-btn {
  background-image: none !important;
  background: #161b22 !important;
  border: 1px solid #30363d !important;
}

body.clean-mode .glow-magenta-btn,
body.clean-mode .full-width-radio-btn,
body.clean-mode .primary-btn,
body.clean-mode .install-app-btn {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #58a6ff !important;
}

body.clean-mode .app-card,
body.clean-mode .desktop-sidebar,
body.clean-mode .desktop-footer,
body.clean-mode .bottom-nav {
  background: #161b22 !important;
  border-color: #30363d !important;
}

body.clean-mode h1.form-header {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #58a6ff !important;
}