@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

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

html, body {
  font-size: 100%;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: #404040;
  padding-bottom: 0px;
  background: #fff url(../img/bg-html.jpg) no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

:root {
  /* Basisgrößen für Schrift – alle um 0.1rem reduziert */
  --h1-size: clamp(1.7rem, 5.9vw, 3.9rem);
  --h2-size: clamp(1.4rem, 4.9vw, 2.9rem);
  --h3-size: clamp(1.2rem, 3.9vw, 2.15rem);
  --h4-size: clamp(1.0rem, 2.9vw, 1.65rem);
  --h5-size: clamp(0.9rem, 2.5vw, 1.4rem); /* neu hinzugefügt */

  /* Zeilenhöhen */
  --h1-line: 1.2;
  --h2-line: 1.25;
  --h3-line: 1.3;
  --h4-line: 1.35;
  --h5-line: 1.4; /* neu hinzugefügt */

  /* Abstände */
  --heading-margin-top: 0.5em;
}

h1, h2, h3, h4, h5 {
  font-weight: 500;
  margin-top: var(--heading-margin-top);
  margin-bottom: 0;
  text-transform: lowercase;
  letter-spacing: 3px;
}

h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-line);
}

h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
}

h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
}

h4 {
  font-size: var(--h4-size);
  line-height: var(--h4-line);
}

h5 {
  font-size: var(--h5-size);
  line-height: var(--h5-line);
}

h3 + small {
  display: block;
  margin-top: 0;
  font-size: 1em; /* vorher 1.1em → ebenfalls um 0.1 reduziert */
  color: #666;
  letter-spacing: 5px;
  text-transform: lowercase;
}






a:link, a:visited, a:active {
  font-size: 0.938rem;
  color: #467aa7;
  font-weight: normal;
  text-decoration: none;
}

a:hover {
  font-size: 0.938rem;
  color: #2a5a8a;
  text-decoration: none;
}

img { border: none; }
a img { border: none; }
strong { font-weight: bold; }
a:focus { outline: none; }

img.brothers { float: left; margin: 4px 10px 4px 0; }

img.show { vertical-align: middle; }

/* 📍 Nav TopBar */

#nav-bar {
  height: 60px;
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
}

.nav-bar-container {
  display: flex;
  align-items: center;
  height: 60px;
  max-width: 960px;
  margin: 0 auto;
}

.nav-bar-header {
  padding: 3px 5px 0px 12px;
}

a.nav-home:link, a.nav-home:active, a.nav-home:visited {
  font-family: monospace;
  text-transform: uppercase;
  font-size: 1.063rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
  text-shadow: 1px 3px 3px #999;
}

a.nav-home:hover { color: #a2b5cd; text-decoration: none; }

/* 📍 Content */

.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 80px auto 0 auto;
  max-width: 1200px;
  min-width: 320px;
  font-size: 0.938rem;
  padding: 10px 10px 10px 10px;
  background-color: #fff;
}

.title-bar {
  box-sizing: border-box;
  width: 98%;
  margin: 0 auto;
  padding: 10px 10px 10px 12px;  
  background-color: #f7f7f7;
  text-align: left;
  font-size: 0.938rem;
  font-weight: normal;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
}

.flex-left {
  flex: 3;
  min-height: 700px;
  padding: 15px;
  line-height: 1.4em;
  background-color: #fff;
}

.flex-right {
  flex: 1;
  padding: 15px;
  text-align: center;
  color: #000;
  background-color: #fff;
}


/* 📍 Chart und Legende */

.chart-canvas {
  display: block;
  margin: 15px auto 20px auto;
  max-width: 360px;
  aspect-ratio: 1;
}

#pieChart {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  transition: all 0.6s ease;
}

#pieChart:hover {
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
}

#custom-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 30px;
  font-size: 0.813rem;
  color: #545454;
  text-align: left;
}

.legend-entry {
  display: block;
  margin-bottom: 3px;
}

.legend-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 4px;
}

.legend-info {
  margin-left: 20px;
  font-size: 0.813rem;
  color: #545454;
}

.legend-text {
  font-weight: 400;
  color: #404040;
}

.legend-text::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
}


/* 📍 Go To Top Button */

#topBtn {
  display: none;
  position: fixed;
  bottom: 35px;
  right: 25px;
  z-index: 99;
  font-size: 1.1rem;
  border: none;
  background-color: #c2c2c2;
  color: #000;
  cursor: pointer;
  padding: 16px;
  border-radius: 6px;

  /* Focus für Keyboard-Nutzer sichtbar machen */
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: background-color 0.2s, outline-color 0.2s;
}

#topBtn:hover,
#topBtn:focus {
  background-color: #ccc;
  outline-color: #999; /* sichtbares Focus-Highlight */
}




/* 📍 Sub Pages */

