body {
    font-family: 'Inter', sans-serif;
}

.events-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Tages���berschrift */
.event-day-heading {
    font-size: 1.5rem;
    background-color: #333;
    font-weight: 600;
    margin-top: 5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.1rem;
    color: #fff;
}

.recurring-event-symbol {
    font-size: 1.5rem;
    color: #333;
    margin-left: 20px;
    vertical-align: middle;
    cursor: help;
}

.recurring-event-symbol:hover {
    color: #0077ff;
}

.event-groups {
    font-size: 0.85rem;
    color: #333;
    margin-top: 0.5rem;
}

.event-groups a {
    color: #0077ff;
    text-decoration: none;
    font-size: inherit; /* erbt die Größe vom Container */
}

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

/* Event-Tabelle */
.event-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
    table-layout: fixed; /* <- verhindert automatische Anpassung */
}

.event-table td:nth-child(1), .event-table th:nth-child(1) {
    width: 120px;
}

.event-table td:nth-child(2), .event-table th:nth-child(2) {
    width: 400px;
}

.event-table td:nth-child(3), .event-table th:nth-child(3) {
    width: 150px;
}


.event-table thead {
    background-color: #f0f0f0;
}

.event-table th,
.event-table td {
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

.event-table tr {
    background-color: #fff;
    box-shadow: 0 4x 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-bottom: 2px solid #2c2c2c;;
    /*border-bottom: 2px solid #3a3a3a;
     *	 /*   border-bottom: 2px solid #111; /* statt margin-bottom */
}


.event-table th {
    font-weight: 600;
    color: #333;
    font-size: 1.25rem;
}

.event-title-link {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.event-title-link:hover {
    color: #0077ff;
}

.event-title a {
    font-weight: 700;
    color: #111;
    text-decoration: none;
    font-size: 0.85rem;
}

.event-title > a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}


.event-title a:hover {
    color: #0077ff;
}

.event-excerpt {
    font-size: 1rem;
    color: #666;
    margin-top: 0.2rem;
}

.event-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}


.event-category-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: #666;
    color: #fff !important;
    font-weight: 500;
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    gap: 6px;
}

.event-category-item:hover {
    filter: brightness(0.9);
    transform: scale(1.05);
    cursor: pointer;
}


.event-category-colorbar {
    width: 8px;
    height: 20px;
    background-color: var(--category-color, #888); /* Nur hier wird var() verwendet */
    border-radius: 10px;
}





/* Event-Zeit */
.event-time strong {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    background-color: #333;
    padding: 4px 6px;
    border-radius: 4px;
    margin-top: 10px;
}

.event-time {
    background-color: #e6ccff; /* helles Lila, angenehm fürs Auge */
    border-right: 1px solid #ddd; /* optional: leichte Trennung zur nächsten Spalte */
}

.event-end-time {
    font-size: 1rem;
    color: #777;
    margin-top: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-table thead {
        display: none;
    }

    .event-table tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid #ddd;
    }

    .event-table td {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
    }

    .event-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        margin-bottom: 0.25rem;
    }
}

.event-location {
    text-align: center;
    vertical-align: middle;
}

.event-location-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    gap: 4px;
    font-size: 0.85rem;
    color: #666; /* Textfarbe */
    text-align: center; /* <- Wichtig für mehrzeilige Ortsnamen */
}

.event-location-box i {
    font-size: 1.3rem;
    color: #666; /* Iconfarbe */
    display: block;       /* Icons untereinander */
    text-align: center;   /* zentriert */
    margin-bottom: 0.5rem; /* Abstand nach unten */
}

.event-location-box i:first-child {
    margin-bottom: 1rem;  /* mehr Abstand nach unten beim ersten Icon */
}

.event-location-box a {
    display: inline-block; /* <- Damit blockartig zentrierbar */
    color: #666;
    text-decoration: none;
    text-align: center; /* <- Wichtig bei langen Namen */
    word-break: break-word; /* <- Optional, für sehr lange Namen */
}

.event-location-box a:hover {
    text-decoration: underline;
}

.event-divider {
    width: 60%;
    height: 1px;
    background-color: #ccc; /* zartes Grau */
    margin: 8px 0; /* vertikaler Abstand */
    opacity: 0.5;
}

.event-day-heading {
    position: sticky;
    top: 60px;
    z-index: 10;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #f9f3ff, #f1ddff);
    background-attachment: fixed;
}

.site-info {
    display: none;
}

