

html {
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
  color: #ffffff;
}

header {
  text-align: center;
  padding: 1rem;
  background: transparent;
  padding: 20px 10px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);

}

header a {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

header a:hover {
  transform: scale(1.1);
}

nav {
  margin-top: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
}

nav li a {
  color: #999;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

nav li a:hover {
  transform: scale(1.1);
  color: #ccc;
}

nav li.active a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  pointer-events: none;
}

main {
  padding: 1rem;
  max-width: 800px;
  margin: auto;
}

.news-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
}

.news-item h2 {
  margin-bottom: 0.3rem;
  color: #fff;
}

.news-item a {
  color: #00ffff;
  text-decoration: none;
}

.news-item a:visited {
  color: #00ccbb;
}

.news-date {
  font-size: 0.85em;
  color: #bbbbbb;
  margin-top: 0.3rem;
}

footer {
  background: transparent;
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

footer a {
  color: #00ffff;
  text-decoration: none;
  margin: 0 5px;
}

footer a:visited {
  color: #00ccbb;
}

footer a:hover {
  text-decoration: underline;
}

.alienwatch-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 5vw, 2.5rem); /* automatisch an Bildschirmbreite angepasst */
  gap: 0.6rem;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
  box-sizing: border-box;
}

.title-icon {
  height: 1em; /* skaliert automatisch mit Text */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  image-rendering: auto;
  margin-bottom: 0.1em;
}

/* Basis-Setup */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.5;
  font-size: 16px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* Responsive Bilder und Videos */
img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Flexibles Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons und Links */
a, button {
  touch-action: manipulation;
}

/* Responsive Text */
h1, h2, h3 {
  word-break: break-word;
}

/* Optional: Footer oder Sticky-Elemente */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

.popup a {
  color: #00ffff;
  text-decoration: underline;
}

.popup a:visited {
  color: #00ccbb;
}


/* H1-Grundstil */
h1 {
  color: #fff;
  font-size: 3rem;
  text-align: center;
  text-shadow: 0 0 4px #fff; /* nur leichter Weiß-Schein */
  opacity: 2;
}

/* Haupt-Flackern: 2–3 schnelle Hell/Dunkel-Schläge in 0.5s */
h1.flickerFast {
  animation: flickerMulti 0.5s linear;
}
@keyframes flickerMulti {
  0%   { opacity: 1; text-shadow: 0 0 2px #fff; }
  10%  { opacity: 0.2; text-shadow: none;     }
  25%  { opacity: 1; text-shadow: 0 0 2px #fff; }
  35%  { opacity: 0.2; text-shadow: none;     }
  50%  { opacity: 1; text-shadow: 0 0 2px #fff; }
  100% { opacity: 1; text-shadow: 0 0 2px #fff; }
}

/* Zusatz: wenn .off drauf ist, bleibt der Titel dunkel */
h1.off {
  opacity: 0.2;
  text-shadow: none;
}