.impressumdiv {
    max-width: 800px;
    width: 90%;
    margin: 16px auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    text-align: center;
    font-size: 16px; /* Basis: mindestens 16px */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'zebars', sans-serif;
    min-height: 100vh;
    background-color: #f0f0f0;
    background-image: url('img/backround-dessert.png');
    background-size: cover;
    background-position: center;
}
.html,
body,
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* allow body scrolling when content exceeds viewport but avoid forced scrollbar */
body {
    overflow-y: auto;
}
.impressumdiv h1 {
    margin: 0;
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.1;
    font-weight: 700;
    color: #111;
}

.impressumdiv h2 {
    margin: 0;
    font-size: clamp(18px, 3.2vw, 20px);
    font-weight: 600;
    color: #333;
    opacity: 0.95;
}

.impressumdiv p {
    margin: 0 auto;
    /* Mindestens 16px, skaliert leicht auf größeren Bildschirmen */
    font-size: clamp(16px, 2vw, 18px);
    color: #444;
    max-width: 70ch;
    text-align: center;
    align-self: center;
}

@media (max-width: 600px) {
    .impressumdiv {
        padding: 1rem;
        width: 95%;
        margin: 20px auto;
    }
    .impressumdiv h1 { font-size: clamp(20px, 6.5vw, 28px); }
    .impressumdiv h2 { font-size: clamp(16px, 4.5vw, 18px); }
    .impressumdiv p  { font-size: 16px; }
}

/* Spezielle Feinabstimmung für sehr kleine Bildschirme (z. B. 320px) */
@media (max-width: 320px) {
    .impressumdiv {
        padding: 0.8rem;
        width: 96%;
        margin: 12px auto;
    }
    .impressumdiv h1 { font-size: 20px; }
    .impressumdiv h2 { font-size: 16px; }
    .impressumdiv p  { font-size: 16px; }
}

/* back button on impressum page */
.impressum-back-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
}
.impressum-back-btn:hover { background: rgba(0,0,0,0.8); }

@media (max-width: 480px) {
    .impressum-back-btn { top: 10px; left: 10px; width: 36px; height: 36px; font-size: 20px; }
}