:root {
    --ostbach-forest: #2d5a27;
    --ostbach-forest-dark: #1e3d1b;
    --ostbach-forest-soft: #3d7a35;
    --ostbach-water: #1a7a8a;
    --ostbach-water-soft: #d0eef2;
    --ostbach-cream: #f7f4ee;
    --ostbach-sand: #d8cdb8;
    --ostbach-ink: #1a2a18;
    --ostbach-muted: #5d6f5a;
    --ostbach-card: rgba(255, 255, 255, 0.96);
    --ostbach-shadow: 0 16px 38px rgba(24, 48, 21, 0.11);
}

body.ostbach-events-page {
    background: var(--ostbach-cream);
    color: var(--ostbach-ink);
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
}

.ostbach-events-page .btn {
    border-radius: 4px;
    border-color: rgba(35, 70, 40, 0.22);
    padding: 0.82rem 1.4rem;
    font-weight: 700;
    box-shadow: none;
    letter-spacing: 0.02em;
}

.ostbach-events-page .btn-primary {
    background: var(--ostbach-forest);
    border-color: var(--ostbach-forest);
    color: #fff;
}

.ostbach-events-page .btn-primary:hover,
.ostbach-events-page .btn-primary:focus-visible {
    background: var(--ostbach-forest-soft);
    border-color: var(--ostbach-forest-soft);
    color: #fff;
}

.ostbach-events-page .btn-secondary,
.ostbach-events-page .btn:not(.btn-primary) {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(35, 70, 40, 0.24);
    color: var(--ostbach-forest);
}

.ostbach-events-page .btn-secondary:hover,
.ostbach-events-page .btn-secondary:focus-visible {
    background: var(--ostbach-forest);
    color: #fff;
    border-color: var(--ostbach-forest);
}

.ostbach-events-public .app-main .app-shell {
    padding-top: 1.25rem;
    padding-bottom: 4rem;
}

.ostbach-events-public-shell {
    width: min(1200px, calc(100vw - 2rem));
    margin: 0 auto;
}

.ostbach-event-public-shell,
.ostbach-event-detail-shell {
    width: min(1180px, calc(100vw - 2rem));
    margin: 0 auto;
}

.ostbach-event-workflow-shell,
.ostbach-event-checkin-shell,
.ostbach-event-print-shell {
    width: min(1080px, calc(100vw - 2rem));
    margin: 0 auto;
}

.ostbach-events-hero,
.ostbach-events-toolbar,
.ostbach-events-content,
.ostbach-events-calendar-shell,
.ostbach-events-empty,
.ostbach-events-portal .event-app-intro,
.ostbach-events-portal .filter-bar,
.ostbach-events-portal .list-wrap,
.ostbach-events-portal .calendar-month,
.ostbach-events-portal .events-split-view,
.ostbach-events-portal > .app-main .app-shell > p:last-of-type {
    position: relative;
    background: var(--ostbach-card);
    border: 1px solid rgba(35, 70, 40, 0.08);
    border-radius: 20px;
    box-shadow: var(--ostbach-shadow);
}

.ostbach-events-hero {
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 85%, rgba(26, 122, 138, 0.1) 0, rgba(26, 122, 138, 0) 42%),
        radial-gradient(circle at 0 0, rgba(45, 90, 39, 0.07) 0, rgba(45, 90, 39, 0) 44%),
        var(--ostbach-card);
    border-radius: 20px;
}

.ostbach-events-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
    align-items: stretch;
    min-height: 420px;
}

.ostbach-events-copy {
    padding: 3rem 3rem 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ostbach-events-kicker-row {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.ostbach-events-kicker-row .line {
    width: 30px;
    height: 2px;
    background: var(--ostbach-water);
}

.ostbach-events-kicker {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--ostbach-water);
}

.ostbach-events-hero h1 {
    margin: 0;
    max-width: 15ch;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.4rem, 4.3vw, 3.95rem);
    line-height: 1.05;
    color: var(--ostbach-forest-dark);
}

.ostbach-events-lead {
    max-width: 56ch;
    margin: 1.2rem 0 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ostbach-muted);
}

