:root {
    --primary-color: #614E56;     /* Tiefes Altrosa */
    --secondary-color: #849B87;   /* Salbeigrün */
    --accent-color: #C17F59;     /* Terracotta */
    --text-color: #2D2A2E;       /* Sehr dunkles Warmgrau */
    --background-color: #DBD3CA;  /* Dunkleres Greige */
    --container-bg: #F9F6F1;     /* Hellstes Cream */
    --container-shadow: rgba(158, 143, 130, 0.2); /* Stärkerer Schatten */
    --hover-color: #9E8576;      /* Warmes Taupe */
    --button-color: #8E9B8D;     /* Gedämpftes Salbei */
    --button-hover: #B4A397;     /* Helles Taupe */
    --input-bg: #FFFFFF;         /* Reines Weiß */
    --border-color: #D5CAC3;     /* Helles Taupe */
    --nav-bg: rgba(249, 246, 241, 0.95); /* Transparentes Cream */
    --section-icon-bg: #849B87;  /* Salbeigrün */
    --section-icon-hover: #96AE99; /* Helleres Salbei */
    --timeline-date-bg: #C17F59; /* Terracotta */
    --skill-hover-bg: #F3EDE7;   /* Warmes Off-White */
    color-scheme: light;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: linear-gradient(135deg, 
        var(--background-color) 0%,
        #CEC5BB 25%,
        #C5BBB1 50%,
        #CEC5BB 75%,
        var(--background-color) 100%);
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Burger Menu nur auf Mobile anzeigen */
.burger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: absolute;
    right: 2rem;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: all 0.3s ease;
}

.burger-menu span:first-child {
    top: 0;
}

.burger-menu span:nth-child(2) {
    top: 9px;
}

.burger-menu span:last-child {
    top: 18px;
}

.burger-menu.active span {
    background-color: var(--primary-color);
}

