/* Container für das 3x2 Grid */
.tile-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Genau 3 Spalten */
    gap: 24px; /* Abstand zwischen den Kacheln */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Einzelne Kachel (Tile) */
.custom-tile {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    height: 280px; /* Fixierte Höhe für alle Kacheln */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Subtiler Hover-Effekt für professionellen Look */
.custom-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Header-Bereich (Icon + Titel) */
.tile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tile-icon {
    font-size: 1.5rem;
}

.tile-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Kürzen bei zu langem Titel */
}

/* Beschreibungstext mit automatischem Ellipsis bei Überlauf */
.tile-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
    
    /* Text nach ca. 3 Zeilen abschneiden */
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button-Leiste fixiert am unteren Rand */
.tile-actions {
    margin-top: auto; /* Schiebt die Buttons nach ganz unten */
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Gemeinsame Button-Basis */
.tile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button 1 (Hauptaktion) - Flex-grow nimmt verfügbaren Platz ein */
.btn-primary {
    flex: 2; 
    background-color: #2d55b5; /* Dunkelblau/Schwarz */
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: #6082d1;
}

/* Button 2 (Sekundär) */
.btn-secondary {
    flex: 2;
    background-color: #f1f5f9; /* Hellgrau */
    color: #334155 !important;
    border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Button 3 (Icon / Option) - Klein und quadratisch gehalten */
.btn-tertiary {
    flex: 1;
    background-color: transparent;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
}
.btn-tertiary:hover {
    background-color: #f8fafc;
    color: #0f172a !important;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 992px) {
    .tile-container {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
    }
}

@media (max-width: 600px) {
    .tile-container {
        grid-template-columns: 1fr; /* 1 Spalte auf Handys */
    }
    .custom-tile {
        height: auto; /* Auf Handys darf die Höhe flexibel sein, um Scrolling zu vermeiden */
        min-height: 260px;
    }
}

/* Blaue Kachel */
.tile-blue {
    background-color: #D7E2F5; /* Hellblau */
    border-color: #bae6fd;
}
.tile-blue .tile-title { color: #0369a1; } /* Dunkelblauer Text */

/* Grüne Kachel */
.tile-green {
    background-color: #e5f5c1; /* Hellgrün */
    border-color: #bbf7d0;
}
.tile-green .tile-title { color: #15803d; } /* Dunkelgrüner Text */

/* Gelbe/Orange Kachel */
.tile-amber {
    background-color: #fef3c7; /* Hellorange */
    border-color: #fde68a;
}
.tile-amber .tile-title { color: #b45309; }

/* Ändert ausschließlich die Textfarbe für dieses spezifische Modul */
/* Custom color for DateTime module in the right sidebar */
.sidebar-right .card-body .mod-datetime,
.sidebar-right .card-body span {
    color: #DD8622; /* Replace with your desired color */
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
}





