@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

:root {
  --bg: #111;
  --text: #fff;
  --accent: orange;
  --accent2: #ffd700; /* gold-gelb */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Banner === */
header {
  overflow: hidden;
}
header img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain; /* keine abgeschnittenen Ränder */
  animation: slideIn 1.5s ease-out forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Überschriften === */
h1 {
  text-align: center;
  margin-top: 20px;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Index Layout === */
.index-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px;
  text-align: center;
}

.index-container a {
  text-decoration: none;
  color: var(--text);
  transition: transform .3s, box-shadow .3s;
}

.index-container a:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255,165,0,0.6);
}

.index-container img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform .3s, opacity .8s ease-in-out;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.index-container p {
  margin-top: 8px;
  font-weight: 500;
}

/* === Gallery === */
.gallery {
  column-count: 4;
  column-gap: 15px;
  padding: 20px;
}

.gallery a {
  display: inline-block;
  margin-bottom: 15px;
  width: 100%;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(255,165,0,0.6);
}

/* === Fade-In Effekt === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsiv === */
@media (max-width:1200px) { .gallery { column-count: 3; } }
@media (max-width:800px)  { .gallery { column-count: 2; } }
@media (max-width:500px)  { .gallery { column-count: 1; } }

/* === Back Button === */
.back-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background .3s, color .3s;
  z-index: 1000;
}
.back-btn:hover { background: rgba(255,165,0,0.2); color: var(--accent); }

/* === Download Link === */
.download-text {
  text-align: center;
  margin-top: 10px;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color .3s;
  display: block;
}
.download-text:hover { color: var(--accent); }

/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  margin-top: auto;
  font-size: 14px;
  border-top: 1px solid var(--accent);
  background: #111;
}
