html, body {
	overflow-x: hidden;
	max-width: 100%;
}

body {
	background-image: url('images/Logo.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: auto 70%;
	background-position: center center;
}

#timerbox {
	top: 50%;
}

#concertTimer {
	color: #000
}

#mailto {
	background-image: url('images/mail.png');
	background-repeat: no-repeat;			
	background-size: cover;
	width: 37px;
	height: 22px;
	border:none;
	outline:none;
}
	
th {
	background-image: url('images/counter_bg.png');
	background-repeat: no-repeat;			
	background-size: cover;
	width: 96px;
	height: 100px;
	font-family: Helvetica, sans-serif;
	font-size: 48;
}

td {
	text-align: center;
	font-family: Helvetica, sans-serif;
	font-size: 16;
}

.background-container {
  position: relative;
  height: 100%; /* Set the height of the background */
  background: url('your-image.jpg') no-repeat center center;
  background-size: cover;
}

.relative-box {
  position: relative;
  top: 5%; /* Position relative to the container's height */
  width: 100%;		  
  transform: translate(0%, 0%); /* Center the box */
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
}

.relative-boxBottom {
  position: relative;
  top: 45%; /* Position relative to the container's height */
  width: 100%;		  
  transform: translate(0%, 0%); /* Center the box */
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
}

.relative-boxAbout {
  position: relative;
  top: 15%; /* Position relative to the container's height */
  width: 100%;		  
  transform: translate(0%, 0%); /* Center the box */
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
}

.link_no_underline:hover {
  color: #32d3a4;
  background-color: transparent;
  text-decoration: none;
}

a:link {
  color: #a38f4a;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: #a38f4a;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: #32d3a4;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: #32d3a4;
  background-color: transparent;
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #b2222211;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
z-index: 10; /* höher als Canvas */
position: relative;
}

.topbar:hover {
  background-color: #8b1a1a33; /* dunkleres Rot beim Hover */
}

.topbar-left,
.topbar-center,
.topbar-right {
  text-align: center;
}

.topbar-left {
  text-align: left;
  width: 10vw;
}

.topbar-right {
  text-align: right;
  width: 10vw;
  margin-top: -10px;
}

.topbar-icon {
  height: 32px;
  vertical-align: middle;
}

.topbar-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

.burger-button {
  background: none;
  border: none;
  font-size: 1em;
  color: #fff;
  cursor: pointer;
}

.divider_ {
	height: 70px;
	width: auto;
}

/* Link oben */
#toggleAbout {
  display: inline-block;
  margin: 0px auto;
  padding: 0px 50px;
  cursor: pointer;
  font-weight: bold;
  color: #b22222; /* schönes Rot */
  text-decoration: none;
  text-align: center;
  margin-bottom: 10px;
}

.about-button {
  display: inline-block;
  padding: 0px 0px;
  background-color: #b2222255;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.about-button:hover {
  background-color: #8b1a1a99;
}

/* Versteckter Bereich */
#about {
  display: block;
  margin: 0px auto;
  
  max-height: 0;
  max-width: 800px;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background: #f9f9f9;
  padding: 0px 10px;
  border-left: 3px solid #b22222;
}
#about h2 {
  color: #006699; /* Blau nur für die Überschrift */
  font-size: 18pt;
}

#about p {
  color: #444; /* dunkleres Grau für den Absatz */
  font-size: 12pt;
}

/* Sichtbar, wenn aktiv */
#about.open {
  max-height: 1000px; /* genug Platz für Text */
  max-width: 800px; /* genug Platz für Text */
  padding: 10px;
}

@media (max-width: 800px) {
	#about {
	  max-width: 600px;
	}

	#about.open {
	  max-width: 600px; /* genug Platz für Text */
	}
}

.close-btn {
  position: absolute;
  top: 5px;      /* Abstand von oben */
  right: 5px;    /* Abstand von rechts */
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;

  background-color: #b2222255;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: #8b1a1a99;
}

@media (max-width: 460px) {
	body { 
		background-position: center 28vw; 
	}

	#terumangaIcon {
		width: 100px;
		height: 100px;
	}
	
	th {
		width: 80px;
		height: 80px;
		font-size: 36;
	}

	td {
		font-size: 12;
	}

	#about {
	  max-width: 400px;
	}

	#about.open {
	  max-width: 400px; /* genug Platz für Text */
	}
}

@media (max-width: 390px) {
	th {
		width: 60px;
		height: 60px;
		font-size: 28;
	}

	td {
		font-size: 9;
	}

	#about h2 {
		font-size: 6vw;
	}

	#about p {
		font-size: 4vw;
	}
}

