/* Brotkrumenpfad */
.breadcrumb {
    display: flex;
    list-style: none;
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #6c757d;
}

.breadcrumb a {
    text-decoration: none;
    color: #3498db;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #6c757d;
    font-weight: bold;
}

/* Styling für die Unterthemen-Karten */
.subtopics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tile-link {
    text-decoration: none; /* Entfernt die Unterstreichung vom Link */
    color: inherit; /* Erbt die Textfarbe vom Elternelement */
    display: flex; /* Macht den Link zu einem Flex-Container */
    flex-direction: column; /* Ordnet die Kindelemente (die subtopic-card) Spaltenweise an */
    height: 100%; /* Wichtig, damit der Link die volle Höhe im Grid-Kontext einnimmt */
}

.subtopic-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-left: 5px solid #e74c3c; /* Diese Farbe wird überschrieben durch inline styles im HTML */
    transition: transform 0.3s;

    /* NEUE FLEXBOX-EIGENSCHAFTEN FÜR GLEICHE HÖHE */
    display: flex; /* Macht die Karte selbst zu einem Flex-Container */
    flex-direction: column; /* Stapelt h3 und p vertikal */
    flex-grow: 1; /* Erlaubt der Karte zu wachsen, um den verfügbaren Platz auszufüllen (innerhalb des tile-link) */
    height: 100%; /* Stellt sicher, dass die Karte die volle Höhe des tile-link einnimmt */
    justify-content: space-between; /* Verteilt den Inhalt (h3 und p) vertikal */
}

.subtopic-card:hover {
    transform: translateY(-5px);
}

.subtopic-card h3 {
    color: #2c3e50 !important; /* Setzt die Farbe definitiv auf deine Wunschfarbe */
    margin-bottom: 10px;
    text-decoration: none !important; /* Entfernt die Unterstreichung definitiv */
    flex-shrink: 0; 
}

.subtopic-card p {
    color: #7f8c8d !important; /* Setzt die Farbe definitiv auf deine Wunschfarbe */
    font-size: 0.9em;
    text-decoration: none !important; /* Entfernt die Unterstreichung definitiv */
    flex-grow: 1; 
}