.ostbach-events-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.ostbach-events-spotlight {
    background: linear-gradient(150deg, #285428 0%, #2d5a27 52%, #1a7a8a 100%);
    padding: 2.2rem 2rem;
    display: grid;
    align-content: center;
    gap: 1.1rem;
    color: #fff;
}

.ostbach-events-spotlight-card,
.ostbach-events-stats > div {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.15rem 1.15rem;
}

.spotlight-label,
.spotlight-status {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 0.32rem 0.7rem;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.spotlight-label {
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.17);
}

.spotlight-status {
    margin-top: 0.75rem;
    background: rgba(223, 241, 243, 0.24);
    color: #f2fbfc;
}

.ostbach-events-spotlight-card strong {
    display: block;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.34rem;
    line-height: 1.25;
}

.ostbach-events-spotlight-card p {
    margin: 0.55rem 0 0;
    line-height: 1.55;
    color: rgba(248, 247, 242, 0.78);
}

.ostbach-events-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ostbach-events-stats span {
    display: block;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.ostbach-events-stats small {
    color: rgba(248, 247, 242, 0.76);
    font-size: 0.82rem;
}

.ostbach-events-toolbar {
    padding: 1.6rem 1.8rem;
    margin-top: 1.4rem;
}

.ostbach-events-page .calendar-options-toggle input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ostbach-forest);
}

.ostbach-events-toolbar h2 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.55rem, 2.4vw, 2.3rem);
    color: var(--ostbach-forest-dark);
}

.ostbach-event-public-show .app-shell,
.ostbach-event-detail .app-shell,
.ostbach-event-workflow .app-shell,
.ostbach-event-checkin .app-shell,
.ostbach-event-print .app-shell {
    padding-top: 2rem;
    padding-bottom: 4rem;
}


.ostbach-events-page .view-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    width: 100%;
}

.ostbach-events-toolbar-heading {
    text-align: center;
}

.ostbach-events-kicker-row--center {
    justify-content: center;
}

.ostbach-events-view-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.ostbach-events-page .calendar-options-toggle {
    margin-top: 0.3rem;
    font-size: 0.92rem;
    color: var(--ostbach-forest);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(35, 70, 40, 0.04);
    border: 1px solid rgba(35, 70, 40, 0.12);
    border-radius: 20px;
    padding: 0.45rem 0.8rem;
}


.ostbach-events-page .view-link {
    border: 1px solid rgba(35, 70, 40, 0.24);
    background: rgba(255,255,255,0.84);
    color: var(--ostbach-forest);
    padding: 0.66rem 1.15rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    display: inline-block;
}


.ostbach-events-page .view-link:hover,
.ostbach-events-page .view-link:focus-visible {
    background: var(--ostbach-forest);
    color: #fff;
    border-color: var(--ostbach-forest);
}

.ostbach-events-page .view-link.active {
    background: var(--ostbach-forest);
    color: #fff;
    border-color: var(--ostbach-forest);
}

.ostbach-events-content,
.ostbach-events-calendar-shell,
.ostbach-events-empty {
    margin-top: 1.4rem;
    padding: 1.4rem;
}

.ostbach-event-public-content,
.ostbach-event-public-cta,
.ostbach-event-detail-shell > h1,
.ostbach-event-detail-shell > p,
.ostbach-event-detail-shell > .flash,
.ostbach-event-detail-shell > .desc,
.ostbach-event-detail-shell > .participants,
.ostbach-event-detail-shell > .event-cover-img,
.ostbach-event-workflow-shell > h1,
.ostbach-event-workflow-shell > p,
.ostbach-event-workflow-shell > .flash,
.ostbach-event-workflow-shell > form,
.ostbach-event-checkin-shell > h1,
.ostbach-event-checkin-shell > p,
.ostbach-event-checkin-shell > .flash,
.ostbach-event-checkin-shell > .stats,
.ostbach-event-checkin-shell > .search,
.ostbach-event-checkin-shell > .list,
.ostbach-event-checkin-shell > .card,
.ostbach-event-print-shell > h1,
.ostbach-event-print-shell > p,
.ostbach-event-print-shell > table {
    position: relative;
    background: var(--ostbach-card);
    border: 1px solid rgba(35, 70, 40, 0.08);
    border-radius: 28px;
    box-shadow: var(--ostbach-shadow);
}

