@charset "utf-8";
/* ============================================================================
   gallery.css  -  Modernes, responsives Layout fuer Tages- und Monatsgalerie.
   Ergaenzt main.css (Header/Nav/Footer bleiben dort). Ersetzt die alten
   ul#galerie-Float-Regeln fuer die neuen Seiten.
   ========================================================================== */

/* Aktiver Navigationspunkt */
.nav a.active { text-decoration: underline; font-weight: bold; }

/* ---- Steckbrief in der Info-Box (Startseite) --------------------------- */
.factsheet {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
    margin: 12px 0; font-size: 0.9rem; line-height: 1.35;
}
.factsheet dt { font-weight: bold; }
.factsheet dd { margin: 0; }
.description .more {
    display: inline-block; margin-top: 4px; font-size: 0.9rem; font-weight: bold;
}

/* ---- Einklappbare frühere Brutsaisons (Startseite) --------------------- */
.archive-heading { font-weight: bold; margin: 0 0 10px; }
.season {
    border: 1px solid #ADADAD; background: #f3f3f3; border-radius: 4px;
    margin: 0 0 10px;
}
.season > summary {
    cursor: pointer; font-weight: bold; padding: 10px 14px;
    list-style: none; user-select: none;
}
.season > summary::-webkit-details-marker { display: none; }   /* Safari */
.season > summary::before {
    content: "\25B6"; display: inline-block; margin-right: 8px;
    font-size: 0.75em; color: #555; transition: transform .15s ease;
}
.season[open] > summary::before { transform: rotate(90deg); }
.season > summary:hover { text-decoration: underline; }
.season-body { padding: 0 14px 14px; }

/* ---- Seiten-Subheader (Datum, Zaehler, Zurueck-Link) -------------------- */
.gallery-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
    margin: 6px 0 18px; padding-bottom: 10px; border-bottom: 1px solid #ccc;
}
.gallery-head h1 { font-size: 1.3rem; font-weight: bold; margin: 0; }
.gallery-head .count { color: #555; font-size: 0.9rem; }
.gallery-head .back { margin-left: auto; }

/* ---- Tagesgalerie: gleichmaessiges Raster ------------------------------- */
.gallery {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.gallery li { margin: 0; }
.gallery a {
    display: block; border: 1px solid #ADADAD; background: #ebebeb;
    line-height: 0; overflow: hidden;
}
.gallery a:hover { border-color: #333; }
.gallery img {
    width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    display: block;
}

/* ---- Monatsuebersicht: Kalender-Kacheln (ein Cover-Bild pro Tag) -------- */
.month-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.month-grid li { margin: 0; }
.month-grid a {
    display: block; border: 1px solid #ADADAD; background: #ebebeb;
    text-decoration: none; color: #000;
}
.month-grid a:hover { border-color: #333; text-decoration: none; }
.month-grid img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.month-grid .cap {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 8px; font-size: 0.85rem; line-height: 1.2;
}
.month-grid .cap .d { font-weight: bold; }
.month-grid .cap .n { color: #555; }
.month-grid .empty {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4 / 3; color: #999; font-size: 0.8rem;
    background: #f3f3f3;
}

/* ---- Archiv-Navigation: Jahres-Reiter + Monats-Chips -------------------- */
.archive-nav { margin: 0 0 16px; }
.year-tabs {
    display: flex; flex-wrap: wrap; gap: 4px;
    border-bottom: 2px solid #ccc; margin-bottom: 10px;
}
.year-tabs a {
    padding: 6px 16px; border: 1px solid #ADADAD; border-bottom: none;
    background: #ebebeb; border-radius: 4px 4px 0 0; margin-bottom: -2px;
    font-weight: bold;
}
.year-tabs a:hover { border-color: #333; text-decoration: none; }
.year-tabs a.active {
    background: #333; color: #fff; border-color: #333; text-decoration: none;
}
.month-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.month-chips a {
    padding: 4px 12px; border: 1px solid #ADADAD; background: #ebebeb;
    border-radius: 14px; font-size: 0.85rem;
}
.month-chips a:hover { border-color: #333; text-decoration: none; }
.month-chips a.active {
    background: #333; color: #fff; border-color: #333; text-decoration: none;
}

/* ---- Monatsnavigation (vor/zurueck) ------------------------------------ */
.month-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 0 0 18px;
}
.month-nav a, .month-nav span {
    padding: 6px 14px; border: 1px solid #ADADAD; background: #ebebeb;
    border-radius: 4px;
}
.month-nav a:hover { border-color: #333; text-decoration: none; }
.month-nav .cur { font-weight: bold; border: none; background: none; }
.month-nav .disabled { color: #bbb; border-color: #e0e0e0; }

/* ---- Leerer Zustand ----------------------------------------------------- */
.empty-note { color: #555; padding: 30px 0; }

/* ---- Mobile ------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .gallery     { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
    .month-grid  { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
