* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f4f4;
    --surface: #ffffff;
    --text: #202020;
    --muted: #6b6b6b;
    --border: #dddddd;
    --dark: #151515;
    --accent: #c8a84d;
    --danger: #a61616;
    --max-width: 1220px;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}

a {
    color: inherit;
}

.wrap {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: var(--dark);
    color: #fff;
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .02em;
}

.brand span {
    font-weight: 400;
    color: #d8d8d8;
}

.top-nav {
    display: flex;
    gap: 20px;
}

.top-nav a {
    text-decoration: none;
    padding: 25px 0 21px;
    border-bottom: 3px solid transparent;
}

.top-nav a.active {
    border-bottom-color: var(--accent);
}

.hero {
    background: #242424;
    color: #fff;
    padding: 42px 0;
}

.hero-small {
    padding: 30px 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
}

.hero p {
    margin: 12px 0 0;
    color: #d0d0d0;
    font-size: 17px;
}

.country-tabs {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tabs-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
}

.country-tabs a {
    flex: 0 0 auto;
    padding: 15px 18px;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.country-tabs a.active {
    border-bottom-color: var(--accent);
}

.main-content {
    padding-top: 28px;
    padding-bottom: 60px;
}

.filters {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
}

.filters label {
    display: block;
}

.filters label span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

.filters input,
.filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c9c9c9;
    background: #fff;
    padding: 8px 10px;
    font: inherit;
}

.filters button {
    min-height: 42px;
    border: 0;
    background: var(--dark);
    color: #fff;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
}

.result-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.result-heading h2 {
    margin: 0;
    font-size: 27px;
}

.result-heading p {
    margin: 3px 0 0;
    color: var(--muted);
}

.result-heading > a {
    font-weight: 700;
}

.event-list {
    display: grid;
    gap: 14px;
}

.event-card {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    background: var(--surface);
    border: 1px solid var(--border);
}

.event-date-box {
    background: #ebebeb;
    min-height: 100%;
    padding: 18px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 42px;
    line-height: .95;
    font-weight: 800;
}

.event-month {
    margin-top: 7px;
    font-size: 14px;
    font-weight: 800;
}