.ostbach-event-public-content,
.ostbach-event-public-cta,
.ostbach-event-detail-shell > .participants,
.ostbach-event-detail-shell > .desc,
.ostbach-event-detail-shell > p,
.ostbach-event-detail-shell > .flash,
.ostbach-event-detail-shell > h1,
.ostbach-event-workflow-shell > h1,
.ostbach-event-workflow-shell > p,
.ostbach-event-workflow-shell > .flash,
.ostbach-event-workflow-shell > form,
.ostbach-event-checkin-shell > h1,
.ostbach-event-checkin-shell > p,
.ostbach-event-checkin-shell > .flash,
.ostbach-event-checkin-shell > .stats,
.ostbach-event-checkin-shell > .search,
.ostbach-event-checkin-shell > .list,
.ostbach-event-checkin-shell > .card,
.ostbach-event-print-shell > h1,
.ostbach-event-print-shell > p,
.ostbach-event-print-shell > table {
    margin-top: 1rem;
}

.ostbach-event-public-content {
    overflow: hidden;
    padding: 1.4rem;
}

.ostbach-event-public-content .public-event-back {
    margin-bottom: 1.2rem;
    color: var(--ostbach-muted);
    font-weight: 700;
}

.ostbach-event-public-content .public-event-hero {
    margin-bottom: 1.4rem;
    padding: 2rem;
    border: 0;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(35, 70, 40, 0.98), rgba(40, 92, 57, 0.9) 56%, rgba(47, 127, 141, 0.8) 100%);
    color: #f7f5ef !important;
}

.ostbach-event-public-content .public-event-hero h1 {
    font-size: clamp(2.5rem, 4.4vw, 4.2rem);
    max-width: 13ch;
    color: inherit !important;
}

.ostbach-event-public-content .public-event-meta {
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.ostbach-event-public-content .public-event-meta-item {
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(247, 245, 239, 0.94) !important;
}

.ostbach-event-public-content .public-event-meta-item svg {
    color: rgba(247, 245, 239, 0.74) !important;
}

.ostbach-event-public-content .public-event-cover {
    margin-bottom: 0;
    max-height: 520px;
    border-radius: 24px;
    box-shadow: 0 24px 44px rgba(23, 49, 31, 0.15);
}

.ostbach-event-public-content .public-event-desc {
    margin-top: 1.4rem;
    padding: 1.5rem 1.6rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 237, 0.92));
    color: var(--ostbach-ink);
}

.ostbach-event-public-content .public-event-desc h2,
.ostbach-event-public-content .public-event-desc h3,
.ostbach-event-public-content .public-event-desc h4 {
    color: var(--ostbach-forest);
}

.ostbach-event-public-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.6rem;
}

.ostbach-event-public-cta h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ostbach-forest);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.ostbach-event-public-cta p:last-child {
    margin-bottom: 0;
    color: var(--ostbach-muted);
}

.ostbach-events-page .event-grid {
    gap: 1rem;
}

.ostbach-events-page .event-entry {
    border: 0;
    padding: 0;
}

.ostbach-events-page .event-preview-block {
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.96));
    border: 1px solid rgba(35, 70, 40, 0.08);
    box-shadow: 0 16px 40px rgba(23, 49, 31, 0.08);
    padding-top: 0;
}

.ostbach-events-page .event-preview-media {
    min-height: 230px;
}

.ostbach-events-page .event-preview-placeholder {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(35, 70, 40, 0.82), rgba(47, 127, 141, 0.76));
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ostbach-events-page .event-preview-content {
    padding: 1.35rem 1.35rem 1.45rem;
}

.ostbach-events-page .event-preview-header h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.ostbach-events-page .event-preview-header h2 a {
    color: var(--ostbach-forest);
    text-decoration: none;
}

.ostbach-events-page .event-preview-grid {
    gap: 0.75rem;
    margin-top: 1rem;
}

.ostbach-events-page .event-preview-item {
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(47, 127, 141, 0.06);
    color: var(--ostbach-ink);
}

.ostbach-events-page .event-preview-label {
    color: var(--ostbach-muted);
}

