/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #E6E6E6;
    --text-secondary: #A7A7A7;
    --text-faint: #7A7A7A;
}

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #0a0a0a;
    color: #E6E6E6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Landing Container */
.landing-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    position: relative;
    justify-content: center;
    align-items: center;
}

/* Top Block - Static */
.top-block {
    position: absolute;
    top: 2rem;
    left: 2rem;
    text-align: left;
    padding: 0;
    margin: 0;
    margin-bottom: 64px;
}

.brand-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.tagline {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.45;
    letter-spacing: 0.5px;
    max-width: 720px;
}

.description {
    display: none;
}

/* Center Block - Dynamic */
.center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    padding: 0 2rem;
    position: relative;
    transform: translateY(-55px);
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
    z-index: 5;
    font-family: "Manrope", sans-serif;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-block:hover .nav-arrow {
    opacity: 0.7;
}

.nav-arrow:hover {
    color: var(--text-primary);
}

.nav-arrow-left {
    left: -1rem;
}

.nav-arrow-right {
    right: -1rem;
}

.nav-arrow span {
    display: block;
    font-weight: 400;
    letter-spacing: 0;
}

/* Dynamic Text Container */
.dynamic-text-container {
    position: relative;
    width: 100%;
    min-height: 120px;
    text-align: center;
    margin-bottom: 40px;
}

.dynamic-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.dynamic-text.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 28px;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: 0.005em;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.service-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #C6C6C6;
    max-width: 620px;
    margin: 0 auto;
    margin-bottom: 36px;
}

/* Word Navigation */
.word-navigation {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: none;
    background: none;
    margin-top: 40px;
}

.nav-word {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-faint);
    background: none;
    border: none;
    padding: 0;
    margin: 0 16px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.nav-word::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-word:hover {
    color: var(--text-secondary);
}

.nav-word.active {
    color: var(--text-primary);
}

.nav-word.active::after {
    width: 100%;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    z-index: 10;
    margin-top: 48px;
}

.footer a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--text-faint);
    opacity: 0.6;
    position: relative;
    transition: opacity 0.3s;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.footer a:hover {
    opacity: 1;
}

.footer-impressum {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 13px;
    z-index: 10;
}

.footer-impressum a {
    text-decoration: none;
    color: var(--text-faint);
    opacity: 0.6;
    position: relative;
    transition: opacity 0.3s;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.footer-impressum a:hover {
    opacity: 1;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #1a1a1a;
    padding: 3rem 2.5rem;
    border-radius: 6px;
    width: 90%;
    max-width: 560px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}

.modal-content h2 {
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    text-align: left;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    color: var(--text-primary);
}

.modal-content > p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-weight: 400;
}

.modal-content > p:last-child {
    margin-bottom: 0;
}

.modal-content a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
    border-bottom: 1px solid currentColor;
}

.modal-content a:hover {
    opacity: 0.7;
}

.impressum-content {
    text-align: left;
}

.impressum-content p {
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.impressum-content p strong {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.impressum-content a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s;
    border-bottom: 1px solid currentColor;
}

.impressum-content a:hover {
    opacity: 0.7;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-faint);
    cursor: pointer;
    transition: color 0.3s, background 0.2s;
    background: none;
    border: 1px solid transparent;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", sans-serif;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .top-block {
        top: 1.5rem;
        left: 1.5rem;
        padding: 0;
        margin: 0;
        margin-bottom: 64px;
    }
    
    .brand-name {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .tagline {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .description {
        display: none;
    }
    
    .center-block {
        padding: 0 1.5rem;
    }
    
    .dynamic-text-container {
        min-height: 140px;
        margin-bottom: 40px;
    }
    
    .service-title {
        font-size: 20px;
        margin-bottom: 28px;
        max-width: 620px;
    }
    
    .service-description {
        font-size: 15px;
        max-width: 620px;
        margin-bottom: 36px;
    }
    
    .word-navigation {
        gap: 0;
        margin-top: 40px;
    }
    
    .nav-word {
        font-size: 12px;
    }
    
    .nav-arrow {
        font-size: 20px;
        padding: 6px 10px;
    }
    
    .nav-arrow-left {
        left: -0.5rem;
    }
    
    .nav-arrow-right {
        right: -0.5rem;
    }
    
    .footer {
        font-size: 12px;
        bottom: 15px;
    }
    
    .footer-impressum {
        bottom: 15px;
        right: 15px;
        font-size: 12px;
    }
    
    .modal-content {
        padding: 2rem 1.75rem;
        max-width: 90%;
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .modal-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 28px;
        height: 28px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-word {
        font-size: 14px;
        padding: 4px 0;
    }
    
    .word-navigation {
        gap: 20px;
    }
}
