/* Bowlby One Font */
@font-face {
  font-family: 'Bowlby One';
  src: url('../fonts/Bowlby_One/BowlbyOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#0b0c10;
  --panel:#12141a;
  --text:#ffffff;
  --muted:#cccccc;
  --line:#333333;
  --accent:#ffffff;
  --max: 1040px;
  --hero-image: url('/assets/img/Band_page_5-scaled.webp');
  --page-bg: url('/assets/img/Background.webp');
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top: 120px;
}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0b0c10;
  background-image: url('../img/Background.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  line-height:1.6;
}

h1, h2, h3, h4, h5, h6,
.site-nav,
.brand-name {
  font-family: 'Bowlby One', 'Bebas Neue', 'Oswald', system-ui, sans-serif;
}

a{color: #ffffff; text-decoration:none}
a:hover{text-decoration:underline; color: #cccccc}

/* Bilder-Schutz: Download/Drag verhindern */
img{
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto; /* Erlaubt Klicks auf Links, verhindert aber Drag */
}

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-bottom:none;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  position: relative;
  padding:50px 0;
  min-height: 80px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--text);
}

/* Unterseiten: einfache Navigation ohne Toggle */
.brand ~ .site-nav{
  position: static;
  transform: none;
  font-size: 1.1em;
  gap: 16px;
}
.brand ~ .site-nav a{
  display: inline-block;
}

.brand-logo{
  height:70px;
  width:70px;
  object-fit:contain;
  border-radius: 50%;
}

.brand-name{
  font-weight:700;
  letter-spacing:.2px;
}

.site-nav{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  flex-wrap:nowrap;
  white-space: nowrap;
  font-size: 1.7em;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-logo{
  height: 75px;
  width: auto;
  display: block;
  border-radius: 50%;
}

.nav-logo-link{
  display: flex;
  align-items: center;
  transform: translateX(-150px);
}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding:8px 10px;
  border-radius:10px;
}

.hero{
  border-bottom:none;
  background-color: #000;
  background-image: url('../img/Band_page_5-scaled.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner{
  padding:140px 0 56px;
  text-align: center;
}

.hero-logo{
  max-width: 100%;
  width: 100%;
  height: auto;
  margin-top: 350px;
  margin-bottom:10px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

h1{font-size: clamp(34px, 5vw, 56px); margin:0 0 10px}
.lead{color: #ffffff; font-size: 18px; margin:0 0 18px}

.hero-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}

.section{padding:52px 0}
.section h2{margin:0 0 8px; text-align: center;}
.section-subtitle{
  font-size: 1.25em;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 20px;
  text-align: center;
}

.card{
  background: rgba(0,0,0,0.7);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;
  padding:18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  backdrop-filter: blur(5px);
}

.grid{
  display:grid;
  gap:16px;
}
.grid.two{
  grid-template-columns: 1fr 1fr;
}

.btn{
  display:inline-block;
  background: #ffffff;
  color:#000000;
  font-weight:700;
  padding:10px 20px;
  border-radius:4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover{
  filter:brightness(.9);
  text-decoration:none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}
.btn:active{
  transform: translateY(0);
  box-shadow: none;
}
.btn.btn-ghost{
  background: transparent;
  border:2px solid #ffffff;
  color: #ffffff;
}
.btn.btn-ghost:hover{
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

.muted{color: var(--muted)}
.list{margin:0; padding-left:18px}

/* Social Icons */
.social-icons{
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.social-icon{
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-icons a:hover .social-icon{
  transform: scale(1.1);
  opacity: 0.8;
}

.shows{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:12px;
}
.show{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.02);
}
.show-date{
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 8px;
  text-align:center;
}
.show-day{color:var(--muted); font-size:12px}
.show-num{font-size:28px; font-weight:800; line-height:1.1}
.show-mon{font-weight:700}
.show-year{color:var(--muted); font-size:12px}

.show-title{margin:0 0 6px}
.show-meta{margin:0 0 8px; color:var(--muted)}
.show-links{margin:0; display:flex; gap:12px; flex-wrap:wrap}

/* Nächstes Event hervorheben */
.show-next{
  border: 2px solid #e63946;
  background: rgba(230, 57, 70, 0.1);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}
.show-next .show-date{
  border-color: #e63946;
  background: rgba(230, 57, 70, 0.15);
}

/* Vergangene Events ausgrauen */
.show-past{
  opacity: 0.5;
}
.show-past .show-title::after{
  content: " (vergangen)";
  font-size: 0.7em;
  color: var(--muted);
  font-weight: normal;
}

.video{
  position:relative;
  padding-top:56.25%;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
}
.video iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
}

.site-footer{
  border-top:1px solid rgba(255,255,255,0.1);
  padding:18px 0;
  color: #cccccc;
  background: rgba(0,0,0,0.8);
}

@media (max-width: 920px){
  .grid.two{grid-template-columns:1fr}
  /* Hauptseite: Navigation verstecken bis Toggle */
  #site-nav{
    display:none;
    position: static;
    transform: none;
    font-size: 1.3em;
  }
  .nav-toggle{display:inline-block; margin-left: auto;}
  #site-nav.open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:16px 0;
    position: static;
    transform: none;
    width: 100%;
  }
  .nav-logo{
    height: 50px;
    margin-bottom: 8px;
  }
  .nav-logo-link{
    transform: none;
  }
  .header-inner{
    flex-wrap: wrap;
    padding: 16px 0;
  }
  /* Unterseiten: Navigation immer sichtbar */
  .brand ~ .site-nav{
    display: flex;
    font-size: 1em;
    gap: 12px;
    margin-left: auto;
  }
}


/* Band-Kacheln */
.band-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:16px;
  margin-top:12px;
}
.band-card{
  background: rgba(0,0,0,0.7);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transition: transform .15s ease, box-shadow .15s ease;
  backdrop-filter: blur(5px);
}
.band-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.band-photo{
  width:100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display:block;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.band-body{ padding:14px; }
.band-name{ margin:0 0 4px; font-size: 18px; }
.band-role{ margin:0 0 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.band-blurb{ margin:0; color: var(--muted); font-size: 14px; }

/* Spotify/Embeds Grid */
.embed-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.embed{
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(0,0,0,0.7);
}
.embed iframe{
  width:100%;
  border:0;
  display:block;
}

/* Video Grid */
.video-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* responsive */
@media (max-width: 980px){
  .band-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .embed-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .hero{
    min-height: 60vh;
  }
  .hero-inner{
    padding: 80px 0 40px;
  }
  .hero-logo{
    margin-top: 20px;
  }
  h1{ font-size: 28px; }
  h2{ font-size: 24px; }
  .lead{ font-size: 16px; }
  .section{ padding: 36px 0; }
  .card{ padding: 14px; }
}

@media (max-width: 520px){
  .band-grid{ grid-template-columns: 1fr; }
  .embed-grid{ grid-template-columns: 1fr; }
  .hero-inner{
    padding: 60px 0 30px;
  }
  .hero-logo{
    margin-top: 10px;
    margin-bottom: 16px;
  }
  .hero-actions{
    flex-direction: column;
    align-items: center;
  }
  .btn{
    width: 100%;
    text-align: center;
  }
  h1{ font-size: 24px; }
  h2{ font-size: 20px; }
  .section{ padding: 28px 0; }
  
  /* Show-Karten auf kleinen Screens */
  .show{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .show-date{
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: baseline;
  }
  .show-links{
    justify-content: center;
  }
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 1.2em;
  margin: 0 0 8px 0;
  color: var(--text);
  font-weight: 600;
}

.news-card-date {
  font-size: 0.9em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: bold;
}

.news-card-preview {
  font-size: 0.95em;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Overlay */
.news-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.news-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-overlay-content {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../img/Background.webp');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: auto;
  
  /* Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
.news-overlay-content::-webkit-scrollbar {
  width: 8px;
}
.news-overlay-content::-webkit-scrollbar-track {
  background: transparent;
}
.news-overlay-content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
.news-overlay-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.news-overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2em;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.news-overlay-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.news-overlay-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
}

.news-overlay-title {
  font-size: 1.8em;
  margin: 0 0 12px 0;
  color: var(--text);
}

.news-overlay-date {
  font-size: 0.95em;
  color: var(--muted);
  margin-bottom: 20px;
}

.news-overlay-audio {
  width: 100%;
  margin: 20px 0;
}

.news-overlay-content-text {
  line-height: 1.8;
}

.news-overlay-content-text p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-overlay-content {
    padding: 20px;
    max-height: 95vh;
  }
  
  .news-overlay-close {
    top: 10px;
    right: 10px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* Fade-In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