.event-year {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.event-content {
    padding: 20px 22px;
    min-width: 0;
}

.event-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.badge {
    background: #e5e5e5;
    padding: 3px 7px;
    font-size: 11px;
    text-transform: uppercase;
    color: #333;
}

.badge-alert {
    background: var(--danger);
    color: #fff;
}

.event-card h2 {
    margin: 7px 0 5px;
    font-size: 24px;
    line-height: 1.2;
}

.event-card h2 a {
    text-decoration: none;
}

.event-card h2 a:hover {
    text-decoration: underline;
}

.event-subtitle {
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
}

.event-location {
    margin: 11px 0;
    font-weight: 700;
}

.event-description {
    margin: 10px 0;
}

.event-categories {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.event-bottom {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #ededed;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.price-summary {
    font-weight: 700;
}

.muted {
    color: var(--muted);
    font-weight: 400;
}

.details-link {
    font-weight: 800;
    text-decoration: none;
}

.is-cancelled {
    opacity: .78;
}

.empty-state {
    padding: 35px;
    background: #fff;
    border: 1px solid var(--border);
    text-align: center;
}

.detail-page {
    max-width: 980px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 700;
}

.cancelled-banner {
    background: var(--danger);
    color: #fff;
    padding: 13px 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.event-detail {
    background: #fff;
    border: 1px solid var(--border);
    padding: clamp(22px, 5vw, 42px);
}

.detail-date {
    color: var(--muted);
    font-weight: 800;
}

.event-detail > h1 {
    margin: 7px 0 8px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05;
}

.detail-subtitle {
    color: #555;
    font-size: 20px;
    margin-bottom: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    margin: 30px 0;
}

.detail-grid > section,
.detail-section {
    border-top: 3px solid #222;
    padding-top: 14px;
}

.detail-grid h2,
.detail-section h2 {
    margin-top: 0;
    font-size: 20px;
}

.detail-section {
    margin-top: 30px;
}

.detail-text {
    line-height: 1.65;
}

.price-list > div {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
}

.organizer-box {
    background: #f7f7f7;
    padding: 18px;
    border-top: 3px solid #222;
}

.button-link {
    display: inline-block;
    background: var(--dark);
    color: #fff;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 700;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.site-footer {
    background: var(--dark);
    color: #bbb;
    padding: 28px 0;
    margin-top: 30px;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 850px) {
    .filters {
        grid-template-columns: 1fr 1fr;
    }

    .filters button {
        width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .wrap {
        width: min(var(--max-width), calc(100% - 24px));
    }

    .header-inner {
        min-height: 62px;
    }

    .brand {
        font-size: 19px;
    }

    .top-nav {
        gap: 12px;
    }

    .top-nav a {
        padding: 20px 0 16px;
        font-size: 14px;
    }

    .hero {
        padding: 30px 0;
    }

    .country-tabs a {
        padding: 13px 14px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .event-date-box {
        padding: 15px 6px;
        justify-content: flex-start;
    }

    .event-day {
        font-size: 31px;
    }

    .event-content {
        padding: 16px;
    }

    .event-card h2 {
        font-size: 20px;
    }

    .event-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}


/* Report24 Termine – Kopfzeile */
header,
.site-header,
.main-header {
    background: #fff !important;
    color: #111 !important;
}

header a,
.site-header a,
.main-header a {
    color: #111 !important;
}

.r24-header-logo {
    display: block !important;
    width: auto !important;
    height: 52px !important;
    max-width: 250px !important;
    object-fit: contain !important;
}

.r24-termine-title {
    color: #111 !important;
    font-weight: 700 !important;
}

header nav a,
.site-header nav a,
.main-header nav a {
    color: #222 !important;
}

header nav a:hover,
.site-header nav a:hover,
.main-header nav a:hover {
    color: #000 !important;
}


/* === REPORT24 TERMINHEADER FINAL === */

html body .site-header {
    background: #ffffff !important;
    color: #111111 !important;
    border-bottom: 1px solid #dddddd !important;
}

html body .site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 78px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

html body .site-header .brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
    color: #111111 !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .site-header .brand .r24-header-logo {
    display: block !important;
    width: auto !important;
    height: 50px !important;
    max-width: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}

html body .site-header .brand .r24-termine-title {
    display: inline-block !important;
    color: #111111 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

html body .site-header .top-nav {
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .site-header .top-nav a {
    color: #111111 !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

html body .site-header .top-nav a:hover {
    color: #000000 !important;
}

html body .site-header .top-nav a.active {
    color: #111111 !important;
    font-weight: 700 !important;
    border-bottom-color: #111111 !important;
}

@media (max-width: 700px) {
    html body .site-header .brand .r24-header-logo {
        height: 38px !important;
        max-width: 190px !important;
    }

    html body .site-header .brand .r24-termine-title {
        font-size: 21px !important;
    }

    html body .site-header .top-nav {
        gap: 14px !important;
    }
}


/* ============================================================
   REPORT24 TERMINPORTAL HEADER V2
   ============================================================ */

html body .site-header {
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
}

html body .site-header .header-inner {
    min-height: 76px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 24px !important;

    overflow: visible !important;
}

html body .site-header .brand {
    display: flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    margin: 0 !important;
}

html body .site-header .brand .r24-header-logo {
    width: auto !important;
    height: 50px !important;
    max-width: 250px !important;

    object-fit: contain !important;
}

html body .desktop-nav {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

html body .site-header .top-nav a {
    color: #111 !important;
}

html body .submit-event-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 44px !important;

    padding: 10px 17px !important;

    background: #111 !important;
    color: #fff !important;

    border: 0 !important;
    border-bottom: 3px solid #d1ad45 !important;
    border-radius: 3px !important;

    font-weight: 700 !important;
    text-decoration: none !important;

    white-space: nowrap !important;
}

html body .submit-event-button:hover {
    background: #252525 !important;
    color: #fff !important;
}

html body .mobile-header-actions {
    display: none !important;
}


@media (max-width: 760px) {

    html body .site-header .header-inner {
        min-height: 74px !important;

        padding-top: 10px !important;
        padding-bottom: 10px !important;

        gap: 10px !important;
    }

    html body .desktop-nav {
        display: none !important;
    }

    html body .site-header .brand .r24-header-logo {
        height: 34px !important;
        width: auto !important;
        max-width: 145px !important;
    }

    html body .mobile-header-actions {
        display: flex !important;
        align-items: center !important;

        gap: 9px !important;

        margin-left: auto !important;
    }

    html body .mobile-submit-button {
        min-height: 44px !important;

        padding: 8px 12px !important;

        font-size: 14px !important;
        line-height: 1.1 !important;
    }

    html body .submit-event-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin-right: 6px !important;

        font-size: 22px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }

    html body .mobile-menu {
        position: relative !important;

        flex: 0 0 auto !important;
    }

    html body .mobile-menu summary {
        box-sizing: border-box !important;

        width: 44px !important;
        height: 44px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 5px !important;

        cursor: pointer !important;
        list-style: none !important;

        background: #fff !important;
        border: 1px solid #ccc !important;
    }

    html body .mobile-menu summary::-webkit-details-marker {
        display: none !important;
    }

    html body .mobile-menu summary span {
        display: block !important;

        width: 22px !important;
        height: 3px !important;

        background: #111 !important;
    }

    html body .mobile-menu nav {
        position: absolute !important;

        top: calc(100% + 8px) !important;
        right: 0 !important;

        z-index: 1000 !important;

        min-width: 180px !important;

        display: flex !important;
        flex-direction: column !important;

        padding: 8px 0 !important;

        background: #fff !important;

        border: 1px solid #ccc !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
    }

    html body .mobile-menu nav a {
        display: block !important;

        padding: 12px 18px !important;

        color: #111 !important;

        font-size: 16px !important;
        font-weight: 600 !important;
        text-decoration: none !important;

        white-space: nowrap !important;
    }

    html body .mobile-menu nav a:hover,
    html body .mobile-menu nav a.active {
        background: #f1f1f1 !important;
    }

}


@media (max-width: 390px) {

    html body .site-header .brand .r24-header-logo {
        height: 30px !important;
        max-width: 126px !important;
    }

    html body .mobile-submit-button {
        padding-left: 9px !important;
        padding-right: 9px !important;

        font-size: 13px !important;
    }

    html body .submit-event-icon {
        margin-right: 4px !important;
    }

}


/* ============================================================
   R24 EVENT MEDIA V1
   ============================================================ */

.upload-section .upload-field {
    display: block;
    margin-top: 18px;
}

.upload-section .upload-field input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;

    margin-top: 7px;
    padding: 12px;

    border: 1px solid #cfcfcf;
    background: #fff;
}

.upload-section .upload-field small {
    display: block;
    margin-top: 7px;

    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.upload-pdf-help {
    margin-top: 28px;
}


.event-card-image {
    display: block;

    width: 210px;
    max-width: 100%;

    margin: 12px 0 14px;

    text-decoration: none;
}

.event-card-image img {
    display: block;

    width: 100%;
    height: 125px;

    object-fit: cover;

    border-radius: 3px;
}


.event-detail-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin: 24px 0 30px;
}

.event-detail-images a {
    display: block;
}

.event-detail-images img {
    display: block;

    width: 100%;
    max-height: 520px;

    object-fit: contain;

    background: #f3f3f3;
}


.attachment-list {
    display: grid;
    gap: 10px;
}

.attachment-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 16px;

    border: 1px solid #d7d7d7;

    color: #111;
    background: #fff;

    text-decoration: none;
}

.attachment-link:hover {
    background: #f5f5f5;
}

.attachment-link span {
    color: #666;
    white-space: nowrap;
}


@media (max-width: 700px) {

    .event-card-image {
        width: 100%;
    }

    .event-card-image img {
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    .event-detail-images {
        grid-template-columns: 1fr;
    }

    .attachment-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

}


/* ============================================================
   R24 EVENT DETAIL V2
   ============================================================ */

.detail-short-description {
    margin: 14px 0 24px;
    max-width: 900px;

    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
}

.event-detail-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin: 24px 0 30px;
}

.event-detail-images a {
    display: block;
    min-width: 0;
}

.event-detail-images img {
    display: block;

    width: 100%;
    height: 360px;

    object-fit: contain;

    background: #f3f3f3;
    border-radius: 4px;
}

.event-detail-images a:first-child:nth-last-child(1) img {
    height: auto;
    max-height: 620px;
}

.online-event-info {
    margin-top: 18px;
}

.event-address {
    line-height: 1.5;
}

.organizer-type {
    margin-bottom: 6px;
}


/* PDF */

.pdf-attachment-grid {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;
}

.pdf-attachment {
    display: flex;
    align-items: center;

    gap: 13px;

    width: min(100%, 340px);

    padding: 12px 14px;

    border: 1px solid #ddd;
    border-radius: 5px;

    background: #fff;

    color: inherit;
    text-decoration: none;
}

.pdf-attachment:hover {
    background: #f6f6f6;
}

.pdf-icon {
    display: block;

    flex: 0 0 52px;

    width: 52px;
    height: 65px;
}

.pdf-icon svg {
    display: block;

    width: 100%;
    height: 100%;
}

.pdf-page {
    fill: #fff;
    stroke: #cfcfcf;
    stroke-width: 2;
}

.pdf-fold {
    fill: none;
    stroke: #cfcfcf;
    stroke-width: 2;
}

.pdf-label-bg {
    fill: #c90000;
}

.pdf-label {
    fill: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.pdf-meta {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.pdf-meta strong {
    overflow-wrap: anywhere;
}

.pdf-meta small {
    margin-top: 4px;
    color: #666;
}


@media (max-width: 700px) {

    .detail-short-description {
        font-size: 17px;
    }

    .event-detail-images {
        grid-template-columns: 1fr;
    }

    .event-detail-images img {
        height: auto;
        max-height: 480px;
    }

    .pdf-attachment {
        width: 100%;
    }

}

/* R24_EVENT_DATE_WEEKDAY_V1 */
.event-date-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.event-date-box .event-weekday {
    display: block !important;
    margin: 0 0 2px 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
}

.event-date-box .event-day {
    display: block !important;
}

