/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #222;
    font-weight: 200;
    letter-spacing: 0.2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Logo */
.logo {
    margin: auto 0;
    padding: 0 10px;
    margin-bottom: 8vh;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.logo img {
    width: 360px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 1;
}

/* Offices */
.offices {
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6vh;
    margin-bottom: 8vh;
    position: relative;
    padding: 0 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.offices::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.1) 15%,
        rgba(0,0,0,0.1) 85%,
        rgba(0,0,0,0) 100%
    );
    width: 80px;
    height: 1px;
    top: 50%;
}

.office {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    padding: 3vh 4vw;
    position: relative;
    width: 100%;
    max-width: 280px;
}

.office.visible {
    opacity: 1;
    transform: translateY(0);
}

.office h2 {
    font-size: 0.95em;
    font-weight: 300;
    margin-bottom: 1.5vh;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.office-details {
    font-weight: 200;
    font-size: 16px;
    line-height: 1.6;
    white-space: nowrap;
}

.office-details span {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    margin-top: auto;
    padding: 25px 0;
    font-size: 13px;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -15px;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.social-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
}

.social-links a:hover {
    color: #222;
    transform: translateY(-2px);
}

.social-links i {
    font-size: 20px;
}

.legal-links {
    color: #999;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.legal-links a:hover {
    color: #222;
}

/* Imprint Page */
.content {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

.content.imprint {
    margin-top: -4vh;
    text-align: center;
}

.imprint h1 {
    font-weight: 200;
    font-size: 1.8em;
    margin-bottom: 6vh;
    letter-spacing: 1px;
}

.imprint-section {
    margin-bottom: 6vh;
}

.imprint h2 {
    font-weight: 300;
    font-size: 1.3em;
    margin: 0 0 3vh;
    letter-spacing: 0.5px;
}

.imprint h3 {
    font-weight: 300;
    font-size: 1em;
    margin: 4vh 0 1vh;
    color: #666;
    letter-spacing: 0.5px;
}

.imprint p {
    line-height: 1.8;
    margin: 0 0 2vh;
    font-weight: 200;
}

.address-block {
    margin-bottom: 4vh;
}

.address-block p:first-child::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 3vh auto;
}

.contact-block {
    margin: 2vh 0 4vh;
    display: flex;
    justify-content: center;
}

.contact-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-link:hover {
    color: #222;
}

.contact-link i {
    font-size: 1.1em;
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .container {
        padding: 5vh 15px;
        max-width: 100%;
    }

    .logo {
        margin-bottom: 4vh;
        padding: 0 10px;
    }

    .logo img {
        width: 280px;
    }

    .offices {
        margin-bottom: 4vh;
        padding: 0 10px;
    }

    .office h2 {
        margin-bottom: 2vh;
    }

    .office-details {
        font-size: 14px;
        line-height: 1.5;
    }

    footer {
        margin-top: 3vh;
        padding: 0 10px;
    }

    .social-links {
        margin-bottom: 10px;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .logo img {
        width: 320px;
    }
    .office-details {
        font-size: 15px;
    }
    .office h2 {
        font-size: 1em;
    }
}

/* Very small phones */
@media (max-width: 359px) {
    .logo img {
        width: 280px;
    }
}

/* Larger phones */
@media (min-width: 480px) {
    .container {
        padding: 6vh 25px;
    }
    .logo img {
        width: 360px;
    }
    .office {
        padding: 3vh 5vw;
    }
    .office-details {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Tablets */
@media (min-width: 768px) {
    .logo img {
        width: 380px;
    }
    .offices {
        flex-direction: row;
        gap: 8vw;
        padding: 0;
    }
    .offices::before {
        width: 1px;
        height: 60%;
        top: 20%;
        background: linear-gradient(to bottom, 
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0.1) 15%,
            rgba(0,0,0,0.1) 85%,
            rgba(0,0,0,0) 100%
        );
    }
    .office {
        width: auto;
        padding: 0 4vw;
    }
    .office h2 {
        font-size: 1.05em;
        margin-bottom: 2vh;
    }
    .office-details {
        font-size: 16px;
        line-height: 1.8;
    }
    .social-links i {
        font-size: 22px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .logo img {
        width: 420px;
    }
    .offices {
        gap: 12vw;
    }
    .office {
        padding: 0 6vw;
    }
    .office h2 {
        font-size: 1.1em;
    }
    .office-details {
        font-size: 17px;
    }
    .office-details span {
        margin: 0 8px;
    }
    .offices::before {
        height: 70%;
        top: 15%;
    }
    .social-links {
        gap: 25px;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .logo img {
        width: 460px;
    }
    .offices {
        gap: 15vw;
    }
}

/* Responsive Imprint */
@media (max-width: 480px) {
    .content.imprint {
        margin-top: -2vh;
    }
    
    .imprint h1 {
        font-size: 1.6em;
        margin-bottom: 4vh;
    }
    
    .imprint h2 {
        font-size: 1.2em;
    }
    
    .imprint h3 {
        margin: 3vh 0 1vh;
    }
}

@media (min-width: 768px) {
    .content {
        padding: 0;
    }
    
    .imprint h1 {
        font-size: 2em;
        margin-bottom: 8vh;
    }
    
    .imprint h2 {
        font-size: 1.4em;
    }
    
    .imprint h3 {
        margin: 5vh 0 1.5vh;
    }
}
