/* Walsrode Events – Startseite v2 (Redesign 2026-11)
   Layout: große Frage als Kopf, nach Tagen gegliederte Agenda (funktioniert ohne Plakate), Kalender rechts,
   Bingo-Highlight-Band, Anbieter-Teaser, Sponsoren. Nutzt die Farb- und Schrift-Tokens aus site.css. */

.page-index .category-ribbon { display: none; }

.hv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: end;
    padding: 34px 0 22px;
}

.hv-kicker {
    font: 700 12px var(--we-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--we-red);
}

.hv-hero h1 {
    font-family: var(--we-serif);
    font-size: clamp(36px, 5.4vw, 62px);
    line-height: 1.04;
    letter-spacing: -.03em;
    margin: 10px 0 0;
    color: var(--we-ink);
    text-wrap: balance;
}

.hv-hero h1 em {
    font-style: normal;
    color: var(--we-red);
}

.hv-lead {
    font-size: 17px;
    color: var(--we-ink-soft);
    margin: 14px 0 0;
    max-width: 52ch;
}

.hv-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    background: var(--we-paper);
    border: 1px solid var(--we-line-strong);
    border-radius: 14px;
    padding: 6px 6px 6px 14px;
    max-width: 580px;
}

.hv-search i { color: var(--we-muted); }

.hv-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 4px;
    font-size: 16px;
    color: var(--we-ink);
}

.hv-search .btn { border-radius: 10px; }

.hv-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hv-chip {
    border: 1px solid var(--we-line-strong);
    background: var(--we-paper);
    color: var(--we-ink);
    border-radius: 999px;
    padding: 7px 14px;
    font: 600 13.5px var(--we-sans);
    cursor: pointer;
}

.hv-chip small { color: var(--we-muted); font-weight: 600; margin-left: 3px; }
.hv-chip[aria-pressed="true"] { background: var(--we-ink); border-color: var(--we-ink); color: #fff; }
.hv-chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }

.hv-scan {
    position: relative;
    overflow: hidden;
    background: #14161c;
    color: #f3f4f6;
    border-radius: 18px;
    padding: 22px;
}

.hv-scan::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 34px solid rgba(213, 22, 29, .35);
    pointer-events: none;
}

.hv-scan-tag {
    font: 700 11px var(--we-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f2c14e;
}

.hv-scan h2 {
    position: relative;
    font-family: var(--we-serif);
    font-size: 22px;
    margin: 8px 0 6px;
    color: #fff;
}

.hv-scan p {
    position: relative;
    margin: 0 0 16px;
    color: #c9ccd4;
    font-size: 14px;
    max-width: 34ch;
}

.hv-scan-row,
.hv-band-row {
    position: relative;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hv-btn-light {
    background: #fff;
    color: #111827;
    border: 1px solid #fff;
}

.hv-btn-ghost {
    background: var(--we-paper);
    color: var(--we-ink);
    border: 1px solid var(--we-line-strong);
}

/* Kategorien */
.hv-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: thin;
}

.hv-cat {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--we-line);
    background: var(--we-paper);
    border-radius: 12px;
    padding: 9px 14px;
    font-weight: 600;
    color: var(--we-ink);
    text-decoration: none;
}

.hv-cat i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hv-cat:hover { border-color: var(--c); }
.hv-cat[aria-current="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }

/* Abschnitte */
.hv-section { padding: 26px 0; position: relative; }
.hv-anchor { position: absolute; top: -80px; }

.hv-sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hv-sec-head h2 {
    font-family: var(--we-serif);
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -.02em;
    margin: 0;
    color: var(--we-ink);
}

.hv-sec-head a { font-weight: 600; color: var(--we-red); text-decoration: none; }

.hv-soon {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--we-red);
    background: #fdecec;
    border-radius: 999px;
    padding: 3px 10px;
}

/* Agenda */
.hv-agenda {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.hv-day { margin-bottom: 18px; }

.hv-day-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 4px 8px;
    border-bottom: 2px solid var(--we-ink);
    margin-bottom: 4px;
}

.hv-day-head b { font-family: var(--we-serif); font-size: 20px; }
.hv-day-head span { color: var(--we-muted); font-size: 13.5px; }

.hv-day-head .hv-today {
    background: var(--we-red);
    color: #fff;
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hv-ev {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid var(--we-line);
    border-radius: 10px;
    color: var(--we-ink);
    text-decoration: none;
    transition: background-color .15s;
}

.hv-ev:hover { background: var(--we-paper); }

.hv-time {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 15px;
}

.hv-time small { display: block; color: var(--we-muted); font-weight: 500; font-size: 11.5px; }
.hv-info { min-width: 0; display: grid; }
.hv-t { font-weight: 600; font-size: 16px; line-height: 1.3; }

.hv-p {
    color: var(--we-muted);
    font-size: 13.5px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--c);
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
    background: color-mix(in srgb, var(--c) 9%, transparent);
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}