.sub-info {
  background-color: #e5e5e5;
  color: #303030;
  padding: 0px 3px 0px 3px;
  text-transform: lowercase;
  border-radius: 4px;
}

.sub-highlight {
  background-color: #ffefd5;
  color: #303030;
  padding: 1px 4px;
  border-radius: 5px;
}

hr {
  display: block;
  height: 1px;
  background-color: #e3e3e3;
  border: 0;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* 📍 Sub Page DIVs */



.setlist-box {
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
  margin: 30px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.setlist-top {
  background-color: #f5f5f5;
  padding: 1px 12px;
}

.setlist-box-content {
  background-color: #dfddd9;
}

ol {
  list-style-type: decimal;
  line-height: 1.5em;
  list-style-position: inside;
  font-size: 0.938rem;
  margin: 25px 15px 25px 15px;
  padding-left: 1.2em;
}


















.top-bar-box {
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
  max-width: 99%;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar {
  background-color: #f5f5f5;
  color: #0c980c;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.box-content {
  padding: 16px;
  background-color: #fff;
}


.box-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.box-content li {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 12px;
  transition: background 0.2s, box-shadow 0.2s;
}

.box-content li:hover {
  background: #f0fff0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


















/* dl, dt, dd */

.meta-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 0.5em;
  gap: 1.5em;
}

.meta-block dt {
  flex: 1;
  font-size: 0.938rem;
  font-weight: 500;
  color: #404040;
  text-align: left;
  white-space: nowrap;
}

.meta-block dd {
  flex: 3;
  font-size: 0.938rem;
  font-weight: 400;
  color: #404040;
  text-align: left;
  margin: 0;
}

.meta-block dd.meta-hidden {
  color: #b8b8b8;
  font-style: italic;
}

.image-row {
  display: flex;
  gap: 1em;
  flex-wrap: wrap; /* Zeilenumbruch kleinen Screens */
  justify-content: flex-start;
  margin-top: 1em;
}

.image-row img {
  max-width: 100px;
  height: auto;
  border-radius: 6px;
  display: block;
}

.image-row a {
  display: inline-block;
}

li { margin-bottom: 2px; color: #333;}

.note-list {
  padding-left: 1.2em;
  margin: 0;
  list-style-type: circle;
}

.note-list li {
  margin-bottom: 0.3em;
  font-size: 0.938rem;
  color: #404040;
}

.header-notes { 
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 2px;
  margin-bottom: 4px;
  letter-spacing: 3px;
}

.info-notes {
  margin-left: 2px;
  color: #555;
  font-size: 0.938rem;
  line-height: 1.5;
  list-style-type: circle;
  padding-left: 20px;
  margin-bottom: 32px;
}

/* <li> style für Hauptnotes */

.set_notes {
  padding-left: 1.8em;
  margin: 0;
  list-style-type: circle;
}

.set_notes li {
  margin-bottom: 0.3em;
  font-size: 0.938rem;
  color: #404040;
}

/* Zusatz falls es keine Notes gibt */

.no-info { color: #ccc; font-size: 0.938rem; font-style: italic; }
.hidden { display: none; }





/* 📍 Sub Pages - Modal für Bilder */

body.modal-open {
  overflow: hidden;
}

/* 🔳 Modal Overlay */
#modal-img {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

#modal-img[hidden] {
  display: none;
}

/* 🔳 Modal Box */
#modal-img-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 600px;
  height: 80vh;
  box-shadow: 0 0 20px #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative; /* absolute Pfeil-Positionierung */
}

/* 🖼️ Bildanzeige */
.modal-img-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#modal-img-display {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

/* 🖼️ Galerie-Vorschau */
.gallery-img {
  cursor: pointer;
}

/* 🔙🔜 Navigation (Pfeile) */
.modal-img-nav {
  margin-top: 10px;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.modal-img-nav button {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.modal-img-nav button:hover {
  transform: scale(1.1);
  color: #000;
  background: none;
}

.modal-img-nav svg {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.modal-img-nav button:hover svg {
  transform: scale(1.1);
}

/* ❌ Close Button */
.modal-img-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

#modal-img-close {
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px 10px;
}

#modal-img-close:focus {
  outline: none;
}

.close-icon {
  font-size: 24px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.close-icon svg {
  transition: transform 0.3s ease;
}

#modal-img-close:hover .close-icon,
#modal-img-close:hover .close-icon svg {
  transform: scale(1.1);
  background: none;
  font-weight: bold;
}

/* 🖼️ für Tablets */

#modal-img-prev:focus,
#modal-img-next:focus {
  outline: none;
  background-color: transparent;
}




/* 📍 Button Styles */

.button-row {
  display: flex;
  flex-wrap: wrap; /* optional für mobile Layouts */
  gap: 10px;
  margin-bottom: 30px; /* Abstand zur nächsten Sektion */
}

.trigger-btn {
  font-size: 0.813rem;
  color: #545454;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  transition: background-color 0.6s ease, color 0.6s ease;
}

.trigger-btn:hover {
  color: #404040;
  background-color: #ddd;
}

.back-btn {
  /* Optional: spezielles Styling für Zurück-Button */
  background-color: #f5f5f5;
}


/* 📍 Footer */

footer {
  background-color: rgba(203,204,198,0.6);
  padding: 10px 0;
  margin-top: 20px;
  min-height: 250px;
  height: auto;
  font-size: 0.938rem;
}

.inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-segment {
  flex: 0 1 30%;
  min-width: 250px;
  box-sizing: border-box;
  padding: 5px;
  text-align: center;
}

.footer-label {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.footer-text { font-size: 0.938rem; color: #1a1a1a; }

.footer a:link,
.footer a:active,
.footer a:visited {
  color: #00008b;
  font-size: 0.938rem;
  text-decoration: underline;
}

.footer a:hover {
  color: #000;
  text-decoration: underline;
}


/* 📍 Open email modal */

.email-modal {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  max-width: 90%;
  max-height: 90vh;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-family: sans-serif;
  z-index: 1000;
  background: #f0f0f0;
  display: none;
  overflow: auto;
}

.email-content {
  padding: 20px;
  border-radius: 8px;
}

.email-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #333;
}

.email-actions {
  margin-top: 15px;
  text-align: right;
}

.email-actions button {
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.875rem;
}

.email-actions button:hover {
  background: #e6e6e6;
}

.email-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
}









/* 📍 Responsive - one column instead of two-column layout */


/* Responsive Umschaltung Unterseiten */

@media (max-width: 768px) {
  .meta-block {
    flex-direction: column;
    gap: 1em;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: flex-direction 0.3s ease; /* nur das, was animiert werden soll */
  }

  .meta-title,
  .meta-info {
    width: 100%;
  }

  hr {
    display: none;
  }

  .header-notes {
    margin-top: 30px;
  }
}


/* Responsive Main Table ( Card Style) */

@media (max-width: 768px) {
  .wrap { flex-direction: column; }

  .flex-left,
  .flex-right {
    flex: 1 1 100%;
    width: 100%;
    min-height: unset;
  }

  .title-bar {
    width: 100%;
    font-size: 0.875rem;
    padding: 3px;
  }

  .img-block img {
    width: 100%;
    max-width: 200px;
  }

  a.nav-home:link,
  a.nav-home:active,
  a.nav-home:visited {
    font-size: 0.875rem;
  }

  table { border: 0; }

  table thead { display: none; }

  table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  }

  table td {
    display: block;
    position: relative;
    padding-left: 50%;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: 500;
    text-transform: capitalize;
  }
}


@media (max-width: 768px) {
  .table-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .show-entries {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px;
  }

  .search-container {
    display: flex;
    width: 100%;
    align-items: center;
  }

  #entries,
  #search {
    flex-grow: 1;
  }

  #reset-button {
    flex-shrink: 0;
    margin-left: 10px;
  }

  .pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .pagination-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
}



