html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.landing {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    width: 600px;
    height: auto;
    margin-bottom: 100px;
}

.scroll-section {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.arrow {
    font-size: 48px;
    margin-bottom: 15px;
    cursor: pointer;
    animation: bounce 2s infinite;
    display: inline-block;
    color: #000;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.message {
    font-style: italic;
    color: #333;
    font-size: 1.2em;
    margin: 5px 0;
}

.content {
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.categories {
    margin-top: 200px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.category {
    width: 250px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.category:hover {
    transform: scale(1.05);
}

.category img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.category span {
    display: block;
    background: #444;
    padding: 12px;
    border-radius: 0 0 5px 5px;
    font-style: italic;
    font-size: 1.1em;
}

footer {
    margin-top: 100px;
    margin-bottom: 30px;
    color: #666;
    font-style: italic;
    font-size: 1.1em;
    padding: 20px;
}

@media (max-width: 1024px) {
    .categories {
        gap: 20px;
        margin-top: 150px;
    }
    
    .category {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 300px;
    }
    
    .categories {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .category {
        width: 100%;
        max-width: 280px;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }

    .popup {
        position: fixed;
        width: 90%;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        bottom: 100px;
        transform: translateY(20px);
        max-width: 350px;
    }

    .popup.active {
        transform: translateY(0);
    }

    #email-popup, #call-popup {
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .arrow {
        font-size: 48px;
        padding: 20px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .scroll-section {
        bottom: 120px;
        width: 100%;
        left: 0;
        transform: none;
    }

    .button {
        width: 70px;
        height: 70px;
    }

    .button img {
        width: 35px;
        height: 35px;
    }

    .arrow {
        font-size: 36px;
    }

    .message {
        font-size: 1em;
    }

    footer {
        margin-top: 70px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 300px;
    }
    
    .category {
        width: 250px;
    }

    .categories {
        margin-top: 80px;
        gap: 20px;
    }

    .popup {
        width: 95%;
        padding: 15px;
    }
}

/* Neue Styles für Buttons und Popups */
.button {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #396e38;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    margin: 10px;
}

.button img {
    width: 30px;
    height: auto;
}

.button:hover {
    background: #2f572c;
    transform: scale(1.1);
}

.call-button {
    bottom: 20px;
    left: 20px;
}

.email-button {
    bottom: 20px;
    right: 20px;
}

.popup {
    position: fixed;
    width: 350px;
    min-height: 350px;
    background: #f0f0f0;
    color: #333;
    border-radius: 10px;
    border: 1px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.popup h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    color: #396e38;
}

.popup p {
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
    color: #555;
}

.popup label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.popup input,
.popup textarea,
.popup button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.popup textarea {
    resize: none;
    height: 100px;
}

.popup button {
    background: #396e38;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.popup button:hover {
    background: #2f572c;
}

#call-popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#call-popup img {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
}

#call-popup p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Neuer Style für den aktiven Button-Zustand */
.button.active {
    background: #e53935; /* Rot wenn aktiv */
}

.button.active img {
    display: none; /* Bild ausblenden wenn aktiv */
}

/* Neues X für den aktiven Zustand */
.button.active::before,
.button.active::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 1px;
}

.button.active::before {
    transform: rotate(45deg);
}

.button.active::after {
    transform: rotate(-45deg);
}

/* Landscape (Querformat) - Standard Desktop */
@media (orientation: landscape) {
    #email-popup {
        right: 20px;
        bottom: 100px;
        transform: translateY(20px);
    }

    #call-popup {
        left: 20px;
        bottom: 100px;
        transform: translateY(20px);
    }

    .popup.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portrait (Hochkant) - Mobile */
@media (orientation: portrait) {
    .popup {
        left: 50%;
        bottom: 100px;
        transform: translateX(-50%) translateY(20px);
        width: 90%;
        max-width: 350px;
        margin: 0 auto;
    }

    .popup.active {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    #email-popup, #call-popup {
        left: 50%;
    }
}

/* Zusätzliche Mobile Anpassungen */
@media (max-width: 480px) {
    .popup {
        width: 90%;
        padding: 15px;
    }
} 