/* Werksverzeichnis – öffentlicher Bereich. Alle Regeln sind auf .wv-app begrenzt,
   damit sie das Theme nicht beeinflussen. Schrift und Textfarbe kommen vom Theme. */
.wv-app {
    --wv-line: #d9d5cc;
    --wv-muted: #6b6760;
    --wv-accent: #8a6d3b;
    --wv-ok: #2f7d4f;
    --wv-surface: #ffffff;
    --wv-ink: #222222;
    --wv-radius: 6px;
    margin: 1.5rem 0;
    line-height: 1.5;
}
.wv-app *, .wv-app *::before, .wv-app *::after { box-sizing: border-box; }
.wv-app [hidden] { display: none !important; }

.wv-toolbar {
    background: var(--wv-surface);
    color: var(--wv-ink);
    border: 1px solid var(--wv-line);
    border-radius: var(--wv-radius);
    padding: 1rem;
}
.wv-app .wv-search {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.7rem 1rem;
    border: 1px solid var(--wv-line);
    border-radius: var(--wv-radius);
    font-size: 1rem;
    background: #fff;
    color: var(--wv-ink);
}
.wv-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.wv-filters:empty { display: none; }
.wv-app .wv-filters select {
    margin: 0;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--wv-line);
    border-radius: var(--wv-radius);
    background: #fff;
    color: var(--wv-ink);
    min-width: 150px;
    max-width: 100%;
}
.wv-app input:focus-visible, .wv-app select:focus-visible, .wv-app button:focus-visible, .wv-card:focus-visible {
    outline: 2px solid var(--wv-accent);
    outline-offset: 2px;
}

.wv-count { margin: 1rem 0 0.5rem; opacity: 0.75; font-size: 0.95rem; }
.wv-notice { text-align: center; opacity: 0.75; padding: 2.5rem 1rem; }

.wv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.wv-card {
    background: var(--wv-surface);
    color: var(--wv-ink);
    border: 1px solid var(--wv-line);
    border-radius: var(--wv-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wv-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); }
.wv-card-img {
    aspect-ratio: 4 / 3;
    background: #ebe8e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wv-muted);
    font-size: 0.9rem;
}
.wv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.wv-card-body { padding: 0.8rem 1rem 1rem; }
.wv-card-title { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--wv-ink); }
.wv-card-meta { margin: 0.2rem 0 0; color: var(--wv-muted); font-size: 0.88rem; }
.wv-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.05rem 0.55rem;
    border: 1px solid var(--wv-ok);
    color: var(--wv-ok);
    border-radius: 99px;
    font-size: 0.75rem;
}

.wv-app .wv-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--wv-line);
    border-radius: var(--wv-radius);
    background: #fff;
    color: var(--wv-ink);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.2;
}
.wv-app .wv-btn:hover { background: #efece6; }
.wv-app .wv-btn:disabled { opacity: 0.4; cursor: default; }

.wv-app dialog.wv-dialog {
    border: none;
    border-radius: var(--wv-radius);
    padding: 0;
    max-width: 960px;
    width: calc(100% - 2rem);
    max-height: 92vh;
    overflow: auto;
    margin: auto;
    background: var(--wv-surface);
    color: var(--wv-ink);
}
.wv-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.wv-app .wv-close {
    position: absolute;
    top: 0.4rem;
    right: 0.8rem;
    z-index: 5;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--wv-muted);
}
.wv-app .wv-close:hover { color: var(--wv-ink); background: none; }
.wv-dialog-nav { display: flex; justify-content: space-between; padding: 0.8rem 1.4rem; border-top: 1px solid var(--wv-line); }

.wv-detail { display: grid; grid-template-columns: 1.1fr 1fr; }
.wv-detail-img { background: #ebe8e1; display: flex; align-items: center; justify-content: center; min-height: 240px; color: var(--wv-muted); }
.wv-detail-img img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; margin: 0; }
.wv-detail-text { padding: 1.8rem 1.6rem; }
.wv-detail-text h2 { margin: 0 1.5rem 1rem 0; font-size: 1.6rem; line-height: 1.25; color: var(--wv-ink); }
.wv-detail dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.wv-detail dt { color: var(--wv-muted); font-size: 0.9rem; margin: 0; padding: 0; font-weight: 400; }
.wv-detail dd { margin: 0; padding: 0; }
.wv-detail ul { list-style: none; margin: 0; padding: 0; }
.wv-detail li { margin: 0; padding: 0; }
.wv-detail li + li { margin-top: 0.25rem; }

@media (max-width: 700px) {
    .wv-detail { grid-template-columns: 1fr; }
    .wv-detail dl { grid-template-columns: 7rem 1fr; }
}