/* Responsive contact.php */

@media (max-width: 768px) {
  iframe {
    width: 100%;
    height: 60vh;
  }

  dialog {
    width: 95%;
    margin: 20px auto 0 auto;
  }

  .modal-content {
    padding: 16px;
  }

  .close-btn {
    top: 8px;
    right: 10px;
    font-size: 1.2rem;
  }

  #modal-img-box {
    width: 90%;
    height: 80vh;
    padding: 15px;
  }

  #modal-img-display {
    max-height: 50vh;
  }

  .modal-img-nav {
    display: flex;
    gap: 30px;
    justify-content: center;
  }

  .modal-img-nav button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}


/* Responsive Footer */

@media (max-width: 830px) {
  .inner {
    flex-direction: column;
    gap: 20px;
    padding: 10px 20px;
  }

  .footer-segment {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: center;
  }
}




/* Responsive - Extrawurst fuer Tablets */

/* Touch-Tablets / Pointer Coarse */
@media (pointer: coarse) {
  html, body {
    background-attachment: scroll;
  }

  #modal-img-prev:focus,
  #modal-img-next:focus {
    outline: none;
    background-color: transparent;
  }
}

/* Kleine Bildschirme / Mobile */
@media (max-width: 640px) {
  #modal-img-box {
    width: 90%;
    max-height: 90vh;
    height: 90vh;
  }
}

/* Hover-Effekte nur für Desktop */
@media (hover: hover) and (pointer: fine) {
  .modal-img-nav button:hover,
  .modal-img-nav button:hover svg,
  #modal-img-close:hover .close-icon,
  #modal-img-close:hover .close-icon svg {
    transform: scale(1.1);
    background: none;
  }

  .modal-img-nav button:hover {
    color: #000;
  }
}



