body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3 ease;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header-text p {
    font-size: 1.2rem;
    opacity: 0.95;
}

nav {
    background-color: var(--light);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}
nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
}

.jag {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.jag img {
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--text);
}

.jag-text {
    max-width: 600px;
}

.jag-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.jag-text p {
    font-size: 1.1rem;
}

section {
    margin-bottom: 3rem;
    padding: 1rem;
    background-color: var(--light);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

ul {
    list-style-type: square;
    padding-left: 1.5rem;
}

a.knapp {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

a.knapp:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.mail {
    color: var(--text);
    text-decoration: none;
}

.mail:hover {
    cursor: pointer;
    color: var(--primary);
    text-decoration: underline;
}

.skill:hover {
    opacity: 0.8;
    cursor: pointer;
}

hr {
    border: 1px solid var(--text);
    width: 90%;
    margin: 10px auto;
}

@media (max-width: 688px) {
    .jag {
        flex-direction: column;
        text-align: center;
    }

    header {
        flex-direction: column;
    }

    header img#logo {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        height: 70px;
    }

    .theme-toggle {
        position: static;
        margin-top: 1rem;
    }
}