/* ================================
   Grundlayout
================================ */

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, Arial, sans-serif;
    background: #f5f7fa;
    color: #222;
    line-height: 1.6;
}

/* ================================
   Header
================================ */

.header {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(135deg, #e8eef7, #f5f7fa);
    border-bottom: 1px solid #d0d7e1;
}

.subtitle {
    margin-top: -10px;
    font-size: 0.9rem;
    color: #555;
    opacity: 0.9;
}

.title {
    font-size: 2.2rem;
    margin: 0 0 20px;
    font-weight: 600;
    color: #1a2a44;
}

/* ================================
   Suchfeld
================================ */

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-input {
    width: 260px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #c8d0db;
    font-size: 1rem;
}

.search-button {
    padding: 10px 16px;
    border: none;
    background: #1a73e8;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.search-button:hover {
    background: #155ec0;
}

/* ================================
   Kategorien-Grid
================================ */

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* ================================
   Kategorie-Boxen
================================ */

.category {
    background: white;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #e0e6ef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cat-header .icon {
    font-size: 1.4rem;
    opacity: 0.7;
}

.category h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #1a2a44;
}

/* ================================
   Linkliste
================================ */

.category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category li {
    margin: 6px 0;
}

.category a {
    text-decoration: none;
    color: #1a73e8;
    font-size: 0.95rem;
}

.category a:hover {
    text-decoration: underline;
}

/* ================================
   Besucherzähler
================================ */

.counter {
    text-align: center;
    margin: 40px 0 20px;
}

.counter img {
    margin-top: 10px;
    border: none;
}

/* ================================
   Aktualisierung & Haftung
================================ */

.updated,
.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.contact a {
    color: #1a73e8;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}


/* ================================
   Dark Mode (optional)
================================ */

@media (prefers-color-scheme: dark) {
    body {
        background: #1e1f22;
        color: #ddd;
    }

    .header {
        background: #2a2c31;
        border-bottom-color: #444;
    }

    .title {
        color: #fff;
    }

    .category {
        background: #2a2c31;
        border-color: #444;
        box-shadow: none;
    }

    .category h2 {
        color: #fff;
    }

    .category a {
        color: #8ab4ff;
    }

    .search-input {
        background: #2a2c31;
        border-color: #555;
        color: #eee;
    }

    .search-button {
        background: #3b82f6;
    }

    .updated,
    .disclaimer {
        color: #aaa;
    }
}
