body {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    margin: 0;
    background-color: #f0f0f0;
    background-image: url(/45-degree-fabric-light.png);
    font-family: "Roboto", sans-serif;
    font-style: normal;
    max-width: 100%;
    height: 100dvh;
    color: #212121;
    overflow: hidden;
}


h1, p {
    text-align: center;
    width: 100%;
}
h1 {
    font-size: 100px;
    margin: 0;
}

#title {
    margin-bottom: 4px;
}
#currentDate {
    margin-top: 4px;
    margin-bottom: 120px;
}


.button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
     color: #fff;
    background: rgba(0, 0, 0, 0.9); /* Semi-transparenter Hintergrund */
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px); /* Glaseffekt */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

/* Körnungseffekt für die Buttons */
.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: url('45-degree-fabric-light.png') repeat;
    opacity: 0.2;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Hover-Effekt für die Buttons */
.button:hover {
    background: rgba(0, 0, 0, 0.7); /* Etwas weniger transparent bei Hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05); /* Vergrößert den Button leicht */
}

/* Aktiver Effekt für die Buttons */
.button:active {
    background: rgba(0, 0, 0, 0.3); /* Noch weniger transparent bei Aktiv */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(0.98); /* Verkleinert den Button leicht beim Drücken */
}

.button-image {
    padding-left: 90px;
}

.button-image > img {
    width:70px; 
    height:auto; 
    left: 0;
    top: 0; 
    position: absolute;
}

/* Container für das fixierte Div und den Toggle-Button */
.nav_container {
    position: relative;
}

/* Styling für das fixierte Div */
.fixed {
    position: fixed;
    bottom: 0;
    left:0;
    right: 0;
    gap:8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-items: baseline;
    padding: 8px 50px 8px 40px;
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%); /* Startposition: ausgeblendet */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1), transparent);
    backdrop-filter: blur(2px);
}


/* Styling für den Toggle-Button */
.toggle-button {
    position: fixed;
    bottom: 0;
    right: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px 10px 0 0 ;
    padding: 8px 8px 4px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    transition: background-color 0.3s;
}

.toggle-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Beispielbreite, anpassen nach Bedarf */
    box-sizing: border-box;
    overflow: hidden;
}

/* Text Styling */
.text-content {
    font-size: calc(4px + 10vw); /* Dynamische Schriftgröße basierend auf der Viewport-Breite */
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logo {
    width:30px;
    height: auto;
    position: fixed;
    top:8px;
    left:8px;
}

.weather_container {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

.weather {
    align-self: flex-start;
    position: relative;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 8px 0 0;
    box-shadow: 2px 2px 5px 0 #00000011;
}

.weather_upper {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.location {
    width: 100%;
    text-align: left;
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}


.alert_container  {
    align-self: center;
    position: relative;
    transition: all .3s ease;
    overflow: hidden;
    margin: 12px 12px 4px 4px;
    height: 0px;
}
.alert_description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-wrap: wrap;
}
.alert {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    max-width: 500px;
}

.alert_title {
    font-weight: 500;
}

.alert_description_text, .alert_description_instruction {
    font-size: 12px;
    margin-top: 8px;
}

#degree {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}
.duration {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.weather_text {
    display:flex;
    flex-direction: column;
}

#alerts, #state {
    font-size: 12px;
    font-weight: 500;
    color: #444;
}

/* Minimalistischer Jahres-Progressbar */
.year-progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 28px;
    z-index: 2000;
    background: transparent;
    pointer-events: auto;
    transition: height 0.4s cubic-bezier(.4,1.4,.6,1);
    box-sizing: border-box;
    padding-bottom: 20px;
}
.year-progress-bar-container:hover {
    height: 68px;
}
.year-progress-bar-bg,
.year-progress-bar,
.year-progress-bar-months,
.year-progress-bar-month-marker {
    transition: height 0.4s cubic-bezier(.4,1.4,.6,1);
    height: calc(100% - 20px);
}
/*.year-progress-bar-container:hover .year-progress-bar-bg,
.year-progress-bar-container:hover .year-progress-bar,
.year-progress-bar-container:hover .year-progress-bar-months,
.year-progress-bar-container:hover .year-progress-bar-month-marker {
    height: 30px;
}*/
.year-progress-bar-bg {
    width: 100%;
    background: rgba(0,0,0,0.07);
    border-radius: 0 0 4px 4px;
    position: absolute;
    top: 0; left: 0;
}
.year-progress-bar {
    background: linear-gradient(90deg, #4caf50 0%, #2196f3 100%);
    position: absolute;
    top: 0; left: 0;
    transition: width 0.7s cubic-bezier(.4,1.4,.6,1);
    pointer-events: none;
}
.year-progress-bar-months {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    pointer-events: none;
}
.year-progress-bar-month-marker {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(0,0,0,0.18);
    opacity: 0.5;
}
.year-progress-bar-label {
    position: fixed;
    top: 12px;
    left: 0;
    background: rgba(30,30,30,0.97);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 2100;
    max-width: 90vw;
    text-overflow: ellipsis;
    overflow: hidden;
}