.ostbach-events-page .event-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ostbach-water) 0%, #136675 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 0.72rem 1rem;
    font-weight: 700;
}

.ostbach-events-page .event-preview-link:hover,
.ostbach-events-page .event-preview-link:focus-visible {
    background: linear-gradient(135deg, #136675 0%, #0f5662 100%);
    color: #fff !important;
}

.ostbach-events-page .calendar-header h2 {
    margin: 0 0 1rem;
    color: var(--ostbach-forest);
    font-size: 1.4rem;
}

.ostbach-events-page .calendar-month-nav {
    display: grid;
    grid-template-columns: minmax(170px, max-content) 1fr minmax(170px, max-content);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.ostbach-events-page .calendar-month-nav .btn {
    width: 100%;
    min-width: 170px;
    text-align: center;
}

.ostbach-events-page .calendar-month-title {
    margin: 0;
    text-align: center;
    color: var(--ostbach-forest);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.ostbach-events-page .calendar-month-nav .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.ostbach-events-page .calendar-weekdays,
.ostbach-events-page .calendar-grid {
    gap: 0.75rem;
}

.ostbach-events-page .calendar-weekdays--with-weeks,
.ostbach-events-page .calendar-grid--with-weeks {
    display: grid;
    grid-template-columns: minmax(54px, 0.42fr) repeat(7, minmax(0, 1fr));
    align-items: stretch;
}

.ostbach-events-page .calendar-weekday-kw,
.ostbach-events-page .calendar-week-number {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--ostbach-muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding-left: 0.25rem;
}

.ostbach-events-page .calendar-week-number {
    min-height: 132px;
    font-size: 0.88rem;
}

.ostbach-events-page .calendar-weekdays span {
    color: var(--ostbach-muted);
}

.ostbach-events-page .calendar-day {
    min-height: 132px;
    border-radius: 12px;
    border: 1px solid rgba(35, 70, 40, 0.1);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ostbach-events-page .calendar-day.has-events {
    border-color: rgba(47, 127, 141, 0.44);
    box-shadow: inset 0 0 0 1px rgba(47, 127, 141, 0.08);
}

.ostbach-events-page .calendar-day.outside {
    background: rgba(35, 70, 40, 0.05);
    border-color: rgba(35, 70, 40, 0.14);
    color: var(--ostbach-muted);
}

.ostbach-events-page .calendar-event + .calendar-event {
    margin-top: 0.3rem;
}

.ostbach-events-page .calendar-date {
    margin-bottom: 0.1rem;
}

.ostbach-events-page .calendar-day.outside .calendar-date {
    color: var(--ostbach-muted);
}

.ostbach-events-page .calendar-event {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(47, 127, 141, 0.12), rgba(35, 70, 40, 0.08));
    color: var(--ostbach-ink);
    margin-top: 0;
    padding: 0.4rem 0.55rem;
    line-height: 1.35;
}

.ostbach-events-page .events-split-view {
    gap: 1.15rem;
}

.ostbach-events-page .events-split-calendar,
.ostbach-events-page .ostbach-events-calendar-panel {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 70, 40, 0.08);
}

.ostbach-events-portal h1 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    color: var(--ostbach-forest);
    margin-bottom: 0.35rem;
}

.ostbach-events-portal h1 + p {
    margin-bottom: 1.2rem;
    color: var(--ostbach-muted);
    font-size: 1rem;
}

.ostbach-events-portal .event-app-intro,
.ostbach-events-portal .filter-bar,
.ostbach-events-portal .list-wrap,
.ostbach-events-portal .calendar-month,
.ostbach-events-portal .events-split-view {
    margin-top: 1rem;
    padding: 1.35rem;
}

.ostbach-events-portal .event-app-intro {
    background:
        linear-gradient(135deg, rgba(35, 70, 40, 0.98), rgba(40, 92, 57, 0.9) 56%, rgba(47, 127, 141, 0.8) 100%);
    color: #f8f7f2;
}

.ostbach-events-portal .event-app-intro h2,
.ostbach-events-portal .event-app-intro p,
.ostbach-events-portal .event-app-intro-grid p {
    color: inherit;
}

.ostbach-events-portal .event-app-intro-grid > div {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem;
}

.ostbach-events-portal .filter-bar {
    background: rgba(255, 255, 255, 0.8);
}

.ostbach-events-portal .filter-grid input,
.ostbach-events-portal .filter-grid select {
    border-radius: 14px;
    border-color: rgba(35, 70, 40, 0.14);
    padding: 0.85rem 1rem;
}

.ostbach-events-portal .actions,
.ostbach-events-portal .event-extra-actions,
.ostbach-events-portal .compact-actions {
    gap: 0.7rem;
}

.ostbach-events-portal .event-extra-actions {
    padding-left: 0;
    margin: 0.8rem 0 0;
}

.ostbach-events-portal .event-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
}