.burger-menu.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:last-child {
    transform: rotate(-45deg);
    top: 9px;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        padding: 2rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: auto;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease-in-out;
        color: var(--primary-color);
        text-decoration: none;
        display: block;
        height: auto;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a:hover {
        background-color: rgba(0,0,0,0.05);
        border-radius: 8px;
        color: var(--accent-color);
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }

    body.menu-open {
        overflow: hidden;
    }

    nav {
        background: white;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 380px) {
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
    
    .burger-menu {
        width: 25px;
        height: 18px;
    }
}

/* Einheitliche Container-Styles */
.section-container,
.skills-container,
.timeline-content,
.profile-section {
    background: var(--container-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 1rem;
    margin: 2rem auto;
    max-width: var(--max-width);
    width: 90%;
    box-shadow: 0 8px 32px var(--container-shadow);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    width: 90%;
    overflow: hidden;
    word-wrap: break-word;
}

/*#skills .container {
    max-width: 1400px;
    width: 95%;
}*/

/* Container-Fixes */
#skills .section-container {
    padding: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.skills-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .skill-brief {
        margin-bottom: 0.3rem;
    }

    .skill-details ul {
        padding-left: 0.8rem;
        margin: 0.2rem 0;
    }

    .skill-details li {
        font-size: 0.9rem;
        padding-left: 0.6rem;
        margin-bottom: 0.2rem;
    }

    #skills .section-container {
        padding: 1rem;
    }

    .skills-category {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Fix für Safari */
@supports (-webkit-touch-callout: none) {
    #skills .section-container {
        -webkit-transform: translateZ(0);
    }

    .skills-category {
        -webkit-transform: translateZ(0);
    }

    .skill-item {
        -webkit-transform-style: preserve-3d;
    }
}

/* Name Styles mit Safari-Fix */
.profile-name, .profile-section h2 {
    opacity: 0;
    position: relative;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.profile-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    line-height: 1.2;
}

.profile-section h2 {
    margin-top: 1rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .section-container,
    .skills-container,
    .timeline-content,
    .profile-section {
        width: 92%;
        padding: 1.5rem;
        margin: 1rem auto;
        border-radius: 12px;
    }

    .profile-name {
        font-size: 2rem;
    }
    
    .profile-name span {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 380px) {
    .section-container,
    .skills-container,
    .timeline-content,
    .profile-section {
        width: 94%;
        padding: 1.2rem;
        margin: 0.8rem auto;
        border-radius: 10px;
    }

    .profile-name {
        font-size: 1.8rem;
    }
}

.timeline {
    position: relative;
    padding: 2rem;
    background: var(--container-bg);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-date {
    background: var(--timeline-date-bg);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
}

.timeline-content {
    background: var(--container-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-left: 2rem;
    position: relative;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: left;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: left;
}

.timeline-content p {
    color: var(--secondary-color);
    margin: 0;
    text-align: left;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .timeline {
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline-content {
        margin-left: 1rem;
        padding: 1rem;
        width: auto;
        box-sizing: border-box;
    }

    .timeline-item {
        margin-bottom: 2rem;
        width: 100%;
    }

    .timeline-item::before {
        left: -1.5rem;
    }

    .container {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .section-content {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 380px) {
    .timeline {
        padding: 0.8rem;
    }

    .timeline-date {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }
}

.contact-form {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 4rem 0;
}

.profile-section {
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--container-bg);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 8px solid rgb(245, 242, 238);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1, h2, h3, h4, p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

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

.skills-container {
    background: var(--container-bg);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: var(--max-width);
    width: 90%;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 3rem;
    background: var(--container-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.skills-category h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skill-item {
    background: var(--container-bg);
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transform-origin: center;
    z-index: 1;
    height: auto;
    min-height: 100px;
}

.skill-brief {
    color: var(--text-color);
    opacity: 0.9;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.skill-item h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    transition: text-decoration 0.3s ease;
}

.skill-item:hover h4 {
    text-decoration: underline;
}

.skill-item::after {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.skill-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.skill-details {
    position: absolute;
    top: -4rem;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--container-bg);
    padding: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 0.9rem;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.skill-item:hover .skill-details {
    opacity: 1;
}

.skill-item:hover .skill-brief {
    opacity: 0;
}

.skill-details ul {
    margin: 0.3rem 0;
    padding-left: 1rem;
    list-style-type: none;
}

.skill-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.8rem;
    line-height: 1.5;
}

.skill-details li:before {
    content: "•";
    position: absolute;
    left: -0.6rem;
    color: var(--accent-color);
}

/* Fix für mobile Geräte */
@media (max-width: 768px) {
    .skill-details {
        position: relative;
        opacity: 1;
        padding: 0.8rem 0 0 0;
        margin-top: 0.8rem;
        border: none;
        box-shadow: none;
        background: none;
    }

    .skill-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .skill-brief {
        display: none;  /* Hide skill brief on mobile */
    }

    .skill-item h4 {
        margin-bottom: 0.5rem;  /* Add some space below the heading */
    }

    .skill-details p {
        padding-top: 3rem;
    }

    .skill-details ul {
        padding-left: 1.2rem;  /* Indent list items slightly */
    }
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skill-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 2;
    background: var(--skill-hover-bg);
}

@media (max-width: 768px) {
    .skill-item:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 380px) {
    .skill-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.8rem;
    }

    .skill-details {
        padding: 0.6rem 0 0 0;
    }

    .skill-brief {
        font-size: 0.9rem;
    }

    .skill-details ul {
        padding-left: 0.6rem;
    }

    .skill-details li {
        font-size: 0.85rem;
        padding-left: 0.5rem;
    }
}

#contact {
    padding: 4rem 2rem;
}

#contact .container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
}

#contact input {
    height: 3rem;
}

#contact textarea {
    min-height: 200px;
    resize: vertical;
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#contact button {
    background-color: var(--button-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 1rem auto 0;
}

#contact button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

footer {
    background: var(--container-bg);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-info {
    color: var(--text-color);
}

.footer-info p {
    margin: 0;
    padding: 0;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }
}

.floating-images-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.floating-image {
    position: absolute;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    will-change: transform, left, top;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    filter: grayscale(100%);
}

.floating-image:nth-child(odd) {
    width: 70px;
    height: 70px;
}

.floating-image:nth-child(3n) {
    width: 50px;
    height: 50px;
}

.floating-image:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.home-background,
.skills-background,
.resume-background,
.contact-background {
    display: block;
}

@keyframes float1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100vw, 100vh); }
}

@keyframes float2 {
    0% { transform: translate(100vw, 0); }
    100% { transform: translate(0, 100vh); }
}

@keyframes float3 {
    0% { transform: translate(50vw, 0); }
    100% { transform: translate(0, 100vh); }
}

@keyframes float4 {
    0% { transform: translate(0, 50vh); }
    100% { transform: translate(100vw, 0); }
}

.about-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    -webkit-backdrop-filter: blur(8px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
}

.personal-story {
    margin-bottom: 2rem;
}

.personal-story p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.project-experience {
    margin-top: 3rem;
}

.project-experience h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project {
    background: var(--container-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    transform-origin: center;
}

.project:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.project h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    transition: text-decoration 0.3s ease;
}

.project:hover h4 {
    text-decoration: underline;
}

.project::after {
    content: "→";
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.project p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .project:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .section-container {
        opacity: 1;
        transform: none;
        transition: none;
        margin-top: 60px; /* Abstand nach der Navigation */
    }

    .section-container.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Verbesserte Container-Sichtbarkeit */
    #home, #about, #skills, #resume, #contact {
        min-height: auto;
        padding-top: 60px;
        margin-top: -60px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .container,
    .section-container,
    .skills-container {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0;
        overflow: visible;
    }

    .profile-section {
        margin-top: 60px;
        padding: 1rem;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Entferne alle Fade-Effekte auf Mobile */
    .fade-in,
    .fade-up,
    .fade-down,
    .fade-left,
    .fade-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 380px) {
    .container,
    .section-container,
    .skills-container {
        width: 98%;
        padding: 0.8rem;
    }
    
    .profile-picture {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p, li {
        font-size: 0.9rem;
    }
    
    .skill-item {
        padding: 0.8rem;
    }
    
    .skill-details {
        padding: 0.6rem 0 0 0;
    }
    
    input, textarea, button {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

/* Verhindere horizontales Scrollen */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Verbesserte Touch-Interaktion */
@media (hover: none) {
    .skill-item:active .skill-details {
        opacity: 1;
        transform: translateY(0);
    }
    
    .skill-item:active .skill-brief {
        opacity: 0;
    }
}

main {
    padding-top: 60px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    width: 100%;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.social-link:hover {
    color: var(--accent-color);
    transform: scale(1.3);
    z-index: 2;
}

/* Verschiebungseffekt für benachbarte Icons */
.social-link:hover + .social-link {
    transform: translateX(10px);
}

.social-link:hover ~ .social-link {
    transform: translateX(10px);
}

.social-link svg {
    width: 28px;
    height: 28px;
    display: block;
    pointer-events: none;
}

/* Safari Fix */
@supports (-webkit-touch-callout: none) {
    .social-link {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .social-link:hover {
        -webkit-transform: scale(1.3);
    }
    
    .social-link:hover + .social-link {
        -webkit-transform: translateX(10px);
    }
    
    .social-link:hover ~ .social-link {
        -webkit-transform: translateX(10px);
    }
}

.section-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
    background-color: var(--secondary-color);
    padding: 1rem 0.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-dots {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0.5rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: block;
}

.nav-dot::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.nav-dot:hover::before,
.nav-dot.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.nav-dot:hover,
.nav-dot.active {
    background-color: #fff;
}

.dot-label {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-dot:hover .dot-label {
    opacity: 1;
}

@media (min-width: 1200px) {
    .section-nav {
        display: block;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: 100%;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--section-icon-bg);
    margin-bottom: 1rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.section-header:hover .section-icon {
    transform: scale(1) rotate(5deg);
}

.section-icon svg {
    color: white;
    transition: transform 0.3s ease;
}

.section-header:hover .section-icon svg {
    transform: scale(1.1);
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.section-header:hover h2::after {
    width: 100%;
}

/* Anpassungen für die Container */
.section-container {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }

    .section-icon {
        width: 48px;
        height: 48px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Safari-spezifische Fixes */
@supports (-webkit-touch-callout: none) {
    section {
        display: -webkit-flex;
        -webkit-flex-direction: column;
        -webkit-align-items: center;
    }

    .section-header {
        -webkit-transform: translateY(20px);
        -webkit-transition: all 0.5s ease;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .section-container {
        width: 100%;
        position: relative;
        z-index: 0;
    }

    .container {
        -webkit-transform: translateZ(0);
        width: 100%;
    }

    /* Fix für Flex-Layout in Safari */
    .section-icon {
        display: -webkit-inline-flex;
        -webkit-align-items: center;
        -webkit-justify-content: center;
    }

    /* Fix für Transform-Animationen in Safari */
    .section-header.visible {
        -webkit-transform: translateY(0);
    }

    /* Fix für sticky Position in Safari */
    .section-nav {
        position: -webkit-sticky;
        -webkit-transform: translateZ(0);
    }
}

/* Verbesserte Flex-Layout Unterstützung für Safari */
section {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
}

.section-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

/* Fix für iOS Overflow-Scrolling */
@supports (-webkit-overflow-scrolling: touch) {
    html, body {
        -webkit-overflow-scrolling: touch;
    }
    
    section {
        min-height: -webkit-fill-available;
    }
}

/* Safari-spezifische Anpassungen */
@supports (-webkit-touch-callout: none) {
    html, body {
        height: -webkit-fill-available;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    section {
        min-height: -webkit-fill-available;
    }
    
    /* Fix für die schwebenden Bilder */
    .floating-image {
        -webkit-transform: translate3d(0,0,0);
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000px;
        will-change: transform;
    }
    
    /* Fix für Container-Blur */
    .section-container,
    .skills-container,
    .timeline-content,
    .profile-section {
        -webkit-backdrop-filter: blur(12px);
        -webkit-transform: translateZ(0);
    }
    
    /* Fix für Animationen */
    .section-header,
    .social-link,
    .nav-dot,
    .skill-item {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000;
        -webkit-transform-style: preserve-3d;
    }
    
    /* Fix für Hover-Effekte */
    .social-link:hover {
        -webkit-transform: scale(1.3);
    }
    
    .skill-item:hover {
        -webkit-transform: scale(1.1);
    }
    
    /* Fix für Flex-Layout */
    .section-container,
    .skills-container,
    .container {
        display: -webkit-flex;
        -webkit-flex-direction: column;
        -webkit-align-items: center;
    }
    
    /* Fix für Sticky-Navigation */
    .section-nav {
        position: -webkit-sticky;
        -webkit-transform: translateZ(0);
    }
}

/* Fix für iOS-Scrolling */
@supports (-webkit-overflow-scrolling: touch) {
    .nav-links.active {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix für iOS-Hover */
@media (hover: hover) {
    .social-link:hover,
    .skill-item:hover,
    .section-icon:hover {
        transform: scale(1.1);
    }
}

/* Fix für Mobile Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .floating-images-container {
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
        }
        
        .section-container {
            -webkit-transform: translate3d(0,0,0);
            transform: translate3d(0,0,0);
        }
    }
}

.contact-info {
    margin-bottom: 2rem;
    text-align: center;
}

.phone-number {
    margin: 1rem 0;
}

.phone-number a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-number a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.phone-number svg {
    width: 24px;
    height: 24px;
}

/* Safari Fix */
@supports (-webkit-touch-callout: none) {
    .phone-number a {
        -webkit-transform: translateZ(0);
    }
    
    .phone-number a:hover {
        -webkit-transform: translateY(-2px);
    }
}

/* Projekt-Seite Styles */
.projects-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--container-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--container-shadow);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.project-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-content ul {
    list-style-type: none;
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.project-content li {
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-color);
}

.project-content li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1.2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: var(--secondary-color);
    color: var(--container-bg);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.tech-tag:hover {
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    background: var(--container-bg);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-info {
    color: var(--text-color);
}

.footer-info p {
    margin: 0;
    padding: 0;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }
}

/* Safari Fixes */
@supports (-webkit-touch-callout: none) {
    .project-card {
        -webkit-transform: translateZ(0);
    }
    
    .project-thumbnail {
        -webkit-transform: translateZ(0);
    }
    
    .tech-tag {
        -webkit-transform: translateZ(0);
    }
}

.back-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--container-bg);
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-button:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    box-shadow: 0 4px 15px var(--container-shadow);
}

.back-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* Safari Fix */
@supports (-webkit-touch-callout: none) {
    .back-button {
        -webkit-transform: translateZ(0);
    }
    
    .back-button:hover {
        -webkit-transform: translateY(-2px);
    }
}

/* Mobile & Safari Optimierungen */
@supports (-webkit-touch-callout: none) {
    /* Verhindere Overscroll-Bounce-Effekt */
    html {
        height: 100%;
        overflow: hidden;
        position: fixed;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        height: 100%;
        overflow: auto;
        position: fixed;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix für iOS Safe Areas */
    .nav-container {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    /* Fix für iOS Hover */
    @media (hover: hover) {
        .project-card:hover,
        .skill-item:hover,
        .social-link:hover {
            transform: translateY(-5px);
        }
    }
    
    /* Verbesserte Touch-Targets */
    .nav-links a,
    .social-link,
    .back-button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }
    
    /* Fix für iOS Momentum Scrolling */
    .projects-container,
    .skills-container,
    .section-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Responsive Design Verbesserungen */
@media (max-width: 768px) {
    /* Bessere Touch-Targets für Mobile */
    .nav-links a {
        padding: 15px;
        margin: 5px 0;
    }
    
    /* Angepasste Schriftgrößen */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }
    
    /* Verbesserte Abstände */
    .section-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Optimierte Bilder für Mobile */
    .project-image {
        height: 200px;
    }
    
    /* Bessere Lesbarkeit */
    .project-content,
    .skill-details {
        padding: 1.2rem;
    }
}

/* Landscape Mode Optimierungen */
@media (max-height: 500px) and (orientation: landscape) {
    .project-image {
        height: 150px;
    }
    
    .section-container {
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}