/* style.css */
body {
    background-color: #0b0e14;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Alles untereinander */
    align-items: center;    /* Alles horizontal zentrieren */
    justify-content: center; /* Alles vertikal zentrieren */
    min-height: 100vh;      /* Mindestens die volle Fensterhöhe nutzen */
}

.world-clock-container {
    background: #1a1f29;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #da9d1b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    color: #da9d1b;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.clock-grid {
    display: flex;
    gap: 50px;
}

.clock-item {
    min-width: 250px;
    padding: 30px; /* Platz für den hellen Schimmer */
    border-radius: 15px;
    transition: background-color 2s ease; /* Weicher Übergang wenn die Sonne wandert */
}

.city {
    display: block;
    font-size: 0.8rem;
    color: #00a8ff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.time {
    font-family: 'Courier New', monospace;
    font-size: 2.8rem;
    font-weight: bold;
}

.date {
    display: block;
    margin-top: 10px;
    color: #777;
}

@media (max-width: 600px) {
    .clock-grid { flex-direction: column; }
}

/* Das Gehäuse des Laufbands */
.marquee-container {
    width: 100 %; /* Nutzt die volle Breite des Containers */
    max-width: 750px; /*Deine gewünschte Überbreite */
    margin: 20px auto;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Fade-Effekt an den Rändern */
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}

/* Der laufende Text */
.marquee-text {
    display: inline-block;
    font-size: 18px;
    color: #da9d1b; /* Dein Neon-Blau */
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}



/* Die Animations-Logik */
@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 40px;
    max-width: 1100px;
}

.nav-back {
    /* Kein fixed mehr, sondern automatischer Fluss */
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #da9d1b;
    border: 1px solid rgba(0, 136, 255, 0.5);
    padding: 12px 24px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
    
    /* Der Sicherheitsabstand */
    margin-top: 40px; 
    margin-bottom: 20px;
    cursor: pointer;
}

.nav-back:hover {
    background: rgba(0, 136, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.3);
    color: #ffffff;
    border-color: #ffffff;
}

.uhren-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-gallery {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: #da9d1b; 
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 136, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-gallery svg {
    margin-left: 12px;
    fill: #ffffff; /* Hier nutzen wir direkt das Weiß für den Kontrast! */
    transition: fill 0.3s ease;
}

.nav-gallery:hover {
    background: rgba(0, 136, 255, 0.1);
    border-color: #0088ff;
}

.nav-gallery:hover svg {
    fill: #0088ff; /* Beim Hover wird auch das Icon blau */
}


#runaway-btn {
  /* Positionierung */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  
  /* Optik (kannst du nach Belieben anpassen) */
  padding: 12px 24px;
  background-color: #f0f0f0;
  border: 2px solid #333;
  border-radius: 8px;
  font-family: sans-serif;
  font-weight: bold;
  cursor: pointer;

  /* Animation: 0.05s ist fast instant, linear verhindert das "Abbremsen" */
  transition: all 0.05s linear;

  /* --- Mobile & Interaktions-Sperren --- */

  /* 1. Verhindert das Markieren von Text auf dem Button */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* 2. Verhindert das Kontextmenü (Kopieren/Speichern) auf iOS */
  -webkit-touch-callout: none;

  /* 3. Verhindert das graue Rechteck beim Antippen (Android/iOS) */
  -webkit-tap-highlight-color: transparent;

  /* 4. Verhindert Standard-Gesten (Scrollen/Zoomen) direkt auf dem Button */
  touch-action: none;

  /* 5. Verhindert, dass der Button "Hover"-Zustände auf Mobilgeräten speichert */
  outline: none;
}

/* Optional: Ein leichter Glow-Effekt, damit er "aktiv" aussieht */
#runaway-btn:active {
  transform: scale(0.95);
  background-color: #e0e0e0;
}










.dashboard-link-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 70px; /* Abstand zum Uhrenkasten */
    margin-top: 20px;
}

.mg-atom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.mg-atom-btn:hover {
    transform: scale(1.05);
}

.atom-container {
    width: 80px;
    height: 80px;
    position: relative;
}

.mg-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.4));
}

/* Die pulsierende Animation */
@keyframes mg-pulse {
    0% { transform: scale(0.95); opacity: 0.9; filter: brightness(1); }
    50% { transform: scale(1.05); opacity: 1; filter: brightness(1.3) drop-shadow(0 0 15px rgba(255, 77, 77, 0.8)); }
    100% { transform: scale(0.95); opacity: 0.9; filter: brightness(1); }
}

.pulse-core {
    transform-origin: center;
    animation: mg-pulse 3s infinite ease-in-out;
}

.btn-text {
    margin-top: 10px;
    color: #ff4d4d; /* Passendes Rot */
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.mg-atom-btn:hover .btn-text {
    color: white;
}
