/* Grundfarben für unseren Bar-Look */
:root {
    --primary-color: #ff9800; /* Ein schickes Cocktail-Orange */
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--card-bg);
    border-bottom: 3px solid var(--primary-color);
}

header h1 {
    margin: 0;
    color: var(--primary-color);
}

/* Filter Bereich */
.filter-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.filter-section input, .filter-section select {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #333;
    color: white;
    font-size: 1rem;
}

/* Cocktail Grid (Karten-Layout) */
.cocktail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cocktail-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.cocktail-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.cocktail-card button {
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

.cocktail-card button:hover {
    background-color: #e68a00;
}

/* Modal (Pop-up für Bewertungen) */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* Wird per JavaScript hinzugefügt, um das Modal zu zeigen */
.modal.visible {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
}

.close-btn:hover { color: white; }

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, form select, form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
}

form button {
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Foto-Wrapper für perfekte Mobil-Darstellung ohne Zoom-Verzerrung */
.cocktail-image-wrapper {
    width: 100%;
    height: 180px; /* Perfekte Höhe für Smartphones */
    background-color: #000; /* Falls das Bild das Format nicht füllt */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cocktail-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Bild wird vollständig angezeigt ohne abgeschnitten zu werden */
}

/* Styling für die Bewertungsliste in der Karte */
.reviews-list {
    margin-top: 20px;
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 10px;
    max-height: 200px; /* Verhindert unendlich lange Karten */
    overflow-y: auto;  /* Scrollbalken falls es super viele Kommentare gibt */
}

.reviews-list h4 {
    font-size: 0.95em;
    color: #888;
    margin: 0 0 10px 0;
}

.review-item {
    background: #252525;
    padding: 8px 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.review-text {
    margin: 4px 0 0 0;
    color: #ccc;
    font-style: italic;
}

.no-reviews {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.rating-highlight {
    background: rgba(255, 152, 0, 0.1);
    padding: 8px;
    border-radius: 5px;
}

/* Verhindert, dass die Karten-Links blau/unterstrichen werden */
/* Fix für den Design-Bug auf der Hauptseite */
.cocktail-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%; /* Garantiert, dass alle Karten im Grid gleich hoch sind */
}

.category-tag {
    color: var(--primary-color);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    background: rgba(255, 152, 0, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    margin: 5px 0 0 0;
}

/* Detailseiten Styling */
.detail-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.detail-box h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

/* Der Kasten für das Bild auf der Detailseite */
.detail-image-wrapper {
    width: 100%;
    height: 350px; /* Feste maximale Höhe für den Bildbereich */
    background-color: #0b0b0b; /* Sehr dunkler Hintergrund für den leeren Raum bei Hochformaten */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6); /* Eleganter Schatten nach innen */
}

/* Das Bild selbst – jetzt absolut flexibel für Hoch- und Querformat */
.detail-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Garantiert, dass das Bild NIEMALS beschnitten wird */
}

/* Footer-Design für den Admin-Button */
footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid #222;
}

.admin-footer-btn {
    color: #666;
    text-decoration: none;
    font-size: 0.85em;
    border: 1px solid #333;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-footer-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(255, 152, 0, 0.05);
}

/* Drückt die Bewertungsbox automatisch immer ganz nach unten an den Kartenrand */
.ratings-preview-box {
    margin-top: auto; 
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 6px;
    text-align: left;
    font-size: 0.85em;
    border-left: 3px solid var(--primary-color);
}

.ratings-preview-box p {
    margin: 4px 0;
}

.hidden {
        display: none !important;
    }