/* CSS Variables for theming */

:root {
    --background-color: #f4f7f6;
    --card-background-color: #ffffff;
    --text-color: #222222;
    --primary-color: #0056b3;
    --muted-text-color: #6c757d;
    --border-color: #e9ecef;
    --hover-color: #f8f9fa;
}

body.dark-theme {
    --background-color: #121212;
    --card-background-color: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #ff9800; /* Bright Orange */
    --muted-text-color: #a0a0a0;
    --border-color: #333333;
    --hover-color: #2a2a2a;
}


/* HEADER STYLING */
.site-header {
    position: fixed; /* Sticks to top */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff; /* White background like reference site */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle modern shadow */
    z-index: 1000; /* Ensures it stays above all other content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 1200px; /* Keeps content centered on large screens */
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Pushes Logo left, Nav right */
    align-items: center;
}

/* .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
    text-transform: uppercase;
} */

/* DESKTOP NAVIGATION */
.desktop-nav a {
    text-decoration: none;
    color: #555;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: #000;
}

.cta-button {
    background-color: #333;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* MOBILE RESPONSIVENESS */
.mobile-menu-icon {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Adjust Header Height for Mobile */
    .site-header {
        height: 60px;
    }
    body {
        padding-top: 60px;
    }

    /* Hide Desktop Menu & Show Hamburger Icon */
    .desktop-nav {
        display: none; 
    }
    .mobile-menu-icon {
        display: block;
    }
}


.dark-theme .header-logo {
            /* This filter combination turns the SVG white */
            filter: brightness(0) invert(1);
        }

body {
    font-family: 'Arimo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 80px; /* Creates space for the fixed header */
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px); /* Fill the viewport height minus the header space */
    padding: 2rem;
}

.card {
    background-color: var(--card-background-color);
    max-width: 600px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-in-out;
    padding: 30px 25px;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden; /* To contain the full-width image */
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-content {
    position: relative; /* Needed for absolute positioning of the logo */
    display: flex;
    justify-content: flex-end; /* Push actions to the right */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem; /* Use responsive padding */
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: filter 0.3s ease;
}
.header-logo svg {
    height: 50px; /* Consolidated SVG height */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--muted-text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 0; /* Remove extra padding */
}
#theme-toggle:hover {
    color: var(--primary-color);
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.button-primary:hover {
    background-color: #004494; /* Darker shade of primary */
    transform: translateY(-2px);
}

body.dark-theme .button-primary {
    color: var(--card-background-color);
}

body.dark-theme .button-primary:hover {
    background-color: #ffac33; /* Light Orange for dark mode hover */
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.profile-picture {
    /* Base Mobile Styles */
    width: calc(100% + 80px);
    height: 350px;
    object-fit: cover;
    
    /* Fix 1: Stop the head from being cut off */
    object-position: top center; 
    
    margin: 0 -40px;
    border: none;
}

/* Desktop Adjustment (Screen wider than 768px) */
@media (min-width: 768px) {
    .profile-picture {
        /* Fix 2: Push it down so the Fixed Header doesn't cover it */
        margin-top: 40px; 
        
        /* Optional: Give it more height on desktop so it looks less like a thin strip */
        height: 800px; 
    }
}
.profile-info {
     /* Was text-align: left, now inherits center from header */
}

.profile-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-family: 'Tinos', 'Times New Roman', Times, serif;
}

.profile-tagline {
    /* margin-top: 8px; */
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Tinos', 'Times New Roman', Times, serif;
}

.topic-section {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.contact-section {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.topic-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.topic-item a {
    display: grid;
    grid-template-columns: auto 1fr; /* Column for icon, column for text */
    gap: 25px; /* Space between icon and text */
    align-items: start;
    text-decoration: none;
    color: inherit;
}

.topic-item:not(.non-interactive):hover {
    background-color: var(--hover-color);
    /* padding-top: 0px !important; */
    transform: translateY(-2px);
    border-color: var(--border-color);
}

.topic-item.non-interactive {
    font-size: 1.5rem;
    
}


.topic-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 25px; /* Give icon a fixed width for alignment */
    margin-top: 0.2em; /* Fine-tune vertical alignment with heading */
}

.topic-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.topic-text p {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    margin: 0;
}

.topic-text ul {
    padding-left: 1.2rem; /* Adjust this value to control bullet point indentation */
    margin-top: 8px;
}

.topic-text ul li {
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

.DHV-section a,
.impressum-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.DHV-section a:hover,
.impressum-section a:hover {
    text-decoration: underline;
}

body.dark-theme .DHV-section a,
body.dark-theme .impressum-section a {
    color: #ffac33; /* Light Orange for dark mode */
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

body.dark-theme .back-link {
    color: #ffac33; /* Light Orange for dark mode */
}

.contact-button {
    display: inline-flex; /* Use flexbox for centering */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    margin-top: 25px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    text-align: center; /* Ensure text is centered */
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

body.dark-theme .contact-button:hover {
     background-color: #ffac33;
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--muted-text-color);
    font-family: 'Tinos', 'Times New Roman', Times, serif;
}

.footer-links a {
    color: var(--muted-text-color);
    text-decoration: none;
    margin-left: 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

body.dark-theme .footer-links a {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}