
.modal-body {
    background: #fff; 
    width: 100%; 
    max-width: 1100px; 
    height: 85vh;            /* Feste Höhe statt max-height zwingt die Box, im Sichtfeld zu bleiben */
    border-radius: 12px; 
    position: relative; 
    padding: 20px;           /* Der äußere Rahmen-Abstand */
    box-sizing: border-box;  /* Ganz wichtig: Zieht das Padding von den 85vh ab */
    display: flex;           /* Aktiviert Flexbox, damit der Inhalt die Box perfekt ausfüllt */
    flex-direction: column;
}

.modal-content {
    overflow-y: auto;        /* NUR hier wird gescrollt */
    width: 100%;
    height: 100%;            /* Füllt exakt den verbleibenden Platz der .modal-body aus */
    box-sizing: border-box;
}

.detail-container {
    margin: 0px !important;
    padding: 0 10px 0 0 !important;
    border: 0 !important;
}
/* Der Drei-Punkte-Button selbst */
.options-trigger-btn {
    background: none;
    border: none;
    color: #718096;
    font-size: 1.2rem;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: background 0.2s, color 0.2s;
}

.options-trigger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #e066ff; /* Deine CraSy-Farbe bei Hover */
}

/* Das eigentliche Dropdown-Menü (standardmäßig unsichtbar) */
.options-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    min-width: 160px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 100; /* Damit es über dem Bild schwebt */
    overflow: hidden;
    padding: 6px 0;
}

/* Wenn das Menü die Klasse .is-active bekommt, wird es sichtbar */
.options-dropdown-menu.is-active {
    display: block;
}

/* Die einzelnen Links im Menü */
.options-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.options-dropdown-menu a:hover {
    background: #f7fafc;
    color: #e066ff;
}

/* Spezieller Look für gefährliche Aktionen (z.B. Löschen) */
.options-dropdown-menu a.delete-option {
    color: #e53e3e;
}
.options-dropdown-menu a.delete-option:hover {
    background: #fff5f5;
    color: #c53030;
}

/* Trennlinie im Menü */
.dropdown-divider {
    border: 0;
    border-top: 1px solid #edf2f7;
    margin: 6px 0;
}

@media (max-width: 576px) {
    
    /* Wir hebeln die absolute Positionierung am Button aus */
    .options-dropdown-menu.is-active {
        position: fixed;
        left: 50% !important;
        top: auto !important;
        bottom: 20px !important; /* Schwebt elegant über dem unteren Rand */
        right: auto !important;
        transform: translateX(-50%); /* Perfekt zentriert auf dem Bildschirm */
        width: 90%; /* Nutzt den Platz auf dem Handy optimal aus */
        max-width: 320px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        border: 1px solid #cbd5e1;
        animation: slideUp 0.2s ease-out; /* Schicker Einblende-Effekt */
    }
    
    /* Optional: Ein dezent abgedunkelter Hintergrund, wenn das Menü offen ist */
    /* Damit der Fokus voll auf den Optionen liegt */
    .options-dropdown-menu.is-active::before {
        content: '';
        position: fixed;
        top: -100vh;
        left: -100vw;
        right: -100vw;
        bottom: -100vw;
        background: rgba(0, 0, 0, 0.2);
        z-index: -1;
    }
}

/* Der Animation-Effekt für den mobilen Wow-Faktor */
@keyframes slideUp {
    from {
        transform: translate(-50(), 20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.project-info {
	margin-top:0px;
}

@media (min-width: 700px) {
	.project-info {
		margin-top:20px;
	}
}


/* Grund-Container */

.dashboard-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    background: #fbfbfb;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Header-Bereich */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

.user-highlight {
    color: #4a90e2;
}

.dashboard-header p {
    margin: 0;
    color: #7f8c8d;
}

/* Guthaben-Karte */
.wallet-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    gap: 15px;
	
    margin-top: 20px;
}

.wallet-icon {
    font-size: 1.8rem;
}

.wallet-info {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7b93;
    font-weight: bold;
}

.wallet-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

.wallet-btn {
    background: #4a90e2;
    color: white;
    text-decoration: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.wallet-btn:hover {
    background: #357abd;
}

/* Zweispaltiges Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Allgemeine Karten-Styles */
.dashboard-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
}

.dashboard-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.card-header h2 { margin: 0; }

.badge-count {
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

/* Benachrichtigungen */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafd;
    border-left: 4px solid transparent;
    transition: background 0.2s;
}

.notification-item.unread {
    background: #edf4fe;
    border-left-color: #4a90e2;
}

.noti-avatar {
    font-size: 1.4rem;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.noti-content p {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #34495e;
    line-height: 1.4;
}

.noti-time {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Wollkorb / Extras */
.project-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a90e2;
}

.stat-txt {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.planer-shortcut-btn {
    background: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
    text-align: center;
}

.planer-shortcut-btn:hover {
    background: #1a252f;
}

/* Bestellungen */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    border-bottom: 1px solid #f1f2f6;
    padding-bottom: 12px;
}
.order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-main {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: bold;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.order-details p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #2c3e50;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.status-badge.success { background: #d4edda; color: #155724; }
.status-badge.info { background: #e8f4fd; color: #1d6fa5; }

.order-action-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}
.order-action-link:hover { text-decoration: underline; }

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
    text-decoration: none;
}
.view-all-link:hover { color: #2c3e50; text-decoration: underline; }

/* RESPONSIVE DESIGN */
@media (max-width: 850px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Spalten untereinander auf kleinen Bildschirmen */
    }
}

@media (max-width: 500px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .wallet-card {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
    }
}

.card-footer-action {
    text-align: center;
    padding: 15px 0 5px 0;
    border-top: 1px solid #eee; /* Optionale feine Trennlinie */
    margin-top: 10px;
}

.btn-all-notifications {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-all-notifications:hover {
    background-color: #🧶; /* Hier deine Hauptfarbe einsetzen, z.B. das Jawolle-Rot/Orange */
    color: #fff;
}


/* Allgemeiner Banner-Basisstil (orientiert an Filterbannern) */
.dashboard-banner {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: fadeInBanner 0.3s ease-in-out;
}

/* Spezifisches Warn-Design */
.dashboard-banner.banner-warning {
    background-color: #fff9e6; /* Sehr sanftes, warmes Warn-Gelb/Orange */
    border-left: 5px solid #f39c12; /* Kräftige orange Kante als Anker */
    border-top: 1px solid #fbe3b5;
    border-right: 1px solid #fbe3b5;
    border-bottom: 1px solid #fbe3b5;
}

/* Icon-Styling */
.dashboard-banner .banner-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 2px;
}

/* Text-Inhalt */
.dashboard-banner .banner-content h4 {
    margin: 0 0 4px 0;
    color: #bc7a00; /* Abgedunkeltes Orange für perfekte Lesbarkeit */
    font-size: 1.05rem;
    font-weight: 600;
}

.dashboard-banner .banner-content p {
    margin: 0;
    color: #665233;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Schließen-Button (X) ganz rechts */
.dashboard-banner .banner-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #bfa37a;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.dashboard-banner .banner-close:hover {
    color: #f39c12;
}

/* Kleine Einblend-Animation für die Dynamik */
@keyframes fadeInBanner {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