.ostbach-events-portal .event-table th,
.ostbach-events-portal .event-table td {
    border-color: rgba(35, 70, 40, 0.08);
    padding: 1rem;
}

.ostbach-events-portal .event-table thead th {
    background: rgba(35, 70, 40, 0.92);
    color: #fff;
}

.ostbach-events-portal > .app-main .app-shell > p:last-of-type {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
}

.ostbach-events-portal > .app-main .app-shell > p:last-of-type a {
    color: var(--ostbach-forest);
    font-weight: 700;
}

.ostbach-event-detail-shell {
    display: grid;
    gap: 1rem;
}

.ostbach-event-detail-shell > h1 {
    margin: 0;
    padding: 1.6rem 1.7rem;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ostbach-forest);
}

.ostbach-event-detail-shell > .flash,
.ostbach-event-detail-shell > p {
    padding: 1rem 1.2rem;
}

.ostbach-event-detail-shell > p {
    margin: 0;
    color: var(--ostbach-muted);
}

.ostbach-event-detail-shell > p strong {
    color: var(--ostbach-forest);
}

.ostbach-event-detail-shell > .event-cover-img {
    margin-bottom: 0;
    max-width: 100%;
    max-height: 460px;
    padding: 0;
}

.ostbach-event-detail-shell > .desc {
    padding: 1.5rem 1.6rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.96));
}

.ostbach-event-detail-shell > .participants {
    padding: 1.35rem;
}

.ostbach-event-detail-shell > .participants h2,
.ostbach-event-detail-shell > .participants h3 {
    color: var(--ostbach-forest);
}

.ostbach-event-detail-shell .series-item,
.ostbach-event-detail-shell .budget-card,
.ostbach-event-detail-shell .checkin-summary article,
.ostbach-event-detail-shell .batch-checkin,
.ostbach-event-detail-shell .task-filter {
    border-radius: 18px;
    border-color: rgba(35, 70, 40, 0.1);
}

.ostbach-event-detail-shell .series-item.active,
.ostbach-event-detail-shell .task-filter.active {
    background: linear-gradient(135deg, rgba(35, 70, 40, 0.96), rgba(47, 127, 141, 0.82));
    border-color: transparent;
    color: #fff;
}

.ostbach-event-detail-shell table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
}

.ostbach-event-detail-shell th,
.ostbach-event-detail-shell td {
    border-color: rgba(35, 70, 40, 0.08);
    padding: 0.9rem;
}

.ostbach-event-detail-shell th {
    background: rgba(35, 70, 40, 0.92);
    color: #fff;
}

