/* Gäste-Dashboard Styles */

.erosity-gaeste-dashboard {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.erosity-login-hinweis {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: white;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.9;
}

.header-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.dashboard-tab {
    padding: 15px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
}

.dashboard-tab:hover {
    color: #2271b1;
}

.dashboard-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Buchungen Tab */
.buchungen-filter {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.buchungen-filter select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.buchungen-liste {
    display: grid;
    gap: 20px;
}

.keine-buchungen {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.buchung-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    transition: all 0.3s;
}

.buchung-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.buchung-card-bild {
    position: relative;
    overflow: hidden;
}

.buchung-card-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 48px;
}

.buchung-card-info {
    padding: 20px 0;
}

.buchung-card-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.buchung-datum {
    color: #666;
    margin: 5px 0;
}

.buchung-nummer {
    font-size: 13px;
    color: #999;
    margin: 5px 0;
}

.buchung-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.buchung-status-badge.status-angefragt {
    background: #fff3cd;
    color: #856404;
}

.buchung-status-badge.status-bestaetigt {
    background: #cfe2ff;
    color: #084298;
}

.buchung-status-badge.status-bezahlt {
    background: #d1e7dd;
    color: #0f5132;
}

.buchung-status-badge.status-abgeschlossen {
    background: #e2e3e5;
    color: #41464b;
}

.buchung-status-badge.status-storniert {
    background: #f8d7da;
    color: #842029;
}

.buchung-card-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}

.buchung-card-actions .preis {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
}

.buchung-card-actions .actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Buttons */
.button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.button-primary {
    background: #2271b1;
    color: white;
}

.button-primary:hover {
    background: #135e96;
}

.button-secondary {
    background: #f0f0f0;
    color: #333;
}

.button-secondary:hover {
    background: #e0e0e0;
}

.button-danger {
    background: #dc3545;
    color: white;
}

.button-danger:hover {
    background: #c82333;
}

/* Profil Tab */
.profil-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profil-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profil-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.profil-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Notices */
.notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.notice.success {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #0f5132;
}

.notice.error {
    background: #f8d7da;
    color: #842029;
    border-left: 4px solid #842029;
}

/* Bewertungen Tab */
.neue-bewertung-box {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2271b1;
}

.neue-bewertung-box h3 {
    margin: 0 0 10px 0;
}

.bewertungen-liste {
    display: grid;
    gap: 20px;
}

.bewertung-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.bewertung-header h4 {
    margin: 0;
    font-size: 18px;
}

.bewertung-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.bewertung-datum {
    font-size: 13px;
    color: #999;
}

/* Favoriten Tab */
.keine-favoriten {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.favoriten-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.favorit-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.favorit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.favorit-bild {
    height: 200px;
    overflow: hidden;
}

.favorit-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorit-info {
    padding: 20px;
}

.favorit-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.favorit-info .preis {
    color: #2271b1;
    font-weight: 600;
    margin-bottom: 15px;
}

.favorit-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .profil-sections {
        grid-template-columns: 1fr;
    }
    
    .buchung-card {
        grid-template-columns: 150px 1fr;
        grid-template-rows: auto auto;
    }
    
    .buchung-card-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .buchung-card-actions .actions {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .buchung-card {
        grid-template-columns: 1fr;
    }
    
    .buchung-card-bild {
        height: 200px;
    }
    
    .favoriten-liste {
        grid-template-columns: 1fr;
    }
}


.unterkunft-card{
    background: #790f0f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

/* Dashboard Benachrichtigungen */
.dashboard-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    min-width: 300px;
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dashboard-notice.notice-success {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #0f5132;
}

.dashboard-notice.notice-error {
    background: #f8d7da;
    color: #842029;
    border-left: 4px solid #842029;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
