h1 {
    font-size: 2em;
    font-family: Arial, sans-serif;
    color: #636cf1;
    text-align: center;
    margin-top: 20px;
    margin-bottom: -20px; /* Verkleinert den Abstand zur nächsten Zeile */
}

p {
    font-size: 1.0em;
    font-family: Arial, sans-serif;
    color: #636cf1;
    text-align: center;
    margin-top: 20px;
}

p#wunsch-abstand {
    margin-bottom: 500px; /* Wert nach Wunsch anpassen */
}

p.khl-abstand {
    margin-bottom: 500px; /* Wert nach Wunsch anpassen */
}

body {
    background-color: #001f4d;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.main-content {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    text-align: center;
    width: calc(100vw - 50px); /* 50px ist die schmale Menübreite */
    max-width: 900px;          /* Optional: maximale Breite */
}

.main-content p:first-of-type {
    margin-top: 70px; /* Passe den Wert nach Wunsch an */
}

@media (hover: hover) {
    .seiten-menu:hover ~ .main-content,
    .seiten-menu:hover + .main-content {
        width: calc(100vw - 180px); /* 180px ist die breite Menübreite */
    }
}

hr {
    border: none;
    border-top: 1cm solid #a70606;
    width: 100%;
    margin: 40px 0 20px 0; /* Erhöhe den ersten Wert für mehr Abstand nach oben */
}

.seiten-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: #222a44;
    /* padding-top: 40px;  // Entferne oder setze auf 0 */
    transition: width 0.3s;
    overflow-x: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.seiten-menu:hover {
    width: 180px;
}

.seiten-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seiten-menu li {
    margin: 20px 0;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.seiten-menu:hover li {
    opacity: 1;
}

.seiten-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    display: block;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.menu-icon {
    width: 30px;
    height: 30px;
    margin-top: 80px; /* Passe diesen Wert an, bis die Striche auf Höhe des Balkens sind */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-icon span {
    display: block;
    width: 24px;
    height: 4px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: background 0.3s;
}

/* Hamburger nur im schmalen Zustand zeigen */
.seiten-menu .menu-icon {
    opacity: 1;
    transition: opacity 0.3s;
}
.seiten-menu:hover .menu-icon {
    opacity: 0;
}
.seiten-menu li {
    opacity: 0;
    transition: opacity 0.3s;
}
.seiten-menu:hover li {
    opacity: 1;
}

.quadrat-container {
    display: flex;
    gap: 40px; /* Erhöhe diesen Wert für mehr Abstand zwischen den Quadraten */
    margin-top: 60px;
    justify-content: center;
}

.quadrat-container span {
    margin-bottom: 24px !important; /* Erhöhe diesen Wert für mehr Abstand zwischen Titel und Quadrat */
}

.quadrat {
    width: 140px;
    height: 140px;
    background: #3498db;
    border-radius: 8px;
    border: 2px solid #2980b9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.quadrat:hover {
    transform: scale(1.25);
    z-index: 1;
}

.quadrat.google-link {
    background: #fff;
    border: 2px solid #4285F4;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.quadrat.google-link:hover {
    box-shadow: 0 0 8px #4285F4;
}

.quadrat.google-link svg {
    width: 64px;
    height: 64px;
    display: block;
}

.quadrat.maps-link {
    background: #fff;
    border: 2px solid #34A853;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.quadrat.maps-link:hover {
    box-shadow: 0 0 8px #34A853;
}

.quadrat.maps-link svg {
    width: 64px;
    height: 64px;
    display: block;
}

.weather-link {
    background: #fffde7;
    border: 2px solid #FFD600;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.weather-link:hover {
    box-shadow: 0 0 8px #FFD600;
}
.weather-link svg {
    width: 64px;
    height: 64px;
    display: block;
}

.quadrat-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: #636cf1;
    border-radius: 10px;
    text-align: center;
    /* font-size und font-family entfernen! */
}

.sub-quadrat {
    width: 140px;
    height: 80px;
    background: #ff9800;
    border-radius: 8px;
    border: 2px solid #e65100;
    margin-top: 12px; /* gleicher Wert für beide */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ort-eingabe {
    width: 110px;
    padding: 8px;
    border: 1px solid #bdbdbd;
    text-align: center; /* Text im Eingabefeld zentrieren */
}

.wetter-fenster {
    width: 340px;
    margin: 32px auto 24px auto;
    background: #e3f2fd;
    border: 2px solid #90caf9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
}

.khl-abstand {
    margin-bottom: 40px;
}

.animated-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 3cm;
    height: 1cm;
    background: #0b0a0a;
    border-radius: 8px 8px 0 0;
    z-index: 9999;
    animation:
        bar-grow-shrink 2.5s 10 alternate,
        bar-to-circle 2s 10s forwards,
        show-outer-circle 0.1s 12s forwards,
        pulse-circle 1s 12.1s 10 alternate;
}

.animated-bar.outer {
    box-shadow: 0 0 0 0.5cm #222a44;
    transition: box-shadow 0.5s;
}

@keyframes bar-grow-shrink {
    0%   { width: 3cm; }
    40%  { width: 20cm; }
    60%  { width: 20cm; }
    100% { width: 3cm; }
}

@keyframes bar-to-circle {
    0% {
        width: 3cm;
        height: 1cm;
        border-radius: 8px 8px 0 0;
        bottom: 0;
    }
    100% {
        width: 3cm;
        height: 3cm;
        border-radius: 50%;
        bottom: 1.5cm; /* Kreis bleibt 1.5cm über dem Rand */
    }
}

@keyframes show-outer-circle {
    0% { box-shadow: 0 0 0 0 #222a44; }
    100% { box-shadow: 0 0 0 0.5cm #222a44; }
}

@keyframes pulse-circle {
    0%   { box-shadow: 0 0 0 0.5cm #222a44; transform: translateX(-50%) scale(1);}
    50%  { box-shadow: 0 0 0 0.8cm #222a44; transform: translateX(-50%) scale(1.15);}
    100% { box-shadow: 0 0 0 0.5cm #222a44; transform: translateX(-50%) scale(1);}
}

/* Ergänze in styles.css: */
.kreis-rect {
    position: fixed;
    left: 50%;
    bottom: 1.5cm; /* gleiche Höhe wie Kreis-Mitte */
    width: 80px;
    height: 40px;
    background: #606dde;
    border-radius: 8px;
    border: 2px solid #e65100;
    z-index: 10001;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.6s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Sichtbar, wenn die Klasse "visible" gesetzt ist */
.kreis-rect.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Gleichmäßig um den Kreis verteilen (120° Abstand) */
#rect1 { transform: translate(-50%, 0) rotate(-60deg) translate(0, -120px) rotate(60deg);}
#rect2 { transform: translate(-50%, 0) rotate(0deg)  translate(0, -120px) rotate(0deg);}
#rect3 { transform: translate(-50%, 0) rotate(60deg) translate(0, -120px) rotate(120deg);}



