/* ============================================================
   1. HINTERGRUND & OBERER BEREICH (DUNKEL)
   ============================================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a !important; /* Dunkelgrau */
    color: #ffffff;
}

.site-header {
    text-align: center;
    padding: 60px 20px;
    background-color: #111111;
    border-bottom: 1px solid #333333;
}

.site-header h1 {
    color: #ffffff !important;
    margin: 0;
}

/* ============================================================
   2. WEISSE KACHELN (CARDS)
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
}

.pano-card {
    background-color: #ffffff !important; /* Erzwingt weisse Kachel */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.pano-card:hover {
    transform: translateY(-8px);
}

/* ============================================================
   3. TEXT IN DEN KACHELN (DER FARB-FIX)
   ============================================================ */
.card-body {
    padding: 20px;
    background-color: #ffffff !important; /* Hintergrund der Textbox weiss */
}

/* TITEL: Tiefschwarz */
.pano-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000 !important; /* Erzwingt Schwarz */
}

/* BESCHREIBUNG (info.txt): Dunkelgrau */
.pano-desc {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #333333 !important; /* ERZWINGT DUNKLEN TEXT */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   4. VIEWER & TOOLS
   ============================================================ */
#viewer-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    background-color: #000;
}

#close-btn {
    position: fixed;
    top: 25px; right: 25px;
    z-index: 10001;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #000000 !important;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* Lade-Anzeige auf der dunklen Seite */
.loading-status {
    color: #ffffff !important;
    text-align: center;
    grid-column: 1 / -1;
    padding: 50px;
}

/* ============================================================
   5. FOOTER
   ============================================================ */
footer {
    background-color: #0d0d0d;
    color: #888888;
    padding: 50px 20px;
    text-align: center;
}

.legal-links a {
    color: #3498db;
    text-decoration: none;
}