/* Bestehende Stile */

.scrollable-container {
    width: 100%; /* oder eine feste Breite, z.B. 800px */
    overflow-x: auto;
}

.table-container2 {
    width: 100%;
    overflow-x: auto;  /* Aktiviert das horizontale Scrollen, wenn die Tabelle breiter als der Container ist */
    border: 1px solid #e5e9f2;
    margin-top: 20px;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #e5e9f2;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Verbesserte Projektkartengestaltung mit modernen Farben - SPEZIFISCHERE SELEKTOREN */
html body .project-card,
html body div.project-card,
html body .project-grid .project-card {
    height: auto !important;
    min-height: 150px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important; /* Wichtig, um Transparenz zu verhindern */
    position: relative !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    border-left: 4px solid #4285f4 !important; /* Google Blue als Akzentfarbe */
    opacity: 1 !important; /* Verhindert Transparenz */
    backdrop-filter: none !important; /* Entfernt mögliche Filtereffekte */
    -webkit-backdrop-filter: none !important;
    background-image: none !important; /* Entfernt mögliche Hintergrundbilder */
    cursor: pointer !important; /* Zeigt an, dass die Karte klickbar ist */
}

/* Verschiedene Farbakzente für unterschiedliche Karten */
html body .project-card:nth-of-type(3n+1),
html body div.project-card:nth-of-type(3n+1),
html body .project-grid .project-card:nth-of-type(3n+1) {
    border-left-color: #4285f4 !important; /* Google Blue */
}

html body .project-card:nth-of-type(3n+2),
html body div.project-card:nth-of-type(3n+2),
html body .project-grid .project-card:nth-of-type(3n+2) {
    border-left-color: #34a853 !important; /* Google Green */
}

html body .project-card:nth-of-type(3n+3),
html body div.project-card:nth-of-type(3n+3),
html body .project-grid .project-card:nth-of-type(3n+3) {
    border-left-color: #fbbc05 !important; /* Google Yellow */
}

/* Hover-Effekt für bessere Benutzerinteraktion */
html body .project-card:hover,
html body div.project-card:hover,
html body .project-grid .project-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
    border-left-width: 6px !important;
    background-color: #f8f9ff !important; /* Leicht bläulicher Hintergrund beim Hover */
}

/* Verbesserte Stile für Buttons innerhalb der Karten */
html body .project-card .btn,
html body div.project-card .btn,
html body .project-grid .project-card .btn {
    position: relative !important;
    z-index: 5 !important; /* Stellt sicher, dass Buttons über der Karte liegen */
    cursor: pointer !important; /* Expliziter Cursor für Buttons */
}

/* Stile für den Titel, um anzuzeigen, dass er klickbar ist */
html body .project-card h4, 
html body .project-card h5,
html body .project-card .card-title {
    color: #1a73e8 !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

html body .project-card:hover h4,
html body .project-card:hover h5,
html body .project-card:hover .card-title {
    color: #0d47a1 !important; /* Dunklere Farbe beim Hover */
    text-decoration: none !important; /* Keine Unterstreichung */
}

/* Stile für den "Bearbeiten"-Button, um ihn hervorzuheben */
html body .project-card .btn-primary {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
}

html body .project-card .btn-primary:hover {
    background-color: #0d47a1 !important;
    border-color: #0d47a1 !important;
}

/* Anpassung für die tatsächliche Struktur der Karten */
html body .project-card p,
html body .project-card > div:not(.dropdown):not(.buttons-container) {
    color: #5f6368 !important; /* Google Dark Gray */
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Spezifische Anpassung für die Struktur im Screenshot */
html body .project-card > a:first-child {
    display: block !important;
    font-size: 18px !important;
    margin-bottom: 10px !important;
    color: #1a73e8 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(66, 133, 244, 0.2) !important;
    padding-bottom: 10px !important;
}

html body .project-card > div:nth-child(2) {
    color: #5f6368 !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
}

/* Gründerdaten bearbeiten Button */
html body .project-card .btn {
    background-color: #f8f9fa !important;
    border-color: #e5e9f2 !important;
    color: #5f6368 !important;
    transition: all 0.2s ease !important;
    margin-top: auto !important;
    text-align: center !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

html body .project-card .btn:hover {
    background-color: #f0f7ff !important;
    border-color: #4285f4 !important;
    color: #1a73e8 !important;
}

html body .project-card .btn i {
    margin-right: 6px !important;
}

.project-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a73e8; /* Modern Blue */
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid rgba(66, 133, 244, 0.2);
    padding-bottom: 10px;
}

.project-date {
    color: #5f6368; /* Google Dark Gray */
    font-size: 13px;
    margin-bottom: 15px;
}

.project-description {
    color: #5f6368; /* Google Dark Gray */
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(66, 133, 244, 0.2);
    margin-top: auto;
}

/* Neue Stile für das Dropdown-Menü */
.dropdown {
    position: absolute;
    top: 12px;
    right: 12px;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
}

.dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #f1f3fa;
    padding: 0.5rem 0;
    min-width: 10rem;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 14px;
    color: #5f6368;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f0f7ff;
    color: #1a73e8;
}

.dropdown-item i {
    margin-right: 8px;
    font-size: 16px;
    width: 18px;
    text-align: center;
}

/* Buttons und Interaktionselemente */
.buttons-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn i {
    margin-right: 6px;
    font-size: 16px;
}

.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0d66d0;
    border-color: #0d66d0;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #e5e9f2;
    color: #5f6368;
}

.btn-light:hover {
    background-color: #e9ecef;
    border-color: #dde2e9;
}

/* Grid Layout für Projekt-Übersicht */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Erstellen-Karte */
html body .create-card,
html body div.create-card,
html body .project-grid .create-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
    border: 2px dashed #4285f4 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid #4285f4 !important;
    padding: 30px !important;
    opacity: 1 !important;
}

html body .create-card:hover,
html body div.create-card:hover,
html body .project-grid .create-card:hover {
    background-color: #f0f7ff !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 16px rgba(66, 133, 244, 0.15) !important;
}

html body .create-card i {
    font-size: 32px !important;
    color: #4285f4 !important;
    margin-bottom: 15px !important;
}

html body .create-card h4 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1a73e8 !important;
    margin-bottom: 0 !important;
}

/* Responsives Design */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    html body .project-card,
    html body div.project-card,
    html body .project-grid .project-card {
        min-height: 180px !important;
    }
}

@media (max-width: 576px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    html body .project-card,
    html body div.project-card,
    html body .project-grid .project-card {
        height: auto !important;
        min-height: 150px !important;
    }
}

/* Zusätzliche Stile für spezifische Karten-Typen */
html body .project-card[style*="background"],
html body div.project-card[style*="background"] {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Spezielle Karte mit gelbem Akzent (wie im Screenshot) */
html body .project-card:has(a:contains("Wohnmobilunternehmen neu")) {
    border-left-color: #fbbc05 !important; /* Google Yellow */
}

/* Direktes Styling für die Karten im Screenshot */
html body .project-card a[href*="Shop"] {
    color: #1a73e8 !important;
}

html body .project-card a[href*="AI"] {
    color: #1a73e8 !important;
}

html body .project-card a[href*="Wohnmobil"] {
    color: #1a73e8 !important;
}

/* Zusätzliche Schicht, um Transparenz zu verhindern */
html body .project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: -1;
}
