/* ==========================================================================
  Single Event Styles (Theater Ticino)
  Scope: body.single-tribe_events.tt-se …
  Wichtig: !important nur dort, wo TEC/JS/Inline-Styles sonst siegen würden
========================================================================== */

/* 00) Vars & Resets ----------------------------------------------------- */
body.single-tribe_events.tt-se {
  --tt-gap: 1rem;
  --tt-gap-sm: .5rem;
  --tt-gray-200: #e5e7eb;
  --tt-gray-500: #6b7280;
}
body.single-tribe_events.tt-se * { box-sizing: border-box; }

/* 10) TEC Wrapper ------------------------------------------------------- */
body.single-tribe_events.tt-se #tribe-events-pg-template {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* 20) Tickets: Form & Felder ------------------------------------------- */
body.single-tribe_events.tt-se .tribe-tickets__tickets-form {
  border: none;
  padding: 0;
}

/* Labels in Tickets + Waitlist */
body.single-tribe_events.tt-se label,
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-container--input label {
  font-family: var(--e-global-typography-text-font-family);
  font-size: var(--e-global-typography-18aa375-font-size);
  color: #00000080; /* Spezifität reicht, kein !important nötig */
  margin-bottom: 0;
}

body.single-tribe_events.tt-se .tribe-tickets-plus-meta-field label {
	font-size: var(--e-global-typography-d12f78f-font-size);
    font-style: var(--e-global-typography-d12f78f-font-style);
    font-weight: var(--e-global-typography-d12f78f-font-weight);
    color: var(--e-global-color-text);
}

/* Inputs (Meta + Waitlist) */
body.single-tribe_events.tt-se .tribe-tickets-plus-meta-field input,
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-container--input input {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #00000066;
}

body.single-tribe_events.tt-se .tribe-tickets-plus-meta-field { margin-top: 1rem; }

/* Hinweise/Absätze im Formular */
body.single-tribe_events.tt-se #tribe-tickets__tickets-form p {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  color: var(--e-global-color-text);
  margin: 1rem 0 1.5rem;
}