.hv-thumb {
    width: 46px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 1px var(--we-line);
}

.hv-empty {
    padding: 30px;
    text-align: center;
    color: var(--we-muted);
    background: var(--we-paper);
    border-radius: 14px;
}

.hv-empty a { color: var(--we-red); font-weight: 600; }

/* Seitenleiste */
.hv-side { display: grid; gap: 16px; position: sticky; top: 16px; }

.hv-card {
    display: block;
    background: var(--we-paper);
    border: 1px solid var(--we-line);
    border-radius: 16px;
    padding: 18px;
    color: var(--we-ink);
    text-decoration: none;
}

.hv-card h3 { font-family: var(--we-serif); font-size: 18px; margin: 0 0 10px; }
.hv-card p { margin: 0 0 12px; color: var(--we-muted); font-size: 14px; }

.hv-cal-head { display: flex; justify-content: space-between; align-items: center; }
.hv-cal-head h3 { margin: 0 0 10px; }

.hv-cal-head a {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--we-line);
    color: var(--we-ink);
    text-decoration: none;
    font-size: 18px;
}

.hv-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.hv-cal-h { color: var(--we-muted); font-weight: 600; font-size: 11px; padding-bottom: 2px; }

.hv-cal-d {
    position: relative;
    border: 0;
    background: none;
    padding: 6px 0;
    border-radius: 8px;
    font: inherit;
    color: var(--we-ink);
}

.hv-cal-d:disabled { color: var(--we-muted); cursor: default; }
.hv-cal-d.has { cursor: pointer; font-weight: 700; }
.hv-cal-d.has:hover { background: #fdecec; }

.hv-cal-d.has::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--we-red);
}

