body {
    font-family: Arial, sans-serif;
    background-color: #474747;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-inline: 1vw;
}
h1 {
    color: #ffffff;
}
header{
    background-color: #000000;
    color: #ffffff;
    border-radius: 5px;
    margin-bottom: 1vh;
    padding: 10px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: row;
    height: 15vh;
    align-items: center;
    box-sizing: border-box;
}
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #fec425;
    display: none;
    overflow: hidden;
    animation: loading 3s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}
.logo-container{
    max-height: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.logo-container h2{
    margin: 0;
    text-align: left;
    font-size: xx-large;
    font-weight: 900;
}
.logo-container h3{
    margin: 0;
    text-align: left;
    font-size: small;
    font-weight: 700;
}
.logo-container img{
    max-width: 80px;
    max-height: 80px;
    margin: 10px;
}
.search-container{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-left: 20vw; /* TODO */
}
.form-container{
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}
.form-container .form{
    height: 100%;
    min-width: 30vw;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.form-container .form .button-container{
    height: 100%;
    display: flex;
    flex-direction: row;
}
.form-container .form input{
    height: 100%;

    margin-right: 10px;
    border-radius: 5px;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
}
.form-container .form button{
    height: 100%;
    aspect-ratio: 1;
    background-color: #ffffff;
    border-radius: 5px;
    border: none;
    padding: 5px;
}
.form-container img{
    width: 25px;
    height: 25px;
}
.form-container .mobility-mode{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 10px;
}
.form-container .mobility-mode select{
    height: 100%;
    background-color: #ffffff;
    border-radius: 5px;
    border: none;
    padding: 5px;
    font-weight: 700;
}
.options-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.options-container .option{
    padding-inline: 3px;
    margin-inline: 2px;
    margin-bottom: 5px;
    background-color: #ffffff;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
}
.options-container .option:hover{
    background-color: #dadada;
}
.options-container .option a{
    color: #000000;
    text-decoration: none;
}



main {
    background-color: #000000;
    color: #ffffff;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    position: relative;
    height: 84vh;
}
main #weather-status{
    min-width: 10vw;
    position: absolute;
    top: 0;
    right: 10px;
    padding-right: 5px;
    background-color: #ffffffb0;
    color: #000;
    letter-spacing: 1px;
    border-radius: 0 0 5px 5px;
    box-shadow: 2px 2px 10px rgb(0, 0, 0);
    cursor: pointer;
    font-size: large;
    font-weight: 700;
}
#short-weather{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-right: 10%;
}
#short-weather > div{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 5px;
}

#short-weather img{
    background: radial-gradient(circle, rgb(197, 197, 197) 0%, rgb(167, 167, 167) 40%, rgba(255, 255, 255, 0) 75%);
}

#expanded-weather {
    text-align: center;
    padding-inline: 20px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
}

#feels-like{
    font-size: small;
    font-weight: 500;
    margin-bottom: 20px;
}

#expanded-weather .sunset-sunrise{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: small;
    font-weight: 800;
}
#expanded-weather .sunset-sunrise img{
    align-self: center;
    width: 40px;
    height: 40px;
}
#expanded-weather .sunrise{
    display: flex;
    flex-direction: column;
    margin-right: 50px;
}
#expanded-weather .sunset{
    display: flex;
    flex-direction: column;
}

#expanded-weather .weather-table{
    font-size: xx-small;
    margin-top: 20px;
}

#expanded-weather th {
    background-color: #ececec;
    display: none;
}

#expanded-weather td, #expanded-weather th {
    padding: 10px;
    border-top: 1px solid #777777;
}

#expanded-weather td:nth-child(2n), #expanded-weather th:nth-child(2n) {
    border-left: 1px solid #777777;
}

main #weather-status img{
    max-width: 50px;
}
main #map-container{
    width: 70%;
}
main #map-container > div{
    height: 100%;
}
main #map-container > div > div{
    height: 100% !important;
    padding: 0 !important;
}
main #left{
    border-radius: 5px;
    width: 30%;
    max-height: 90vh;
    padding: 1%;
    overflow-y: auto;
}
main #left h2{
    font-size: xx-large;
    font-weight: 700;
    margin-bottom: 20px;
}

.chatbot-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fec425;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Stellt sicher, dass es über allem liegt */
}

.chatbot-bubble img {
    width: 40px; /* Größe des Icons anpassen */
    height: 40px;
}