/* Footer (Summe/Buttons) */
body.single-tribe_events.tt-se .tribe-tickets__tickets-footer {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
body.single-tribe_events.tt-se .tribe-tickets__tickets-footer span {
  font-size: var(--e-global-typography-18aa375-font-size);
  font-family: var(--e-global-typography-1a446f6-font-family);
  font-weight: var(--e-global-typography-c230673-font-weight);
  color: #00000080;
}

/* 30) Tickets: Item Layout (2/3 : 1/3 Grid) ----------------------------- */

body.single-tribe_events.tt-se .tribe-tickets__tickets-item {
  display: grid;
  grid-template-columns: auto auto;     /* Titel/Preis : Counter */
  grid-template-rows: 1fr auto;      /* zwei Zeilen links */
  column-gap: var(--tt-gap);
  row-gap: 0;
  border-top: 1px solid #00000066;
  padding: 1rem 0;
}

/* Wrapper auflösen, damit der echte Inhalt Grid-Items wird */
body.single-tribe_events.tt-se
  .tribe-tickets__tickets-item > .tribe-tickets__tickets-item-content-title-container,
body.single-tribe_events.tt-se
  .tribe-tickets__tickets-item > .tribe-tickets__tickets-item-extra {
  display: contents;
}

/* Titel + Preis platzieren */
body.single-tribe_events.tt-se .tribe-tickets__tickets-item .tribe-tickets__tickets-item-content-title {
  grid-column: 1; grid-row: 1;
  margin: 0;
  line-height: 1.2;
  min-width: 0;
}
body.single-tribe_events.tt-se .tribe-tickets__tickets-item .tribe-tickets__tickets-item-extra-price {
  grid-column: 1; grid-row: 2;
  margin: 0;
  line-height: 1.25;
  min-width: 0;
  text-align: left;
}

/* Counter rechts über beide Zeilen */
body.single-tribe_events.tt-se .tribe-tickets__tickets-item > .tribe-tickets__tickets-item-quantity {
  grid-column: 2; grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

/* Buttons & Input im Counter */
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity button {
  padding: 0;
  color: #000; /* Spezifität reicht */
}
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity-number { width: 16px; height: inherit; }
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity-number input {
  width: 3.25rem;
  text-align: center;
  font-size: var(--e-global-typography-d12f78f-font-size);
}
/* Optische Angleichung Plus/Minus */
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity-remove,
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity-add {
  font-family: var(--e-global-typography-1a446f6-font-family);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity-remove { font-size: 2rem;}

/* Preis / Unavailable-Stile */
body.single-tribe_events.tt-se .tribe-tickets__tickets-sale-price,
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity-unavailable {
  font-size: var(--e-global-typography-e29ec74-font-size);
  font-family: var(--e-global-typography-1a446f6-font-family);
  font-weight: var(--e-global-typography-c230673-font-weight);
  line-height: var(--e-global-typography-1a446f6-line-height);
  color: #00000080;
}
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity-unavailable { color: #D7484F; }

/* Fokus-Outline bei den +/- Buttons entfernen */
body.single-tribe_events.tt-se .tribe-tickets__tickets-item-quantity button:focus {
  outline: none !important;
}

/* Ticket Beschreibung platzieren */
.tribe-tickets__tickets-item-details-content {
	grid-row: 3 !important;
    font-family: var(--e-global-typography-1a446f6-font-family) !important;
    font-size: 0.875rem !important;
}

/* Hinweis Restaurantplätze */
.tribe-common small {
	font-size: 0.875rem !important;
}

/* 40) Buttons (Buy / Waitlist / Hover / Sold-Out) ----------------------- */

body.single-tribe_events.tt-se .tribe-tickets__tickets-footer {
	border-top: none;
}

body.single-tribe_events.tt-se .tribe-common-c-btn,
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-submit {
  background-color: var(--e-global-color-accent) !important; /* TEC-Button-Defaults überschreiben */
  border-radius: 32px !important;  /* Elementor/Themes setzen Radius sonst um */
  border: none !important;         /* Inline/Theme-Border verhindern */
  color: #ffffff !important;       /* teils per JS/Inline gesetzt */
  font-family: var(--e-global-typography-1a446f6-font-family);
  font-size: var(--e-global-typography-e29ec74-font-size);
  font-style: var(--e-global-typography-d12f78f-font-style);
  font-weight: var(--e-global-typography-d12f78f-font-weight) !important;
  line-height: 1em;
  padding: 1rem 2rem 1.125rem;
  display: block;
  width: 100%;
}

/* Hover für Kaufen/Allg. */
body.single-tribe_events.tt-se .tribe-common-c-btn:hover {
  background-color: #c40924 !important; /* sicher gegen Hover-Overrides */
}

/* Kaufen-Button in "Sold-Out" grau (nur im echten Sold-Out-Fall) */
body.single-tribe_events.tt-se.tt-sold-out .tribe-common .tribe-tickets__tickets-buy[disabled],
body.single-tribe_events.tt-se.tt-sold-out .tribe-common .tribe-tickets__tickets-buy[aria-disabled="true"],
body.single-tribe_events.tt-se.tt-sold-out .tribe-common .tribe-common-c-btn--disabled {
  background: var(--tt-gray-200) !important;
  color: #000 !important;
  opacity: .5;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* Kaufen-Button vollbreit & nicht "small" */
body.single-tribe_events.tt-se #tribe-tickets__tickets-buy{
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 32px;
  box-shadow: none;
  font-family: var(--e-global-typography-1a446f6-font-family);
  font-size: var(--e-global-typography-e29ec74-font-size);
  font-weight: var(--e-global-typography-d12f78f-font-weight) !important;
  line-height: 1;
  padding: 1rem 2rem 1.125rem;
}

/* Den small-Modifier von TEC neutralisieren */
body.single-tribe_events.tt-se #tribe-tickets__tickets-buy.tribe-common-c-btn--small{
	font-size: var(--e-global-typography-e2599ca-font-size);
  padding: 1rem 2rem 1.125rem;
  min-width: 0;
}

/* Optional: Footer so konfigurieren, dass Buttons wirklich 100% bekommen */
body.single-tribe_events.tt-se .tribe-tickets__tickets-footer{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
body.single-tribe_events.tt-se .tribe-tickets__tickets-footer .tribe-common-c-btn{
  width: 100%;
  margin-left: 0 !important;
}

/* Waitlist full-width */
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-container--submit,
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-container--submit .tec-tickets-plus-waitlist-submit {
  display: block;
  width: 100%;
}
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-submit { text-align: center; }

/* Waitlist-Fehlermeldungen */
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-container--input--error p {
  color: #D7484F;
  font-size: var(--e-global-typography-18aa375-font-size);
  margin-top: 0.5rem;
}

/* 50) Export/Subscribe Dropdown ---------------------------------------- */
body.single-tribe_events.tt-se .tec-events-elementor-event-widget__export-dropdown-button {
  border-radius: 32px !important;  /* UI angleichen */
  font-weight: 700;
  width: 100%;
}
body.single-tribe_events.tt-se .tec-events-elementor-event-widget__export-dropdown-button:hover {
  background-color: #000000 !important; /* robust gegen Defaults */
}
body.single-tribe_events.tt-se .tec-events-elementor-event-widget__export-dropdown-list {
  border-radius: 0;
  padding: 0.5rem 0;
}
body.single-tribe_events.tt-se .tec-events-elementor-event-widget__export-dropdown-list li {
  margin: 0;
  padding: 0.5rem;
}
body.single-tribe_events.tt-se .tec-events-elementor-event-widget__export-dropdown-list li:hover {
  background-color: #000000 !important;
}
body.single-tribe_events.tt-se .tec-events-elementor-event-widget__export-dropdown-link:hover {
  color: #ffffff !important;
}

/* 60) Typografie (Basis für alle Event-Texte) -------------------------- */
body.single-tribe_events.tt-se .tribe-common-h7,
body.single-tribe_events.tt-se .tribe-common-h6--min-medium,
body.single-tribe_events.tt-se .event-date-sidebar,
body.single-tribe_events.tt-se .tribe-common-c-btn,
body.single-tribe_events.tt-se .event-date-title,
body.single-tribe_events.tt-se .elementor-shortcode .related-title,
body.single-tribe_events.tt-se h2.tribe-tickets__tickets-title, 
body.single-tribe_events.tt-se .tec-tickets-plus-waitlist-container h3 {
  font-family: var(--e-global-typography-1a446f6-font-family);
  font-style:  var(--e-global-typography-d12f78f-font-style);
  line-height: var(--e-global-typography-1a446f6-line-height);
  color: var(--e-global-color-text);
}

/* Standardgröße für kleine Texte */
body.single-tribe_events.tt-se .tribe-common-h7,
body.single-tribe_events.tt-se .tribe-common-h6--min-medium,
body.single-tribe_events.tt-se .event-date-sidebar,
body.single-tribe_events.tt-se .tribe-common-c-btn,
body.single-tribe_events.tt-se .event-date-title {
  font-size:   var(--e-global-typography-d12f78f-font-size);
  font-weight: var(--e-global-typography-c230673-font-weight);
}

/* H2-Stil für bestimmte Überschriften */
body.single-tribe_events.tt-se .elementor-shortcode .related-title,
body.single-tribe_events.tt-se h2.tribe-tickets__tickets-title{
  font-size:   var(--e-global-typography-63d8418-font-size);
  font-weight: var(--e-global-typography-d12f78f-font-weight);
  margin: 0 0 .75rem 0;
}

/* Ticket-Item Titel fett */
body.single-tribe_events.tt-se .tribe-tickets__tickets-item .tribe-tickets__tickets-item-content-title.tribe-common-h7 {
  font-weight: 700;
}

/* 70) Responsive -------------------------------------------------------- */
@media (max-width: 600px) {
  body.single-tribe_events.tt-se .tribe-tickets__tickets-item {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto; /* optional: auf 2 Zeilen zurücksetzen */
  }

  body.single-tribe_events.tt-se .tribe-tickets__tickets-item > .tribe-tickets__tickets-item-quantity {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    justify-content: flex-end;
  }
  body.single-tribe_events.tt-se .event-tickets .tribe-tickets__tickets-item-details-content {
  display: block;
  line-height: 1.2em;
}