@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

:root {
    --gold: #E5B455; /* Kräftigeres, wärmeres Gold */
    --gold-light: rgba(229, 180, 85, 0.2);
    --text-dark: #333;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);
    --bg-light: #f8f8f8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Oswald', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg,
        rgba(229, 180, 85, 0.15) 0%,
        rgba(229, 180, 85, 0.1) 100%
    );
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: var(--transition);
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-radius: 4px;
    border: 1px solid rgba(229, 180, 85, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 180, 85, 0.4);
    box-shadow: 0 4px 12px rgba(229, 180, 85, 0.15);
}

.back-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(229, 180, 85, 0.2) 0%,
        rgba(229, 180, 85, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-button:hover::after {
    opacity: 1;
}

.hero {
    height: 40vh;
    background-image: url('../images/ich2.JPG');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
    padding: 0 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    text-shadow: 
        0 0 5px rgba(229, 180, 85, 0.5),
        0 0 10px rgba(229, 180, 85, 0.3);
    filter: brightness(1.2);
}

.flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.flag-container {
    position: relative;
    margin: 5px;
}

.flag-container img {
    width: 36px;
    height: 24px;
    border-radius: 2px;
    display: block;
    transition: opacity 0.3s ease;
}

.flag-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 24px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.flag-container:hover img {
    opacity: 0.2;
}

.flag-container:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4);
}

/* Individuelle Flaggen-Overlays */
.flag-container:nth-child(1)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/DE.svg'); }
.flag-container:nth-child(2)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/NO.svg'); }
.flag-container:nth-child(3)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/GB.svg'); }
.flag-container:nth-child(4)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/EE.svg'); }
.flag-container:nth-child(5)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/AT.svg'); }
.flag-container:nth-child(6)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/PH.svg'); }
.flag-container:nth-child(7)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/CZ.svg'); }
.flag-container:nth-child(8)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/SI.svg'); }
.flag-container:nth-child(9)::after { background-image: url('https://cdn.jsdelivr.net/gh/catamphetamine/country-flag-icons/3x2/SG.svg'); }

.city-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.flag-container:hover .city-tooltip {
    opacity: 1;
}

.timeline-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    width: 1px;
    top: 0;
    bottom: 25px;
    border-left: 1px dashed var(--gold);
}

.timeline-container::after {
    content: '⟶';
    position: absolute;
    left: 20px;
    bottom: 0;
    color: var(--gold);
    font-size: 24px;
    transform: rotate(90deg);
}

.timeline-block {
    position: relative;
    margin-left: 60px;
    margin-bottom: 3rem;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: linear-gradient(to bottom right, #fff, #f8f8f8);
}

.timeline-block:hover {
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.1),
        0 0 0 3px rgba(229, 180, 85, 0.1);
}

.timeline-block::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 0 15px rgba(229, 180, 85, 0.3);
}

.timeline-block:hover::after {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    left: -68px;
    top: 2.5rem;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.timeline-block:hover .timeline-dot {
    transform: scale(1.5);
}

.timeline-block:first-child .timeline-dot {
    top: 2.5rem;
}

.timeline-block:last-child .timeline-dot {
    top: 2.5rem;
}

.year-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.year-box {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(200, 200, 200, 0.2);
    color: #666;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.timeline-block:hover .year-box {
    background: var(--gold);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 180, 85, 0.3);
}

.timeline-block:hover h3 {
    color: var(--gold);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.company {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.content li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.content li::before {
    content: '☘';
    color: #ddd;
    margin-right: 8px;
    font-size: 1.2em;
    line-height: 1;
    margin-top: 0.2em;
}

.timeline-block:hover .content li::before {
    color: var(--gold);
}

.gallery {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

.gallery-container {
    overflow: hidden;
    border-radius: 8px;
    width: calc(100% - 100px);
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.gallery-item {
    flex: 0 0 calc((100% - 1rem) / 2); /* 2 Items mit 1rem Gap */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
}

.gallery-item img,
.gallery-item video,
.gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 60%, transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    color: var(--gold);
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.gallery-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

.nav-button {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.nav-button svg {
    width: 40px;
    height: 40px;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .timeline-container {
        padding: 1.5rem;
    }

    .timeline-block {
        border: none;
        padding: 0;
        margin: 0 0 3.5rem 0;
        position: static;
    }

    .timeline-block::before,
    .timeline-block::after,
    .timeline-dot,
    .timeline-line,
    .timeline-end::before {
        display: none;
    }

    .year-box {
        margin: 0 0 1.5rem 0;
        padding: 0;
        color: var(--gold);
        font-size: 1.5rem;
        font-weight: 500;
    }

    .content {
        margin: 0;
        padding: 0;
    }

    .content h3 {
        color: var(--gold);
        margin: 0 0 1.2rem 0;
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .company {
        color: var(--gold);
        margin: 0 0 2rem 0;
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .content ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .content li {
        margin: 0 0 1.5rem 0;
        padding: 0 0 0 2rem;
        position: relative;
        line-height: 1.5;
        font-size: 1.1rem;
    }

    .content li::before {
        content: '•';
        color: var(--gold);
        position: absolute;
        left: 0.5rem;
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .content li:last-child {
        margin-bottom: 0;
    }

    .gallery {
        margin: 2rem 0;
    }

    .gallery-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .gallery-item {
        flex: 0 0 100%;
        border-radius: 0;
    }

    .gallery-info {
        transform: none;
        background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
        padding: 1.2rem;
        color: var(--gold);
    }

    .gallery-info h4 {
        color: var(--gold);
        margin-bottom: 0.8rem;
        font-size: 1.2rem;
    }

    .gallery-info p {
        color: white;
        opacity: 1;
        line-height: 1.5;
        font-size: 1rem;
    }

    .nav-button {
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 1rem;
    }

    .nav-button svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .gallery-info {
        padding: 0.75rem;
    }

    .gallery-info h4 {
        font-size: 1.1rem;
    }

    .gallery-info p {
        font-size: 0.9rem;
    }

    .nav-button {
        width: 36px;
        height: 36px;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .back-button {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero-content {
        padding-top: 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .flags {
        gap: 6px;
        padding: 10px;
    }

    .flag-container {
        margin: 3px;
    }

    .flag-container img {
        width: 28px;
        height: 21px;
    }

    .timeline-container {
        padding: 0 1rem;
    }
    
    .timeline-block {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .gallery-item {
        width: 160px;
        height: 120px;
    }
    
    .flags img {
        height: 20px;
        width: 30px;
    }

    .bio-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}  

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(229, 180, 85, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(229, 180, 85, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(229, 180, 85, 0.2);
    }
}

.timeline-end {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.timeline-end::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 30px;
    width: 1px;
    height: 20px;
    background: var(--bg-light);
    z-index: 1;
}

.bio-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background-color: var(--gold);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 2px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(229, 180, 85, 0.2);
    position: relative;
    overflow: hidden;
}

.bio-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(229, 180, 85, 0.3);
    background-color: #b2905a;
}

.bio-button:active {
    transform: translateY(0) scale(0.98);
}