/* Texte auf kleinen Displays vergrößern */
@media (max-width: 600px) {
    body {
        font-size: 18px !important;
        line-height: 1.5 !important;
    }

    p,
    td,
    li,
    span,
    a {
        font-size: 1.1em !important;
    }

    h1 {
        font-size: 1.6em !important;
    }

    h2 {
        font-size: 1.4em !important;
    }

    h3 {
        font-size: 1.25em !important;
    }
}

body {
    margin: 0;
    font-family: sans-serif;
    height: 200vh;
    /* Scrollen ermöglichen */
}

/* Halbtransparentes Overlay */
#marquee-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* dezent, Seite bleibt sichtbar */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    /* etwas Abstand nach oben */
    z-index: 9999;
    cursor: pointer;
}

/* Laufband-Container */
.marquee-container {
    margin-top: 5%;
    width: 100%;
    height: 60px;
    /* weniger aufdringlich */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #3cff8f;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

/* Lauftext */
.marquee-text {
    display: inline-block;
    white-space: nowrap;
    color: #3cff8f;
    font-size: 1.1rem;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
    opacity: 0.9;
    /* Neuer, dezenter Schatten für bessere Lesbarkeit */
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* Telefonbox rechts mittig */
#phone-box {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    /* feste Größe, unabhängig vom Zoom */
    height: 110px;
    background: #c40000;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 99999;
    /* höher als alles andere */
    pointer-events: auto;
}

/* Beim Hover aufklappen */
#phone-box:hover {
    width: 200px;
}

/* Link-Inhalt */
#phone-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    width: 100%;
    height: 100%;
    padding-left: 10px;
    gap: 10px;
    font-size: 1.2rem;
}

/* Telefonsymbol */
.phone-icon {
    font-size: 2rem;
}

/* Telefonnummer erst sichtbar beim Aufklappen */
.phone-number {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sichtbar beim Hover */
#phone-box:hover .phone-number {
    opacity: 1;
}