/* Main Styles for Denis Weinz IT Freelancer Website */

body {
    font-family: 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000; /* Black background as fallback before image loads */
    background-image: url('../assets/images/background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
    line-height: 1.6;
}

/* Header Styles */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffdd57;
}

/* Mobile Navigation Improvements */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 101;
}

/* Section Styles */
section {
    padding: 50px 20px;
    margin: 20px auto;
    background: rgba(30, 30, 30, 0.85);
    border-radius: 10px;
    max-width: 1200px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

h1, h2, h3 {
    color: #ffdd57;
}

h2 {
    border-bottom: 2px solid rgba(255, 221, 87, 0.3);
    padding-bottom: 10px;
}

/* Lists */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

ul ul {
    margin-top: 5px;
}

/* Profile Section Layout */
.profile-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-image-container {
    flex: 0 0 350px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.profile-content {
    flex: 1;
    min-width: 300px;
}

/* Profile Image */
.profilbild {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profilbild:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Content Containers */
#impressum-content, #ueber-mich, #datenschutz-content {
    display: none;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 10px;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Contact Section */
#kontakt {
    background: rgba(40, 40, 40, 0.85);
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

#kontakt p {
    margin: 10px 0;
}

#kontakt a {
    color: #ffdd57;
    text-decoration: none;
}

#kontakt a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ffdd57;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Enterprise Animations - Toned down */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.service-list li {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 5px;
}

.service-list li:hover {
    background-color: rgba(255, 221, 87, 0.1);
    transform: translateX(5px);
}

/* Cache control through versioning class */
.versioned {
    background-image: url('../assets/images/background.jpg?v=1.0.0');
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profilbild {
        width: 280px; /* Responsive adjustment but still larger than original */
    }
    
    section {
        margin: 15px;
    }

    .profile-container {
        flex-direction: column;
    }
    
    .profile-image-container {
        flex: 0 0 100%;
        margin-right: 0;
        max-width: 350px;
        margin: 0 auto 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    section {
        padding: 30px 15px;
        margin: 15px 10px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    #referenzen ul li {
        margin-bottom: 20px;
    }
    
    #referenzen ul ul {
        padding-left: 15px;
    }
    
    .service-list li, #referenzen ul > li {
        padding: 12px;
    }
    
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    footer a {
        padding: 5px;
    }

    .mobile-nav-toggle {
        display: block;
    }
    
    nav {
        padding: 10px 0;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    nav.active ul {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 0;
        width: 100%;
    }
    
    nav ul li a:hover {
        background-color: rgba(255, 221, 87, 0.1);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    nav {
        padding: 10px 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 8px 0;
    }
    
    #kontakt {
        padding: 15px;
    }
    
    #kontakt p {
        font-size: 0.95rem;
    }
    
    footer {
        padding: 20px 15px;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* Fix for reference list spacing */
#referenzen ul {
    list-style-type: none;
    padding-left: 0;
}

#referenzen ul ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 8px;
}

#referenzen ul > li {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#referenzen ul > li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}