/* =========================
   General Styles
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0px;
    line-height: 1.6;
    font-weight: 400;
}

/* Transitions NUR nach Aktivierung */
body.theme-transition {
    transition: background-color 0.3s, color 0.3s;
}

/* =========================
   Themes
   ========================= */
html.dark body {
    background-color: #0f0f0f;
    color: #f5f5f5;
}

/* =========================
   Navbar
   ========================= */
.navbar {
    position: sticky;
    top: 0;
    height: 80px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar Transition nur wenn erlaubt */
body.theme-transition .navbar {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

html.dark body .navbar {
    background-color: rgba(15, 15, 15, 0.95);
    color: #f5f5f5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-left a {
    margin: 0rem;
    line-height: 1;
    color: inherit;
    text-decoration: none;
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-right a {
    color: inherit;
    text-decoration: none;
}

.nav-right a:hover {
    text-decoration: underline;
}

/* =========================
   Theme Toggle Button
   ========================= */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: inherit;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}



/* =========================
   Home Page
   ========================= */

/* Hero Section */
.about-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    margin-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid rgba(255, 255, 255, 0.8);
}

.initials-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #007bff, #6610f2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid rgba(255, 255, 255, 0.8);
}

html.dark body .profile-image {
    border-color: rgba(15, 15, 15, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

html.dark body .initials-avatar {
    border-color: rgba(15, 15, 15, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.intro-section {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.intro-section .text-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

html.dark body .intro-section .text-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Skills Section */
.skills-section {
    padding: 4rem 2rem;
    text-align: center;
}

.skills-section h2 {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6610f2, #007bff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html.dark body .skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

html.dark body .skill-category:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    font-size: 2.5rem;
    color: #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(102, 16, 242, 0.1));
    padding: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(0, 123, 255, 0.2);
}

.skill-category h3 {
    margin: 0;
    color: #007bff;
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag[data-level="expert"] {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.skill-tag[data-level="advanced"] {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.skill-tag[data-level="intermediate"] {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.skill-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.expert {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.legend-dot.advanced {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.legend-dot.intermediate {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Timeline */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #007bff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

html.dark body .timeline-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.timeline-item h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Snowboard Gallery */
.snowboard-gallery {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.snowboard-img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.snowboard-img:hover {
    transform: scale(1.05);
}

/* Experience Section */
.experience-section {
    padding: 4rem 2rem;
    text-align: center;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.experience-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

html.dark body .experience-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.experience-item h3 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.experience-period {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(102, 16, 242, 0.1));
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #007bff, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* General Section Styles */
.about .section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.text-left,
.text-right {
    flex: 1;
    padding: 2rem;
}

.image-left {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rounded {
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.rounded:hover {
    transform: scale(1.02);
}

html.dark body .rounded {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* =========================
   Portfolio Page
   ========================= */
.portfolio-hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    margin-bottom: 2rem;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e9ecef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.portfolio .project {
    display: flex;
    padding: 4rem 2rem;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio .text-right,
.portfolio .text-left {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

html.dark body .portfolio .text-right,
html.dark body .portfolio .text-left {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.portfolio .image-right,
.portfolio .image-left,
.portfolio .image-gallery {
    flex: 1;
    text-align: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.image-gallery img {
    height: auto;
    flex-shrink: 1;
}

.image-gallery img:nth-child(1) {
    flex-basis: 400px;
    max-width: 400px;
    min-width: 400px;
}

.image-gallery img:nth-child(2) {
    flex-basis: 250px;
    max-width: 250px;
    min-width: 250px;
}

.image-gallery img:nth-child(3) {
    flex-basis: 150px;
    max-width: 150px;
    min-width: 150px;
}

.image-gallery img:nth-child(4) {
    flex-basis: 100px;
    max-width: 100px;
    min-width: 100px;
}

.image-gallery img:nth-child(5) {
    flex-basis: 60px;
    max-width: 60px;
    min-width: 60px;
}

.image-gallery img:nth-child(n+6) {
    flex-basis: 40px;
    max-width: 40px;
    min-width: 40px;
}

/* =========================
   Contact Page
   ========================= */
.contact {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

html.dark body .contact form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact label {
    font-weight: 500;
    font-size: 1rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

html.dark body .contact input,
html.dark body .contact textarea {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.contact button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}

.contact button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* =========================
   Footer
   ========================= */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Transition nur wenn erlaubt */
body.theme-transition footer {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

html.dark body footer {
    background-color: rgba(15, 15, 15, 0.95);
    color: #f5f5f5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}



/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 1rem 2rem;
    }

    .nav-right {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .about .section,
    .portfolio .project {
        flex-direction: column;
    }

    /* Hero Section Responsive */
    .about-hero {
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .profile-image,
    .initials-avatar {
        width: 200px;
        height: 200px;
        font-size: 60px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .profile-image:hover,
    .initials-avatar:hover {
        transform: scale(1.05);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .navbar h1 {
        font-size: 1.5rem;
    }

    .nav-right {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .profile-image,
    .initials-avatar {
        width: 150px;
        height: 150px;
        font-size: 45px;
    }

    .about-hero {
        padding: 3rem 1.5rem;
    }

    .intro-section .text-content,
    .cta-content {
        padding: 2rem;
    }

    .skills-section h2,
    .experience-section h2,
    .contact h2 {
        font-size: 2rem;
    }
}

/* =========================
   Notes
   ========================= */
.note {
    color: #666;
}

/* =========================
   Material Symbols
   ========================= */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}
