/* =========================================
   1. GRUNDLEGENDE EINSTELLUNGEN & ANIMATION
   ========================================= */
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }

html { background-color: #000 !important; margin: 0; padding: 0; }

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    color: white;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInPage 1.0s ease-in-out;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 3px 100%;
    z-index: -998;
    pointer-events: none;
}

/* =========================================
   2. HINTERGRUND-VIDEO
   ========================================= */
.bg-video {
    position: fixed;
    right: 0; bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -999;
    object-fit: cover;
    filter: brightness(35%);
}

/* =========================================
   3. NAVIGATION (PERFEKTE LINIE & HÖHE)
   ========================================= */
.header-navigation-row {
    display: flex; 
    flex-direction: row; 
    align-items: stretch; 
    justify-content: center; 
    gap: 0; 
    width: 100%;             /* Auf 100% gesetzt für die Starrheit */
    max-width: 1450px;
    margin: 20px auto;
    z-index: 100;
}

@keyframes boxGlow {
    0%, 100% { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
    50% { border-color: rgba(0, 212, 255, 0.8); box-shadow: 0 0 15px rgba(0, 123, 255, 0.4); }
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #ffffff;
    border-left: none;
    border-right: none;
    animation: boxGlow 4s ease-in-out infinite;
    flex: 0 1 auto;
    max-width: 1000px;
    border-radius: 0;
}

.nav-main {
    max-width: 1050px !important;
    padding: 12px 40px !important;
    border-radius: 12px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    justify-content: space-around;
}

.nav-resume { max-width: 650px !important; justify-content: space-evenly; }

.nav-link {
    color: #e0f7ff;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: 0.3s;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.nav-main .nav-link { margin: 0 25px; }
.nav-resume .nav-link { margin: 0 20px; }

.nav-link:hover {
    color: #00d4ff;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

/* =========================================
   4. CONTENT-BOXEN
   ========================================= */
@keyframes contentBoxGlow {
    0%, 100% { border-color: rgba(255, 255, 255, 0.3); }
    50% { border-color: rgba(0, 212, 255, 0.5); }
}

.job-block, .contact-card {
    background-color: rgba(20, 20, 20, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    width: 95%;
    max-width: 1000px;
    padding: 40px 50px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    margin-bottom: 30px;
    box-sizing: border-box;
    animation: contentBoxGlow 5s ease-in-out infinite;
    text-align: left;
}

/* Perfekt angepasst: Schließt exakt bündig an den Außenkanten der Buttons ab */
.anschreiben-box {
    background-color: rgba(20, 20, 20, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    width: 100%;               
    max-width: 580px;          /* Absolutes Limit der Button-Reihe */
    padding: 40px 50px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    margin: 0 auto 30px auto;  /* Zentriert die Box perfekt unter der Navigation */
    box-sizing: border-box;
    animation: contentBoxGlow 5s ease-in-out infinite;
    text-align: left;
}

summary {
    cursor: pointer;
    font-weight: 800;
    color: #00d4ff;
    margin-bottom: 15px; }

/* =========================================
   5. ÜBERSCHRIFTEN
   ========================================= */
@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 123, 255, 0.5); color: #ffffff; }
    50% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.9); color: #00d4ff; }
}

.content-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    animation: titleGlow 4s infinite;
    text-align: center;
    padding: 20px 0; }

/* Schriftwerte herabgesetzt für eine kompaktere, dezentere Darstellung */
.content-header-h2 {
    font-size: clamp(1.0rem, 1.8vw, 1.3rem); 
    text-transform: uppercase;
    animation: titleGlow 4s infinite;
    text-align: center;
    padding: 10px 0; 
    line-height: 1.6;                      /* Erhöht den Zeilenabstand für bessere Lesbarkeit */
}

/* =========================================
   8. FOTO (ZENTRIERT & VERGRÖSSERT)
   ========================================= */
.content-Foto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    text-align: center;
}

.content-Foto img {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease;
}

.content-Foto img:hover { transform: scale(1.05); }

.content-Foto p {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e0f7ff;
}

/* =========================================
   9. BUTTONS (DOCKING-STYLE)
   ========================================= */
.zurueck-button, .home-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    color: #e0f7ff;
    padding: 12px 30px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    min-width: 80px;
    transition: all 0.3s ease;
    animation: boxGlow 4s ease-in-out infinite;
}

.zurueck-button { border-radius: 12px 0 0 12px; }
.home-button { border-radius: 0 12px 12px 0; }

.zurueck-button:hover, .home-button:hover {
    background-color: rgba(0, 212, 255, 0.2);
    color: #ffffff;
}

.lateral-btn {
    position: relative !important; border-radius: 8px !important;
    padding: 20px !important; min-width: 60px !important;
    border: 1px solid white !important;
}

/* =========================================
   10. DOKUMENTE GRID (VERKLEINERT)
   ========================================= */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 900px;
}

.image-grid a {
    flex: 0 1 calc(40% - 20px);
    min-width: 250px;
    max-width: 350px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.image-grid img:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
}

/* =========================================
   11. ZERTIFIKATE (EINZELANSICHT ABSTÄNDE)
   ========================================= */
.content-center a img {
    margin-bottom: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.content-center a img:hover {
    transform: scale(1.02);
    border: 2px solid #00d4ff;
}

/* =========================================
   12. FOOTER (COPYRIGHT & IMPRESSUM)
   ========================================= */
footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-link {
    color: #00d4ff;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
}

.footer-link:hover {
    text-shadow: 0 0 10px #00d4ff;
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }