#header, #header2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2.0rem;
}

#header img {
    margin-top: 5rem;
    height: auto;
}
#header h1 {
    margin-top: 0.5rem;
    font-size: 2.5rem;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

#slogan {
    font-family: Quicksand, Arial;
    font-size: 1.3rem;
    color: #777777;
}

#header span {
    color: #e91e63;
    font-family: Quicksand, Arial;
    font-weight: bold;
}

h2 {
    font-family: Arial;
    font-size: 3rem;
}
h3 {
    font-family: Arial;
    font-size: 1.5rem;
}

.selected-countries {
  font-weight: bold;
  margin: 10px 0; /* Abstand oben und unten */
}

@media (min-width: 768px) {
    #header img {
        max-width: 25%;
    }
    #chartdiv {
        width: 100%;
        height: 70%; /* Statt calc(100vh - 150px), nutze direkte Angabe */
    }
    #selectedCountries {
        padding: 1rem;
        text-align: center;
        background-color: #f5f5f5;
        border-top: 1px solid #ccc;
        /* height: calc(100vh - 225px);*/ /* Berechnet die Höhe des Containers so, dass der Platz für den Weiter-Button und Karte passt */
        height: 65%;
        overflow-y: auto; /* Falls der Inhalt zu viel wird, wird gescrollt */
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    #description1 {
        margin-left: 3rem;
        margin-right: 3rem;
    }
    #description2 {
        margin-left: 3rem;
        margin-right: 3rem;
    }

    .control-btn:hover {
        color: #e91e63;
        font-weight: bold;
    }
}
@media (max-width: 767px) {
    #header img {
        max-width: 50%;
    }
    #chartdiv {
        width: 100%;
        height: 250px;
    }
    #selectedCountries {
        padding: 1rem;
        text-align: center;
        background-color: #f5f5f5;
        border-top: 1px solid #ccc;
        max-height: 320px;
        height: auto;
        overflow-y: auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    #regionSelection {
        flex-wrap: wrap;
        justify-content: center;
        display: flex;
    }

    #regionSelection button {
        width: auto;
        flex: 0 1 auto;
        margin: 0rem;
        font-size: 1rem;
        padding: 0.6rem 1rem;
        line-height: 1.1;
        /* margin-bottom: 0.5rem; */
    }
    .ranking-label {
        display: none;
    }
    .ranking-icons {
        font-size: 0.8rem;
    }
}

#regionSelection {
    display: flex;
    justify-content: center;
    margin: 0rem;
}
#regionSelection button {
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-color: #e91e63;
    border-style: solid;
    color: #e91e63;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
#regionSelection button:hover {
    /* background-color: #9e9e9e; */
    color: white;
    background-color: #e91e63;
}
#regionSelection button.active {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
}

#worldButton {
    display: none; /* live: flex */
}

.country-button {
    margin: 0 0.3em 0.3em 0;
    margin-bottom: 0.5rem;
    padding: 0.3em 0.7em;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
.country-button.inactive {
    background: #9e9e9e;
}
.country-button:hover {
    background: #d32f2f;
}

.main-region-button {
    display: inline-block;
    margin: 0 0.3em 0.3em 0;
    padding: 0.3em 0.7em;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    opacity: 0.75;
}
.main-region-button:hover {
    opacity: 1;
}
.main-region-button.inactive {
    background: #9e9e9e;
}
.main-region-button.inactive:hover {
    background: #9e9e9e;
}

.sub-region-button {
    display: inline-block;
    margin: 0 0.3em 0.3em 0;
    padding: 0.3em 0.7em;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    opacity: 0.75;
}
.sub-region-button:hover {
    opacity: 1;
}
.sub-region-button.inactive {
    background: #9e9e9e;
}
.sub-region-button.inactive:hover {
    background: #9e9e9e;
}

.todo-button {
    display: flex;
    gap: 1rem;
    padding: 0.3em 0.7em;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    opacity: 0.75;
}
.todo-button:hover {
    opacity: 1;
}
.todo-button.inactive {
    background: #9e9e9e;
}
.todo-button.inactive:hover {
    background: #9e9e9e;
}

#weiterButtonContainer {
    display: none;
    justify-content: center;
    margin-top: 1rem;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}
#weiterButtonContainer button.active {
    color: #4CAF50;
    background-color: white;
    border-color: #4CAF50;
}
#weiterButton {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    color: #4CAF50;
    background-color: white;
    border-color: #4CAF50;
    border-style: solid;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
#weiterButton:hover {
    color: white;
    background-color: #4CAF50;
    border-color: #4CAF50;
}