/* Chat-Fenster */
.chat-window {
    position: fixed;
    bottom: 80px; /* Platziert es über der Bubble */
    right: 20px;
    min-width: 10vw;
    max-width: 25vw;
    margin-bottom: 10px;
    margin-right: 10px;
    height: 65vh;
    border: 1px solid #ccc;
    border-radius: 20px 20px 0 20px;

    background-color: #ffffff;
    display: none; /* Anfangs versteckt */
    flex-direction: column;
    z-index: 1000;
    box-shadow: 5px 5px 5px rgb(99, 99, 99);
}

.chat-header {
    border-radius: 20px 20px 0 0;
    background-color: #000000;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: x-large;
    position: relative; /* Für die Positionierung des Close-Buttons */
}

.close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}


.chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: scroll; /* Fügt eine Scrollbar hinzu, wenn der Inhalt zu lang ist */
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #000000;
    display: flex;
    flex-direction: row;
}

.chat-input input[type="text"] {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    max-width: 80%;
    font-weight: bold;
    font-size: small;
}

.chat-input button {
    padding: 5px 10px;
    background-color: #FEC425;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
    width: 20%;
}

.chat-input button img {
    max-width: 20px;
    max-height: 20px;
}

/* Nachrichten (Beispiel-Styling) */
.message {
    width: fit-content;
    padding: 10px;
    text-align: left;
    border: 1px solid #000000;
    max-width: 80%;
    font-weight: bold;
    font-size: medium;
    margin-bottom: 20px;
    box-shadow: 5px 5px 5px rgb(99, 99, 99);
}
.message p {
    margin: 0;
    word-wrap: break-word; /* Lange Wörter umbrechen */
    overflow-wrap: break-word; /* Alternative Schreibweise für neuere Browser */
    white-space: normal; /* Standardmäßige Zeilenumbrüche aktivieren */
}

.user-message {
    border-radius: 15px 10px 0 15px;
    background-color: #000000;
    color: white;
    margin-left: auto;
}

.bot-message {
    border-radius: 15px 10px 15px 0;
    background-color: #ffffff;
    margin-right: 10px;
}


@media only screen and (max-width: 1000px) {

    header{
        background-color: #000000;
        color: #ffffff;
        border-radius: 5px;
        margin-bottom: 1vh;
        padding: 10px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        height: fit-content;
        align-items: center;
    }
    .search-container{
        min-height: fit-content;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        margin-left: 0;
    }
    .form-container{
        height: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }
    .form-container .form{
        min-height: fit-content;
        min-width: 30vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .form-container .form input{
        height: 100%;
        margin-bottom: 10px;
        margin-right: 0;
        border-radius: 5px;
        border: none;
        text-transform: uppercase;
        font-weight: 700;
    }
    .form-container .mobility-mode{
        height: unset;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: 10px;
    }

    .chat-window {
        min-width: 30vw;
        max-width: 40vw;
    }
    .chat-input {
        padding: 10px;
        border-top: 1px solid #ccc;
        display: flex;
        flex-direction: column;
    }

    .chat-input input[type="text"] {
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 3px;
        max-width: 100%;
    }
    
    .chat-input button {
        padding: 5px 10px;
        background-color: #FEC425;
        color: white;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        margin-top: 5px;
        margin-left: 0;
        width: 100%;
    }

    .message {
        width: fit-content;
        padding: 10px;
        text-align: left;
        border: 1px solid #000000;
        max-width: 100%;
        font-weight: 600;
        font-size: medium;
        margin-bottom: 20px;
        box-shadow: 5px 5px 5px rgb(99, 99, 99);
    }
}








.card {
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 10px rgb(255, 255, 255);
    overflow: hidden;
    background-color: #ffffff;
    color: #fff;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #000000;
    border-radius: 8px 8px 0 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.card-title {
    flex-grow: 1;
}

.card-title a {
    font-size: 18px;
    font-weight: bold;
    color: #FEC425;
    text-decoration: none;
}

.card-title a:hover {
    text-decoration: underline;
}

.favicon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
}

.card-body {
    display: flex;
    flex-direction: row;
    padding: 15px;
}

.snippet {
    font-size: 14px;
    color: #000000;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    color: #000000;
    background-color: #FEC425;
    border: none;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: #c99f2c;
    color: #000000;
}

.card-footer {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #000000;
    font-size: 12px;
    color: #FEC425;
}

.link {
    font-size: 12px;
    color: #000000;
}
