/* 1. Grund-Setup: Der Browser nutzt die volle Fensterhöhe */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    
    /* Flexbox-Layout für die gesamte Seite */
    display: flex;
    flex-direction: column;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 2.5rem 1rem;
    text-align: center;
}

/* 2. Diese Regel sorgt dafür, dass der Footer unten bleibt */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    
    /* Nimmt allen verfügbaren Platz ein und schiebt den Footer nach unten */
    flex: 1 0 auto; 
}

/* Grid-System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Die blauen Kästchen */
.card {
    background: #3498db;
    padding: 40px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    background: #2980b9;
}

.card h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
}

.card p {
    margin: 0;
    opacity: 0.9;
}

/* 3. Der flachere Footer */
footer {
    flex-shrink: 0; /* Verhindert das Quetschen des Footers */
    text-align: center;
    padding: 1rem; /* Niedrigerer Wert für weniger Höhe */
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    color: #777;
    font-size: 0.85rem;
}

footer p {
    margin: 0;
}