@charset "utf-8";

html {
    max-width: 100%;
    background-image: linear-gradient(90deg, #22d3ee8c, #f97316, #22d3ee);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', 'monospace';
    
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: rgb(12, 12, 104);
    color: rgb(255, 255, 255);
    border-bottom: rgb(255, 208, 1) solid 0.5em;
} 

.h1 {
    margin: 0em;
    padding: 0em;
    font-weight: bold;
    text-align: center;
    color: rgb(255, 208, 1);
}

h2 {
    scroll-margin-top: 150px;
    margin-top: 3em;
    margin-bottom: 1em;
    padding: 0em;
    font-weight: bold;
    text-align: center;
    
}

.flex-cont {
    display: flex;
    justify-content: space-between; /* Elemente auf Desktop nebeneinander */
    align-items: flex-start;
    /*background-color: black;*/
}

nav {
    justify-content: center;
    font:bold;
    margin-bottom: 0.5%;
    
}


body {
    margin: 0;
    padding: 0;
    color: rgb(255, 255, 255);
   
}

main {
    margin-top: 180px; /* Platz für den fixierten Header auf Desktop */
}


a {
    color:rgb(255, 208, 1);
    font-weight: bold;
    text-decoration: none;
    background-color: rgba(153, 153, 153, 0.548);
    border-radius: 45%;   
}


img {
    
    margin: 0em;
    padding: auto;
    width: 75%;
    border-radius: 25%;
        
}


figure {
    margin: 0;
    padding: 0;
    text-align: center;
    flex: 1; /* Nimmt auf Desktop gleichmäßig Platz ein */
    max-width: 30%; /* Damit das Bild auf Desktop nicht zu riesig wird */
}

figcaption {
    margin-top: 0em;
    margin-bottom: 0em;
    font-style: italic;
}



.p1, .p2 {
    padding: 0.5em;
    margin: 1em;
    flex: 1; /* Textboxen teilen sich den Platz auf Desktop */
    box-sizing: border-box;
    background-color: rgba(130, 251, 255, 0.342);
    border-radius: 1em;
}

hr {
    border:none;
    height: 5px;
    margin-top: 10px;
    margin-bottom: 1px;
}


.dropdown {
    position: absolute;
    display: none;
}
    


li:hover .dropdown {
        display: block;
}

.haupt-nav {
    margin-right: 20%;
    margin-top: 1%;
    font-size: larger;
    font-weight: bold;
    color: red
}


footer {
    max-width: 100%;
    padding-top: 2%;
    padding-bottom: 2%;
    text-align: center;
    background-color: rgb(12, 12, 104);
    border-top: rgb(255, 208, 1) solid 0.25em;
   }

   /* Ab hier fängt die Arbeit mit Gemini Assistent */

/* Schritt 1: Layout des Containers */
.button-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

/* Schritt 2: Grundform des Buttons */
.nav-btn, footer a {
    /* Bestehende Stile zurücksetzen/anpassen */
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    
    /* Ecken weniger extrem als die 45% im Standard-CSS */
    border-radius: 8px; 
    
    /* Farben passend zu deinem Header-Design */
    background-color: rgb(12, 12, 104);
    color: rgb(255, 208, 1);
    border: 2px solid rgb(255, 208, 1);
    
    /* Sanfter Übergang für spätere Effekte */
    transition: all 0.3s ease;
}

/* Hamburger Button - Standardmäßig unsichtbar */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: rgb(255, 208, 1);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}

/* Schritt 3: Interaktion (Hover) */
.nav-btn:hover, footer a:hover {
    /* Farben invertieren beim Drüberfahren */
    background-color: rgb(255, 208, 1);
    color: rgb(12, 12, 104);
    transform: scale(1.05); /* Leichtes Vergrößern */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Schritt 4: Klick-Effekt */
.nav-btn:active, footer a:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* Schritt 5: Responsive Design für Smartphones */
@media screen and (max-width: 600px) {
    header {
        position: static; /* Header scrollt auf dem Handy mit (besserer Platznutzung) */
        border-bottom-width: 0.3em;
    }
    
    .hamburger {
        display: block; /* Auf Handy anzeigen */
        margin: 0 auto;
    }

    main {
        margin-top: 20px; /* Kein großer Abstand nötig, wenn Header nicht fixiert */
    }

    header nav {
        display: none; /* Navigation auf Handy standardmäßig ausblenden */
        flex-direction: column;
    }

    header nav.active {
        display: flex; /* Anzeigen, wenn aktiv */
    }

    .flex-cont {
        flex-direction: column; /* Hier passiert die Stapelung: p1 -> Bild -> p2 */
        align-items: stretch;
    }

    .p1, .p2 {
        /* Riesige Margins von 2.5em auf Handys reduzieren, damit mehr Textplatz bleibt */
        margin: 1em;
        width: auto;
    }

    figure {
        max-width: 100%; /* Bild nutzt volle Breite auf dem Smartphone */
        margin: 10px 0;
    }

    .button-navigation, footer {
        /* Buttons untereinander stapeln für bessere Bedienbarkeit mit dem Daumen */
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .nav-btn, footer a {
        text-align: center;
        margin: 5px 0;
    }
}

/* Modal Styles für das Impressum Pop-up */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed; /* Bleibt an Ort und Stelle */
    z-index: 1000; /* Über allen anderen Elementen */
    left: 0;
    top: 0;
    width: 100%; /* Volle Breite */
    height: 100%; /* Volle Höhe */
    overflow: auto; /* Scrollbar, falls Inhalt zu groß */
    background-color: rgba(0,0,0,0.7); /* Schwarzer Hintergrund mit Transparenz */
    align-items: center; /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
}

.modal-content {
    background-color: rgb(12, 12, 104); /* Dunkelblau, passend zum Header/Footer */
    color: rgb(255, 255, 255); /* Weiße Schrift */
    margin: auto; /* Zentriert */
    padding: 20px;
    border: 1px solid rgb(255, 208, 1); /* Gelber Rahmen */
    width: 80%; /* Breite des Modals */
    max-width: 500px; /* Maximale Breite für bessere Lesbarkeit */
    border-radius: 10px;
    position: relative; /* Wichtig für die Positionierung des Schließen-Buttons */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Schatten für Tiefe */
}

.modal-content h1 {
    font-size: 2em; /* Größere Schrift für die H1 im Modal */
    color: rgb(255, 208, 1); /* Gelbe Farbe für die H1 */
    margin-top: 0;
    margin-bottom: 0.5em;
    text-align: center;
}

.modal-content p {
    font-size: 1em; /* Normale Schriftgröße für Absätze */
    line-height: 1.5; /* Zeilenabstand für bessere Lesbarkeit */
    margin-bottom: 0.5em;
}

.close-button {
    color: rgb(255, 208, 1); /* Gelbe Farbe für den Schließen-Button */
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease; /* Sanfter Farbwechsel beim Hover */
}

.close-button:hover,
.close-button:focus {
    color: white; /* Weiße Farbe beim Hover/Fokus */
    text-decoration: none;
    cursor: pointer;
}

/* Spezifische Stile für Links innerhalb des Modals */
.modal-content a {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    color: rgb(255, 208, 1);
    text-decoration: underline;
}

.modal-content a:hover {
    color: white;
    transform: none;
    box-shadow: none;
}
   