.single-event .post-image,
.single-event .page-header-image,
.single-event .featured-image {
    display: none !important;
}

.single-event-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin-bottom: 3rem;
    font-family: 'Inter', sans-serif;
}

.single-event-table tr td {
    padding: 2rem;
}

/* Einzelveranstaltung: Titelzeile */
.single-event-table .row-title h1 {
    background-color: #000; 
    color: #fff;
    font-weight: 800 !important; /* überschreibt Theme-Stile */
    font-size: 2.5rem;
    margin: 0;
    padding: 1rem 1;
    line-height: 1.2;
}


.single-event-table .row-title td {
    padding: 1rem;            /* Hier Höhe der Zelle direkt steuern */
}

.single-event-table .row-meta {
    background-color: #7851a9;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.single-event-table .row-meta a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.single-event-table .row-meta a:hover {
    color: #ffd700; /* Gold – kann natürlich ersetzt werden */
    text-decoration: underline;
}

.event-meta-line {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Abstand zwischen Blöcken */
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

.event-meta-item strong {
    min-width: 120px; /* gleiche Breite für alle Labels */
    display: inline-block;
    font-weight: 700;
    color: #fff;
}

.event-meta-item a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.event-meta-item a:hover {
    color: #ffd700; /* z. B. Gold */
}


.single-event-table .row-content {
    background-color: #fff;
    color: #000;
    font-size: 1rem;
    line-height: 1.6;
}

.event-description-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
    flex-wrap: wrap; /* für mobile Ansicht */
}

.event-description-text {
    flex: 1 1 70%;
    min-width: 200px;
}

.event-description-image {
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 30%;
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.event-description-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


.event-map {
    margin-top: 2rem;
}

.event-booking-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}


@media (max-width: 768px) {
    .event-table td:nth-child(1),
    .event-table td:nth-child(2),
    .event-table td:nth-child(3) {
        width: auto !important;
    }
}

.event-category-item {
    padding: 6px 10px;
    border-radius: 24px;
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .event-category-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .event-category-list {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .event-day-heading {
        font-size: 1.25rem;
        padding: 1rem 0;
    }

    .event-title a {
        font-size: rem;
    }

    .event-time strong {
        font-size: 1rem;
    }

    .event-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .event-day-heading {
        position: static;
    }
}

@media (max-width: 768px) {
    .event-time {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.gruppen-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.gruppen-tabelle {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.gruppen-tabelle th,
.gruppen-tabelle td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.gruppen-tabelle th {
    background-color: #7851a9;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.gruppen-tabelle td a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.gruppen-tabelle td a:hover {
    color: #0077ff;
    text-decoration: underline;
}

.taxonomy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  max-width: 100%;
}

.taxonomy-links .taxonomy-item {
  flex: 1 1 calc(33.33% - 0.5em); /* 3 Elemente pro Zeile */
  box-sizing: border-box;
  text-align: left;
}

/* Abschnitt, um in der mobilen Ansicht das Tagesdatum klebend zu machen. */
.event-day-table-group {
  position: relative;
  overflow: visible;
}

/* --- Sticky Tagesüberschrift --- */
.event-day-heading {
  position: sticky;
  top: 0; /* oben am Viewport kleben */
  z-index: 20;
  background-color: #333;
  color: #fff;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  border-bottom: 2px solid #555;
}

/* Optional: etwas kleiner auf Mobilgeräten */
@media (max-width: 768px) {
  .event-day-heading {
    top: 50px; /* Falls du ein festes Menü oder Header hast */
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .event-day-heading {
    position: sticky;
    top: 50px;
    z-index: 20;
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1rem;
  }
}

/* --- Fix für GeneratePress Sticky Day Header --- */
#primary,
main.site-main,
.events-wrapper,
.event-day-table-group {
  overflow: visible !important; /* Sticky darf nicht abgeschnitten werden */
  position: relative; /* notwendig für Sticky-Kontext */
}

/* Der eigentliche Sticky-Header */
.event-day-heading {
  position: sticky;
  top: 70px; /* Abstand zum festen Menü von GeneratePress */
  z-index: 999;
  background-color: #333;
  color: #fff;
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 2px solid #555;
  font-size: 1.25rem;
  line-height: 1.3;
}

/* Optional etwas kleiner auf Handy */
@media (max-width: 768px) {
  .event-day-heading {
    top: 60px; /* oder anpassen, je nach Header-Höhe */
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
  }
}
