/* CSS Variablen */
:root {
    --primary-color: #1A2C3F; /* Dunkelblau */
    --primary-color-light: #324b69; /* Helleres Dunkelblau für Hover */
    --secondary-color: #FCFCFC; /* Weiß */
    --secondary-color-dark: #1A2C3F; /* Dunkelblau */
    --background-color: #121212; /* Dunkler Hintergrund */
    --text-color: #E0E0E0; /* Helles Grau für Text */
    --nav-bg-color: #1F1F1F;  /* Dunkler Hintergrund der Nav-Leiste */
    --box-shadow-color: rgba(0, 0, 0, 0.5);
    --box-shadow-color-header: rgba(0, 0, 0, 0.7);
    --border-radius: 25px;
    --transition-time: 0.3s;
    --font-family-headings: 'Raleway', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;
}

/* Grundlegende Stile (inkl. Reset und box-sizing) */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-family-body);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Font-Smoothing */
    -moz-osx-font-smoothing: grayscale; /* Font-Smoothing */
    line-height: 1.6; /* Verbesserte Lesbarkeit */
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%); /* Verlauf */
    padding: 60px 20px 40px;
    color: var(--secondary-color);
    box-shadow: 0px 4px 10px var(--box-shadow-color-header);
    border-radius: 0 0 30px 30px;
}

header h1 {
    font-family: var(--font-family-headings);
    font-size: 3.5em;
    margin-bottom: 10px;
    transition: opacity var(--transition-time) ease;
}

header p {
    font-size: 1.2em;
    font-weight: 600;
    transition: opacity var(--transition-time) ease;
}

/* Header-Texte ausblenden wenn Menü aktiv */
header.menu-active h1,
header.menu-active p {
    opacity: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

navig {
    width: 100%;
}

/* Navigation */
nav {
    margin: 30px auto;
    width: auto;
    display: inline-block; /* Wichtig, damit die Breite sich dem Inhalt anpasst */
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background: var(--nav-bg-color); /* ✅ wieder hierhin */
    border-radius: var(--border-radius);
    box-shadow: 0px 2px 5px var(--box-shadow-color); /* optional für die Kante */
}


nav ul li {
    padding: 0; /* Kein Padding hier, alles ins <a> */
}

nav ul li a {
    display: block;              /* macht das <a> zum Block */
    padding: 15px 30px;          /* sorgt für Klickfläche */
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color var(--transition-time) ease, background-color var(--transition-time) ease;
    border-radius: var(--border-radius);
}

nav ul li a:hover {
    color: var(--primary-color-light);
    background-color: rgba(255, 255, 255, 0.05); /* Optional Hover-Hintergrund */
}

/* Hamburger-Menü (mobile) */
.menu-toggle {
    display: none; /* Standardmäßig versteckt */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute; /* Absolut positionieren */
    top: 20px;      /* Oben (anpassen) */
    left: 20px;      /* Links (anpassen) */
    z-index: 1000;   /* Über allem anderen */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color); /* Sichtbar auf dem dunklen Header */
    margin: 5px auto;
    transition: transform var(--transition-time) ease, opacity var(--transition-time) ease; /* Animation */
}

/* Animation des Hamburger-Icons */
.menu-toggle.open .hamburger-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .hamburger-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation (geöffnet) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Button anzeigen */
    }

    nav ul {
        display: none; /* Standardmäßig verstecken */
        flex-direction: column; /* Untereinander anordnen */
        width: 100%;
        position: absolute; /* Absolute Positionierung */
        top: 85px; /* Unter dem Header */
        left: 0;
        background-color: rgba(26, 44, 63, 0.95); /* Dunkelblau mit etwas Transparenz */
        border-radius: 0;  /*Keine runden Ecken*/
    }

    nav ul.open {
        display: flex; /* Anzeigen, wenn die Klasse 'open' vorhanden ist */
         z-index: 999; /*hoher Wert, damit über anderem Inhalt.*/

    }

    nav ul li {
        padding: 15px;
        text-align: center; /* Zentrieren */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Leichte Trennlinie */
    }
    nav ul li:last-child{
      border: none; /*letztes Element keine Border*/
    }

      nav ul li a{
        color: white; /*Schriftfarbe weiß, da auf dunkelblauem Grund*/
    }
}

/* Hauptbereich */
main {
    padding-top: 30px;
}

/* Willkommensbereich */
.welcome {
    padding: 40px 20px;
    background-color: #1F1F1F; /* Dunkler Hintergrund */
    border-radius: 20px;
    box-shadow: 0px 4px 8px var(--box-shadow-color);
}

.welcome h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-family: var(--font-family-headings);
}

.welcome p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Button-Stil */
.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #fff; /* Weiße Schrift, da auf Dunkelblau */
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color var(--transition-time) ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase; /* Optional: Großbuchstaben */
}

.button:hover {
    background-color: var(--primary-color-light);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg,  var(--primary-color-light) 0%,var(--primary-color) 100%); /* Verlauf */
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

/* Keyframes für Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.ds-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background-color: #1F1F1F;
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    display: none;
    z-index: 1000;
}

.ds-popup h2 {
    margin-top: 0;
}

.close-popup {
    background: #444;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
}

.ds-link {
    color: #00BFFF;
    text-decoration: underline;
    cursor: pointer;
}

footer a[href^="mailto:"],
.ds-popup a[href^="mailto:"] {
    color: #00BFFF; /* Hellblau auf dunklem Hintergrund */
    font-weight: bold;
    text-decoration: underline;
}

section.welcome + section.welcome {
    margin-top: 40px;
}

.gallery-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.4);
}

.file-input {
    display: block;
    padding: 10px 16px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.file-input:hover {
    border-color: #aaa;
    background-color: #f0f0f0;
}

.styled-file {
    display: inline-block;
    padding: 12px 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.styled-file:hover {
    background-color: #2a2a2a;
    border-color: #555;
}

.upload-label {
    display: inline-block;
    padding: 12px 18px;
    background-color: #1a1a1a;
    color: white;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, border 0.3s;
    margin-bottom: 10px;
    text-align: center;
}

.upload-label:hover {
    background-color: #2a2a2a;
    border-color: #666;
}

.file-label-text {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}



/* Responsivität (kleinere Bildschirme, falls noch Anpassungen nötig sind) */
@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
    .welcome h2{
      font-size: 1.8em;
    }
    .menu-toggle { /*Position des Menu-Buttons auf sehr kleinen Bildschirmen anpassen*/
      top: 15px;
      left: 15px;
    }
    nav ul{
      top: 75px; /*Anpassen, damit es unter den Header passt*/
    }
}