body {
    margin: 0;
    font-family: 'EB Garamond', serif;
    color: white;
    text-align: center;
    background: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Hintergrundbild mit Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/fairytale_background.png') no-repeat center center;
    background-size: cover;
    filter: brightness(50%) contrast(90%);
    z-index: -1;
}

/* Hero-Container */
.hero {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

/* Text-Styling */
.large-text {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Input-Container */
.input-container {
    width: 80%;
    max-width: 400px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    text-align: center;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease-in-out;
}

.input-container:hover {
    background: rgba(255, 255, 255, 0.2);
}

.result-container {
    display: none; /* Standardmäßig ausgeblendet */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Zentriert */
    width: 600px; /* Doppelte Breite */
    height: 450px; /* 3x Höhe */
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.2em;
    text-align: left;
    padding: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.result-content {
    max-height: 100%;
    overflow-y: auto; /* Scrollen nur, wenn nötig */
    word-wrap: break-word;
    padding-right: 10px; /* Platz für Scrollbar */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #222;
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 70%;
    overflow-y: auto;
    text-align: left;
    font-size: 1.2em;
    line-height: 1.5;
}

.close-btn {
    color: white;
    float: right;
    font-size: 1.5em;
    cursor: pointer;
}


/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    width: 100%;
}

.signature {
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
}

.data-info {
    font-size: 0.9em;
    color: lightgray;
}

/* Responsives Verhalten */
@media (max-width: 768px) {
    .large-text {
        font-size: 2.5em;
    }
    .input-container {
        height: 250px;
    }
}
@media (max-width: 480px) {
    .large-text {
        font-size: 2em;
    }
    .input-container {
        height: 200px;
    }
}
