:root {
    --blue: #0D3B73;
    --light-green: #C2E27C;
    --yellow: #FFD659;
    --light-blue: #6DAFE5;
    --coral: #FF7E7E;
    --white: #ffffff;
    --dark-overlay: rgba(0,0,0,0.5);
    --particle-color: rgba(255,165,0,1);
    --btn-red: #e74c3c;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--blue);
    color: var(--white);
  }
  
  #animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  #starfield, #particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  #starfield { z-index: -2; }
  #particles { z-index: 3; }
  
  #bg-tek {
    position: absolute;
    bottom: 100px;
    right: 100px;
    transform: translate(50%, 50%) rotate(-45deg);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    max-width: 50vmin;
  }
  
  #rocket {
    position: absolute;
    width: 10vmin;
    max-width: 50px;
    transform-origin: center center;
    z-index: 4;
    pointer-events: none;
  }
  
  .dashboard {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows:    repeat(3, 80px);
    grid-template-areas:
      ".       sound     ."
      "emotion .        favorites"
      ".       reading   .";
    gap: 0;
    z-index: 2;
    pointer-events: auto;
  }
  
  .card {
    width: 100px; height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    cursor: pointer;
    transform: rotate(45deg);
    transition: transform .2s, box-shadow .2s, filter .2s;
  }
  .card:hover {
    transform: translateY(-5px) rotate(45deg);
    box-shadow: 0 8px 16px var(--dark-overlay);
    filter: brightness(1.05);
  }
  .card img {
    width: 48px; height: 48px;
    transform: rotate(-45deg);
  }
  .card-sound     { grid-area: sound;     background: var(--light-green); }
  .card-emotion   { grid-area: emotion;   background: var(--yellow);     }
  .card-reading   { grid-area: reading;   background: var(--light-blue);  }
  .card-favorites { grid-area: favorites; background: var(--coral);      }
  
  .intro {
    margin-top: 4rem;
    text-align: center;
    z-index: 2;
    pointer-events: auto;
  }
  .intro h1 {
    font-size: 3rem;
    margin: 0;
    letter-spacing: .1rem;
  }
  .intro p {
    font-size: 1.25rem;
    margin: .5rem 0 0;
    opacity: .85;
  }
  
  .impressum-btn, .datenschutz-btn {
    position: fixed;
    right: 12px;
    font-size: .75rem;
    color: var(--white);
    opacity: .3;
    text-decoration: none;
    transition: opacity .2s;
    z-index: 4;
  }
  .impressum-btn { bottom: 32px; }
  .datenschutz-btn { bottom: 12px; }
  .impressum-btn:hover, .datenschutz-btn:hover { opacity: .7; }
  
  #impressum-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--dark-overlay);
    justify-content: center;
    align-items: center;
    z-index: 5;
  }
  #impressum-modal.active { display: flex; }
  #impressum-content {
    background: var(--white);
    color: #000;
    padding: 1.5rem;
    border-radius: .5rem;
    max-width: 90vw; max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    font-size: .9rem;
    line-height: 1.4;
  }
  #impressum-close {
    position: absolute;
    top: .5rem; right: .5rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
  }
  #impressum-close-btn {
    display: block;
    margin: 1rem auto 0;
    background: var(--btn-red);
    color: #fff;
    border: none;
    border-radius: .25rem;
    padding: .5rem 1rem;
    cursor: pointer;
    font-size: .9rem;
  }
  #impressum-close-btn:hover { opacity: .9; }
  