#header2 {
    display: none;
}

#prefsContainer .country-button,
#prefsContainer .country-button.inactive {
    display: inline-block;
    margin: 0.3em;
    white-space: nowrap;
    font-size: 0.9em;
    padding: 0.25em 0.6em;
}

#prefsContainer div[id^="todos_"],
#prefsContainer div[id^="regions_"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

.ranking-line {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
}
.ranking-item {
    display: flex;
    align-items: center;
}
.ranking-icons {
    color: #cccccc;
}

fieldset {
    border: none;
}

.route-controls {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-right: 40px;
}
.route-controls-bottom {
  width: calc(100% + 50px);
  margin-left: -50px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  color: black;
}

.control-btn {
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    /* margin-right: 0.2rem; */
    border: none;
    cursor: pointer;
    font-family: Quicksand, Arial;
    background-color: white;
    color: #5D5D5D;
}
/*
.control-btn-delete {
    background: #d3d3d3;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    width: 30px;
    height: 30px;
    margin: 0;
    position: static;
    font-family: Quicksand, Arial;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
}
.control-btn-delete:hover {
    background: #ff3b3b;
}
*/

#routeButtonContainer {
    display: none;
    justify-content: center;
    margin-top: 1rem;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}
#routeButton {
    margin: 0 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    font-size: 1.5rem;
    border-color: #e91e63;
    border-style: solid;
    color: #e91e63;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    justify-content: center;
}
#routeButton:hover {
    border-color: #e91e63;
    color: white;
    background-color: #e91e63;
}

#routeList li {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    padding: 12px;
    margin-top: 0.5rem;
    margin-right: 1rem;
    margin-left: 1rem;
    cursor: grab;
}
#routeList li:active {
    cursor: grabbing;
}
#routeList li:last-child {
    /* border-bottom: none; */
}
#routeList {
    counter-reset: route-counter;
    list-style: none;
    padding: 0;
}

#routeList li {
    counter-increment: route-counter;
    position: relative;
    padding-left: 50px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}
#routeList li::before {
    content: counter(route-counter);
    position: absolute;
    /* left: 10px; */
    left: 0px;
    top: 12px;
    width: 30px;
    height: 30px;
    background-color: #3388ff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    border: 2px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    font-size: 1rem;
    user-select: none;
}

#durationFields {
    justify-content: center;
}
#rangeFields {
    justify-content: center;
}
#dateFields {
    justify-content: center;
}

.date-prefix {
    font-size: 1rem;
}
.duration {
    font-size: 1rem;
}
.recommendation {
    font-size: 1rem;
}

.toggle-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}
.toggle-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.toggle-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.form-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
input[type="number"],
select,
input[type="date"] {
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#ratingContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rating-group {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 5px;
}

.rating-group button {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rating-group button:hover,
.rating-group button.selected {
    background-color: #007bff;
    color: white;
}

.external-links-row {
    display: none; /* live: flex */
    gap: 5px;
    /* margin-top: 5px; */
    flex-wrap: wrap;
}
.external-link {
    text-decoration: none;
    color: #cccccc;
    position: relative;
    display: flex;
    align-items: center;
}
.external-link .link-label {
    display: none;
    margin-left: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    color: black;
}
.external-link:hover .link-label {
    display: inline;
}
.external-link i {
    margin-left: 4px;
    font-size: 0.7rem;
    vertical-align: middle;
    color: inherit;
}
.logo-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.description {
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    margin-left: -40px;
    margin-right: 5px;
    justify-content: center;
}

.todo-buttons {
    pointer-events: none;
    margin: 0 0.3em 0.3em 0;
    padding: 0.3em 0.7em;
    background: #ffffff;
    /* color: #5D5D5D; */
    color: #cccccc;
    border: 1px solid #cccccc;
    /* border: 1px solid #5D5D5D; */
    border-radius: 4px;
    font-size: 0.8rem;
}
.todo-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em; /* optionaler Abstand zwischen Buttons */
    margin-left: -50px; /* wenn nötig wie bei .route-controls-bottom */
    justify-content: center;
}

.numbered-marker .marker-number {
    width: 30px;
    height: 30px;
    background-color: #3388ff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    border: 2px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    user-select: none;
}

