/* === FARBEN === */

:root {
    --lgbblau: #2e5dad;
    --weiss: white;
    --gathering-color: #1d91c5;
    --overall-color: #ec6163;
    --creative-color: #f39400;
    --swap-color: #a6529a;
    --street-color: #6ec6d9;
    --health-color: #66b32e;
    --shelter-color: #fcbf00;
}

/* === FONT-FACE === */

@font-face {
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/noto-sans-v36-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/noto-sans-v36-latin_latin-ext-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/noto-sans-v36-latin_latin-ext-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/noto-sans-v36-latin_latin-ext-500italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/noto-sans-v36-latin_latin-ext-700.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/noto-sans-v36-latin_latin-ext-700italic.woff2') format('woff2');
}

/* === GLOBAL === */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 45px;
    font-family: 'Noto Sans', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 400;
    font-style: normal;
}

section {
    padding-top: .5rem;
    padding-bottom: 0rem;
}

::-webkit-scrollbar {
    display: none;
}

html, body {
    overflow-x: hidden;
}

/* === GENERELLES === */

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

#intro-title {
    padding: 0;
}

.intro-container {
    width: 15%;
    margin-bottom: 1rem;
    padding: 0;
    border-bottom: 5px dotted var(--lgbblau);
}

.intro-container > h1 {
    margin-top: .5rem;
    margin-bottom: 0;
    width: 100%;
    text-align: right;
    color: var(--lgbblau);
    font-size: 1.6rem;
    text-transform: uppercase;
}

.intro-container > p {
    font-size: 1.2rem;
}

/* === NAVIGATION DESKTOP === */

#header-nav-desktop {
    width: 100%;
    height: 45px;
    background-color: var(--lgbblau);
    position: fixed;
    top: 0;
    z-index: 1000;
    font-size: 1rem;
    font-weight: 500;
}

#header-nav-desktop a > img {
    height: 35px;
    width: auto;
    margin: .25rem;
}

#header-nav-desktop ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    float: right;
    height: 100%;
}

#header-nav-desktop ul li {
    padding: 0 .5em .25em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .3s;
}

#header-nav-desktop ul > li {
    display: inline-block;
    height: 100%;
    padding: 0 .7rem 0 .7rem;
}

#header-nav-desktop ul > li > a {
    margin-top: .8rem;
    display: inline-block;
}

#header-nav-desktop ul > li > a:link {
    color: #FFF;
    text-decoration: none;
}

#header-nav-desktop ul > li > a:visited {
    color: #FFF;
    text-decoration: none;
}

#header-nav-desktop ul > li > a:hover {
    color: #fff;
    text-decoration: none;
}

#header-nav-desktop ul > li > a:active {
    color: #fff;
    text-decoration: none;
}

#header-nav-desktop ul li:hover {
    color: #fff;
}

#header-nav-desktop ul li:before {
    content: "";
    position: absolute;
    inset: calc(100% - 2px) 0 0 0;
    background: white;
    scale: 0 1;
    transition: .3s, translate 0s .3s;
}

#header-nav-desktop ul:hover li:before {
    scale: 1;
}

#header-nav-desktop ul li:hover:before {
    translate: 0;
    transition: .4s;
}

#header-nav-desktop ul:hover li:has(~ li:hover):before {
    translate: 100% 0;
    transition: .2s .2s, scale 0s .4s;
}

#header-nav-desktop ul:hover li:hover ~ li:before {
    translate: -100% 0;
    transition: .2s .2s, scale 0s .4s;
}

#header-nav-desktop .col-6 {
    padding-top: 0;
    padding-bottom: 0;
}

#header-nav-desktop .container,
#header-nav-desktop .row,
#header-nav-desktop .col-6 {
    height: 100%;
}

.logo-link {
    display: inline-block;
}

.header-title {
    display: inline-block;
    color: #FFFFFF;
    font-size: 1.2rem; 
    margin: 0; 
    transform: translateY(-45%); 
}

#lgb-logo-small {
    float: right;
    margin-left: .5rem;
}
/* === HEADER-BANNER === */

#header-banner {
    width: 100%;
    height: 0;
    padding-top: 13.7%;
    background: url(../img/header-banner_all.png) no-repeat;
    background-size: contain;
}

/* === MAP SECTION === */

