:root {
    --farbe-kino: #307076;
    --farbe-buehne: #e05a5a;
    --farbe-literatur: #f8e123;
    --farbe-ausstellung: #c471ed;
    --farbe-konzert: #246bd4;
    --farbe-gespraech: #e88b2f;
}

h1.wp-block-heading,
.home h2.wp-block-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.25px;
    margin-bottom: 10px;
    margin-top: 10px;
    line-height: 1;
}

.single-post .entry-content p {
    margin-bottom: 0.6rem;
}

.kf-newsletter-hint {
    background-color: #f9f5e8;
    border-left: 4px solid #e88b2f;
    padding: 10px 14px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.kf-kategorie-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: #666;
}

.kf-legende-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kf-legende-farbe {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 1. Die Empfehlung an die erste Stelle im Grid zwingen */
.kf-events-grid .kf-event-card.kat-film-des-tages {
    order: -1;
}

.kf-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.kf-events-grid .kf-event-card {
  display: flex;
  flex-direction: column;
	border: 1px solid #ddd;
  border-left: 5px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  transition: box-shadow .25s ease;
}

.kf-event-image {
  overflow: hidden;
  border-radius: 3px;
}

.kf-event-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: top;
}

.kf-event-title {
  font-size: 1.2rem;
  line-height: 1.2;
  min-height: calc(1.3em * 2.5);
  padding-top: 20px;
  overflow: hidden;
}

/* Meta-Block (zusammengeführt) */
.kf-event-meta {
	font-family: 'Roboto', sans-serif !important;
  font-size: 1rem;
  margin-top: 20px;
	margin-bottom: 20px;
  color: #666;
  line-height: 1.4;
}

.kf-event-meta strong {
  display: block;
	 margin-top: 1.5rem;
  margin-bottom: 0.1rem;
  color: #000;
  font-weight: 500;
}

.kf-event-categories {
  font-style: italic;
  color: #999;
}
.kf-event-categories a {
  color: #999;
  text-decoration: none;
}

.kf-event-tags {
     margin-top: auto;  /* NEU: Tags ans untere Ende der Card */
    font-size: 0.85em;
}

.kf-event-tags .tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
		margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
}

/* Kategorie-Farben */
.kf-events-grid .kf-event-card.kat-theater     { border-left-color: #e05a5a; }
.kf-events-grid .kf-event-card.kat-kino        { border-left-color: #307076; }
.kf-events-grid .kf-event-card.kat-filmreihe { border-left-color: #64d941; }
.kf-events-grid .kf-event-card.kat-literatur   { border-left-color: #f8e123; }
.kf-events-grid .kf-event-card.kat-ausstellung { border-left-color: #c471ed; }
.kf-events-grid .kf-event-card.kat-konzert     { border-left-color: #246bd4; }
.kf-events-grid .kf-event-card.kat-gespraech   { border-left-color: #e88b2f; }
.kat-arte {
    border-left-color: #00b4d8 !important;
}

button,
input[type="submit"],
.wp-block-button__link,
.kt-btn-inner-text {
  font-family: 'Roboto', sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.02em;
	font-size: 15px;
}

.eyecatcher {
  font-family: 'Courgette', cursive;
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 1.6vw, 1.6rem);
  text-align: center;
  color: #2a2a2a;
}

#secondary .widget {
  margin-bottom: 0.8em;
}

#secondary .widget h2,
#secondary .widget h3 {
  margin: 0.4em 0;
}

#secondary .widget p {
  margin-bottom: 0.4em;
}

body.single-tribe_events .my-custom-event-wrapper {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid #f28c28;
  background-color: #fffefc;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  color: #333;
}

.my-custom-event-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  padding-left: 0;
  color: #2e2e2e;
}

.my-custom-event-wrapper .event-date {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  padding-left: 0;
  font-weight: 600;
}

.my-custom-event-wrapper .tribe-events-event-meta {
  font-size: 0.95rem;
  line-height: 1.4;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  color: #555;
}

.my-custom-event-wrapper a {
  color: #f28c28;
  text-decoration: none;
}

.my-custom-event-wrapper a:hover {
  text-decoration: underline;
}

input.is-search-input {
  width: 100% !important;
  font-size: 18px !important;
  padding: 10px 15px !important;
	height: 50px !important;
  box-sizing: border-box;
}

input.is-search-input::placeholder {
  font-size: 18px !important;
  color: #666666;
}

.tribe-events-notices {
    display: none !important;
}

.the-events-calendar-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .the-events-calendar-category-list {
    display: none;
  }
}

.the-events-calendar-category-list ol li {
  display: inline-block;
  margin: 0.25rem;
  margin-bottom: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: #00cccc; /* FIX: war ungültiger Hex #00f0f0f */
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.the-events-calendar-category-list ol li:empty {
  display: none;
}

.the-events-calendar-category-list ol li a {
  text-decoration: none;
  color: #ffffff;
}

.the-events-calendar-category-list ol li:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

body.tag .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2rem;
}

body.tag .post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s ease;
}

