* {
    margin: 0;
}

html, body {
    height: 100%;
}

.wrapper {
    min-height: 100%;
    height: auto !important;
    margin: 0 auto -4em;
    line-height: 1.8rem;
}

.footer {
    font-size: 0.8em;
    height: 3em;
}

div.footnote, span.footnote {
    font-size:0.7rem;
}

span.footnote_style sup {
    color: #008CBA;
}

span.footnotetext {
    line-height: 1rem;
}

span.footnote_idx {
    vertical-align: super;
    font-size: 80%;
}

span.randtitel {
    font-weight: bold;
    font-size: 110%;
}

span.marge  {
margin-left: 2em;
}

div.t-line-number {
    font-size: 110%;
    color: black;
    position: absolute;
    left: 1rem;
    width: 3rem;
    text-align: center;
}

div.row.transcribed-line {
    margin-left: 0;
    border-left: 3rem solid #F2F2F2;
    min-height: 1.8rem;
}

.table-in-text {
    width: 100%;
    border: 0;
    margin-bottom: 0;
    border-spacing: 0;
}

.table-in-text tr td {
    font-size: inherit;
    padding: 0;
    vertical-align: top;
    line-height: 1.8rem;
    /*white-space: nowrap;*/
}

titel {
    font-weight: bold;
    font-size: larger;
    line-height: 1.6rem;
}

abbr.translation {
  font-size: 100%;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: LightSkyBlue;
  border-bottom: none;
}

span.gap {
    padding-right: 30px;
}

span.bildunterschrift {
    font-size: 0.7em;
}

.has-tooltip {
    text-decoration: underline dotted;
}

.randtitel .footnote_idx a {
    font-weight: normal;
    font-style: normal;
    font-size: smaller;
}

a.location_highlight, span.location_highlight, span.agenda_location {
    color: orange;
}

a.person_highlight, span.person_highlight, span.agenda_person {
    color: green;
}

a.weather_highlight, span.weather_highlight, span.agenda_weather {
    color: blue;
}

a.date_highlight, span.date_highlight, span.agenda_date {
    color: red;
}

a.footnotetext_highlight, span.footnotetext_highlight, span.agenda_footnotetext{
    color: magenta;
}

span.location {
    text-decoration: underline;
	text-decoration-color: LightSkyBlue;
}

span.person{
    text-decoration: underline;
	text-decoration-color: LightSkyBlue;
}

span.date {
    text-decoration: underline;
	text-decoration-color: LightSkyBlue;
}

span.glossar {
    text-decoration: underline;
	text-decoration-color: LightSkyBlue;
}

div.footnote ol {
    list-style-type: none;
}

li sup {
    position: absolute;
    color: #008CBA;
    font-size: 0.7em;
}
li p {
    padding-left: 15px;
    color: #555;
    font-size: 0.8em;
    margin-bottom: 0.1rem;
}

.has-tip:hover {
    color: #333;
    border-bottom: dotted 1px #ccc;
}

.tooltip {
    display: none;
    position: absolute;
    z-index: 1006;
    font-weight: normal;
    font-size: 0.875rem;
    line-height: 1.3;
    padding: 0.75rem;
    max-width: 300px;
    left: 50%;
    width: 100%;
    color: black;
    background: #ddd;
    border-top: 1px solid #6f6f6f;
    border-bottom: 1px solid #6f6f6f;
    border-left: 1px solid #6f6f6f;
    border-right: 1px solid #6f6f6f;
}
.tooltip hr {
    border: solid #333;
    border-width: 1px 0 0;
    clear: both;
    margin: 1rem 0 1rem;
    height: 0;
}

[title] {
    cursor: help;
}

[title]:before {
    content: unset;
}

.wrapper>.row:not(.content-centered) {
    max-width: 100%;
    width: auto;
    margin: 0 1rem;
}

.content-centered {
    float: none;
}

table.small-text {
    font-size: smaller;
}

.subheader.with-lines {
    position: relative;
    margin-top: 1rem;
}

.subheader.with-lines span {
    background: #ffffff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.subheader.with-lines::before {
    background: #c1c1c1;
    content: "";
    display: block;
    height: 1px;
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
}

.hero-image {
    text-align: center;
    height: 90vh;    
}

.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 1.5rem;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  filter: brightness(70%);
  animation: fadeZoom 1.5s ease-out forwards;
}

.banner-text {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  color: #222;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.banner-text blockquote {
  margin: 0;
  font-style: italic;
  border: none;
}


