/* Layout für Hauptbereiche */
main.main-wrapper {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
}

.main-left {
  width: 70%;
  padding: 2em;
  margin-left: 20px;
  box-sizing: border-box;
}

.main-right {
  width: 30%;
  padding: 2em;
  background: #f8f8f8;
  border-left: 1px solid #ccc;
  box-sizing: border-box;
}

  .seiteninhalt {
  width: 85%;             
  margin: 0 auto;        
  box-sizing: border-box;
}

.buttonreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 5px;       /* ← Abstand nach oben */
  margin-bottom: 35px;     /* vorhandener Abstand nach unten */
}

/* Jahrzehnte-Button-Gitter */
.decade-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 1em;
  max-width: 320px;   /* maximale Breite für zwei Buttons */
  margin-left: 0;     /* linksbündig */
}

/* Jahrzehnte-Buttons */
.decade-button-grid a {
  display: flex;                     /* Flexbox für vertikale Zentrierung */
  align-items: center;              /* vertikal mittig */
  justify-content: center;          /* horizontal mittig */
  background-color: #fe9900;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 8px;
  height: 50px;
  transition: background-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.decade-button-grid a:hover {
  background-color: #e67e00;
}
.nr1finder-zeitraum {
  margin-top: 8px;
  font-size: 16px;
}
 

/* Hover-Zustand */
.decade-button-grid a:hover {
  background-color: #e67e00;
}

/* Alltime-Button (unterhalb) */
.alltime-button {
  display: inline-block;
  background-color: #fe9900;
  color: white;
  text-align: center;
  padding: 14px 26px;
  font-weight: bold;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 1em;
  transition: background-color 0.2s ease;
}

.alltime-button:hover {
  background-color: #e67e00;
}

/* Allgemeine Box-Stile */
.nr1finder-box {
  border: 1px solid #ccc;
  background: #f9f9f9;
  padding: 1em;
  position: relative;
  border-radius: 8px;
  margin-bottom: 1em;
  overflow: visible; /* Tooltip darf herausragen */
  position: relative; /* wichtig für Tooltip-Position */
  box-sizing: border-box;
}

/* Flex-Container für Info */
.nr1finder-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1em;
}

.nr1finder-flagge {
    height: 70px;
    width: 14px;
  }

  .nr1finder-cover {
    width: 70px;
    height: 70px;
  }
  
.nr1finder-flag-cover-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}

.nr1finder-textblock {
  flex-grow: 1;
  margin-top: 0;
  font-size: 20px;
}
 
/* Textblock */
.nr1finder-textblock {
  flex-grow: 1;
}

.nr1finder-interpret {
  font-size: 1.6em;
  font-weight: bold;
   position: relative;
  max-width: 80%;
  z-index: 1;
}/* Mobil: Textbereich immer volle Zeile, unabhängig von Cover/Flagge */
@media (max-width: 768px) {
   
  .nr1finder-interpret  {
    display: block;
    width: 100% !important;
    max-width: none !important;
  }   } 

/* Nur mobil: Interpret-Zeile darf die volle Breite nutzen */
@media (max-width: 768px) {
  .nr1finder-interpret {
    max-width: 100% !important;
    width: 100%;
  }
}
.nr1finder-song {
  font-size: 1.2em;
  color: #444;
  margin-top: 0.3em;
}

.nr1finder-infobox {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  position: relative;
}

/* Header der Infobox */
.nr1finder-infobox-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 0;
  overflow: hidden;
}

/* Titel */
.nr1finder-title {
  margin-top: 20px;
  font-size: 18px;
  flex: 1 1 auto;
}

.produktinfo-wrapper {
  margin-top: 20px;
  text-align: right;
}

.produktinfo-fix {
  position: absolute;
  top: 1em;
  right: 1em;
  z-index: 10;
}

.produktinfo-button {
  background-color: #fe9900;
  color: white;
  padding: 14px 26px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.produktinfo-button:hover {
  background-color: #e88400;
}

/* Links und Icons */
.nr1finder-links {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.nr1finder-icons-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.nr1finder-zur-suche-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #fe9900; /* mix1-Orange */
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}

.nr1finder-zur-suche-btn:hover {
  background-color: #fe9933;
}
.nr1finder-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
  margin: 4px 0 0 0;
  padding: 0;
  transition: transform 0.2s;
}

