/* Grundlegende Seiteneinstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #023457;
    font-family: Arial, sans-serif;
    padding: 0 16px 32px;
}

/* Gemeinsame Breite der Inhaltsbereiche */
.container {
    width: 100%;
    max-width: 420px;
}

/* Erster Kasten */
.name-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #104e69;
    border: 2px solid #28b1c7;
    color: white;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: bold;
    text-align: left;
}

.name-box img {
    display: block;
    flex: 0 0 auto;
    width: 84px;
    height: 90px;
    object-fit: contain;
}

/* Zweiter Kasten */
.second-box {
    width: 100%;
    padding: 15px;
    background-color: #104e69;
    border: 2px solid #28b1c7;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    overflow-wrap: anywhere;
}

/* Navigationsbuttons: gleiche Gesamtbreite wie zuvor, jetzt untereinander */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.page-button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background-color: #104e69;
    color: white;
    text-decoration: none;
    border: 2px solid #28b1c7;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.page-button:hover,
.page-button:focus-visible {
    background-color: #28b1c7;
    color: #023457;
}

.page-button:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* Zusätzliche Anpassungen für sehr schmale Displays */
@media (max-width: 360px) {
    body {
        padding-right: 12px;
        padding-left: 12px;
    }

    .name-box {
        gap: 10px;
        font-size: 1.15rem;
    }

    .name-box img {
        width: 68px;
        height: 74px;
    }

    .second-box {
        padding: 12px;
        font-size: 0.95rem;
    }
}
