/* Reset und Basisstile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: padding 0.3s ease;
}

.header-nav-wrapper {
    width: 100%;
    background-color: #1a1a2e;
    padding: 0.5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Header */
header {
    color: white;
}

.site-title {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Navigation - New Implementation */
.main-nav {
    padding: 0;
}

.nav-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 0.5rem;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link:focus {
    background-color: #2a2a4a;
    text-decoration: none;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    padding-right: 1.5rem;
    position: relative;
}

.dropdown-icon {
    font-size: 0.7em;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    background-color: #1a1a2e;
    border: 1px solid #3a3a5a;
    border-radius: 0.25rem;
    list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    text-align: left;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #2a2a4a;
    text-decoration: none;
}

/* Mobile Navigation */
@media (max-width: 769px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    header {
        margin-bottom: 1rem;
        text-align: center;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }

    .nav-link {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-top: 0.25rem;
    }

    .dropdown-item {
        padding-left: 2rem;
        text-align: center;
    }
}

/* Desktop layout */
@media (min-width: 770px) {
    .header-nav-wrapper {
        padding: 0.75rem 0;
    }

    .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header {
        text-align: left;
    }

    .site-title {
        text-align: left;
    }

    .nav-list {
        justify-content: flex-end;
    }
}

/* Main content */
main {
    padding: 2rem;
    width: 100%;
    flex-grow: 1;
    background-color: var(--bg-primary);
    max-width: 1200px;
    margin: 0 auto;
    align-content: center;
}

.content {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styles */
.content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.content::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb {
    background: #4a6fa5;
    border-radius: 4px;
    border: 1px solid #1e1e1e;
}

.content::-webkit-scrollbar-thumb:hover {
    background: #5a8fd8;
}

.content::-webkit-scrollbar-corner {
    background: #1e1e1e;
}

.content h2 {
    margin-bottom: 15px;
    color: #4a6fa5;
}

/* Forms */
.contact-form {
    max-width: 900px;
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a6fa5;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 111, 165, 0.5);
}

.btn {
    padding: 10px 15px;
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.btn:hover {
    background-color: #5a8fd8;
}

.form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.success {
    background-color: #d4e3ff;
    color: #1a3e72;
    border: 1px solid #b8d1ff;
}

.error {
    background-color: #ffd4d4;
    color: #721c1c;
    border: 1px solid #ffc6c6;
}

/* Footer */
footer {
    padding: 1rem;
    text-align: center;
    color: var(--text-primary);
    width: 100%;
    background-color: var(--bg-primary);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Accessibility */
:focus {
    outline: 3px solid #4a6fa5;
    outline-offset: 2px;
}

/* Mobile First Styles */
.site-title {
    font-size: 1.5rem;
}

/* Skills Cloud */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
    max-width: 900px;
}

.skills-cloud .skill {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    background-color: #4a6fa5;
    transition: transform 0.3s, background-color 0.3s;
    cursor: default;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.skills-cloud .skill:hover {
    transform: scale(1.1);
    background-color: #5a8fd8;
}

/* Different sizes for visual variety */
.skills-cloud .size-1 {
    font-size: 0.9em;
    opacity: 0.8;
}

.skills-cloud .size-2 {
    font-size: 1.1em;
    opacity: 0.85;
}

.skills-cloud .size-3 {
    font-size: 1.3em;
    opacity: 0.9;
}

.skills-cloud .size-4 {
    font-size: 1.5em;
    opacity: 0.95;
}

.skills-cloud .size-5 {
    font-size: 1.7em;
    opacity: 1;
}