* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base & Scrollbar */
html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Fix: Layout shift */
    scrollbar-width: thin; 
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent; 
}

::-webkit-scrollbar {
    width: 6px; 
}

::-webkit-scrollbar-track {
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15); 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3); 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #2b3a4a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sticky Footer */
}

/* Header & Navigation */
header {
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;
    padding: 30px 20px 25px;
    background-color: #232e3b;
    border-bottom: 1px solid #4a5a6b;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-text-stroke: 0.8px black; 
    letter-spacing: 1px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

nav a {
    display: inline-block;
    padding: 8px 18px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

nav a.aktiv {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    -webkit-text-stroke: 0.5px black;
}

/* Profile Image */
.profilbild-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px auto 15px auto;
    width: 100%;
}

main img, 
.profilbild {
    width: 180px;            
    height: 180px;           
    object-fit: cover;       /* Aspect ratio fix */
    border-radius: 50%;      
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 20px auto;       
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profilbild:hover {
    transform: scale(1.04);
    border-color: #ffffff;
}

/* Main Layout */
main {
    flex: 1;
    max-width: 900px;
    width: 90%;
    margin: 0 auto; 
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

section {
    width: 100%;
    margin-bottom: 30px;
}

main h1, main h2, main h3 {
    margin-bottom: 20px;
    text-align: center;
    -webkit-text-stroke: 0.5px black;
}

main p {
    margin-bottom: 15px;
    line-height: 1.7;
}

main a {
    color: #64b5f6;          
    text-decoration: none;
    font-weight: 500;
}

main a:hover {
    color: #ffffff;
    text-decoration: underline;
}

strong {
    display: inline;
}

/* Content Boxes */
.content-box {
    background-color: rgba(255, 255, 255, 0.03); 
    border-radius: 8px; 
    padding: 30px;
    margin: 25px auto;
    max-width: 800px; 
    text-align: left; /* Overrides main center */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    border-left: 4px solid #64b5f6; 
}

.content-box h2 {
    text-align: center; 
    color: #64b5f6; 
    margin-bottom: 25px;
}

.content-box > p {
    text-align: center;
}

/* Global Lists */
ul {
    list-style: none; 
    padding: 0;       
    margin: 15px 0;
}

ul li {
    margin-bottom: 8px;
    text-align: center;
}

/* Tables */
.tabellen-container {
    width: 100%;
    overflow-x: auto; 
    margin: 20px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    margin: 0 auto;
}

th, td {
    border: 1px solid #4a5a6b;
    padding: 12px;
    text-align: center;
}

th {
    background-color: #1f2833;
}

/* Contact Form */
form {
    width: 100%;
    max-width: 600px;
    margin: 20px auto; 
    text-align: left;  
}

fieldset {
    border: 1px solid #4a5a6b;
    border-radius: 8px;
    padding: 25px;
    background-color: #232e3b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1rem;
}

form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #e0e0e0;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #4a5a6b;
    border-radius: 4px;
    background-color: #1f2833;
    color: #ffffff;
    font-size: 0.95rem;
    box-sizing: border-box;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

form input[type="submit"],
form input[type="reset"],
form button {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background-color: #2b3a4a;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background-color: #3b4e63;
    border-color: #ffffff;
}

form input[type="reset"]:hover {
    background-color: #6b2b2b;
    border-color: #ff6b6b;
}

/* Timeline */
.timeline-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #64b5f6;
}

.zeitraum {
    font-weight: bold;
    color: #64b5f6;
    display: block;
    margin-bottom: 3px;
}

/* Project Lists & Buttons */
.projekt-liste {
    list-style: none;
    padding: 0;
}

.projekt-liste li {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

.projekt-liste li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.projekt-info {
    padding-right: 0;
    margin-bottom: 12px; 
}

.projekt-info strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.projekt-info p {
    margin: 0;
    color: #b0bec5;
    font-size: 0.95rem;
}

.btn-zertifikat {
    display: inline-block;
    padding: 8px 15px;
    background-color: #64b5f6;
    color: #121212;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    margin-top: 10px;
}

.btn-zertifikat:hover {
    background-color: #42a5f5;
    color: #000;
}

.status-badge {
    display: inline-block;
    background-color: #ffb300;
    color: #121212;
    padding: 8px 15px; 
    border-radius: 4px; 
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10px; 
}

/* Skills Section */
#faehigkeiten {
    text-align: left; 
    max-width: 800px;
    margin: 0 auto; 
    padding: 20px;
}

#faehigkeiten ul {
    list-style: none; 
    padding: 0;
}

#faehigkeiten > ul > li {
    margin-bottom: 35px; 
}

#faehigkeiten > ul > li > strong {
    display: block;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(100, 181, 246, 0.4); 
    padding-bottom: 5px;
}

#faehigkeiten > ul > li > ul {
    padding-left: 0;
}

#faehigkeiten > ul > li > ul > li {
    margin-bottom: 10px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.03); 
    border-left: 3px solid #64b5f6; 
    border-radius: 0 4px 4px 0; 
    color: #cfd8dc; 
    font-style: italic; 
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out; 
}

#faehigkeiten > ul > li > ul > li:hover {
    background-color: rgba(100, 181, 246, 0.1); 
    color: #ffffff; 
    border-left-color: #ffb300; 
    transform: translateX(4px); 
    cursor: default;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #1f2833;
    margin-top: auto;
    border-top: 1px solid #4a5a6b;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    color: #b0b0b0;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.7rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav a {
        width: 85%;
        max-width: 300px;
        text-align: center;
    }

    .profilbild {
        width: 140px;
        height: 140px;
    }

    main {
        width: 95%;
        padding: 15px 10px;
    }

    .form-buttons {
        flex-direction: column;
        align-items: center;
    }

    form input[type="submit"],
    form input[type="reset"],
    form button {
        width: 100%;
    }
}