.hv-cal-d.past { opacity: .45; }
.hv-cal-d.is-today { background: var(--we-red); color: #fff; opacity: 1; }
.hv-cal-d.is-today::after { background: #fff; }

.hv-fb { display: flex; gap: 12px; align-items: center; }

.hv-fb b {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #1877f2;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.hv-fb span span { display: block; color: var(--we-muted); font-size: 13.5px; }

/* Highlight-Band */
.hv-band {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #14161c;
    color: #f3f4f6;
    border-radius: 22px;
    overflow: hidden;
    margin: 10px 0;
}

.hv-band img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }

.hv-band-txt {
    padding: 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.hv-band h2 {
    font-family: var(--we-serif);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
    margin: 0;
    color: #fff;
}

.hv-band p { margin: 0; color: #c9ccd4; max-width: 60ch; }
.hv-band-dates { display: flex; gap: 8px; flex-wrap: wrap; }

.hv-band-dates span {
    border: 1px solid #3a3f4c;
    border-radius: 10px;
    padding: 6px 11px;
    font-weight: 600;
    font-size: 13.5px;
}

/* Anbieter */
.hv-pros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.hv-pro {
    background: var(--we-paper);
    border: 1px solid var(--we-line);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.hv-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fdecec;
    color: var(--we-red);
    font-size: 20px;
}

.hv-pro b { font-family: var(--we-serif); font-size: 18px; }
.hv-pro > span:last-child { color: var(--we-muted); font-size: 13.5px; }

.hv-pro-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px dashed var(--we-red);
    border-radius: 14px;
    background: #fff6f5;
}

.hv-pro-cta span { display: block; color: var(--we-muted); font-size: 14px; }

.hv-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.hv-video video, .hv-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }

@media (max-width: 980px) {
    .hv-hero, .hv-agenda { grid-template-columns: minmax(0, 1fr); }
    .hv-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .hv-pros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .hv-hero { padding: 20px 0 14px; gap: 18px; }
    .hv-scan::after { right: -110px; top: -120px; }
    .hv-band { grid-template-columns: minmax(0, 1fr); }
    .hv-band img { min-height: 0; max-height: 240px; }
    .hv-band-txt { padding: 22px; }
    .hv-ev { grid-template-columns: 52px minmax(0, 1fr); }
    .hv-ev .hv-tag { grid-column: 2; justify-self: start; }
    .hv-ev .hv-thumb { display: none; }
}

@media (max-width: 440px) {
    .hv-pros { grid-template-columns: minmax(0, 1fr); }
    .hv-search .btn { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hv-ev { transition: none; }
}

a.hv-pro { color: var(--we-ink); text-decoration: none; transition: border-color .15s; }
a.hv-pro:hover { border-color: var(--we-red); }
.hv-pro-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }


/* Wetter-Hinweis zum Event-Tag */
.hv-wx {
    color: var(--we-muted);
    font-size: 12.5px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-wx-l { font-weight: 600; }

.hv-wx-src {
    margin: 10px 8px 0;
    color: var(--we-muted);
    font-size: 12px;
}

/* Compact phone start: discovery controls first, submission stays on the + action. */
.hv-mobile-tools { display: block; max-width: 260px; margin-top: 18px; }
.hv-mobile-views { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3px; padding: 3px; border: 1px solid var(--we-line); border-radius: 12px; background: var(--we-paper); }
.hv-mobile-views a { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; padding: 0 7px; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--we-ink); }
.hv-mobile-views a[aria-current="page"] { background: var(--we-red); color: #fff; }
.hv-mobile-views a:focus-visible { outline: 2px solid var(--we-red); outline-offset: 2px; }
.hv-mobile-period { display: none; }
@media (max-width: 760px) {
    .page-index .brand-copy { display: none; }
    .hv-hero { display: block; padding: 16px 0 12px; }
    .hv-hero h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.025em; }
    .hv-kicker, .hv-lead, .hv-hero > .hv-scan, .hv-quick { display: none; }
    .hv-mobile-tools { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 14px; }
    .hv-mobile-views { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3px; padding: 3px; border: 1px solid var(--we-line); border-radius: 12px; background: var(--we-paper); }
    .hv-mobile-views a { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; padding: 0 7px; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--we-ink); }
    .hv-mobile-views a[aria-current="page"] { background: var(--we-red); color: #fff; }
    .hv-mobile-views a:focus-visible { outline: 2px solid var(--we-red); outline-offset: 2px; }
    .hv-mobile-period { display: block; min-width: 0; margin: 0; }
    .hv-mobile-period select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid var(--we-line); border-radius: 12px; background: var(--we-paper); color: var(--we-ink); font-family: var(--we-sans); font-size: 16px; }
    .hv-search { margin-top: 10px; padding: 4px 4px 4px 11px; border-radius: 12px; }
    .hv-search input { min-height: 38px; font-size: 16px; padding: 6px 2px; }
    .hv-search .btn { min-height: 40px; padding: 8px 12px; font-size: 13px; }
    .hv-cats { margin-block: 0 14px; padding-bottom: 6px; }
    .hv-section#veranstaltungen { padding-top: 0; }
    .hv-sec-head { margin-bottom: 12px; }
    .hv-sec-head h2 { font-size: 23px; }
}

/* Reuse the real Event-Archiv card styles and responsive grid. */
.hv-agenda--archive { display: block; }
.hv-home-archive-grid .hv-day { min-width: 0; margin-bottom: 0; }
.hv-home-archive-grid .archive-card[hidden],.hv-home-archive-grid .hv-empty[hidden] { display: none; }
.hv-home-archive-grid .hv-wx-src,.hv-home-archive-grid .hv-empty { grid-column: 1/-1; }
.hv-home-archive-grid .archive-meta { overflow-wrap: anywhere; }
.hv-archive-weather { flex-basis: 100%; }
.hv-archive-today { position: absolute; top: 16px; right: 16px; padding: 5px 8px; border-radius: 6px; color: #fff; background: var(--we-red); font-size: 11px; font-weight: 700; }
.hv-agenda--archive>.hv-side { position: static; margin-top: 24px; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
@media(max-width:980px) { .hv-agenda--archive>.hv-side { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:680px) { .hv-agenda--archive>.hv-side { grid-template-columns: minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .hv-home-archive-grid .archive-card-image img { transition: none; } .hv-home-archive-grid .archive-card:hover .archive-card-image img { transform: none; } }

/* The title link covers the card; the interest link stays independently accessible. */
.hv-home-archive-grid .archive-card { display: block; color: inherit; text-decoration: none; }
.hv-home-archive-grid .archive-card:focus-visible { outline: 3px solid var(--we-red); outline-offset: 3px; }

.hv-home-archive-grid .archive-card { position: relative; }
.hv-home-archive-grid .hv-card-detail { color: inherit; text-decoration: none; }
.hv-home-archive-grid .hv-card-detail::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hv-home-archive-grid .hv-card-detail:focus-visible { outline: none; }
.hv-home-archive-grid .archive-card:has(.hv-card-detail:focus-visible) { outline: 3px solid var(--we-red); outline-offset: 3px; }
.hv-home-archive-grid .archive-card-footer { flex-wrap: wrap; gap: 10px; }
.hv-home-archive-grid .archive-card-footer > span { min-width: 0; overflow-wrap: anywhere; flex: 1 1 100px; }
.hv-home-archive-grid .hv-card-interest { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--we-red); border-radius: 9px; color: var(--we-red); background: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; box-sizing: border-box; }
.hv-home-archive-grid .hv-card-interest:hover { background: #fff2f2; }
.hv-home-archive-grid .hv-card-interest:focus-visible { outline: 3px solid var(--we-red); outline-offset: 3px; }

.hv-home-archive-grid .hv-card-interest__count { min-width: 22px; padding: 3px 6px; border-radius: 99px; background: #fff0f1; font-variant-numeric: tabular-nums; text-align: center; }