#map {
    z-index: 1;
    position: relative;
    width: 80%;
    height: 85vh;
    margin: 0 auto;
    transition: width 0.5s ease; /* Übergangsanimation beim Ändern der Breite */
}

#map-bereich .col-6 {
    padding: 0;
}

/* Slider */

.map-width-button {
    font-family: 'Noto Sans', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 500;
    font-size: .8rem;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: var(--lgbblau);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 999;
    transition: background-color .5s ease, transform .5s ease;
    opacity: 0.7; 
}

.map-width-button:hover {
    font-family: 'Noto Sans', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 500;
    font-size: .8rem;
    background-color: white;
    color: var(--lgbblau);
}

/* Layer Switcher Styles */
.layer-switcher-container {
    position: absolute;
    bottom: 40px;
    left: 8px;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 999;
    width: 100px;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
}

.layer-switcher-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.layer-option {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.layer-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; 
}

/* Legende */

#type2-legend {
    position: absolute;
    bottom: 45px;
    right: 10px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    padding: 7.5px 0 7.5px 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#type2-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

#type2-legend li {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 74px;
    text-align: center;
}

#type2-legend li:last-child {
    margin-right: 1rem;
}

#type2-legend li span {
    display: block;
    font-size: .7rem;
    margin-top: 8px;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#type2-legend li.fade-out {
    opacity: 0.3;
}

/* Tooltip style */

.tooltip {
    position: absolute;
    width: auto; 
    max-width: 250px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
    font-size: 14px;
    display: none;
    z-index: 999;
    transform: translate(-50%, -120%);
}

/* Symbol hover effect */

.symbol {
    transition: transform 0.3s, z-index 0.3s;
    z-index: 1;
}

.symbol-hover {
    transform: scale(1.5);
    z-index: 10;
}

/* === POP-UPs === */

.ol-popup {
    position: absolute;
    z-index: 999;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    padding: 0;
    border-radius: 10px;
    right: 60px;
    top: 80px;
    width: 30%;
    max-height: 80%;
    overflow-y: auto;
    display: none;
    color: white;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 9px;
    color: white;
}

.ol-popup-closer:after {
    content: "✖";
}

.popup-inner {
    padding: 15px;
    border: 4px solid white;
    border-radius: 10px;
}

.popup-header {
    text-align: center;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.popup-header h2 {
    margin: 0;
    font-size: 24px;
}

.popup-body {
    padding: 10px;
}

.popup-body p {
    margin: 5px 0;
    word-wrap: break-word;
}

.popup-body strong {
    display: inline-block;
    width: 150px;
    margin-bottom: .25rem;
}

#popup-title {
    text-transform: uppercase;
}

#popup-description {
    margin-bottom: 1rem;
    hyphens: auto;
    text-align: justify;
    word-wrap: break-word;
}

.popup-body #popup-address {
    margin-bottom: .75rem;
}

.popup-body #popup-address,
.popup-body #popup-website {
    display: block;
    white-space: pre-wrap;
    padding-left: 2em;
    text-indent: -2em;
}

#popup-nr {
    font-weight: 500;
    margin: 0 0 5px 0;
}

.popup-icon {
    width: 35px;
    height: 35px;
    margin-right: 5px;
}

.popup-icon-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    word-wrap: break-word;
    hyphens: auto;
}

/* Tooltip arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.popup-icon-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#citymap {
    position: relative;
    text-align: center;
}

/* Overlay container */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
}

/* Overlay content */
.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
}

/* Close button */
.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Overlay button in citymap */
.overlay-button {
    margin-top: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--lgbblau);
    color: white;
    border: none;
    cursor: pointer;
}

.overlay-button:hover {
    background-color: var(--lgbblau);
}

/* === KATEGORIEN-Bereich === */

#kategorien-bereich {
    padding-bottom: 1rem;
}

#kategorien-big-box {
    color: #FFF;
    width: 80%;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--lgbblau);
    border-radius: 10px;
}

#kategorien-big-box h1 {
    color: #FFF;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

#kategorien-small-box {
    border: 1px solid var(--lgbblau);
    border-radius: 40px;
}

#kategorien-small-box h1 {
    color: var(--lgbblau);
    text-transform: uppercase;
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: .5rem;
}

#kategorien-layout {
    display: flex;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
}

