/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Basic styles for a clean, light design */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9; /* Light gray-blue background */
    color: #334155;
    margin: 0;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 2.8em;
    font-weight: 700;
    color: #1e293b;
}

header p {
    font-size: 1.2em;
    color: #64748b;
    margin-top: 8px;
}

/* Container for the cards */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Styling of the individual cards */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 280px;
    text-decoration: none;
    color: #334155;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Icon styles */
.card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #475569;
    transition: color 0.3s ease;
}

.card:hover i {
    color: #3b82f6; /* Blue accent on hover */
}

.card h2 {
    font-size: 1.15em;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* ========================================= */
/* Stile für mobile Geräte (Responsive Part) */
/* ========================================= */
@media (max-width: 768px) {

    /* Passt den Body-Abstand für kleinere Bildschirme an */
    body {
        padding: 25px 15px;
    }

    /* Verkleinert die Hauptüberschrift auf dem Handy */
    header h1 {
        font-size: 2.2em;
    }
    
    /* Lässt die Karten die volle Breite einnehmen */
    .card {
        width: 90%; /* Anstatt fester 280px, nehmen sie 90% der Bildschirmbreite ein */
        max-width: 400px; /* Verhindert, dass sie auf mittelgroßen Tablets zu breit werden */
    }

}