.ostbach-event-detail-shell > p:last-of-type {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.ostbach-event-detail-shell > p:last-of-type a {
    color: var(--ostbach-forest);
    font-weight: 700;
}

.ostbach-event-workflow-shell {
    display: grid;
    gap: 1rem;
}

.ostbach-event-workflow-shell > h1,
.ostbach-event-checkin-shell > h1,
.ostbach-event-print-shell > h1 {
    margin: 0;
    padding: 1.45rem 1.6rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ostbach-forest);
    font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.ostbach-event-workflow-shell > p,
.ostbach-event-checkin-shell > p,
.ostbach-event-print-shell > p {
    margin: 0;
    padding: 1rem 1.2rem;
    color: var(--ostbach-muted);
}

.ostbach-event-workflow-shell > p strong,
.ostbach-event-checkin-shell > p strong,
.ostbach-event-print-shell > p strong {
    color: var(--ostbach-forest);
}

.ostbach-event-workflow-shell > form {
    padding: 1.35rem;
}

.ostbach-event-workflow-shell .grid {
    display: grid;
    gap: 1rem;
}

.ostbach-event-workflow-shell .date-time-grid,
.ostbach-event-workflow-shell .series-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ostbach-event-workflow-shell .series-box,
.ostbach-event-workflow-shell .form-group,
.ostbach-event-workflow-shell .cover-preview {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(47, 127, 141, 0.06);
    border: 1px solid rgba(35, 70, 40, 0.08);
}

.ostbach-event-workflow-shell .series-box h2,
.ostbach-event-workflow-shell .form-group label,
.ostbach-event-workflow-shell .grid label {
    color: var(--ostbach-forest);
}

.ostbach-event-workflow-shell input,
.ostbach-event-workflow-shell select,
.ostbach-event-workflow-shell textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(35, 70, 40, 0.14);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    color: var(--ostbach-ink);
}

.ostbach-event-workflow-shell input[type='checkbox'] {
    width: auto;
    min-width: 1rem;
    padding: 0;
}

.ostbach-event-workflow-shell .actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.ostbach-event-workflow-shell .event-description-editor {
    border-radius: 22px;
    border: 1px solid rgba(35, 70, 40, 0.08);
    background: rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.ostbach-event-workflow-shell .wysiwyg-toolbar,
.ostbach-event-workflow-shell .wysiwyg-statusbar {
    background: rgba(35, 70, 40, 0.05);
}

.ostbach-event-workflow-shell .wysiwyg-editor,
.ostbach-event-workflow-shell .wysiwyg-source {
    min-height: 240px;
}

.ostbach-event-checkin-shell {
    display: grid;
    gap: 1rem;
}

.ostbach-event-checkin-shell > .stats,
.ostbach-event-checkin-shell > .search,
.ostbach-event-checkin-shell > .list,
.ostbach-event-checkin-shell > .card {
    padding: 1.2rem;
}

.ostbach-event-checkin-shell > .stats {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ostbach-event-checkin-shell > .stats span {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(47, 127, 141, 0.06);
    color: var(--ostbach-muted);
}

.ostbach-event-checkin-shell > .stats strong {
    color: var(--ostbach-forest);
}

.ostbach-event-checkin-shell > .search {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) auto;
    align-items: end;
}

.ostbach-event-checkin-shell > .search label {
    display: grid;
    gap: 0.4rem;
    color: var(--ostbach-forest);
    font-weight: 700;
}

.ostbach-event-checkin-shell > .search input,
.ostbach-event-checkin-shell > .search select {
    border-radius: 16px;
    border: 1px solid rgba(35, 70, 40, 0.14);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
}

.ostbach-event-checkin-shell > .list {
    display: grid;
    gap: 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.ostbach-event-checkin-shell .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.96));
    border-radius: 22px;
}

.ostbach-event-checkin-shell .card.ok {
    border-color: rgba(35, 122, 74, 0.22);
}

.ostbach-event-checkin-shell .card.cancelled {
    border-color: rgba(166, 54, 54, 0.18);
}

.ostbach-event-checkin-shell .card header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    color: var(--ostbach-forest);
}

.ostbach-event-checkin-shell .card p {
    color: var(--ostbach-muted);
}

.ostbach-event-checkin-shell .hint.success {
    color: #166534;
}

.ostbach-event-checkin-shell .hint.error {
    color: #b91c1c;
}

.ostbach-event-print-shell {
    display: grid;
    gap: 1rem;
}

.ostbach-event-print-shell > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.ostbach-event-print-shell th,
.ostbach-event-print-shell td {
    border: 1px solid rgba(35, 70, 40, 0.08);
    padding: 0.85rem;
    text-align: left;
}

.ostbach-event-print-shell th {
    background: rgba(35, 70, 40, 0.92);
    color: #fff;
}

.ostbach-event-print-shell .check-col {
    min-width: 120px;
}