body.tag .post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body.tag .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

body.tag .entry-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

body.tag .entry-summary {
  font-size: 1rem;
  color: #333;
}

body.tag .archive-header {
  text-align: center;
  margin-bottom: 2rem;
}

body.tag .archive-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body.tag .archive-description {
  font-size: 1.1rem;
  color: #666;
}

.single-buch .buch-wrapper {
  display: flex;
	gap: 2rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.single-buch .buch-cover {
  flex: 1 1 200px;
  max-width: 300px;
}

.single-buch .buch-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-buch .buch-details {
  flex: 2 1 400px;
}


.single-buch .buch-meta p {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

.single-buch .buch-meta strong {
  color: #666;
  font-weight: 600;
  margin-right: 0.5rem;
}

.single-buch .buch-beschreibung {
  margin-top: 1.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

body #primary .content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.buch-archiv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.buch-archiv-item {
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
}

.buch-archiv-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.buch-archiv-item .buch-cover img {
  max-height: 420px; /* FIX: war 4200px */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.buch-archiv-item .buch-titel {
  font-size: 0.8rem;
  font-weight: 200;
  color: #333;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.3;
}

.ähnliche-bücher-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.ähnliche-bücher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

.ähnliches-buch-item {
  text-align: center;
}

.ähnliches-buch-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.ähnliches-buch-item h3 {
  font-size: 0.95rem;
  margin: 0;
}

/* Attribute-Buttons (zusammengeführt, ein Regelsatz) */
.attribute-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.attribute-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: darkblue;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
}

.attribute-button:hover {
    background-color: darkblue;
    color: white;
}

.attribute-button.selected {
    background-color: darkblue;
    color: white;
}

.tribe-events-calendar-list-nav.tribe-events-c-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
  font-family: 'Roboto', sans-serif;
}

.tribe-events-c-nav__prev,
.tribe-events-c-nav__next,
.tribe-events-c-nav__today {
  display: inline-flex;
  align-items: center;
  padding: 0.75em 1.4em;
  border-radius: 2rem;
  background-color: #0066cc;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  user-select: none;
  transition: color 0.3s ease;
}

.tribe-events-c-nav__prev svg,
.tribe-events-c-nav__next svg {
  fill: #ff7a00;
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
}

.tribe-events-c-nav__prev svg {
  margin-right: 0.75em;
  margin-left: 0;
}

.tribe-events-c-nav__next svg {
  margin-left: 0.75em;
  margin-right: 0;
}

.tribe-events-c-nav__prev:hover svg,
.tribe-events-c-nav__next:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 3px #ff7a00);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tribe-events-c-nav__prev:hover,
.tribe-events-c-nav__next:hover,
.tribe-events-c-nav__today:hover {
  color: #e0e0e0;
  cursor: pointer;
}

.tribe-events-c-nav__today {
  background-color: #444;
  color: #eee;
}

.tribe-events-c-nav__today:hover {
  background-color: #555;
  color: #fff;
}

@media (max-width: 480px) {
  .tribe-events-calendar-list-nav.tribe-events-c-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .tribe-events-c-nav__prev,
  .tribe-events-c-nav__today,
  .tribe-events-c-nav__next {
    width: 100%;
    justify-content: center;
  }
}

.seitenbalken-wrapper {
  background-color: #e6f4ea;
  border-radius: 4px;
  height: 8px;
  margin-top: 4px;
  width: 100%;
  max-width: 300px;
}

.seitenbalken {
  height: 100%;
  background: linear-gradient(90deg, #a8e6a1, #2e7d32);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.kf-tabbar {
  display: none;
}

@media (max-width: 768px) {
  .kf-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  }
  .kf-tabbar a {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  .kf-tabbar a:hover {
    background: #f5f5f5;
  }
}

.tribe-common,
.tribe-common a,
.tribe-events-header,
.tribe-events-c-top-bar,
.tribe-events-calendar-list__event-date-tag,
.tribe-events-calendar-list__event-date,
.tribe-events-calendar-list__event-title,
.tribe-events-event-meta,
.tribe-events-venue-details,
.tribe-events-event-categories,
.tribe-events-meta-group,
.tribe-events-event-cost,
.tribe-events-c-nav,
.tribe-events-c-nav__prev,
.tribe-events-c-nav__next,
.tribe-events-sub-nav,
.tribe-events-schedule,
.tribe-address,
.tribe-block,
.tribe-events-c-subscribe-dropdown {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.tribe-events-calendar-list__event-description,
.tribe-events-content,
.tribe-events-single-event-description,
.tribe-events-single-event-content {
  font-family: "Roboto Serif", Georgia, serif !important;
  font-weight: 400;
  line-height: 1.6;
}

.tribe-events-calendar-list__event-title,
.tribe-events-single-event-title {
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.mobile-menu-container .menu-item a {
    color: #333333 !important;
    background: transparent !important;
}

.mobile-menu-container .menu-item.current-menu-item > a {
    color: #333333 !important;
    background: transparent !important;
}

.c42c-feedback {
  max-width: 42rem;
  margin: 0;
}

.c42c-feedback p {
  margin: 0 0 0.9rem 0;
}

.c42c-feedback label {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.c42c-feedback input[type="text"],
.c42c-feedback textarea {
  width: 100%;
  box-sizing: border-box;
}

.c42c-feedback input[type="text"] {
  padding: 0.5rem 0.6rem;
}

.c42c-feedback textarea {
  padding: 0.6rem;
  resize: vertical;
  min-height: 9rem;
}

.c42c-feedback button[type="submit"] {
  padding: 0.55rem 0.85rem;
}

.c42c-feedback input[type="checkbox"] {
  transform: translateY(1px);
}

.kf-42c-notice {
    background: #f8f8f8;
    color: #555;
    padding: 10px 15px;
    border-radius: 3px;
    font-size: 0.9em;
    font-style: italic;
    margin: 0 0 15px 0;
    border-left: 2px solid #ddd;
}

.kat-radar {
    position: relative;
}

.kf-event-card.kat-radar::after {
    content: "Radar";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00cc33;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-transform: none; /* FIX: war "normal", ungültig */
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.kat-radar .kf-event-image {
    position: relative;
}

.page-id-13644 .kf-event-card.kat-radar::after {
    display: none;
}


@media (max-width: 768px) {
  .tribe-events-sub-nav li a {
    background: transparent !important;
    color: var(--tec-color-text-secondary) !important;
    font-size: 0.8rem !important;
  }
  
  .tribe-events-sub-nav li a::before {
    font-size: 0.8rem !important;
  }
}

/* Film des Tages (zusammengeführt) */
.kf-film-des-tages {
    grid-column: span 2;
    position: relative;
}

.kf-fdt-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #307076;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 10;
	box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.5);
}

.kf-film-des-tages .kf-event-title,
.kf-film-aktuell .kat-film-des-tages .kf-event-title {
    font-size: 1.3rem;
}

.kf-film-des-tages .kf-event-image,
.kf-film-aktuell .kat-film-des-tages .kf-event-image {
    height: 300px;
}


@media (max-width: 600px) {
  .kf-events-grid {
    grid-template-columns: 1fr !important;
  }
  .kf-film-aktuell .kat-film-des-tages,
  .kf-film-des-tages {
    grid-column: span 1;
  }
}

.kf-events-grid:has(> .kf-event-card.kat-film-des-tages:only-child) {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.kf-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.kf-star-rating input {
    display: none;
}

.kf-star-rating label {
    font-size: 1.8rem;
    color: #ccc;
    cursor: pointer;
}

.kf-star-rating input:checked ~ label,
.kf-star-rating label:hover,
.kf-star-rating label:hover ~ label {
    color: #f8e123;
}

/* v2-Kartenraster (Duplikat entfernt) */
.kf-events-grid:has(.kf-v2-card) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 40px 30px !important;
}

.kf-v2-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.kf-v2-circle-wrapper {
    position: relative;
    padding-top: 75%;
}
.kf-v2-circle-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* FIX: war 90% */
    object-fit: cover;
}

.kf-v2-content .kf-event-title a {
    font-weight: 500 !important;
    text-transform: uppercase !important; /* FIX: kaputter Kommentar entfernt */
    color: #1A1A1A !important;
    text-decoration: none !important;
}

.kf-v2-content .kf-event-meta {
    font-size: 1.1rem !important;
    color: #555 !important;
    margin-top: 25px !important;
}

	
/* STAGE-CHANGE 2026-08-04: Sand-Header (Fallback in hero.php, wenn kein hero_image gesetzt ist) */

.kf-sandheader {
    background: #E9E3D6;
    border-radius: 12px;
    padding: 1.2rem 1.5rem 1rem;
    margin: 0 auto 1.2rem;
    max-width: 1200px;
}

.kf-sandheader__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.kf-sandheader__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.kf-sandheader__legend-label {
    font-size: 142x;
    color: #5f5e5a;
    margin-left: 4px;
}

.kf-sandheader__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.05;
    color: #1c1c1a;
    letter-spacing: -0.02em;
    margin: 0;
}

.kf-sandheader__text {
    font-size: 14px;
    color: #5f5e5a;
    margin-top: 1rem;
    max-width: 420px;
    line-height: 1.6;
}

.kf-sandheader__button {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 10px 20px;
    background: #1c1c1a;
    color: #fff;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
}

.kf-sandheader__stripes {
    display: flex;
    gap: 8px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.kf-sandheader__stripe {
    height: 3px;
    width: 64px;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .kf-sandheader__title {
        font-size: 30px;
    }
    .kf-sandheader {
        padding: 1.5rem 1rem 1;
    }
    .kf-sandheader__stripe {
20    }
}

.header-navigation .current-menu-item > a {
    position: relative;
}

.header-navigation .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom:  0px;
    height: 3px;
    background: #3F6EA8;
}

/* Buchbesprechungen */
.entry-content-wrap {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Buchcover auf der Kategorie-Seite "Wien in der Literatur" */

.category-wien-in-der-literatur .post-thumbnail img {
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    max-height: 300px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

.category-wien-in-der-literatur .post-thumbnail-inner img {
    object-fit: contain !important;
}

.entry-content p {
    margin-block-end: 1em !important;
    margin-bottom: 1em !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-block-start: 0.5em !important;
    margin-top: 0em !important;
		margin-bottom: 5px;
}

.tribe-events-c-subscribe-dropdown__button,
.tribe-events-c-subscribe-dropdown__content {
    display: none !important;
}