@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-muted: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --footer-bg: #f5f5f7;
}

body.dark-mode {
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #0d0d0d;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --accent: #2997ff;
    --accent-hover: #4db3ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #1d1d1f;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
    --footer-bg: #1d1d1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

body.dark-mode .nav {
    background: rgba(0, 0, 0, 0.72);
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-tabs {
    display: flex;
    gap: 4px;
}

.nav-tab {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-radius: 980px;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.nav-tab.active {
    color: #ffffff;
    background: var(--text-primary);
}

body.dark-mode .nav-tab.active {
    color: #000000;
    background: var(--text-primary);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
    background: var(--border-color);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: stroke 0.2s ease;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-tabs {
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--border-color);
    }

    body.dark-mode .nav-tabs {
        background: rgba(0, 0, 0, 0.98);
    }

    .nav-tabs.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-tab {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .nav-mobile-toggle {
        display: block;
    }
}

/* Main Content */
.main {
    padding-top: 48px;
}

/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

.tab-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Hero Section - Minimalist Text Only */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 22px 60px;
    background: var(--bg-primary);
    position: relative;
    overflow: visible;
}

.hero::before {
    display: none;
}

.hero-background,
.hero-overlay {
    display: none;
}

.hero-wrapper {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-primary);
    padding: 0 22px;
    overflow: visible;
}

.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 12px;
    padding-bottom: 4px;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero .subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero .tagline {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Tab Hero - Simplified */
.tab-hero-full {
    padding: 80px 22px 60px;
}

.tab-hero-full .hero-content {
    padding: 0;
}

/* Ehrenamt Slideshow Container */
.ehrenamt-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 64px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ehrenamt-slideshow-container:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.ehrenamt-slideshow-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.ehrenamt-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.ehrenamt-slide.active {
    opacity: 1;
}

.ehrenamt-slideshow-credit {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 12px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ehrenamt-slideshow-credit.visible {
    opacity: 1;
}

/* Ausbildung Images */
.ausbildung-main-image {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow-hover);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ausbildung-main-image:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.ausbildung-main-image .ausbildung-img {
    width: 100%;
    display: block;
}

.ausbildung-secondary-image {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 64px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ausbildung-secondary-image:hover {
    transform: scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.ausbildung-secondary-image .ausbildung-img {
    width: 100%;
    display: block;
}

.ausbildung-credit {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 12px;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.stagger-1 { transition-delay: 0.1s; }
.fade-in.stagger-2 { transition-delay: 0.2s; }
.fade-in.stagger-3 { transition-delay: 0.3s; }
.fade-in.stagger-4 { transition-delay: 0.4s; }

/* About Section */
.about-section {
    padding: 100px 22px;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
    box-shadow: var(--card-shadow);
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

/* Profile Slideshow */
.profile-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.profile-slideshow:hover {
    transform: scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.profile-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.profile-slide.active {
    opacity: 1;
}

.profile-credit {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-credit.visible {
    opacity: 1;
}

.about-text h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.6;
}

.about-meta {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.about-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.about-meta-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

/* Contact Button */
.hero-button-container {
    text-align: center;
    padding: 80px 22px;
    background: var(--bg-primary);
}

.hero-button-container p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.mail-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.mail-button:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.4);
}

.mail-button svg {
    width: 20px;
    height: 20px;
}

/* Section Styles */
.section {
    padding: 100px 22px;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    display: block;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), #34c759);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
}

.skill-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-category {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Languages */
.languages-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.language-item {
    text-align: center;
    padding: 32px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    min-width: 160px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.language-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.language-flag {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-item:hover .language-flag {
    transform: scale(1.2);
}

.language-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.language-level {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* LinkedIn Button */
.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 16px 32px;
    background: #0a66c2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(10, 102, 194, 0.3);
}

.linkedin-button:hover {
    background: #004182;
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(10, 102, 194, 0.4);
}

.linkedin-button svg {
    width: 20px;
    height: 20px;
}

/* Image Galleries */
.gallery {
    display: grid;
    gap: 20px;
    margin-bottom: 64px;
}

.ehrenamt-gallery {
    grid-template-columns: repeat(3, 1fr);
}

.ausbildung-gallery {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img:hover {
    transform: scale(1.03);
}

.gallery-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.gallery-caption a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gallery-caption a:hover {
    text-decoration: underline;
}

/* Ehrenamt Cards */
.ehrenamt-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ehrenamt-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.ehrenamt-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.ehrenamt-role {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.ehrenamt-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ehrenamt-org {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ehrenamt-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

.ehrenamt-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 18px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ehrenamt-button:hover {
    background: var(--accent-hover);
    transform: translateX(4px);
}

.ehrenamt-button svg {
    width: 16px;
    height: 16px;
}

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #64b5f6, #1976d2, #0d47a1);
    border-radius: 2px;
}

.timeline-item {
    padding-left: 48px;
    padding-bottom: 48px;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: var(--accent);
}

.timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Company Highlight */
.company-highlight {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
    border-radius: 24px;
    padding: 56px;
    margin-top: 64px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

body.dark-mode .company-highlight {
    background: linear-gradient(135deg, #2d2d30 0%, #3d3d40 100%);
}

.company-highlight .section-label {
    color: var(--accent);
}

.company-highlight h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.company-highlight p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 540px;
    line-height: 1.6;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.link-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.link-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.link-icon.nextcloud {
    background: linear-gradient(135deg, #0082c9, #00a8e8);
}

.link-icon.guacamole {
    background: linear-gradient(135deg, #4d7c0f, #65a30d);
}

.link-icon.pdftool {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.link-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.link-content p {
    font-size: 14px;
    color: var(--text-muted);
}

.link-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
}

.link-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 48px 22px;
    background: var(--footer-bg);
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-top: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-divider {
    margin: 0 16px;
    color: var(--border-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: scaleIn 0.3s ease;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    text-align: center;
    color: #ffffff;
    margin-top: 20px;
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Legal Modals */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.legal-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.legal-modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

.legal-modal-content h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.legal-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-modal-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-modal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-modal-content a:hover {
    text-decoration: underline;
}

.modal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.modal-button:hover {
    background: var(--border-color);
    text-decoration: none;
}

.modal-button svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-modal-close:hover {
    background: var(--border-color);
}

.legal-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
}

/* Flappy Bird Easter Egg */
.flappy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    justify-content: center;
    align-items: center;
}

.flappy-modal.active {
    display: flex;
}

.flappy-modal-content {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

#flappy-canvas {
    display: block;
    border-radius: 16px;
}

.flappy-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
}

.flappy-instructions.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .about-image {
        max-width: 240px;
        margin: 0 auto;
    }

    .about-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 16px 30px;
    }

    .tab-hero-full {
        padding: 40px 16px 30px;
    }

    .ehrenamt-slideshow-container {
        margin-bottom: 40px;
    }

    .ehrenamt-slideshow-credit {
        bottom: 12px;
        right: 12px;
        font-size: 11px;
        padding: 4px 10px;
    }

    .ausbildung-secondary-image {
        max-width: 100%;
    }

    .ausbildung-credit {
        font-size: 11px;
        padding: 4px 10px;
    }

    .hero-label {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero .subtitle {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .hero .tagline {
        font-size: 14px;
    }

    .linkedin-button {
        margin-top: 16px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .section {
        padding: 60px 16px;
    }

    .ehrenamt-gallery,
    .ausbildung-gallery {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .company-highlight {
        padding: 40px 28px;
    }

    .stat-number {
        font-size: 32px;
    }

    .lightbox-nav {
        display: none;
    }

    .languages-grid {
        flex-direction: column;
        align-items: center;
    }

    .language-item {
        width: 100%;
        max-width: 280px;
    }
}

/* Smooth page transitions */
.page-transition {
    animation: pageEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: var(--accent);
    color: #ffffff;
}

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
