/* ============================================================
   PHOCA PHOTO: KATEGORIEN-LOOK (BILD 1 REPRODUKTION)
   ============================================================ */

/* 1. Spalten-Breite begrenzen & Zentrierung */
.ph-categories-view .col-sm-6.col-md-4 {
    max-width: 320px !important; 
    display: inline-block;
    float: none;
    vertical-align: top;
}

.ph-categories-view .row {
    text-align: center;
}

/* 2. Die Karte (Container) - Weißer Rand Fix */
.ph-categories-view .card.ph-card {
    position: relative !important;
    border: none !important;
    /* Entfernt den Standard-Rahmen */
    outline: none !important;
    /* Sicherung gegen Outline-Ränder */
    overflow: hidden !important;
    margin: 10px auto 30px auto;
    background: transparent !important;
    /* WICHTIG: Kein weißer Hintergrund mehr */
    background-color: transparent !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Sicherstellen, dass das Padding der Card auf 0 steht */
.ph-categories-view .card.ph-card {
    padding: 0 !important;
}

.ph-categories-view .ph-image-box {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Das Bild (Full Width & Zoom-Vorbereitung) */
.ph-categories-view .ph-image-box {
    display: block;
    overflow: hidden;
}

.ph-categories-view .ph-image-box img {
    width: 100% !important;
    height: auto !important;
    display: block;
    transition: transform 0.3s ease;
}

/* 4. Text-Balken als Overlay unten */
.ph-categories-view .card-body {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important; /* Standard-Dunkelheit */
    padding: 12px !important;
    margin: 0 !important;
    z-index: 2;
    pointer-events: none; /* Klicks "durchreichen" an den Link darunter */
    transition: background 0.3s ease;
}

/* 5. Titel-Styling (Weiß & Mittig) */
.ph-categories-view .card-title {
    color: #ffffff !important;
    margin: 0 !important;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
}

/* 6. Unsichtbarer Link über die KOMPLETTE Box */
.ph-categories-view .ph-image-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5; /* Liegt ganz oben für volle Klickbarkeit */
}

/* 7. HOVER EFFEKTE */

/* Balken wird dunkler bei Hover */
.ph-categories-view .card.ph-card:hover .card-body {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Bild zoomt leicht bei Hover */
.ph-categories-view .card.ph-card:hover img {
    transform: scale(1.05);
}

/* 8. UNNÖTIGE ELEMENTE ENTFERNEN */
.ph-categories-view .card-body p.pull-right,
.ph-categories-view .card-body .btn,
.ph-categories-view i {
    display: none !important;
}

/* ============================================================
   PHOCA PHOTO: EINZELBILDER HOVER-EFFEKT (KATEGORIE-ANSICHT)
   ============================================================ */

/* 1. Den Container der Einzelbilder ansprechen */
.ph-category-view .ph-card {
    overflow: hidden !important;
    border: none !important;
    background: #000 !important; /* Schwarzer Hintergrund für den Zoom-Effekt */
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 2. Das Bild für die Animation vorbereiten */
.ph-category-view .ph-image-box img {
    transition: transform 0.4s ease-in-out, opacity 0.3s ease !important;
    display: block;
    width: 100%;
    height: auto;
}

/* 3. Der eigentliche Hover-Effekt */
.ph-category-view .ph-card:hover img {
    transform: scale(1.1); /* Zoom */
    opacity: 0.8;          /* Leichtes Abdunkeln durch schwarzen Hintergrund */
}

/* 4. Optional: Die gesamte Karte beim Hover leicht anheben */
.ph-category-view .ph-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    position: relative;
    z-index: 5;
}

/* 5. Abstände zwischen den kleinen Bildern korrigieren */
.ph-category-view .col-md-2 {
    padding: 5px !important; /* Schmalere Abstände für die 6er-Reihe */
}

/* ################################################################### */
/* ######## Side-Bar-Nav-Stil */
/* ################################################################### */

/* Styling NUR für die Sidebar-Navigation */
.galerie-nav-sidebar {
    padding: 10px 0;
}

.galerie-nav-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Schriftanpassung: Weißer Text auf deinem orangen Hintergrund */
.galerie-nav-sidebar ul li a {
    color: #ffffff !important; 
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 15px !important;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Hauchdünne Trennlinie */
}

/* Hover-Effekt in der Sidebar */
.galerie-nav-sidebar ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
}

/* Aktiver Menüpunkt in der Sidebar (Schwarz mit orangem Text) */

/* Wir prüfen: Ist das LI aktiv? Dann färbe das A darin. */
.galerie-nav-sidebar ul li.active a, 
.galerie-nav-sidebar ul li.current a,
.galerie-nav-sidebar ul li.current-menu-item a,
/* Wir prüfen: Hat das A selbst die Klasse (oft bei Astroid)? */
.galerie-nav-sidebar ul li a.active,
.galerie-nav-sidebar ul li a.current {
    background-color: #222222 !important; 
    color: #ff6600 !important;
    border-bottom: none !important;
}


/* ################################################################### */
/* ########  */
/* ################################################################### */

/* Text neben den Hamburger in der Galerie-Sektion erzwingen */
/* Text neben den Hamburger in der Galerie-Sektion erzwingen */
.galerie-nav-mobile {
    position: relative !important;
}

.galerie-nav-mobile::before {
    content: "<- GALLERIEN" !important;
    position: absolute !important;
    left: 40px !important;
    top: 3px !important;

    /* Design */
    color: #ff6600 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    z-index: 999 !important;

    /* DAS HIER IST NEU: Erlaubt dem Finger, durch den Text 
       auf den Button darunter zu klicken */
    pointer-events: none !important; 
}