/* style.css - SG Poing Basketball unified stylesheet */
:root{
  --blue: #004C97;
  --yellow: #FEDD00;
  --bg: #f4f4f4;
  --text: #222222;
  --max-width: 1100px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:url('img/basketball.jpg') no-repeat center center fixed;background-size:cover;-webkit-font-smoothing:antialiased}
a{color:inherit}
.header{
  background:var(--blue);
  color:#fff;
  position:fixed;top:0;left:0;right:0;z-index:1000;
  display:flex;align-items:center;gap:12px;padding:10px 18px;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.header .logo img{height:48px;}
.nav{
  margin-left:auto;
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  align-items:center;
  justify-content: center;
}
.nav a{
  color:#f2f2f2;
  text-decoration:none;
  padding:10px 14px;
  border-radius:4px;
  font-weight:700;
  text-transform:uppercase;
  font-size:14px;
  transition: background 0.2s; 
}
.nav a:hover{background:var(--yellow);color:#00006b}
.nav .icon{display:none;cursor:pointer}
.container{max-width:var(--max-width);margin:120px auto 40px;padding:0 16px}

/* Footer */
footer{background:var(--blue);color:#fff;padding:20px 16px}
.footer-inner{max-width:var(--max-width);margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.footer-left a{color:#fff;text-decoration:none;margin-right:12px;font-size:13px}
.socials a{display:inline-block;margin-left:8px;text-decoration:none;color:#fff;font-size:18px}

/* Buttons & Cards */
.button{display:inline-block;background:var(--yellow);color:#00006b;padding:10px 14px;border-radius:6px;font-weight:700;text-decoration:none}
.card{background:rgba(255,255,255,0.92);border-radius:8px;padding:16px;box-shadow:0 6px 18px rgba(0,0,0,0.06)}

/* Teams page */
.team-section{margin-bottom:28px;overflow:hidden}
.team-header{background:var(--blue);color:#fff;padding:10px 12px;font-weight:700;text-transform:uppercase;border-top-left-radius:8px;border-top-right-radius:8px}
.team-content{display:flex;flex-wrap:wrap;gap:16px;padding:16px;background:#fff;border-bottom-left-radius:8px;border-bottom-right-radius:8px}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.gallery img{width:100%;height:160px;object-fit:cover;border-radius:6px;cursor:pointer;display:block}
.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.9);z-index:2000;align-items:center;justify-content:center}
.lightbox img{max-width:90%;max-height:90%;border-radius:6px}
.lightbox .close{position:absolute;top:18px;right:24px;font-size:36px;color:#fff;cursor:pointer}

/* Responsive */
@media (max-width:800px){
  .nav a:not(.icon) {
    display: none; /* Standard: ausgeblendet */
    width: 100%;
    text-align: center;
    background-color: #004C97; /* Vereinsfarbe */
  }
  .nav.open a {
    display: block; /* Sichtbar, wenn geöffnet */
  }

/*  .nav a:not(.home){display:none}*/
  .nav .icon{
	display:block;
	color:#fff;
	padding:10px 12px;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
	  }
  .team-content{flex-direction:column}
  .gallery img{height:200px}
  .header{padding:8px 12px}
  .container{margin-top:100px}
}
@media (max-width:480px){
  .gallery img{height:180px}
  .header .logo img{height:40px;}
}

img.loaded {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/*
img:not(.loaded) {
  opacity: 0;
  transform: scale(0.98);
}*/
/* --- MOBILES MENÜ FIX --- */
/*
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}*/

/* Menü-Einträge standardmäßig sichtbar */
/*.nav a {
  text-decoration: none;
  color: white;
  padding: 10px;
  transition: background 0.2s;
}*/

/* Mobile Darstellung */
/* @media (max-width: 768px) {
  .nav a:not(.icon) {
    display: none; /* Standard: ausgeblendet 
    width: 100%;
    text-align: center;
    background-color: #004C97; /* Vereinsfarbe 
  }
  .nav.open a {
    display: block; /* Sichtbar, wenn geöffnet 
  }
  .nav .icon {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
  }
}*/