.nr1finder-icon-btn:hover {
  transform: scale(1.1);
}

.nr1finder-info-icon {
  width: 40px;
  height: 40px;
  background-color: #fe9900;
  color: #fff;
  font-weight: bold;
  font-family: arial;
  font-size: 15px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 4px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nr1finder-info-icon:hover {
  background-color: #e67e00;
  transform: scale(1.1);
}

.song-interpret {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
  margin-left: 30px;
}


/* Globale Box-Sizing */
* {
  box-sizing: border-box;
}
/* Tooltip-Stile */
.tooltip-container {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.tooltip-container .tooltip-box {
  visibility: hidden;
  width: max-content;
  max-width: 180px;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  position: absolute;
  z-index: 999;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tooltip-container .tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

/* NEU: wenn zu nah am rechten Rand → Tooltip rechts ausrichten */
.tooltip-container.align-right .tooltip-box {
  left: auto;
  right: 0;
  transform: none;
}

.tooltip-container.align-right .tooltip-box::after {
  left: auto;
  right: 12px;
  margin-left: 0;
}


.tooltip-container:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

.language-switch {
  display: flex;
  gap: 10px;
  margin: 1em 0;
}

.language-switch img {
  width: 32px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.language-switch img:hover {
  transform: scale(1.1);
}
.intro-text {
  text-align: justify;
  font-size: 18px;
  color: #333;
  margin: 0.5em 0 1.5em;
  line-height: 1.6;
}
.success-filter {
  margin: 1.2em 0 2em;
}
.success-filter a {
  display: inline-block;
  background-color: #fe9900;
  color: white;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
}
.success-filter a.active,
.success-filter a:hover {
  background-color: #e67e00;
}

.nr1-subtable {
  width: 100%;
  border-collapse: collapse;
}
.nr1-subtable th, .nr1-subtable td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}
details > div {
  margin-left: 0;
}
.details-table-wrapper {
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ccc;
}

details {
  width: 100%;
  margin-bottom: 1em;
}

details summary {
  display: block;
  padding: 6px 0;
  margin: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #FE9900;
  font-weight: bold;
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
}
.erfolg-start-button {
  display: inline-block;
  width: 180px;                /* ← feste Breite für Gleichheit */
  text-align: center;          /* ← zentriert den Text */
  padding: 15px 0;             /* ← oben/unten, horizontal über width geregelt */
  border: 2px solid #ccc;
  border-radius: 999px;
  background-color: white;
  color: #000;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  margin-top: 10px;            /* besser als -2px für mehr Abstand */
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.erfolg-start-button:hover {
  background-color: #f8f8f8;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.erfolge-button {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background-color: white;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-top: -2px; /* ← Button leicht anheben */
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
 
.erfolge-button:hover {
  background-color: #f8f8f8;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}


.details-table-wrapper {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ccc;
}
.details-table-wrapper summary {
  cursor: pointer;
  color: #FE9900;
  font-weight: bold;
}
 
.custom-select {
  appearance: none;           /* Entfernt Browser-Styles */
  -webkit-appearance: none;   /* Safari/iOS */
  -moz-appearance: none;      /* Firefox */
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
    width: 130px; 
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23000'%20d='M2%205L0%200h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 8px 10px;
}

.custom-select:focus {
  outline: none;
  border-color: #fe9900;
  box-shadow: 0 0 0 2px rgba(254, 153, 0, 0.2);
}
.autocomplete-dropdown {
  font-size: 1em;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.autocomplete-dropdown div:hover {
  background-color: #f0f0f0;
}

.nr1finder-form {
  margin-top: 1em;
}

.nr1finder-form-row {
  display: flex;
  justify-content: center;    /* horizontal zentriert */
  align-items: flex-start;    /* 🔁 oben ausrichten */
  flex-wrap: wrap;
  gap: 0.7em;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 0;
  margin-bottom: 0;
  line-height: normal;
  transform: translateY(1px); /* kleine vertikale Korrektur */
}

/* 🟧 Eckiges, oranges Eingabefeld */
/* Eingabefeld: weiß mit orangem Rahmen */
.nr1finder-input {
  background: #fff;
  color: #000;
  border: 2px solid #FE9900;
  border-radius: 0;
  font-size: 1em;
  height: 48px;
  padding: 0 14px;
  width: 320px;   /* vorher 230px → jetzt länger */
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Nr.1 Finder – große, eckige Box ohne Border */
.nr1finder-searchbox {
  width: 100%;
  max-width: none;
  margin: 2em 0;
  box-sizing: border-box;
  background-color: #FE9900 !important;  /* großer oranger Kasten */
  border: none !important;               /* kein Rahmen */
  border-radius: 0;
  padding: 20px 28px;                    /* Innenabstand sichtbar */
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  color: #fff;                           /* Text in der Box weiß */
}

/* Inhalte in der Box ebenfalls weiß (Links/Labels/Hinweise) */
.nr1finder-searchbox a,
.nr1finder-searchbox label,
.nr1finder-searchbox .nr1finder-hinweislink,
.nr1finder-searchbox .nr1finder-hinweislink a {
  color: #fff;
}

/* optional: Abstand der Formularreihe in der Box */
.nr1finder-searchbox .nr1finder-form {
  margin-top: 0;
}

.nr1finder-input:focus {
  outline: none;
  border-color: #FE9900;
  box-shadow: 0 0 0 3px rgba(254,153,0,0.2);
}

/* Selectbox (Datum/Interpret/Song) schmaler */
.nr1finder-select {
  background: #fff;
  color: #000;
  border: 2px solid #FE9900;
  border-radius: 0;
  font-size: 1em;
  height: 48px;
  width: 120px;   /* bewusst schmaler */
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 0 28px 0 10px; /* rechts Platz für Pfeil */
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23FE9900'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

.nr1finder-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(254,153,0,0.2);
}

/* Button: ebenfalls weiß mit orangem Rahmen/Text */
.nr1finder-button {
  background: #fff;
  color: #FE9900;
  border: 2px solid #FE9900;
  border-radius: 0;
  font-size: 1.1em;
  font-weight: bold;
  height: 48px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nr1finder-button:hover,
.nr1finder-button:focus {
  background: #FE9900;
  color: #fff;
}

.nr1finder-ok-button {
  margin-left: 10px;
  padding: 6px 14px;
  font-weight: bold;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.nr1finder-ok-button:hover {
  background: #005fa3;
}

/* Suchbox-Rahmen */
.nr1finder-hochzeit-searchbox {
  width: 100%;
  max-width: none;
  margin: 2em 0;
  box-sizing: border-box;
  background-color: #FE9900;            /* Box-Farbe */
  border: 2px solid #b86100;            /* dunklerer Rand, deutlich sichtbar */
  border-radius: 0;                     /* eckig */
  padding: 14px 24px 20px 24px;
  /* subtiler Schatten für Kante */
  box-shadow: 0 2px 0 #b86100, 0 6px 14px rgba(0,0,0,0.15);
  color: #fff;                          /* Text weiß */
}
/* Links/Hinweise in der Box weiß */
.nr1finder-hochzeit-searchbox a,
.nr1finder-hochzeit-searchbox label,
.nr1finder-hochzeit-searchbox .nr1finder-hinweislink,
.nr1finder-hochzeit-searchbox .nr1finder-hinweislink a {
  color: #fff;
}
/* Hochzeit-Suchbox: Felder mit +7 Zeichen Platz */
.nr1finder-hochzeit-searchbox input[type="text"],
.nr1finder-hochzeit-searchbox .nr1finder-input {
  width: calc(20ch + 7ch);   /* Basisbreite + 7 Zeichen extra */
  min-width: 260px;
  height: 44px;
  font-size: 1em;
  border: 2px solid #FE9900;
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  color: #000;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nr1finder-hochzeit-searchbox input:hover,
.nr1finder-hochzeit-searchbox input:focus {
  border-color: #fff;  /* weißer Rahmen beim Hover/Fokus */
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

/* Selectbox mit +7 Zeichen Platz + Pfeil fix */
.nr1finder-hochzeit-searchbox {
  width: 100%;
  max-width: none;
  margin: 2em 0;
  box-sizing: border-box;
  background-color: #FE9900;   /* großer oranger Kasten */
  border: none;                /* kein Rahmen */
  border-radius: 0;            /* eckig */
  padding: 20px 28px;          /* mehr Innenabstand, wirkt wie Box */
  box-shadow: 0 6px 14px rgba(0,0,0,0.15); /* Schlagschatten statt Border */
  color: #fff;                 /* Text weiß */
}

.nr1finder-hochzeit-searchbox select:hover,
.nr1finder-hochzeit-searchbox select:focus {
  border-color: #fff;  /* weißer Rahmen beim Hover/Fokus */
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

.hochzeitsbezeichnung {
  font-size: 0.95em;
  text-align: left;
  color: #444;
  margin: 0 0 6px 0;
  padding-left: 2px;
}


.hochzeitsbezeichnung-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 1.1em;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hochzeitsbezeichnung-nummer,
.hochzeitsbezeichnung-name {
  display: inline-block;
}

 
.jubilaeum-text {
  text-align: center;
  font-weight: bold;
  color: #a56700;
  margin-top: 4px;
  font-size: 0.95em;
}

.nr1finder-hinweislink {
  font-size: 0.95em;
  margin-top: 10px;
  margin-bottom: -1px;
  color: #5c4a1f;
  text-align: center;
}

.nr1finder-hinweislink a {
  color: #b8860b;
  font-weight: bold;
  text-decoration: underline;
}

.nr1finder-hinweislink a:hover {
  text-decoration: none;
}


 
.language-switch:empty {
  display: none;
}

.br-mobile {
  display: none;
}

.space-desktop {
  display: inline;
}
 

.jahr-overlay {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 45px;
  color: #acacac;
  font-weight: bold;
  text-decoration: none;
  z-index: 1;
  pointer-events: auto;
  transition: all 0.2s ease;
}


.jahr-overlay:hover {
  color: #c0c0c0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  cursor: pointer;
}
.nr1finder-box {
  position: relative;
}

/* Responsive Anpassungen  #################################### */
@media (max-width: 600px) {
  .nr1finder-box {
    width: 100% !important;
    padding-left: calc(1em - 2px);
  }
  
   .decade-button-grid {
    margin-left: auto;
    margin-right: auto;
  }
  
  
    .hideonprint {
    display: none !important;
  }
  
  
   .nr1finder-zeitraum {
    font-size: 15px;
  }
  
.br-mobile {
    display: inline;
  }
  .space-desktop {
    display: none;
  }
}
@media (max-width: 768px) {
  .br-mobile {
    display: inline;
  }
  
   .seiteninhalt {
  width: 97%;             
  margin: 0 auto;        
  box-sizing: border-box;
}

  .main-right h2 {
    text-align: center;
  }

  main.main-wrapper {
    flex-direction: column;
  }

  .main-left,
  .main-right {
    width: 100%;
    padding: 1em;
    margin-left: 0;
  }

  .nr1finder-infobox-header {
    flex-direction: column;
    align-items: stretch;
  }

  .produktinfo-wrapper {
    order: 99;
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }

  .produktinfo-fix {
    position: static;
    margin-top: 16px;
    text-align: center;
    width: 100%;
  }

  .produktinfo-button {
    display: block;
    width: 100%;
    font-size: 20px;
    padding: 16px;
    border-radius: 12px;
  }
 .nr1finder-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .nr1finder-info .nr1finder-textblock {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
  }

  .nr1finder-flag-cover-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .nr1finder-flagge {
    height: 70px;
    width: 14px;
  }

  .nr1finder-cover {
    width: 70px;
    height: 70px;
  }
  
  
.nr1finder-interpret {
  font-size: 1.6em;
  font-weight: bold;
   margin-top: -20px;
}

.nr1finder-song {
  font-size: 1.2em;
  color: #444;
  margin-top: -2px;
} 

.nr1finder-icons-row {
  margin-top: 18px;  
}
  .buttonreihe {
    justify-content: center;
  }
  .hochzeitsbezeichnung-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
   }
 /* Nur für manuell gesetzte Links: Farbe konstant, blaue Linie beim Hover */
.handlink {
  color: #0b4da0;                  /* immer gleich, auch visited */
  text-decoration: none;           /* kein Standardunterstrich */
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.handlink:visited {
  color: #0b4da0;                  /* visited bleibt ebenfalls #0b4da0 */
  border-bottom-color: transparent;
}

.handlink:hover,
.handlink:focus {
  border-bottom-color: #0b4da0;    /* blaue Linie beim Hover/Fokus */
}

  
