@font-face {
  font-family: "Neon";
  src: url("bneg98.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image: linear-gradient(90deg, #d600d4, #ec4f75);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
}
.haupt {
  margin: 5rem auto;
  width: 70%;
  /* Removed min-height: 80vh; */

  border: 3px solid #ff00cc;
  border-radius: 14px;

  box-shadow:
    0 0 6px #ff00cc,
    0 0 12px #00ffff,
    inset 0 0 12px rgba(255, 0, 204, 0.5);

  background: linear-gradient(180deg, #0b1026, #140033);

  display: grid;
  grid-template-areas:
    "header header"
    "nav main"
    "footer footer";
  grid-template-columns: minmax(200px, max-content) 1fr;
  grid-template-rows: auto 1fr auto; /* Make the middle row (nav/main) flexible */
  align-items: start;
  position: relative;
  overflow: hidden;

  /* CRT-Farbboost */
  filter: contrast(1.1) saturate(1.25);
}

.haupt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );

  opacity: 0.45;
  z-index: 1;
}

.haupt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(0, 0, 0, 0.35) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );

  z-index: 2;
}

@keyframes crtFlicker {
  0% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
  }
}

.header h1 {
  margin: 0;
  padding: 0;
}

.header {
  grid-area: header;
  text-align: center;
  font-family: "Neon";
  font-size: 50px;
  font-style: italic;
  color: transparent;
  background: linear-gradient(90deg, #d600d4, #ec4f75);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  margin-top: 0;
  border-bottom: 5px double #ff00cc;
}

.nav {
  grid-area: nav;
  display: flex;
  justify-content: center; /* horizontal */
  border-right: 5px double #ff00cc;
  height: 100%;
  z-index: 99; /* Below header (z-index 100) */
  /* Removed margin: 1rem; */
}

.nav ul {
  margin: 1rem;
  padding: 0;
  font-size: 36px;
}

.nav li {
  list-style: none;
  font-family: "Neon";
}

.nav a {
  text-decoration: none;
  color: transparent;
  background: linear-gradient(90deg, #d600d4, #ec4f75);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.nav a:hover {
  transform: skewX(-10deg);
}

.main {
  grid-area: main;
  margin: 2rem;
  color: #00ffff;
  font-size: large;
}

.main h2 {
  font-family: "Neon";
  text-align: center;
  font-size: 40px;
  font-style: italic;
  color: transparent;
  background: linear-gradient(90deg, #d600d4, #ec4f75);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.footer {
  grid-area: footer;
  text-align: center;
  border-top: 5px double #ff00cc;
  /* color: #39FF14;  Neon green for copyright and general footer text */
}

.footer p a {
  text-decoration: none; /* Remove underline from links */
  font-size: smaller;
  color: #ffffff; /* Neon green for links */
}

.musicPlayer {
  margin: auto;
  width: 90%; /* Use a larger percentage for the container */
  max-width: 900px; /* Limit max width for large screens */
  display: grid;
  grid-template-columns: 1fr; /* Always display iframes one below the other */
  justify-items: center; /* Center iframes horizontally within their grid cells */
  gap: 1.5rem; /* Space between iframes */
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 126.28%; /* Aspect ratio (height/width = 442/350 = 1.2628) */
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0; /* Ensure no default iframe border */
}

/* Responsive Design for smaller screens */
@media (max-width: 660px) {
  .haupt {
    grid-template-areas:
      "header"
      "nav"
      "main"
      "footer";
    grid-template-columns: 1fr; /* Single column layout */
    width: auto; /* Fill screen width instead of 70% */
    margin: 1rem; /* Small margin on all sides */
    row-gap: 0; /* Remove gap between grid rows */
  }

  .nav {
    border-right: none; /* Remove right border */
    border-bottom: 5px double #ff00cc; /* Add bottom border */
    align-items: center; /* Keep centering the ul vertically */
    padding: 0; /* Reduced padding to 0 */
  }

  .nav ul {
    font-size: 24px; /* Adjust font size for smaller screens */
    display: flex; /* Make ul a flex container */
    justify-content: center; /* Center li items horizontally */
    flex-wrap: wrap; /* Allow li items to wrap to the next line */
    gap: 1rem; /* Add some space between menu items */
    margin: 0; /* Reduced margin to 0 */
  }

  .main {
    margin: 1rem 0.5rem; /* Adjust margin for smaller screens */
  }
}

/* H1 Title Responsiveness */
.header h1 .medium-title,
.header h1 .small-title {
  display: none; /* Hidden by default */
}
.header h1 .full-title {
  display: inline; /* Visible by default for large screens */
}

@media (max-width: 660px) {
  .header h1 .full-title {
    display: none;
  }
  .header h1 .medium-title {
    display: inline; /* Show "Neon" */
  }
}

/* Styles for info slide-up panels (Cookies, Datenschutzerklärung) */
.info-slide-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto; /* Adjust height based on content */
  max-height: 80vh; /* Limit max height to prevent covering whole screen */
  background-color: #140033; /* Dark background */
  color: white;
  z-index: 1000; /* Above everything else */
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
  transform: translateY(100%); /* Start hidden below the viewport */
  transition: transform 0.5s ease-out; /* Smooth slide-up transition */
  overflow-y: auto; /* Enable scrolling for long content */
  padding: 20px;
  box-sizing: border-box; /* Include padding in width/height calculation */
}

.info-slide-panel.active {
  transform: translateY(0); /* Slide up into view */
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative; /* For absolute positioning of close button */
}

.info-content h2 {
  font-family: "Neon";
  text-align: center;
  font-size: 30px;
  color: #ff00cc;
  margin-top: 0;
}

.info-content p {
  line-height: 1.6;
}

.info-content .close-info {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff00cc;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.info-content .close-info:hover {
  background-color: #00ffff;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.cookie-button {
  padding: 10px 20px;
  border: 2px solid #ff00cc;
  border-radius: 5px;
  background-color: transparent;
  color: #ff00cc;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 0 5px rgba(255, 0, 204, 0.7);
}

.cookie-button:hover {
  background-color: #ff00cc;
  color: white;
  box-shadow: 0 0 10px #ff00cc;
}

/* Optional: Style for 'Accept All' to make it stand out */
#acceptAllCookies {
  background-color: #ff00cc;
  color: white;
  font-weight: bold;
}

#acceptAllCookies:hover {
  background-color: #00ffff;
  color: #140033;
  box-shadow: 0 0 10px #00ffff;
}

@media (max-width: 600px) {
  .cookie-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cookie-button {
    width: 90%;
  }
}

/* Live-Termine: Tabelle im Neon-Rahmen-Design, zentriert */
.live-table {
  margin: 1.5rem auto; /* horizontal zentrieren */
  border: 3px solid #ff00cc;
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow:
    0 0 6px #ff00cc,
    0 0 12px #00ffff,
    inset 0 0 12px rgba(255, 0, 204, 0.5);
  background: linear-gradient(180deg, #0b1026, #140033);
  color: #00ffff;
  text-align: center;
}

.live-table th,
.live-table td {
  padding: 0.6rem 1.5rem;
}

.live-table thead th {
  font-family: "Neon";
  font-size: 1.2em;
  font-style: italic;
  color: transparent;
  background: linear-gradient(90deg, #d600d4, #ec4f75);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  border-bottom: 5px double #ff00cc;
}

.live-table td {
  border-bottom: 1px solid rgba(255, 0, 204, 0.35);
}

.live-table tr:last-child td {
  border-bottom: none;
}

/* News / Blog auf der Startseite */
.news {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 1.5rem auto 0;
}

.news-entry {
  border: 2px solid #ff00cc;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: rgba(20, 0, 51, 0.55);
  box-shadow:
    0 0 6px #ff00cc,
    0 0 12px #00ffff;
  text-align: left;
}

.news-date {
  font-family: "Neon";
  font-style: italic;
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.news-entry h3 {
  margin: 0 0 0.75rem;
  font-family: "Neon";
  font-size: 1.5em;
  font-style: italic;
  color: transparent;
  background: linear-gradient(90deg, #d600d4, #ec4f75);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.news-entry p {
  margin: 0;
  line-height: 1.6;
  color: #ffffff;
}

.news-entry .news-image {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 0, 204, 0.5);
}

/* Webseiten-Zähler im Gästebuch */
.visit-counter {
  margin: 1.5rem auto;
  max-width: 320px;
  border: 2px solid #ff00cc;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, #0b1026, #140033);
  box-shadow:
    0 0 6px #ff00cc,
    0 0 12px #00ffff;
  text-align: center;
}

.counter-number {
  display: block;
  font-family: "Neon";
  font-size: 2.5em;
  font-style: italic;
  color: transparent;
  background: linear-gradient(90deg, #d600d4, #ec4f75);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.counter-label {
  color: #00ffff;
  font-size: 0.9em;
}

/* Hauptbild (Bandfoto) als kompakter Banner mit Beschnitt oben/unten */
.bandfoto {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 20px;
}

@media (max-width: 660px) {
  .bandfoto {
    height: 200px;
  }
}

/* Foto-Karussell (Bandfotos) mit Schwarzblende */
.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

@media (max-width: 660px) {
  .carousel {
    height: 200px;
  }
}

/* Social-Links */
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
}

.social-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-family: "Neon";
  font-size: 1.6em;
  font-style: italic;
  text-decoration: none;
  color: #00ffff;
  padding: 0.75rem 1.5rem;
  border: 2px solid #ff00cc;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b1026, #140033);
  box-shadow:
    0 0 6px #ff00cc,
    0 0 12px #00ffff;
  transition:
    color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.social-link:hover {
  color: #ff00cc;
  box-shadow:
    0 0 10px #ff00cc,
    0 0 18px #00ffff;
}

.social-link-text {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.social-link:hover .social-link-text {
  transform: skewX(-10deg);
}

/* Feed (Social-Media-Einbettungen) */
.feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 1.5rem auto 2rem;
}

.feed-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 2px solid #ff00cc;
  border-radius: 12px;
  background: #000;
  box-shadow:
    0 0 6px #ff00cc,
    0 0 12px #00ffff;
}

.feed-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feed-embed--facebook {
  aspect-ratio: 5 / 6;
}

.feed-embed--youtube {
  aspect-ratio: 16 / 9;
}

.feed-embed--instagram {
  aspect-ratio: 4 / 5;
}

/* Kleiner Cookie-Banner im Footer */
.cookie-banner {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #ffffff;
  background: rgba(20, 0, 51, 0.85);
  border: 1px solid #ff00cc;
  border-radius: 8px;
  text-align: center;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner a {
  color: #00ffff;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner .cookie-button {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
}

/* Embed-Zustimmungs-Gate (YouTube/Bandcamp) */
.consent-gate {
  position: relative;
}

.embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(180deg, #0b1026, #140033);
  border: 2px solid #ff00cc;
  border-radius: 12px;
  z-index: 1;
}

.consent-gate.loaded .embed-placeholder {
  display: none;
}