/* Banner-Layout auf kleineren Geräten anpassen */
@media (max-width: 700px) {
  .banner {
    position: relative;
  }

  .banner-text {
    position: static;              /* nicht mehr absolut */
    transform: none;               /* keine Zentrierung */
    width: auto;
    background: rgba(255, 255, 255, 0.9); /* leicht heller Hintergrund */
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;              /* optional: linksbündig für bessere Lesbarkeit */
  }

  .banner img {
    filter: brightness(85%);       /* leicht abdunkeln für besseren Kontrast */
  }
}

h2 {
  font-weight: 400;
  font-size: 1.8rem;
  text-align: center;
  color: #222;
  margin-top: 2rem;     /* mehr Raum nach oben */
  margin-bottom: 1rem;    /* etwas kompakter nach unten */
  line-height: 1.3;
}

@media (max-width: 700px) {
  h2,
  h2.text-center {
    font-size: 1.4rem;      /* statt ~1.8–2rem auf Desktop */
    line-height: 1.3;
    margin-top: 2rem;       /* etwas weniger Raum */
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 480px) {
  h2,
  h2.text-center {
    font-size: 1.25rem;     /* für kleine Smartphones */
    line-height: 1.25;
  }
}

h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #222;
  text-align: left;
  margin-top: 2rem;           /* Rhythmus zu vorherigem Block */
  margin-bottom: 0.8rem;      /* näher am Text darunter */
  line-height: 1.35;
  position: relative;
}

/* feine Linie unterhalb – erinnert an die H4-"with-lines"-Optik */
h3::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: #005baa;
  margin-top: 0.35rem;
  border-radius: 2px;
  opacity: 0.7;
}

h4 {
  margin-bottom: 1.5rem;      
}


/* kleinere Geräte */
@media (max-width: 700px) {
  h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
  }
}

.edition-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
  max-width: 800px;               /* Bildgröße begrenzen */
  text-align: center;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.8rem 0.8rem 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.edition-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.edition-figure figcaption {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid #ddd;
  font-style: italic;
}

/* Mobile-Optimierung */
@media (max-width: 700px) {
  .edition-figure {
    margin: 1.2rem auto;
    padding: 0.6rem;
  }

  .edition-figure figcaption {
    font-size: 0.85rem;
  }
}

.banduebersicht {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.banduebersicht h2 {
  text-align: center;
  font-weight: 400;
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
}

/* Grid Layout */
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop & Tablet: 3 Spalten */
  gap: 0.7rem;
}

/* Kartenbasis */
.band-card {
  opacity: 0;
  transform: translateY(10px);
  background: #f8f8f8;
  border-left: 4px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.3;
  transition:
    background 0.2s ease,
    opacity 0.5s ease,
    transform 0.6s ease;
}

.band-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Statusfarben */
.band-card.available { border-left-color: #005baa; }
.band-card.pending   { border-left-color: #bbb; color: #555; }

.band-card:hover { background: #f0f4f8; }

/* Typografie */
.band-card h3 {
  display: inline-block;
  width: 2.5ch;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  color: #333;
}

.band-card p {
  display: inline;
  margin-left: 0.5rem;
}

/* Buttons */
.band-card .btn {
  float: right;
  margin-top: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  background: #005baa;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.band-card .btn:hover { background: #00427e; }

.band-card .btn.disabled {
  background: #aaa;
  pointer-events: none;
}

/* Responsive Layout für Bandübersicht */
@media (max-width: 600px) {
  .band-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 Spalten */
  }
}
@media (max-width: 400px) {
  .band-grid {
    grid-template-columns: 1fr; /* sehr kleine Geräte */
  }
}

.band-card h3 {
  all: unset;                  /* setzt ALLE geerbten CSS-Regeln zurück */
  display: inline-block;       /* wieder sichtbar machen */
  font-weight: 600;            /* etwas betont, aber neutral */
  font-size: 1.2rem;
  line-height: 1.2;
  color: #333;
  margin: 0;

  vertical-align: middle;
}

.band-card h3::after {
  content: none !important;
}


@media only screen and (max-width: 40em) {

  /* Nur den "Back"-Link verstecken */
  .top-bar .back,
  .top-bar .back a {
    display: none !important;
  }

  /* Keine Pfeile hinter den Hauptpunkten */
  .top-bar .has-dropdown > a::after {
    display: none !important;
    content: none !important;
  }

  /* Dropdown-Ebene nicht anzeigen */
  .top-bar-section ul.dropdown {
    display: none !important;
  }
}

/* Mobile: "Back" & Dropdown-Pfeile ausblenden – Design sonst unverändert */
@media only screen and (max-width: 40em) {
  .top-bar .back,
  .top-bar .back a {
    display: none !important;
  }
  .top-bar .has-dropdown > a::after {
    display: none !important;
    content: none !important;
  }
}