/* ============================================================
   Wanderwege Lieser – Styles
   Theme: Lieser an der Mosel (Foundation-basiert)
   Prinzip: Theme-Styles erben, nur eigene Strukturen definieren.
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────── */
.ww-single-wrapper,
.ww-archive-wrapper {
    padding-top: 32px;
    padding-bottom: 60px;
}

/* ── Hero-Bild ──────────────────────────────────────────── */
.ww-hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin-bottom: 4px;
}

.ww-hero-caption {
    font-size: .8em;
    opacity: .6;
    text-align: right;
    margin-bottom: 24px;
}

/* ── Zweispaltiges Layout ───────────────────────────────── */
.ww-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .ww-layout { grid-template-columns: 1fr; }
}

/* ── Taxonomie-Pill (wie Theme-Suchbutton-Stil) ─────────── */
.ww-taxonomy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ww-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 24px; /* voll gerundet */
    font-size: .8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    background: rgb(142, 26, 31);
    color: #fff !important;
    transition: opacity .2s;
}
.ww-tag:hover { opacity: .8; text-decoration: none; color: #fff !important; }

/* ── Auszug ─────────────────────────────────────────────── */
.ww-excerpt {
    font-style: italic;
    opacity: .75;
    margin-bottom: 20px;
}

/* ── Detailbox – Theme-Widget-Stil ──────────────────────── */
.ww-detail-box {
    background: #fff;
    border-radius: 0 0 50px 0; /* Theme-Signatur: abgerundete Ecke unten-rechts */
    padding: 16px;
    position: sticky;
    top: 24px;
}

/* ── Wegezeichen (Detailbox) ────────────────────────────── */
.ww-wegezeichen {
    margin-bottom: 12px;
}
.ww-wegezeichen__img {
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
    display: block;
}

/* ── Wegezeichen in der Meta-Zeile ─────────────────────── */
.ww-card__meta-wegezeichen {
    align-items: center;
}
.ww-card__wegezeichen {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Titel der Detailbox */
.ww-detail-box__title {
    margin-top: 0;
    margin-bottom: 16px;
    color: rgb(142, 26, 31);
}

/* H1 auf Wanderweg-Einzelseite */
.ww-single-wrapper h1 {
    color: rgb(142, 26, 31);
}

/* Kartentitel im Archiv */
.ww-card__title {
    color: rgb(142, 26, 31);
}

.ww-detail-box__subtitle {
    font-size: .75em;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .6;
    font-weight: 700;
    margin: 16px 0 8px;
}

/* ── Stats-Grid ─────────────────────────────────────────── */
.ww-detail-box__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
    margin-bottom: 4px;
}

.ww-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ww-stat__icon {
    display: block;
    width: 1.2em;
    height: 1.2em;
    margin-bottom: 3px;
    color: rgb(142, 26, 31); /* Theme-Weinrot */
}
.ww-stat__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    display: block;
}

.ww-stat__label {
    font-size: .68em;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .55;
    font-weight: 700;
}

.ww-stat__value {
    font-size: .95em;
    font-weight: 700;
}

/* ── GPX / Karte ────────────────────────────────────────── */
.ww-detail-box__gpx {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.ww-gpx-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .9em;
    text-decoration: none;
    color: rgb(142, 26, 31) !important;
    transition: opacity .2s;
}
.ww-gpx-link:hover { opacity: .75; text-decoration: underline; }

.ww-detail-box__map-link { margin-top: 10px; }

/* Button – Theme-Stil: Weinrot, abgerundete rechte Seite */
.ww-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: .9em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity .2s;
}
.ww-btn--secondary {
    background: rgb(142, 26, 31);
    color: #fff !important;
    border-radius: 0 24px 24px 0; /* Theme-Signatur */
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.ww-btn--secondary:hover { opacity: .8; color: #fff !important; text-decoration: none; }

/* ── Post-Navigation ────────────────────────────────────── */
.ww-post-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.08);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ww-post-nav .ww-btn--secondary {
    width: auto;
    border-radius: 24px;
}

/* ── Archiv-Header ──────────────────────────────────────── */
.ww-archive-header { margin-bottom: 24px; }

.ww-archive-intro {
    margin-top: 12px;
    font-size: 1.05em;
    line-height: 1.7;
    max-width: 720px;
    opacity: .85;
}

/* ── Masonry-Layout ─────────────────────────────────────── */
.ww-cards-grid--masonry {
    display: block; /* Masonry.js übernimmt das Layout */
}
.ww-cards-grid--masonry .ww-card {
    width: calc(33.333% - 14px);
    margin-bottom: 20px;
    display: inline-block; /* nötig für Masonry */
    vertical-align: top;
}
@media (max-width: 900px) {
    .ww-cards-grid--masonry .ww-card { width: calc(50% - 10px); }
}
@media (max-width: 600px) {
    .ww-cards-grid--masonry .ww-card { width: 100%; }
}
.ww-cards-grid--masonry .ww-card__image img {
    height: auto; /* variable Höhe für echtes Masonry */
    max-height: 320px;
    object-fit: cover;
}

/* ── Filter-Leiste (Pills wie Theme) ───────────────────── */
.ww-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.ww-filter-bar a {
    padding: 5px 16px;
    border-radius: 24px;
    font-size: .82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    color: rgb(142, 26, 31) !important;
    border: 2px solid rgb(142, 26, 31);
    transition: all .2s;
    background: transparent;
}
.ww-filter-bar a:hover,
.ww-filter-bar a.active {
    background: rgb(142, 26, 31);
    color: #fff !important;
}

/* ── Karten-Grid ────────────────────────────────────────── */
.ww-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

/* Karte */
.ww-card {
    background: #fff;
    border-radius: 4px;
    overflow: visible;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}
.ww-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.ww-card__image {
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.ww-card__image img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}

.ww-card__image-placeholder {
    width: 100%;
    height: 185px;
    background: #f5f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(142, 26, 31);
    opacity: .3;
}
.ww-card__image-placeholder svg {
    width: 44px;
    height: 44px;
    stroke: currentColor;
}

.ww-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ww-card__title {
    margin: 0 0 8px;
}

.ww-card__excerpt {
    font-size: .88em;
    opacity: .7;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}

.ww-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .78em;
    color: rgb(142, 26, 31);
    border-top: 1px solid rgba(0,0,0,.07);
    padding-top: 10px;
    margin-top: auto;
}
.ww-card__meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}
.ww-card__meta-item svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}

.ww-none {
    text-align: center;
    padding: 60px 20px;
    opacity: .45;
}
