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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    text-align: center;
    min-height: 100vh;
    
    display: flex;
    flex-direction: column;

    /* Vertikales Hintergrundbild */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #ffffff;
}

header {
    padding: 40px 20px 10px;
}

h1 {
    /* Skaliert die Schriftgröße automatisch für mobile Geräte und Desktops */
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    
    /* Nimmt den verfügbaren Platz ein und schiebt den Footer ganz nach unten */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #333;
}

h2 {
    color: #2c4a3e;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 5vw, 2rem);
}

.details-grid {
    display: grid;
    /* Standardmäßig 1 Spalte für kleine Handys */
    grid-template-columns: 1fr;
    gap: 12px;
}

.detail-item {
    padding: 15px;
    background-color: #f4f8f3;
    border-radius: 10px;
}

.detail-item strong {
    display: block;
    color: #2c4a3e;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.detail-item p,
.detail-item a {
    color: #444;
    text-decoration: none;
    word-break: break-word;
}

.detail-item a:hover {
    color: #2c4a3e;
    text-decoration: underline;
}

footer {
    /* Garantiert die Platzierung am ganz unteren Bildschirmrand */
    margin-top: auto;
    padding: 20px;
    font-size: 0.85rem;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Ab breiteren Smartphones & Tablets: Grid auf 2 Spalten umstellen */
@media (min-width: 400px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Spezielle Korrektur für mobile Browser (verhindert Darstellungsfehler mit fixed Backgrounds) */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}