*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Raleway', sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  padding: 14px 36px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-small {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.club-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.black { color: #222; }
.red   { color: #c0392b; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-right .email-reveal,
.header-right a:not(.btn-login-header):not(.btn-logout-header) {
  font-size: 0.85rem;
  color: #c0392b;
  text-decoration: none;
}

.header-right a:not(.btn-login-header):not(.btn-logout-header):hover {
  text-decoration: underline;
}

.btn-login-header {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: #c0392b;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(192,57,43,0.25);
}

.btn-login-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(192,57,43,0.38);
}

.btn-logout-header {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #888;
  background: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s;
}

.btn-logout-header:hover {
  color: #c0392b;
  border-color: #e3c4c0;
}

.header-line {
  border: none;
  border-top: 1px solid #ddd;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 2.2vh 24px 0;
  padding: 2.2svh 24px 0;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #b5b5b5;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Playfair Display', 'Raleway', serif;
  font-size: clamp(2.4rem, 4.6vw + 1vh, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #111;
}

.hero h1 .hero-nev {
  font-size: 0.45em;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.06em;
}

.tagline {
  margin-top: 12px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #c0392b;
  font-weight: 500;
}

.contact-bottom {
  text-align: center;
  padding: 2px 24px 16px;
}

.btn-contact {
  display: inline-block;
  color: #c0392b;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid #c0392b;
  border-radius: 999px;
  padding: 11px 30px;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-contact:hover {
  background: #c0392b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(192, 57, 43, 0.28);
}

/* ── Vereinsämter ── */
.roles {
  text-align: center;
  padding: 12px 24px 0;
}

.roles-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 12px;
}

/* Symmetrisches 2×2-Raster – bleibt auf jeder Breite ordentlich */
.roles-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 330px));
  gap: 10px;
  justify-content: center;
}

.role-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #f0c8c4;
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.10);
  font-size: 0.82rem;
}

.role-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-icon { font-size: 1.05rem; }

.role-who {
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.role-what {
  color: #444;
  white-space: nowrap;
}

/* ── Logo section ── */
.logo-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1vh 24px;
  padding: 1svh 24px;
  min-height: 0;
}

.logo-large {
  width: min(260px, 24vh, 70vw);
  width: min(260px, 24svh, 70vw);
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.10));
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Footer ── */
footer {
  margin-top: auto;
  text-align: center;
  padding: 13px;
  font-size: 0.75rem;
  color: #999;
  border-top: 1px solid #eee;
}

footer a {
  color: #888;
  text-decoration: none;
}

footer a:hover {
  color: #c0392b;
}

/* ── Game button ── */
.btn-game {
  display: inline-block;
  margin-top: 4px;
  padding: 14px 38px;
  background: #c0392b;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(192,57,43,0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(192,57,43,0.42);
}

.game-hint {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

/* ── Walking Santa ── */
#walking-santa {
  position: fixed;
  width: 70px;
  z-index: 8888;
  pointer-events: none;
  transition: transform 0.15s ease;
}

#walking-santa img {
  width: 100%;
  height: auto;
  display: block;
  animation: santa-walk 0.4s ease-in-out infinite;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.15));
}

@keyframes santa-walk {
  0%   { transform: translateY(0)   rotate(-2deg); }
  50%  { transform: translateY(-6px) rotate(2deg);  }
  100% { transform: translateY(0)   rotate(-2deg); }
}

/* Schlafender Santa: Lauf-Wippen aus, er liegt */
#walking-santa.sleeping img {
  animation: none;
}

/* ── Santa-Sprechblase ── */
#santa-bubble {
  position: fixed;
  z-index: 8889;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c0392b;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  text-decoration: none;
}
#santa-bubble.show { opacity: 1; }
#santa-bubble.clickable { pointer-events: auto; cursor: pointer; }
#santa-bubble.zzz {
  color: #8aa4c4;
  animation: zzz-bob 2s ease-in-out infinite;
}
@keyframes zzz-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}

/* ── Loader ── */
#loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

#loader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  animation: logo-pulse 1.2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.loader-ring {
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 4px solid #eee;
  border-top-color: #c0392b;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.07); opacity: 0.85; }
}

/* ── Niko Game Bestenliste (Startseite) ── */
.hs-board {
  margin-top: 18px;
  width: min(340px, 86vw);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 20px 8px;
}

.hs-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 8px;
  text-align: center;
}

.hs-scroll {
  max-height: min(300px, 36vh);
  overflow-y: auto;
}

.hs-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.84rem;
}

.hs-row:last-child { border-bottom: none; }

.hs-pos {
  width: 24px;
  color: #999;
  font-weight: 600;
  flex-shrink: 0;
}

.hs-name {
  flex: 1;
  color: #111;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-score {
  font-weight: 700;
  color: #c0392b;
}

.hs-more {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #c0392b;
  background: none;
  border: none;
  cursor: pointer;
}

.hs-more:hover { text-decoration: underline; }

/* ── Install-Anleitung (Overlay) ── */
#install-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.install-modal {
  background: #fff;
  border-radius: 16px;
  padding: 30px 26px 26px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.install-modal img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.install-modal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111;
  margin-bottom: 12px;
}

.install-modal p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.install-modal b { color: #c0392b; }

#install-close {
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #c0392b;
  border: none;
  border-radius: 999px;
  padding: 12px 34px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

#install-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(192, 57, 43, 0.38);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  header {
    padding: 12px 18px 0;
  }

  .club-name {
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 2.4vh;
    padding-top: 2.4svh;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    margin-bottom: 10px;
  }

  .tagline {
    font-size: 0.92rem;
    margin-top: 12px;
  }

  .btn-contact {
    padding: 10px 26px;
    font-size: 0.74rem;
  }

  .contact-bottom {
    padding-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
  }

  .logo-large {
    width: min(150px, 19vh, 46vw);
    width: min(150px, 19svh, 46vw);
  }

  .btn-game {
    padding: 12px 30px;
    font-size: 0.85rem;
  }

  .game-hint { font-size: 0.72rem; }

  .btn-login-header,
  .btn-logout-header {
    font-size: 0.72rem;
    padding: 7px 14px;
  }

  .header-right { gap: 10px; }

  .hs-board { padding: 12px 14px 6px; }
  .hs-row { font-size: 0.78rem; }

  .roles { padding-top: 10px; }
  .roles-title { font-size: 0.62rem; margin-bottom: 8px; }

  /* Handy: 2×2 kleine Kärtchen, Amt in zweiter Zeile */
  .roles-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    max-width: 340px;
    margin: 0 auto;
  }
  .role-chip {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
  }
  .role-top { gap: 6px; }
  .role-icon { font-size: 0.9rem; }
  .role-what {
    white-space: normal;
    line-height: 1.25;
    font-size: 0.66rem;
  }

  .club-name { font-size: 0.72rem; }
  .logo-small { width: 40px; height: 40px; }

  footer {
    padding: 10px;
    font-size: 0.7rem;
  }
}
