/* Grundlegende Stile für die gesamte Seite */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(14px, 2vw, 18px);
  background-color: var(--background-color);
  color: var(--font-color);
  line-height: 1.6;
}
#container {
  width: 100%;
  max-width: 1920px;
}
main {
  flex-grow: 10;
  /* default 0 */
  padding: 10px;
}
main h1,
main h2 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  display: flow-root;
}
main h1:first-child {
  margin-top: 0;
}

p {
  line-height: 1.8; /* Vergrößert den Zeilenabstand */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Arial, sans-serif;
  color: var(--heading-color);
  margin-top: 0.5em;
}
h1 {
  font-size: clamp(1.8em, 5vw, 2.5em);
}
h2 {
  font-size: clamp(1.2em, 4vw, 2em);
}
h3 {
  font-size: clamp(1em, 3vw, 1.2em);
}
h4 {
  font-size: clamp(0.8em, 2vw, 1em);
}
/* unvisited link */
a:link {
  color: var(--link-color);
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
  transition: color 0.3s ease, font-weight 0.3s ease;
  text-decoration: none;
}
/* visited link */
a:visited {
  color: var(--visited-color);
}
/* mouse over link */
a:hover {
  color: var(--hover-color);
  font-weight: bold;
}
a:active {
  color: var(--active-color);
}
/* Alle Seiten Prägungstypen */
.header {
  display: flex;
  align-items: flex-start;
  gap: 3em;
  margin-bottom: 0.2em;
  width:100%;
  max-width: 1200px; /* Maximalbreite für den Inhalt */
  margin-left: 0; /* Zentriert den Container */
  margin-right: auto;
  padding: 0 0.5em; /* Etwas Innenabstand */
}
.header.titel {
  flex: 1 1 0;
  min-width: 0;
}
.header.bild {
  max-width: 180px;
  height: auto;
  flex-shrink: 0;
}
/* Seite Prägungstypen abschluss */
/* Accordion-Stil für Seite Mischmasch*/
.toggle-heading {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 0;
  font-weight: bold;
  user-select: none;
  margin: 0;
}
.toggle-heading .fa {
  transition: transform 0.3s ease;
}
.toggle-heading.active .fa {
  transform: rotate(180deg);
}
.toggle-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  padding: 0 0.5em;
}
/* Abstand zwischen Sektionen */
.section {
  padding-bottom: 0.2em;
  margin-bottom: 0.2em;
}
/* Ende Accordion-Stil für Seite Mischmasch */
.img-responsive {
  max-width: 100%;
  height: auto;
}
/* Datei Mischmasch Adresse verstechen */
.packet {
  width: 300px;
  height: 200px;
  position: relative;
  text-align: center;
}
.schlaufe {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  text-align: center;
}
.adresse {
  display: none;
  padding: 5px;
}
/* Tabelle - wird für Accordeon Musikauswahl vewendet */
table {
  width: 95%;
  margin: 0 auto 25px auto;
  border-collapse: collapse;
  border: 1px dotted var(--table-border-color);
  box-shadow: 5px 5px 5px var(--table-shadow-color);
}
caption {
  background-color: var(--table-caption-color);
  border: 1px dotted var(--table-border-color);
}
td,
th {
  padding: 3px;
}
thead tr th:nth-child(1),
tbody tr td:nth-child(1) {
  vertical-align: top;
}
thead tr th:nth-child(2),
tbody tr td:nth-child(2) {
  width: 35px;
  vertical-align: top;
}
.td:hover {
  background-color: var(--table-hover-color);
}
td img:hover {
  transform: scale(1.25);
  transition: all 2s ease;
}
/* Tabelle fertig - wird für Accordeon Musikauswahl verwendet */
.breite {
  width: 30%;
  min-width: 500px;
}
/*Sprachauswahl*/
.sprache {
  float: right;
  padding: 0;
  background: none;

}
.sprache img{
  border-radius: 0;
  border: none;
  box-shadow: none;
  text-shadow: none;
  padding: 0 2px;
}
.sprache img:hover {
  box-shadow: none;
  filter:drop-shadow(3px 3px 5px var(--sprache-shadow-color));
  transform: scale(1.25);
}

/* Mobile: untereinander anordnen */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
  }
  /* Wenn .header.umbruch gesetzt ist, sollen die Favoriten in Reihen stehen und umbrechen */
.umbruch {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
						
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
}
  .header.bild {
    max-width: 100%;
    margin-top: 0.5em;
  }
  .breite {
    width: 30%;
    min-width: 300px;
  }
}

/* Sehr schmale Bildschirme: zwei Karten pro Reihe, falls nötig */
@media (max-width: 420px) {
  .header.umbruch .favor, .header.umbruch .quer {
    flex: 0 0 calc(50% - 12px);
    width: auto;
  }
}
@media print {
  /* All your print styles go here */
  nav,
  .druck {
    display: none !important;
  }
  main {
    background-color: #ffffff;
    color: #000000;
    width: 21cm;
    min-height: 29.7cm;
  }
  img {
    opacity: 1;
    transition: opacity ease-in-out 0.25s;
  }
  img:hover {
    opacity: 1;
    transition: opacity ease-in-out 0.25s;
  }
}