@media (max-width: 250px) {
	th {
		width: 50px;
		height: 50px;
		font-size: 20;
	}

	#terumangaIcon {
		width: 50px;
		height: 50px;
	}
	
	td {
		font-size: 8;
	}

	#about h2 {
		font-size: 10pt;
	}

	#about p {
		font-size: 8pt;
	}
}

.rounded-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin: 10px auto;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.rounded-box2 {
    background: #ffffffaa;
    border-radius: 16px;
    padding: 20px;
    margin: 10px auto;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#string-header {
    width: 100%;
    height: 50px;
    background-image: url('images/fretboard.svg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

#fretboard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    pointer-events: none;
}

.fret {
    position: absolute;
    top: 0;
    width: 4px;
    height: 140px;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.hover-image {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  padding: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-info {
  position: relative;
  display: inline-block;
}

.hover-image {
  position: absolute;
  top: 0;
  left: 30px;
  width: 150px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

@media (hover: hover) and (pointer: fine) {
  .hover-info:hover .hover-image {
    opacity: 1;
    pointer-events: auto;
  }
}

.hover-image {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 9999;
  max-width: 200px;
  border-radius: 6px;
}
.hover-info.open .hover-image {
  opacity: 1;
  pointer-events: auto;
}

.topbar-title img { width: 180px; height: auto; display: block; }

#string-canvas {
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1;
  position: absolute;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ===== Custom Carousel (carousel-wrap) ===== */
.carousel-wrap { width: 100%; max-width: 900px; font-family: sans-serif; margin: 0 auto; display: block; }

.carousel-wrap .stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-wrap .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-wrap .slide.active { opacity: 1; z-index: 1; }
.carousel-wrap .slide img  { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-wrap .slide video { width: 100%; height: 100%; object-fit: cover;   display: block; }
.carousel-wrap .slide iframe { width: 100%; height: 100%; border: none; display: block; }

.carousel-wrap .media-label {
    position: absolute;
    top: 14px;
    left: 16px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.03em;
}

.carousel-wrap .btn-prev,
.carousel-wrap .btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
.carousel-wrap .btn-prev { left: 12px; }
.carousel-wrap .btn-next { right: 12px; }
.carousel-wrap .btn-prev:hover,
.carousel-wrap .btn-next:hover { background: rgba(0,0,0,0.7); }

.carousel-wrap .counter {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.carousel-wrap .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.carousel-wrap .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
}
.carousel-wrap .dot.active { background: #4B4B4B; transform: scale(1.3); }

.carousel-wrap .thumbs {
    display: flex;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.carousel-wrap .thumbs::-webkit-scrollbar { display: none; }

.carousel-wrap .thumb {
    flex: 0 0 80px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.55;
    position: relative;
}
.carousel-wrap .thumb:hover { opacity: 0.85; }
.carousel-wrap .thumb.active { border-color: #4B4B4B; opacity: 1; }
.carousel-wrap .thumb img,
.carousel-wrap .thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel-wrap .thumb .vid-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.carousel-wrap .autoplay-bar {
    height: 2px;
    background: rgba(0,0,0,0.12);
    border-radius: 1px;
    margin-top: 10px;
    overflow: hidden;
}
.carousel-wrap .autoplay-progress {
    height: 100%;
    background: #4B4B4B;
    width: 0%;
    transition: width linear;
}

/* ===== Responsive / Mobile Fixes ===== */

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-size: auto 50%;
  }

  .rounded-box,
  .rounded-box2 {
    max-width: calc(100vw - 30px);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .rounded-box {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* About-Tabelle: feste 200px-Spalten auf mobil verkleinern */
  #about table tr:first-child td:first-child,
  #about table tr:first-child td:last-child {
    width: 40px !important;
    min-width: 40px !important;
  }

  /* Carousel */
  .carousel-wrap .thumb {
    flex: 0 0 60px;
    height: 40px;
  }
  .carousel-wrap .btn-prev { left: 6px; }
  .carousel-wrap .btn-next { right: 6px; }
}

@media (max-width: 480px) {
  body {
    background-size: auto 40%;
  }

  .carousel-wrap .thumb {
    flex: 0 0 48px;
    height: 32px;
  }
  .carousel-wrap .btn-prev,
  .carousel-wrap .btn-next {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .carousel-wrap .btn-prev { left: 4px; }
  .carousel-wrap .btn-next { right: 4px; }
  .carousel-wrap .media-label {
    font-size: 10px;
    padding: 2px 7px;
    top: 8px;
    left: 8px;
  }
  .carousel-wrap .counter {
    font-size: 10px;
    padding: 2px 7px;
    top: 8px;
    right: 8px;
  }
}