/* Schriftart definieren */
@font-face {
    font-family: 'Inter_24pt-ExtraLight';
    src: url('fonts/Inter_24pt-ExtraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Allgemeine Styles für den Body */
body {
    margin: 0;
    padding: 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    color: #FFFFFF;
    font-family: 'Inter_24pt-ExtraLight', sans-serif;
    text-align: center;
    overflow: hidden; /* Verhindert Scrollen und Überlappen */
}

/* Stil für das Logo-Bild */
img {
    max-width: 70%;
    height: auto;
}

/* Stil für das Hauptlogo */
img.main-logo {
    margin-bottom: 50px; /* Verkleinert den Abstand */
}

/* Typing Effekt Container */
.typing-container {
    text-align: center;
    margin-bottom: 50px; /* Abstand nach unten vergrößern */
}

#typing-text {
    font-size: 8vw;
    border-right: 3px solid #FFFFFF;
    padding-right: 5px;
    animation: blinkCursor 1.1s step-end infinite;
}

/* Animation für den blinkenden Cursor */
@keyframes blinkCursor {
    0% {
        border-color: transparent;
    }
    5% {
        border-color: rgba(255, 255, 255, 0.950);
    }
    10% {
        border-color: rgba(255, 255, 255, 0.900);
    }
    15% {
        border-color: rgba(255, 255, 255, 0.850);
    }            
    20% {
        border-color: rgba(255, 255, 255, 0.800);
    }
    25% {
        border-color: rgba(255, 255, 255, 0.750);
    }
    30% {
        border-color: rgba(255, 255, 255, 0.700);
    }
    35% {
        border-color: rgba(255, 255, 255, 0.650);
    }
    40% {
        border-color: rgba(255, 255, 255, 0.600);
    }
    45% {
        border-color: rgba(255, 255, 255, 0.550);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.500);
    }
    55% {
        border-color: rgba(255, 255, 255, 0.450);
    }
    60% {
        border-color: rgba(255, 255, 255, 0.400);
    }
    65% {
        border-color: rgba(255, 255, 255, 0.350);
    }
    70% {
        border-color: rgba(255, 255, 255, 0.300);
    }
    75% {
        border-color: rgba(255, 255, 255, 0.250);
    }
    80% {
        border-color: rgba(255, 255, 255, 0.200);
    }
    85% {
        border-color: rgba(255, 255, 255, 0.150);
    }
    90% {
        border-color: rgba(255, 255, 255, 0.100);
    }
    95% {
        border-color: rgba(255, 255, 255, 0.050);
    }
    100% {
        border-color: transparent;
    }
}

/* Modal (Impressum) Styles */
.impressum {
    position: absolute;
    bottom: 20px; /* Position des Impressum-Links anpassen */
    font-size: 14px;
}

.impressum a {
    color: #FFFFFF;
    text-decoration: none;
}

.impressum a:hover {
    text-decoration: underline;
}

/* Modal (Impressum) Styles */
.modal {
    display: block; /* wichtig: nicht mehr display:none, damit Fade möglich ist */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    padding-top: 60px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 260ms ease, visibility 0s linear 0s;
}

.modal-content {
    background-color: #222;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    color: #FFFFFF;

    transform: translateY(12px);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.main-logo {
    width: 70%;
    height: auto;
}

.close {
    color: #FFFFFF;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

/* Media Queries für verschiedene Bildschirmgrößen */
@media (min-height: 1000px) {
    #typing-text {
        font-size: 10vw;
    }
}

@media (min-width: 600px) and (max-width: 1200px) {
    #typing-text {
        font-size: 30px;
    }
}

@media (min-width: 1200px) {
    #typing-text {
        font-size: 40px;
    }
}

/* ====================== */
/*  WEICHE ÜBERGÄNGE      */
/* ====================== */
html { background: #000000; }
body {
    opacity: 0;
    transition: opacity 1000ms ease;
    will-change: opacity;
}
body.page-ready { opacity: 1; }
body.page-leave { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    body { transition: none !important; }
    .modal, .modal-content { transition: none !important; }
}