/* Ergänzungen für Bausteine der neuen App (ersetzen FooGallery, dFlip-Archiv, SureForms).
   Farben und Abstände an das Theme angelehnt. */

/* WordPress «Header-Textfarbe: ausgeblendet» – Titel nur für Screenreader, das Logo trägt den Namen */
.site-title,
.site-description {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
}

/* FooGallery Spotlight: Zuschnitt 840×500 wie der frühere Bild-Cache */
.foogallery.fg-image-viewer .fg-image { aspect-ratio: 840 / 500; height: auto; object-fit: cover; }

.see-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 1.5em 0;
}
.see-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
}
.see-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.see-gallery-item:hover img { transform: scale(1.05); }
.see-gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 6px 8px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

.see-video { margin: 0 0 1.5em; }
.see-video video { display: block; width: 100%; height: auto; max-height: 80vh; border-radius: 6px; background: #000; }
.see-video video[data-hls] { aspect-ratio: 16 / 9; object-fit: contain; }
.see-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.see-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.see-video figcaption { margin-top: .5em; font-size: .875em; color: #666; text-align: center; }

.see-issues {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    margin: 1em 0;
}
.see-issue { display: block; text-align: center; text-decoration: none; }
.see-issue img {
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.see-issue:hover img { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.see-issue-title { display: block; margin-top: 8px; font-size: 14px; }

/* Formulare (ersetzen SureForms), an Theme-Typografie und Akzentfarbe angelehnt */
.see-form { display: grid; gap: 18px; margin: 1.5em 0; }
.see-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.see-form-row--three { grid-template-columns: repeat(3, 1fr); }
.see-form-row--street { grid-template-columns: 3fr 1fr; }
.see-form-row--city { grid-template-columns: 1fr 3fr; }
@media (max-width: 610px) {
    .see-form-row, .see-form-row--three, .see-form-row--street, .see-form-row--city { grid-template-columns: 1fr; }
}
.see-form-field { display: flex; flex-direction: column; gap: 6px; }
.see-form-field label, .see-form-group legend { font-size: 15px; font-weight: 600; color: #1f2933; }
.see-form .req { color: #c2113c; }
.see-form-group { display: grid; gap: 14px; margin: 0; padding: 16px; border: 1px solid #e6eaf0; border-radius: 8px; }
.see-form-group legend { padding: 0 6px; }
.see-form .validation-message { color: #c2113c; font-size: 14px; }
.see-form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.see-form-success {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 1.5em 0;
    padding: 18px 20px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #065f46;
}
.see-form-success i { font-size: 28px; }
.see-form-error { margin: 0 0 1em; padding: 12px 16px; border-radius: 8px; background: #fef2f2; color: #991b1b; }
.see-form-success p { margin: 0; }

/* Monatsansicht auf dem Handy: Titel der Veranstaltungen direkt im Tag (TEC zeigt dort sonst eine separate Liste) */
.see-month-mobile-events { display: none; }
.tribe-events:not(.tribe-common--breakpoint-medium) .see-month-mobile-events {
    display: block;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.3;
}
.tribe-events:not(.tribe-common--breakpoint-medium) .see-month-mobile-events li + li { margin-top: 3px; }
.see-venue-meta { list-style: none; padding: 0; margin: 0 0 1.5em; }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: .6rem 1.25rem .7rem 1.25rem;
    background: lightyellow;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* Startseite, Banner rechts: neueste Printausgabe und nächste Veranstaltungen (statt der neuesten Beiträge,
   die gleich darunter in der Liste stehen). Gleiche Höhe wie die Theme-Kacheln (248.8px). */
.see-banner-tile { position: relative; height: 248.8px; overflow: hidden; color: #fff; }
.see-banner-tile a { color: inherit; text-decoration: none; }
.see-banner-link { position: absolute; inset: 0; display: flex; align-items: stretch; }
.see-banner-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px 24px; flex: 1; min-width: 0; }
.see-banner-label { align-self: flex-start; padding: 3px 10px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.see-banner-title { font-size: 20px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.see-banner-sub { font-size: 13.5px; opacity: .9; }
.see-banner-cta { margin-top: 4px; font-size: 14px; font-weight: 600; }
.see-banner-cta i { margin-left: 4px; transition: transform .2s ease; }
.see-banner-link:hover .see-banner-cta i { transform: translateX(3px); }
.see-banner-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* Printausgabe: Logo-Blau, Titelseite rechts leicht schräg */
.see-banner-issue { background: linear-gradient(135deg, #0e4185 0%, #1250a3 55%, #2f7fd8 100%); }
.see-banner-tile img.see-banner-cover { flex: none; align-self: center; height: 84%; width: auto; max-width: 42%; margin-right: 22px; aspect-ratio: 210 / 297; object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transform: rotate(3deg); transition: transform .3s ease; background: #fff; }
.see-banner-issue .see-banner-link:hover .see-banner-cover { transform: rotate(0deg) scale(1.03); }

/* Veranstaltungen: Bild der nächsten Veranstaltung (sonst dunkel), Datum als Kalenderblatt */
/* Spalte: oben die nächste Veranstaltung, darunter die weiteren (die Liste kann umbrechen und schiebt den Text nach oben) */
.see-banner-events { background: #0a1423; display: flex; flex-direction: column; }
.see-banner-events .see-banner-link { position: relative; inset: auto; flex: 1; min-height: 0; }
.see-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.see-banner-events .see-banner-link:hover .see-banner-bg { transform: scale(1.04); }
.see-banner-events .see-banner-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 35, .92) 20%, rgba(10, 20, 35, .35) 70%, rgba(10, 20, 35, .15)); }
.see-banner-events .see-banner-text { padding-bottom: 4px; }
.see-banner-date { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 54px; padding: 5px 0 6px; background: #fff; color: #0e4185;
    font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1.1; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.see-banner-date strong { font-size: 22px; }
.see-banner-more { position: relative; z-index: 2; flex: none; margin: 0; padding: 8px 24px 12px; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.see-banner-more li { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.see-banner-more a { opacity: .9; }
.see-banner-more a:hover { opacity: 1; text-decoration: underline; }
.see-banner-more span { font-weight: 700; margin-right: 3px; }
.see-banner-all { font-weight: 600; }

@media (max-width: 768px) {
    .see-banner-tile { height: 220px; }
    .see-banner-text { padding: 16px; }
    .see-banner-title { font-size: 17px; }
    .see-banner-tile img.see-banner-cover { margin-right: 14px; }
    .see-banner-more { padding: 6px 16px 10px; }
    .see-banner-more li:not(:last-child) { display: none; }
}
@media (max-width: 480px) {
    /* Auf dem Handy untereinander statt zwei schmale Kacheln nebeneinander */
    .banner-layout--six.layout--row .row .main-banner-trailing-posts .trailing-posts-wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .see-banner-cover, .see-banner-bg, .see-banner-cta i { transition: none; }
}

/* Veranstaltungen: sichtbarer Seitentitel über der Suchleiste (wie die übrigen Seitentitel) */
.tribe-events .tribe-events-header__content-title { display: block; margin: 0 0 18px; }
.tribe-events h1.see-events-title { margin: 0; font-family: var(--see-font); font-size: 30px; font-weight: 700; line-height: 1.2; color: #141414; }
@media (max-width: 768px) { .tribe-events h1.see-events-title { font-size: 24px; } }

/* Veranstaltungen: Woche (Mo–So nebeneinander, Handy untereinander) */
.tribe-events .see-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 12px 0 24px; }
.tribe-events .see-week-day { display: flex; flex-direction: column; gap: 8px; min-height: 160px; padding: 8px; border: 1px solid #e4e4e4; border-radius: 8px; background: #fff; }
.tribe-events .see-week-day.is-past { opacity: .6; }
.tribe-events .see-week-day.is-today { border-color: var(--see-accent); box-shadow: inset 0 3px 0 var(--see-accent); }
.tribe-events .see-week-date { margin: 0; text-align: center; }
.tribe-events .see-week-date a { display: grid; color: #141414; text-decoration: none; }
.tribe-events .see-week-weekday { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5d5d5d; }
.tribe-events .see-week-daynum { font-size: 22px; font-weight: 700; line-height: 1.1; }
.tribe-events .see-week-day.is-today .see-week-daynum { color: var(--see-accent); }
.tribe-events .see-week-none { margin: auto 0; text-align: center; color: #b0b0b0; }
.tribe-events .see-week-event a { display: grid; gap: 3px; padding: 8px; border-radius: 6px; background: #f3fbfd; border-left: 3px solid var(--see-accent); color: #141414; text-decoration: none; font-size: 13px; line-height: 1.3; transition: background .15s ease; }
.tribe-events .see-week-event a:hover { background: #e3f6fa; }
.tribe-events .see-week-event img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.tribe-events .see-week-time { font-size: 12px; color: #5d5d5d; }
.tribe-events .see-week-title { font-weight: 700; overflow-wrap: anywhere; }
.tribe-events .see-week-venue { font-size: 12px; color: #5d5d5d; }
@media (max-width: 900px) {
    .tribe-events .see-week { grid-template-columns: 1fr; }
    .tribe-events .see-week-day { flex-direction: row; flex-wrap: wrap; align-items: flex-start; min-height: 0; }
    .tribe-events .see-week-day.is-empty { display: none; }
    .tribe-events .see-week-date { flex: 0 0 52px; }
    .tribe-events .see-week-event { flex: 1 1 220px; }
    .tribe-events .see-week-event img { display: none; }
}

/* Veranstaltungen: Zusammenfassung – Ort unter dem Titel */
.tribe-events .see-summary-venue { display: block; flex-basis: 100%; margin-top: 2px; color: #5d5d5d; }

/* Veranstaltungen: Karte (Liste links, Karte rechts mitlaufend) */
.tribe-events .see-map { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; margin: 12px 0 24px; align-items: start; }
.tribe-events .see-map-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 640px; overflow: auto; padding-right: 4px; }
.tribe-events .see-map-item { border: 1px solid #e4e4e4; border-radius: 8px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.tribe-events .see-map-item:hover { border-color: #bfe9f3; }
.tribe-events .see-map-item.is-active { border-color: var(--see-accent); box-shadow: 0 0 0 1px var(--see-accent); }
.tribe-events .see-map-pick { display: flex; gap: 12px; padding: 12px; color: #141414; text-decoration: none; }
.tribe-events .see-map-date { flex: none; display: grid; place-items: center; width: 48px; height: 52px; border-radius: 6px; background: var(--see-accent); color: #fff; font-size: 11px; text-transform: uppercase; line-height: 1.05; }
.tribe-events .see-map-date strong { font-size: 20px; }
.tribe-events .see-map-text { display: grid; gap: 2px; min-width: 0; }
.tribe-events .see-map-title { font-weight: 700; line-height: 1.3; }
.tribe-events .see-map-meta, .tribe-events .see-map-venue { font-size: 13px; color: #5d5d5d; }
.tribe-events .see-map-item:not(.is-active) .see-map-details { display: none; }
.tribe-events .see-map-details { display: inline-block; margin: 0 12px 12px 72px; font-size: 13px; font-weight: 600; }
.tribe-events .see-map-panel { position: sticky; top: 16px; height: 520px; border-radius: 10px; overflow: hidden; border: 1px solid #e4e4e4; background: #eef6f8; display: flex; flex-direction: column; }
.tribe-events .see-map-frame { flex: 1; width: 100%; border: 0; }
.tribe-events .see-map-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: #fff; font-size: 13px; }
.tribe-events .see-map-placeholder { margin: auto; padding: 24px; text-align: center; color: #3a3a3a; display: grid; gap: 10px; justify-items: center; }
.tribe-events .see-map-placeholder > i { font-size: 44px; color: var(--see-accent); }
.tribe-events .see-map-button { display: inline-block; padding: 9px 22px; border-radius: 999px; background: var(--see-button); color: #fff !important; font-weight: 600; text-decoration: none; }
.tribe-events .see-map-button:hover { filter: brightness(.93); }
.tribe-events .see-map-note { margin: 0; font-size: 12px; color: #6b6b6b; }
@media (max-width: 900px) {
    .tribe-events .see-map { grid-template-columns: 1fr; }
    .tribe-events .see-map-panel { position: static; order: -1; height: 340px; }
    .tribe-events .see-map-list { max-height: none; }
}

/* Suche: erneut suchen, Filter Alles / Beiträge / Printausgaben, Ausgaben als Kacheln wie im Banner der Startseite */
.see-search-head { display: grid; gap: 14px; margin-bottom: 24px; }
.see-search-head .page-title { margin: 0; }
.see-search-again { display: flex; gap: 8px; max-width: 560px; }
.see-search-again input[type=search] { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid #d6d6d6; border-radius: 999px; font: inherit; font-size: 15px; }
.see-search-again input[type=search]:focus { outline: none; border-color: var(--see-accent); box-shadow: 0 0 0 3px rgba(6, 182, 212, .2); }
.see-search-again button { height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--see-button); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.see-search-again button:hover { filter: brightness(.93); }
.see-search-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.see-search-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid #e0e0e0; border-radius: 999px; background: #fff; color: #333 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: border-color .15s ease, background .15s ease; }
.see-search-tab span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #f0f0f0; font-size: 12px; text-align: center; }
.see-search-tab:hover { border-color: var(--see-accent); }
.see-search-tab.is-active { background: var(--see-button); border-color: var(--see-button); color: #fff !important; }
.see-search-tab.is-active span { background: rgba(255, 255, 255, .25); }
.see-search-none { color: #5d5d5d; }
.see-search-posts-title { margin-top: 8px; }

.see-issue-results { margin: 0 0 32px; }
.see-issue-results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.see-issue-results-head a { font-size: 14px; font-weight: 600; }
.see-issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 12px; }
.see-issue-card { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); border: 1px solid #ececec; color: #333 !important; text-decoration: none !important; transition: box-shadow .2s ease, transform .2s ease; }
.see-issue-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.see-issue-card:focus-visible { outline: 3px solid var(--see-accent); outline-offset: 2px; }
.see-issue-card-head { display: flex; align-items: center; gap: 12px; min-height: 160px; padding: 16px 0 16px 18px; color: #fff; background: linear-gradient(135deg, #0e4185 0%, #1250a3 55%, #2f7fd8 100%); }
.see-issue-card-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.see-issue-card-title { font-size: 19px; font-weight: 700; line-height: 1.2; }
.see-issue-card-sub { font-size: 13px; opacity: .9; }
.see-issue-card-head img.see-issue-card-cover { flex: none; width: 92px !important; height: auto !important; margin-right: 16px; aspect-ratio: 210 / 297; object-fit: cover; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transform: rotate(3deg); transition: transform .3s ease; background: #fff; }
.see-issue-card:hover .see-issue-card-cover { transform: rotate(0deg) scale(1.03); }
.see-issue-card-snippet { padding: 14px 18px 0; font-size: 14px; line-height: 1.55; color: #4a4a4a; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.see-issue-card-snippet mark { background: #fff1a8; color: inherit; padding: 0 2px; border-radius: 2px; }
.see-issue-card-cta { margin-top: auto; padding: 12px 18px 16px; font-size: 14px; font-weight: 600; color: #1250a3; }
.see-issue-card-cta i { margin-left: 4px; transition: transform .2s ease; }
.see-issue-card:hover .see-issue-card-cta i { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .see-issue-card, .see-issue-card-cover, .see-issue-card-cta i { transition: none; } .see-issue-card:hover { transform: none; } }
/* Theme setzt Blocktitel auf «Capitalize» – auf Deutsch falsch («In Den Printausgaben») */
.see-search-head .page-title, .see-issue-results .pubnews-block-title, .see-search-posts-title { text-transform: none; }
@media (min-width: 769px) and (max-width: 1100px) { .see-issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.see-issue-grid .see-issue-card-title { font-size: 17px; }
.see-issue-grid .see-issue-card-head img.see-issue-card-cover { width: 78px !important; }
.tribe-events .see-map { scroll-margin-top: 20px; }