#kategorien-layout li {
    list-style-type: none;
    padding-left: 0;
}

.layout-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.category-box {
    flex: 1;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--lgbblau);
    border-radius: 10px;
    background-color: var(--weiss);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-box h1 {
    color: var(--lgbblau);
    text-transform: uppercase;
    font-size: 1.3rem;
    margin: 0 0 10px;
    text-align: center;
}

.category-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: .4rem;
    line-height: 1.2; 
}

.category-number {
    display: inline-block;
    font-weight: 500;
    min-width: 1.5rem; 
    text-align: right;
    flex-shrink: 0;
    width: 2.5rem;
    margin-right: 0.5rem;
}

.category-name {
    flex: 1;
    word-wrap: break-word;
}

.first-column .category-item,
.second-column .category-item {
    flex-direction: row;
}

.first-column,
.second-column {
    flex: 1;
}

.second-column .category-name {
    text-align: right;
}

.second-column .category-number {
    padding-right: .8rem;

}

#overall-category .auflistung {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; 
}

#overall-category h1 {
    margin: 0; 
    align-self: center;      
    text-align: center;
    width: auto; 
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 33%;
}

.column:nth-child(2n) {
    margin-left: .8rem;
    margin-right: .8rem;
}

.column .category-box {
    flex: 1;
}

.auflistung {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}

#gathering-category .auflistung-small li {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

#shelter-category .auflistung-small li {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.auflistung li {
    padding: .2rem 0 .1rem 0;
    transition: transform 0.3s ease;
}

.auflistung li:hover {
    transform: scale(1.04);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.auflistung-small,
.auflistung-big {
    list-style-type: none;
    padding-left: 0;
    display: inline-table;
    text-align: left;
}

.auflistung-big {
    display: flex;
    flex-direction: column;
    width: auto;
}

.category-name {
    display: inline-block;
    vertical-align: top;
    text-align: left;
}

.overall-header {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    padding-left: 4rem;
    padding-right: 4rem;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.columns-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* === FOOTER === */

#footer {
    background-color: var(--lgbblau);
    color: white;
    height: 3rem;
    font-size: .9rem;
}

#footer-nav {
    display: inline;
    float: right;
    margin-right: .5rem;
}

#footer-nav a {
    text-decoration: none;
}

#footer-nav a:link {
    color: white;
}

#footer-nav a:visited {
    color: white;
}

#footer-nav a:active {
    color: white;
}

#footer-nav a:hover {
    color: #F0F0F0;
    text-shadow: 0 0 2px #fff;
}

/* === ÜBER UNS-SEITE === */

/* === Wir-Bereich === */

#wir-bereich .col-3 {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: center;
    height: 550px;
    justify-content: center;
    align-items: center;
    margin-bottom: .5rem;
}

#wir-bereich article {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    width: 80%;

}

#wir-bereich p {
    margin: 0 0 .5rem 0;
    font-weight: bold;
    color: var(--lgbblau);
}

#wir-img {
    margin: 10px auto;
    width: 700px;
    height: 525px;
    max-width: calc(100% - 60px);
    position: relative;
    border: 2px solid var(--lgbblau);
    background: url(../img/IMG_1910.jpg);
    background-size: 700px;
}

/* === Projekt-Bereich === */

#projekt-bereich .row {
    display: flex;
    justify-content: center;
    align-items: center; /* Vertikale Zentrierung */
    flex-wrap: wrap; /* Für responsives Verhalten */
}

#projekt-img {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto; /* Für horizontale Zentrierung */
}

#projekt-bereich img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    margin-right: 5rem;
}

/* === Ideen-Bereich === */

#idea-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: justify;
}

#idea-text article {
    width: 75%;
    margin-bottom: 1rem;
}

/* === IMPRESSUM === */
#impressum-bereich h2 {
    color: var(--lgbblau) ;
}

#impressum {
    width: 80%;
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* === GRID === */

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.row::after {
    content: "";
    clear: both;
    display: block;
}

[class*='col-'] {
    float: left;
    min-height: 1px;
    padding: .8rem;
}

.col-1 {
    width: 16.666%;
}

.col-2 {
    width: 33.333%;
}

.col-3 {
    width: 50%;
}

.col-4 {
    width: 66.666%;
}

.col-6 {
    width: 100%;
}