.sticky-info {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f5f5f5;
    color: black;
    border: 1px solid #ffeeba;
    padding: 1rem;
    text-align: center;
}
.sticky-info .ok {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.sticky-info .error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

#headInstagramButton {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #f4f4f4;
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex; /* live: flex */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
    color: #e1306c;
    transition: background-color 0.3s ease;
    font-size: 1.5rem;
    opacity: 0.5;
}
#headInstagramButton:hover {
    background-color: #e1306c;
    color: white;
    opacity: 1;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex; /* live: flex */
    gap: 1rem;
}
.language-selector img {
    width: 40px;
    height: 24px;
    margin-left: 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.language-selector img:hover {
    opacity: 1;
}

.language-selector-footer {
    justify-content: center;
    display: flex;
    gap: 1rem;
}
.language-selector-footer img {
    width: 40px;
    height: 24px;
    margin-bottom: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.language-selector-footer img:hover {
    opacity: 1;
}

#buttonContainer {
  position: fixed;
  right: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
  opacity: 0.75;
}

#prefsButton, #scrollButton, #mapButton {
  padding: 15px 20px;
  font-size: 20px;
  background-color: #cccccc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: inherit;
}

#prefsButton:hover,
#scrollButton:hover,
#mapButton:hover {
  background-color: #cccccc;
  opacity: 1;
}

@media (min-width: 768px) {
    #parallax {
        position: relative;
        height: 500px;
        overflow: hidden;
    }
    .parallax-image {
        background-image: url('/images/default.png');
        min-height: 500px;
        width: 100%;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
}

@media (max-width: 767px) {
    #parallax {
        height: 500px;
        min-height: 500px;
        position: relative;
        overflow: hidden;
    }
    .parallax-image {
        background-image: url('/images/default.png');
        min-height: 500px;
        width: 100%;
        background-attachment: scroll;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: absolute;
        /*position: relative;*/
        top: 0;
        left: 0;
        z-index: 1;
    }

    #buttonContainer {
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 5px;
    }
}

.parallax-text {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 1rem;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

#routeGreetings {
    margin-top: 1rem;
    padding: 2rem 1rem;
    text-align: center;
    font-family: Quicksand, Arial;
    font-size: 1rem;
    color: #e1306c;
}

#description1 {
    margin-top: 1rem;
    padding: 2rem 1rem;
    text-align: justify;
    font-family: Quicksand, Arial;
    font-size: 1rem;
    color: #777777;
}
#description2 {
    margin-top: 1rem;
    padding: 2rem 1rem;
    text-align: justify;
    font-family: Quicksand, Arial;
    font-size: 1rem;
    color: #777777;
}

#footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    background-color: #f5f5f5;
    text-align: center;
    border-top: 1px solid #ddd;
}

#footerSocial {
    margin-bottom: 1rem;
}
#footerInstagramButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    color: #e1306c;
    border-radius: 8px;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
#footerInstagramButton:hover {
    background-color: #e1306c;
    color: white;
    opacity: 1;
}

#footerLinks {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
}
#footerLinks a {
    color: #e91e63;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: Quicksand, Arial;
    font-size: 1rem;
}
#footerLinks a:hover {
    /* color: #333; */
    font-weight: bold;
}

#footerCopyright {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: Quicksand, Arial;
    font-size: 0.85rem;
    /* color: #666; */
    color: #333;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 100vh;
  overflow-y: auto;
  background: white;
  color: #333;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cookie-banner h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
  color: #e91e63;
}

.cookie-banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 85%;
  width: 100%;
  flex-wrap: wrap;
  margin: 0 auto;
}

.cookie-banner-left, .cookie-banner-right {
  flex: 1;
}
.cookie-banner-left {
  text-align: justify;
  min-width: 65%;
}
.cookie-banner-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 10px;
}

.cookie-banner-right button {
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
}

.cookie-banner button.default {
    font-size: 1.2rem;
    border-color: #b3b3b3;
    border-style: solid;
    color: #b3b3b3;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cookie-banner button.default:hover {
    color: white;
    background-color: #cccccc;
}
.cookie-banner button.preference {
    font-size: 1.2rem;
    border-color: #e91e63;
    border-style: solid;
    color: #e91e63;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cookie-banner button.preference:hover {
    color: white;
    background-color: #e91e63;
}

.cookie-close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  /* color: #b3b3b3; */
  color: black;
  z-index: 10000;
}
.cookie-close-button:hover {
  font-weight: bold;
  color: #e91e63;
}

#cookieOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
}

#topBanner {
    display: none; /* live: flex */
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(255, 250, 230, 0.8), rgba(255, 240, 200, 0.9));
    color: #222;
    padding: 1.25rem 4rem 1.25rem 2rem;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.0rem;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.banner-text {
    display: block;
}

.banner-text-bold {
    font-weight: bold;
}
