/* ==========================================================================
   Ausflugsziel-Manager – Frontend
   Farben & Schriften aus dem ElternNummerMüde-Theme (mit Fallbacks)
   ========================================================================== */
.azm-scope, .azm-toast {
    --azm-primary:      #3E7F3E;               /* dunkles Theme-Grün, Kontrast ≥ 4.5:1 */
    --azm-primary-dk:   #2F632F;
    --azm-primary-soft: #EEF6EE;
    --azm-accent:       var(--color-accent, #6DB86D);
    --azm-slate:        var(--color-brand-slate, #52718A);
    --azm-slate-soft:   #EDF2F6;
    --azm-gold:         var(--color-brand-gold, #B49450);
    --azm-navy:         var(--color-brand-navy, #1B2C4A);
    --azm-bg:           var(--color-bg, #FAFAFA);
    --azm-card:         var(--color-surface, #FFFFFF);
    --azm-text:         var(--color-text, #2D2D2D);
    --azm-muted:        var(--color-text-muted, #6B6B6B);
    --azm-border:       var(--color-border, #E8E8E8);
    --azm-radius:       var(--radius-md, 16px);
    --azm-radius-sm:    var(--radius-sm, 8px);
    --azm-shadow:       var(--shadow-md, 0 4px 20px rgba(0,0,0,.08));
    --azm-shadow-hover: var(--shadow-lg, 0 8px 32px rgba(0,0,0,.14));
    --azm-font-display: var(--font-display, inherit);
    --azm-fav:          #C2185B;
}
.azm-scope { color: var(--azm-text); font-family: var(--font-body, inherit); }
.azm-scope *, .azm-scope *::before, .azm-scope *::after { box-sizing: border-box; }
.azm-scope [hidden] { display: none !important; }
.azm-scope :focus-visible { outline: 3px solid var(--azm-slate); outline-offset: 2px; }
.azm-scope .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.azm-hp { position: absolute !important; left: -9999px; }
.azm-muted { color: var(--azm-muted); font-size: .9rem; }

/* Theme-Resets neutralisieren (.entry-content a / ul) */
.entry-content .azm-scope a { text-decoration: none; }
.entry-content .azm-scope ul { list-style: none; padding-left: 0; margin-left: 0; }
.entry-content .azm-scope li { margin-bottom: 0; }
.entry-content .azm-scope h2, .entry-content .azm-scope h3 { margin-top: 0; }
.entry-content .azm-scope .azm-card-title a, .entry-content .azm-scope .azm-cross-list a { color: var(--azm-text); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.azm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    background: var(--azm-primary); color: #fff !important; border: 2px solid var(--azm-primary);
    border-radius: 999px; padding: .55rem 1.2rem; font: inherit; font-weight: 700; font-size: .9rem;
    cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; line-height: 1.3;
}
.azm-btn:hover { background: var(--azm-primary-dk); border-color: var(--azm-primary-dk); transform: translateY(-1px); }
.azm-btn-ghost { background: transparent; color: var(--azm-text) !important; border-color: var(--azm-border); font-weight: 600; }
.azm-btn-ghost:hover { background: var(--azm-slate-soft); border-color: var(--azm-slate); }

/* ── Filter ──────────────────────────────────────────────────────────── */
.azm-filter {
    background: var(--azm-card); border: 1px solid var(--azm-border); border-radius: var(--azm-radius);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06)); padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.azm-filter-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.azm-field { display: flex; flex-direction: column; gap: .25rem; margin: 0; }
.azm-field > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--azm-muted); }
.azm-field-q { grid-column: span 2; }
.azm-scope input[type="search"], .azm-scope input[type="text"], .azm-scope select, .azm-scope textarea {
    width: 100%; border: 2px solid var(--azm-border); border-radius: var(--azm-radius-sm); padding: .5rem .7rem;
    font: inherit; font-size: .92rem; background: #fff; color: var(--azm-text); margin: 0;
}
.azm-scope input:focus, .azm-scope select:focus, .azm-scope textarea:focus { border-color: var(--azm-slate); outline: none; }
.azm-ort-row { display: flex; gap: .35rem; }
.azm-locate { flex: 0 0 auto; border: 2px solid var(--azm-border); background: #fff; border-radius: var(--azm-radius-sm); cursor: pointer; padding: 0 .65rem; font-size: 1rem; }
.azm-locate:hover { border-color: var(--azm-slate); }
.azm-more { margin-top: .75rem; }
.azm-more > summary { cursor: pointer; font-weight: 700; color: var(--azm-slate); font-size: .9rem; padding: .25rem 0; }
.azm-more[open] > summary { margin-bottom: .6rem; }
.azm-check { display: flex; align-items: center; gap: .4rem; font-size: .9rem; align-self: end; padding-bottom: .5rem; }
.azm-chips { border: 0; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.azm-chips legend { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--azm-muted); margin-bottom: .35rem; padding: 0; }
.azm-chip {
    border: 1.5px solid var(--azm-border); background: var(--azm-bg); color: var(--azm-text); border-radius: 999px;
    padding: .25rem .75rem; font: inherit; font-size: .8rem; cursor: pointer; transition: all .15s;
}
.azm-chip:hover { border-color: var(--azm-primary); background: var(--azm-primary-soft); }
.azm-chip.is-on { background: var(--azm-primary); border-color: var(--azm-primary); color: #fff; font-weight: 600; }
.azm-filter-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-top: .9rem; }
.azm-filter-actions .azm-field { flex: 0 1 200px; }

/* ── Ergebnisse ──────────────────────────────────────────────────────── */
.azm-results { transition: opacity .2s; scroll-margin-top: 90px; }
.azm-results.is-loading { opacity: .45; pointer-events: none; }
.azm-count { font-size: .9rem; color: var(--azm-muted); margin: 0 0 .9rem; }
.azm-notice { background: #FBF5E8; border-left: 4px solid var(--azm-gold); padding: .6rem 1rem; border-radius: 0 var(--azm-radius-sm) var(--azm-radius-sm) 0; }
.azm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

.azm-card {
    background: var(--azm-card); border: 1px solid var(--azm-border); border-radius: var(--azm-radius);
    box-shadow: var(--azm-shadow); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.azm-card:hover { transform: translateY(-3px); box-shadow: var(--azm-shadow-hover); }
.azm-card-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
    background: linear-gradient(135deg, var(--phase-kindergarten, #D4EDD4), var(--phase-grundschule, #D0E8F4)); }
.azm-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.azm-card:hover .azm-card-image img { transform: scale(1.04); }
.azm-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3.5rem; }
.azm-badges { position: absolute; left: .6rem; top: .6rem; right: .6rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.azm-badge { background: rgba(255,255,255,.94); color: var(--azm-text); border-radius: 999px; padding: .15rem .55rem; font-size: .74rem; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.azm-badge-dist { background: var(--azm-navy); color: #fff; }
.azm-card-body { padding: 1rem 1.1rem .5rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.azm-card-kicker { margin: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--azm-slate); }
.azm-card-title { font-family: var(--azm-font-display); font-size: 1.12rem; line-height: 1.3; margin: 0; }
.azm-card-title a { color: var(--azm-text); }
.azm-card-title a:hover { color: var(--azm-primary); }
.azm-card-rating { margin: 0; font-size: .8rem; color: var(--azm-muted); display: flex; gap: .35rem; align-items: center; }
.azm-card-desc { margin: 0; color: var(--azm-muted); font-size: .9rem; line-height: 1.5; }
.azm-card-meta { margin: .2rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; font-size: .84rem; }
.azm-card-icons { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: 1.05rem; }
.azm-card-footer { padding: .6rem 1.1rem 1.1rem; display: flex; gap: .5rem; align-items: center; }
.azm-card-footer .azm-btn { flex: 1; }

.azm-stars { letter-spacing: 1px; }
.azm-stars .on { color: var(--azm-gold); }
.azm-stars .off { color: #D9D9D9; }

.azm-fav {
    display: inline-flex; align-items: center; gap: .35rem; border: 2px solid var(--azm-border); background: #fff;
    color: var(--azm-text); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.azm-fav:hover, .azm-fav.is-on { border-color: var(--azm-fav); color: var(--azm-fav); background: #FDECF3; }
.azm-fav-compact { padding: .5rem .7rem; }
.azm-fav-compact .azm-fav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.azm-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 1.5rem; }
.azm-page { min-width: 2.4rem; text-align: center; padding: .4rem .7rem; border-radius: 999px; border: 1.5px solid var(--azm-border); color: var(--azm-text) !important; }
.azm-page:hover { border-color: var(--azm-primary); }
.azm-page.is-current { background: var(--azm-primary); border-color: var(--azm-primary); color: #fff !important; font-weight: 700; }

.azm-empty { text-align: center; padding: 2.5rem 1rem; background: var(--azm-bg); border: 2px dashed var(--azm-border); border-radius: var(--azm-radius); }
.azm-empty-icon { display: block; font-size: 3rem; margin-bottom: .5rem; }
.azm-empty p { color: var(--azm-muted); }
.azm-loading { color: var(--azm-muted); }

/* ── Merkliste ───────────────────────────────────────────────────────── */
.azm-favpage-title { font-family: var(--azm-font-display); color: var(--azm-navy); }
.azm-hint { background: #FBF5E8; border-left: 4px solid var(--azm-gold); padding: .6rem 1rem; border-radius: 0 var(--azm-radius-sm) var(--azm-radius-sm) 0; font-size: .9rem; }

/* ── Detailseite ─────────────────────────────────────────────────────── */
.azm-crumbs { margin-bottom: .75rem; font-size: .9rem; }
.azm-crumbs a { color: var(--azm-slate); }
.azm-single-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.azm-tag { display: inline-block; background: var(--azm-primary-soft); color: var(--azm-primary) !important; border-radius: 999px; padding: .2rem .75rem; font-size: .8rem; font-weight: 600; }
.azm-tag-soft { background: var(--azm-slate-soft); color: var(--azm-text) !important; font-weight: 500; }
.azm-lead { font-size: 1.12rem; line-height: 1.6; margin: 0 0 1rem; }
.azm-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.azm-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.azm-single-main, .azm-single-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.azm-single-side { position: sticky; top: 1.5rem; }
.azm-box { background: var(--azm-card); border: 1px solid var(--azm-border); border-radius: var(--azm-radius); padding: 1.1rem 1.25rem; }
.azm-box h2 { font-family: var(--azm-font-display); font-size: 1.1rem; margin: 0 0 .75rem; color: var(--azm-navy); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.azm-box-groups { background: var(--azm-slate-soft); border-color: transparent; }
.azm-highlights { display: flex; flex-wrap: wrap; gap: .4rem; }
.azm-highlights li { background: var(--azm-primary-soft); border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; }
.azm-highlights li::before { content: '✓ '; color: var(--azm-primary); font-weight: 700; }
.azm-merkmale { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem .75rem; font-size: .92rem; }
.azm-facts { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.azm-fact dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--azm-muted); }
.azm-fact dd { margin: .1rem 0 0; font-size: .93rem; }
.azm-fact a { color: var(--azm-primary); }
.azm-map { aspect-ratio: 4 / 3; border-radius: var(--azm-radius-sm); background: var(--azm-slate-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; padding: 1rem; overflow: hidden; }
.azm-map p { font-size: .75rem; color: var(--azm-muted); margin: 0; }
.azm-map.is-loaded { padding: 0; }
.azm-map iframe { width: 100%; height: 100%; border: 0; }
.azm-map-load { border: 0; background: var(--azm-navy); color: #fff; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; }
.azm-route { display: flex; flex-direction: column; gap: .3rem; margin: .75rem 0 0; font-size: .9rem; }
.azm-route a { color: var(--azm-primary) !important; }
.azm-cross h2 + p { margin-top: -.4rem; }
.azm-cross-list { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.azm-cross-list li::before { content: '→ '; color: var(--azm-accent); font-weight: 700; }
.azm-cross-list a:hover { color: var(--azm-primary) !important; }

/* ── „Wie fandet ihr's?“ ─────────────────────────────────────────────── */
.azm-rating-line { margin: -.4rem 0 1rem; font-size: .92rem; }
.azm-rating-line a { color: var(--azm-text); text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.azm-rating-line a:hover { color: var(--azm-primary); }
.azm-rating-line span { color: var(--azm-muted); }
.azm-vote { border: 2px solid var(--azm-primary-soft); background: linear-gradient(180deg, var(--azm-primary-soft), var(--azm-card) 140px); }
.azm-vote-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.5rem; align-items: center; margin-bottom: 1rem; }
.azm-vote-summary.is-empty { display: block; }
.azm-vote-summary.is-empty p { margin: 0; }
.azm-vote-score { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 120px; }
.azm-vote-score > strong { font-family: var(--azm-font-display); font-size: 2.6rem; line-height: 1; color: var(--azm-navy); }
.azm-vote-score .azm-stars { font-size: 1.1rem; }
.azm-vote-score small { color: var(--azm-muted); font-size: .8rem; }
.azm-vote-good { margin-top: .35rem; font-size: .8rem; background: #fff; border-radius: 999px; padding: .15rem .6rem; border: 1px solid var(--azm-border); }
.azm-vote-dist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.azm-vote-dist li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) 2rem; align-items: center; gap: .5rem; font-size: .85rem; }
.azm-vote-dist-face { font-size: 1.1rem; line-height: 1; }
.azm-vote-bar { height: .55rem; background: var(--azm-border); border-radius: 999px; overflow: hidden; }
.azm-vote-bar span { display: block; height: 100%; background: var(--azm-gold); border-radius: 999px; min-width: 0; }
.azm-vote-num { color: var(--azm-muted); text-align: right; font-variant-numeric: tabular-nums; }
.azm-vote-tagcloud { grid-column: 1 / -1; list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.azm-vote-tagcloud li { background: #fff; border: 1px solid var(--azm-border); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; }
.azm-vote-tagcloud li.is-hint { background: #FBF5E8; border-color: #EBDDBE; }
.azm-vote-tagcloud b { color: var(--azm-primary); margin-left: .15rem; }
.azm-vote-ask { border-top: 1px dashed var(--azm-border); padding-top: .9rem; }
.azm-vote-q { margin: 0 0 .6rem; }
.azm-vote-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; max-width: 460px; }
.azm-face { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem .45rem; border: 2px solid var(--azm-border);
    background: #fff; border-radius: var(--azm-radius-sm); cursor: pointer; font: inherit; color: var(--azm-text); transition: transform .15s, border-color .15s, background .15s; }
.azm-face-emoji { font-size: 1.9rem; line-height: 1; filter: grayscale(.35); transition: filter .15s; }
.azm-face-label { font-size: .74rem; font-weight: 600; }
.azm-face:hover { transform: translateY(-2px); border-color: var(--azm-accent); }
.azm-face:hover .azm-face-emoji, .azm-face[aria-pressed="true"] .azm-face-emoji { filter: none; }
.azm-face[aria-pressed="true"] { border-color: var(--azm-primary); background: var(--azm-primary-soft); box-shadow: 0 0 0 1px var(--azm-primary) inset; }
.azm-face[aria-pressed="true"] .azm-face-label { color: var(--azm-primary); }
.azm-vote.is-busy .azm-face { pointer-events: none; opacity: .7; }
.azm-vote-msg { margin: .7rem 0 0; font-size: .9rem; color: var(--azm-primary); font-weight: 600; }
.azm-vote-msg.is-error { color: #8C1D18; }
.azm-vote-more-btn { margin-top: .6rem; }
.azm-vote-more { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--azm-border); }
.azm-vote-tags { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.azm-vote-tags legend { font-weight: 700; font-size: .9rem; margin-bottom: .45rem; padding: 0; }
.azm-scope .azm-chip { position: relative; cursor: pointer; border: 0; padding: 0; margin: 0; background: none; box-shadow: none; display: inline-block; }
.azm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.azm-chip span { display: inline-block; border: 1.5px solid var(--azm-border); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; transition: all .15s; }
.azm-chip:hover span { border-color: var(--azm-accent); }
.azm-chip input:checked + span { background: var(--azm-primary); border-color: var(--azm-primary); color: #fff; }
.azm-chip-hint input:checked + span { background: var(--azm-gold); border-color: var(--azm-gold); color: #fff; }
.azm-chip input:focus-visible + span { outline: 3px solid var(--azm-slate); outline-offset: 2px; }
.azm-vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.azm-small { font-size: .8rem; margin: 0; }
.azm-card-toptag { margin-left: .2rem; background: var(--azm-primary-soft); color: var(--azm-primary); border-radius: 999px; padding: 0 .5rem; font-weight: 600; white-space: nowrap; }
.azm-card-rating { flex-wrap: wrap; }

/* Tipps von anderen */
.azm-review-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .75rem; margin: 0; }
.azm-review-list li { background: var(--azm-bg); border-radius: var(--azm-radius-sm); padding: .75rem 1rem; }
.azm-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .88rem; }
.azm-review-face { font-weight: 700; }
.azm-review-date { margin-left: auto; color: var(--azm-muted); font-size: .8rem; }
.azm-review-list p { margin: .4rem 0 0; }
.azm-review-tags { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.azm-review-list .azm-review-tags li { background: #fff; border: 1px solid var(--azm-border); padding: .1rem .55rem; border-radius: 999px; font-size: .76rem; }
.azm-review-form { display: flex; flex-direction: column; gap: .75rem; }
.azm-review-form[hidden] { display: none !important; }
.azm-form-msg { margin: 0; padding: .6rem .9rem; border-radius: var(--azm-radius-sm); background: var(--azm-primary-soft); }
.azm-form-msg.is-error { background: #FCEBEA; color: #8C1D18; }

/* Toast */
.azm-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 80px); opacity: 0; background: var(--azm-primary); color: #fff;
    padding: .7rem 1.4rem; border-radius: 999px; z-index: 9999; transition: all .3s; pointer-events: none; font-size: .95rem; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.azm-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.azm-toast.is-error { background: #B3261E; }

@media (max-width: 900px) {
    .azm-single-grid { grid-template-columns: 1fr; }
    .azm-single-side { position: static; }
}
@media (max-width: 600px) {
    .azm-field-q { grid-column: auto; }
    .azm-filter { padding: .9rem; }
    .azm-filter-main { grid-template-columns: 1fr 1fr; }
    .azm-filter-main .azm-field-q, .azm-filter-main .azm-field-ort { grid-column: 1 / -1; }
    .azm-grid { grid-template-columns: 1fr; }
    .azm-vote-summary { grid-template-columns: 1fr; }
    .azm-vote-row { grid-template-columns: 1fr; }
    .azm-face-label { font-size: .68rem; }
    .azm-face-emoji { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .azm-scope *, .azm-toast { transition: none !important; } }
@media print {
    .azm-filter, .azm-actions, .azm-fav, .azm-vote-ask, .azm-vote-more, .azm-map, .azm-pages { display: none !important; }
    .azm-card, .azm-box { box-shadow: none; break-inside: avoid; }
}
/* Theme-Linkfarbe auf Bedien-Links nicht übernehmen */
.entry-content .azm-scope .azm-crumbs a, .entry-content .azm-scope .azm-fact a, .entry-content .azm-scope .azm-route a { color: var(--azm-primary); }
.entry-content .azm-scope .azm-crumbs a { color: var(--azm-slate); }
.entry-content .azm-scope .azm-rating-line a { color: var(--azm-text); text-decoration: none; }
.azm-scope input::placeholder, .azm-scope textarea::placeholder { font-weight: 400; color: #8A8A8A; }
