/* 1) Poppins (mit Umlauten) + Emoji-/System-Fallback */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family:
    'Poppins',              /* Google Font mit Umlauten */
    'Apple Color Emoji',    /* Emoji-Font auf macOS/iOS */
    'Segoe UI Emoji',       /* Emoji-Font auf Windows */
    'Segoe UI Symbol',
    'Noto Color Emoji',     /* Emoji-Font auf Android/ChromeOS */
    system-ui,              /* macOS/iOS/Safari */
    -apple-system,          /* iOS 13+ */
    'Segoe UI',             /* Windows */
    sans-serif;
}

/* 2) Theme-Variablen */
.light-mode {
  --bg:             #ffeaea;
  --text:           #333;
  --card:           #fff;
  --input-border:   #ddd;
}
.dark-mode {
  --bg:             #333;
  --text:           #eee;
  --card:           #444;
  --input-border:   #555;
}

/* 3) Body-Styles */
body {
  background: var(--bg);
  color: var(--text);
}

/* 4) Zentrierter Container */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: env(safe-area-inset);
}

/* 5) Card */
.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* 6) Line-Art oben */
.line-art {
  display: block;
  margin: 0 auto 16px;
  width: 160px;
  opacity: 0.9;
}

/* 7) ï¿½berschrift */
.card h1 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 12px;
}

/* 8) Unterzeile */
.tagline {
  font-size: 14px;
  color: var(--text);
  opacity: 0.8;
  margin: 0 0 20px;
}

/* 9) Fehlermeldung */
.message.error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* 10) Inputs */
.card input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

/* 11) Primï¿½r-Button */
.btn-primary {
  width: 100%;
  padding: 14px 0;
  background: #34C759;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* 12) Toggle im Formular */
.toggle {
  margin-top: 12px;
  text-align: center;
}
.toggle input {
  margin-right: 8px;
  cursor: pointer;
}

/* 13) Lightbox & Galerie-Styles bleiben unverï¿½ndertï¿½ */

/* ï¿½ Header fï¿½r Galerie ï¿½ */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--card);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.gallery-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.logout-btn {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--text);
  border-radius: 6px;
  transition: background 0.2s;
}
.logout-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* ï¿½ Grid-Layout ï¿½ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 20px;
  padding: 0 20px 40px;
}

/* ï¿½ Jede Karte ï¿½ */
.gallery-card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-card img {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  flex-grow: 1;
}

.download-btn {
  width: calc(100% - 20px);
  margin: 10px;
  padding: 8px 0;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
}

/* ï¿½ Lightbox ï¿½ */
.lightbox {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
}


#music-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    font-size: 18px;
}

/* Gruppe zentriert */
.toggle {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* Desktop: nebeneinander */
.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Checkbox optisch sauber */
.toggle-label input {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #34C759;
}

/* Handy: Checkbox ÜBER dem Text */
@media (max-width: 520px) {
  .toggle-label {
    flex-direction: column;   /* untereinander */
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .toggle-label input {
    width: 22px;
    height: 22px;
  }
}

