/* Grundfarben */
:root {
  --bg: #f4f6f9;
  --text: #222;
  --accent: #003366;
}

/* Grundlayout */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 70px; /* Platz für fixiertes Menü */
}

/* Navigation */
nav {
  background: var(--accent);
  padding: 0.8rem 10%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.4rem 0.8rem;   /* Abstand IN den Buttons */
  margin-right: 0.8rem;     /* Abstand ZWISCHEN den Buttons */
  border-radius: 6px;       /* leichte Rundung */
  background: rgba(255,255,255,0.15); /* heller Hintergrund */
}

nav a:hover {
  background: rgba(255,255,255,0.3);
}


/* Fixiertes Menü */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Logo */
#logo {
  height: 40px;
  margin-right: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease-in-out;
}

#logo:hover {
  transform: scale(1.15);
}

/* Header */
header {
  background: linear-gradient(135deg, #003366, #0066cc);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Sections */
section {
  padding: 2.5rem 10%;
  max-width: 1200px;
  margin: auto;
}

h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Bilder */
.img-small {
  width: 260px;
  float: right;
  margin: 0 0 1rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
}

.img-small:hover {
  transform: scale(2.2);
  z-index: 10;
}

.img-left {
  width: 260px;
  float: left;
  margin: 0 1rem 1rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
}

.img-left:hover {
  transform: scale(2.2);
  z-index: 10;
}

/* Fade-in Animation */
.fadein {
  opacity: 0;
  animation: fadein 1.2s forwards;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  align-items: flex-start;
}

.gallery img {
  width: auto;              /* Originalbreite */
  max-width: 100%;          /* aber nicht größer als der Container */
  height: auto;             /* korrekte Proportionen */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.3);
}

/* Download Button */
.download-btn {
  background: var(--accent);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.download-btn:hover {
  background: #0055aa;
}

/* Responsive */
@media (max-width: 900px) {

  .img-small,
  .img-left {
    float: none;
    display: block;
    margin: 1rem auto;
    width: 90%;
    max-width: 350px;
  }

  #logo {
    height: 32px;
    margin-right: 0.5rem;
  }

  nav {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .gallery img {
    width: 100%;     /* auf kleinen Displays volle Breite */
    max-width: 100%;
  }
}

/* Footer */
footer {
  background-color: var(--accent);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}
/* Abstand unter dem fixierten NAV */
body {
  padding-top: 80px;
}

/* ---------------------------------------------
   RESPONSIVE NAV
--------------------------------------------- */
@media (max-width: 700px) {

  nav.fixed-nav div {
    flex-wrap: wrap;              /* Links umbrechen */
    gap: 6px;                     /* kleiner Abstand */
  }

  nav.fixed-nav a {
    padding: 0.35rem 0.6rem;      /* etwas kompakter */
    margin-right: 0;              /* kein rechter Rand */
  }

  #logo {
    height: 32px;                 /* kleineres Logo */
    margin-bottom: 6px;           /* Abstand zu den Links */
  }

  body {
    padding-top: 110px;           /* mehr Platz unter dem NAV */
  }
}
  /* Dark Footer */
  footer {
    margin-top:40px;
    padding:30px 20px;
    font-size:0.9em;
    color:#ddd;
    background:#1e1e1e;
    border-top:2px solid #333;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:25px;
  }

  /* Footer Row: equal spacing */
  .footer-row {
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
    width:100%;
    max-width:900px;
  }

  /* GitHub Badge */
  .github-badge {
    display:flex;
    align-items:center;
    gap:10px;
    color:#ccc;
    text-decoration:none;
    font-size:0.95em;
  }

  .github-badge img {
    height:26px;
    width:26px;
    transition:transform 0.2s ease;
    filter:invert(90%);
  }

  .github-badge:hover img {
    transform:scale(1.15);
  }

  .github-text {
    opacity:0;
    transition:opacity 0.2s ease;
  }

  .github-badge:hover .github-text {
    opacity:1;
  }

  /* Smiley Donate Button */
  .smiley-donate {
    font-size:2rem;
    text-decoration:none;
    cursor:pointer;
    transition:transform 0.2s ease;
    color:#ffdd55;
  }

  .smiley-donate:hover {
    transform:scale(1.25);
  }

  /* Accordion Buttons */
  .acc-btn {
    padding:10px 18px;
    background:#2d2d2d;
    color:#eee;
    border:1px solid #444;
    cursor:pointer;
    border-radius:6px;
    display:flex;
    align-items:center;
    gap:8px;
    transition:background 0.2s ease, transform 0.2s ease;
  }

  .acc-btn:hover {
    background:#3a3a3a;
    transform:scale(1.05);
  }

  .acc-btn img {
    height:18px;
    width:18px;
    filter:invert(90%);
  }

  /* Accordion Content */
  .acc-content {
    display:none;
    margin-top:10px;
    padding:15px;
    border:1px solid #444;
    background:#2a2a2a;
    font-size:0.9em;
    color:#ccc;
    text-align:left;
    max-width:650px;
    border-radius:6px;
  }
  .smiley-donate {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
  }

  .donate-text {
    opacity: 0;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 4px;
    transition: opacity 0.2s ease;
  }

  .smiley-donate:hover .donate-text {
    opacity: 1;
  }


