/* 7. Mini-Impressum Styling (Optimierte Lesbarkeit) */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Zeigt dem Nutzer, dass er hier klicken kann */
}

.ibox {
    font-family: "Inter";
    font-size: 1rem;
    background-color: rgba(255,255,255,0.2);
    border: 2px solid #00ffcc;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: #eee;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 255, 204, 0.3);
    cursor: default; /* Zeiger innerhalb der Box normal lassen */
    max-height: 85vh; /* Verhindert, dass die Box höher als der Screen wird */
    overflow-y: auto; /* Erlaubt Scrollen innerhalb der Box, falls Text zu lang ist */
}

.ibox h3 {
    margin-top: 0;
    margin-bottom: 0;
    color: black;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2.5rem;
    font-family: 'Fredericka the Great';
}

.ibox p {
    line-height: 1.6;
    margin: 5px 0;
}

.ibox a {
    color: #00ffcc;
    text-decoration: none;
}

.isubtitle {
    font-size: 0.8rem;
}

hr {
  border: 0;
  height: 2px;
  background: #ccc;
  margin: 30px 5px 0 5px; /* Abstand oben/unten */
}

.ismall {
    font-size: 0.7rem;
    color: #e9e7e7;
    margin-top: 15px;
}

.bold {
    font-weight: bolder;
    color: white;
}

.lefttext {
    text-align: left;
    font-size: 0.8rem;
}


/* Optimierung für Smartphones (max 600px Breite) */
@media (max-width: 600px) {

    /* Das Overlay braucht Padding, damit die Box nicht am Rand klebt */
    .overlay {
        padding: 20px;
        box-sizing: border-box;
        align-items: center; /* Zentriert die Box vertikal */
    }

    /* Die Boxen selbst */
    .ibox {
        width: 100%;
        padding: 20px;
        margin: 0;
        font-size: 0.9rem;
        box-sizing: border-box;
        border-width: 1px; /* Etwas feinerer Rand auf kleinen Screens */
    }

    /* Damit Links und Texte nicht umbrechen/quetschen */
    .ibox h3 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

}