:root {
    --primary-color: #091C4F;
    --background-light: #f6f7f8;
    --background-dark: #101922;
    --text-light: #1e293b;
    --text-dark: #e2e8f0;
    --text-secondary-light: #64748b;
    --text-secondary-dark: #94a3b8;
    --button-secondary-light: #e2e8f0;
    --button-secondary-dark: #334155;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-light);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background-color: var(--button-secondary-light);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    z-index: 1000;
}

body.dark .theme-toggle {
    background-color: var(--button-secondary-dark);
    color: var(--text-dark);
}

.theme-toggle:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    font-size: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark .theme-icon-light {
    opacity: 0;
    transform: rotate(-90deg);
}

body.dark .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    padding: 1rem;
    padding-bottom: 0;
    align-items: center;
}

.main-content {
    width: 100%;
    max-width: 64rem; /* 1024px */
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    min-height: 0;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.profile-section {
    width: 100%;
    max-width: 18rem; /* 288px */
    flex-shrink: 0;
}

.profile-image {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 50%;
    background-color: #cbd5e1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('img/2024_Portraits_Johannes-8_800x800.png');
}

.text-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name {
    font-size: clamp(1.25rem, 5vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
}

body.dark .name {
    color: var(--text-dark);
}

.title {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary-light);
    margin: 0;
}

body.dark .title {
    color: var(--text-secondary-dark);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 84px;
    max-width: 480px;
    height: 3rem;
    padding: 0 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.015em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
    overflow: hidden;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0a215f;
}

.btn-secondary {
    background-color: var(--button-secondary-light);
    color: var(--text-light);
}

body.dark .btn-secondary {
    background-color: var(--button-secondary-dark);
    color: var(--text-dark);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.social-link {
    color: var(--text-secondary-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .social-link {
    color: var(--text-secondary-dark);
}

.social-link:hover {
    color: var(--primary-color);
}

.social-link .material-symbols-outlined {
    font-size: 1.5rem;
}

.social-link .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.legal-link {
    font-size: 0.875rem;
    color: var(--text-secondary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark .legal-link {
    color: var(--text-secondary-dark);
}

.legal-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-separator {
    font-size: 0.875rem;
    color: var(--text-secondary-light);
}

body.dark .legal-separator {
    color: var(--text-secondary-dark);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-secondary-light);
    margin: 0;
}

body.dark .copyright {
    color: var(--text-secondary-dark);
}

@media (min-width: 480px) {
    .name {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        white-space: normal;
    }

    .title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        padding-bottom: 0;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .content-wrapper {
        gap: 1.5rem;
    }
    
    .text-section {
        gap: 1.25rem;
    }
    
    .footer {
        padding: 1.25rem;
    }
    
    .footer-content {
        gap: 1.25rem;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .theme-icon-light,
    .theme-icon-dark {
        font-size: 1.25rem;
    }
}

@media (min-width: 864px) {
    .content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .profile-section {
        width: 33.333%;
    }

    .text-section {
        width: 66.666%;
        text-align: left;
    }

    .button-group {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