@media (max-width: 980px) {
    .ostbach-events-hero-grid,
    .ostbach-events-toolbar,
    .ostbach-events-page .events-split-view,
    .ostbach-event-public-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .ostbach-events-toolbar {
        display: grid;
    }

    .ostbach-events-page .calendar-options-form {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 800px) {
    .ostbach-events-public-shell {
        width: min(100vw - 1rem, 1180px);
    }

    .ostbach-event-public-shell,
    .ostbach-event-detail-shell,
    .ostbach-event-workflow-shell,
    .ostbach-event-checkin-shell,
    .ostbach-event-print-shell {
        width: min(100vw - 1rem, 1180px);
    }

    .ostbach-events-hero,
    .ostbach-events-toolbar,
    .ostbach-events-content,
    .ostbach-events-calendar-shell,
    .ostbach-events-empty,
    .ostbach-event-public-content,
    .ostbach-event-public-cta,
    .ostbach-event-detail-shell > h1,
    .ostbach-event-detail-shell > p,
    .ostbach-event-detail-shell > .flash,
    .ostbach-event-detail-shell > .desc,
    .ostbach-event-detail-shell > .participants,
    .ostbach-event-workflow-shell > h1,
    .ostbach-event-workflow-shell > p,
    .ostbach-event-workflow-shell > .flash,
    .ostbach-event-workflow-shell > form,
    .ostbach-event-checkin-shell > h1,
    .ostbach-event-checkin-shell > p,
    .ostbach-event-checkin-shell > .flash,
    .ostbach-event-checkin-shell > .stats,
    .ostbach-event-checkin-shell > .search,
    .ostbach-event-checkin-shell > .card,
    .ostbach-event-print-shell > h1,
    .ostbach-event-print-shell > p,
    .ostbach-event-print-shell > table,
    .ostbach-events-portal .event-app-intro,
    .ostbach-events-portal .filter-bar,
    .ostbach-events-portal .list-wrap,
    .ostbach-events-portal .calendar-month,
    .ostbach-events-portal .events-split-view {
        border-radius: 22px;
        padding: 1rem;
    }

    .ostbach-events-page .calendar-month {
        overflow-x: auto;
    }

    .ostbach-events-page .calendar-grid {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .ostbach-events-page .calendar-day {
        min-height: auto;
    }

    .ostbach-events-page .calendar-weekdays {
        display: none;
    }

    .ostbach-events-page .calendar-month-nav {
        grid-template-columns: 1fr;
    }

    .ostbach-events-page .calendar-month-nav .btn {
        width: 100%;
        min-width: 0;
    }

    .ostbach-events-page .calendar-month-title {
        order: -1;
    }

    .ostbach-events-page .calendar-weekdays--with-weeks,
    .ostbach-events-page .calendar-grid--with-weeks {
        min-width: 760px;
        display: grid;
        grid-template-columns: minmax(46px, 0.38fr) repeat(7, minmax(92px, 1fr));
    }

    .ostbach-events-page .calendar-weekdays--with-weeks {
        margin-bottom: 0.5rem;
    }

    .ostbach-events-page .calendar-week-number {
        min-height: 110px;
        font-size: 0.8rem;
    }

    .ostbach-events-page .event-preview-content {
        padding: 1rem;
    }

    .ostbach-event-public-content .public-event-hero,
    .ostbach-event-public-content .public-event-desc,
    .ostbach-event-detail-shell > .desc,
    .ostbach-event-detail-shell > .participants,
    .ostbach-event-public-cta,
    .ostbach-event-workflow-shell > form,
    .ostbach-event-checkin-shell > .stats,
    .ostbach-event-checkin-shell > .search,
    .ostbach-event-checkin-shell > .card,
    .ostbach-event-print-shell > table {
        padding: 1rem;
    }

    .ostbach-event-workflow-shell .date-time-grid,
    .ostbach-event-workflow-shell .series-grid,
    .ostbach-event-checkin-shell > .search {
        grid-template-columns: 1fr;
    }
}

@media print {
    body.ostbach-event-print {
        background: #fff;
    }

    .ostbach-event-print-shell,
    .ostbach-event-print-shell > h1,
    .ostbach-event-print-shell > p,
    .ostbach-event-print-shell > table {
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-color: #d1d5db;
        background: #fff;
    }
}
