/*
Theme Name: Betheme Child – ASDU
Theme URI: https://asdui.org/
Description: Child-Theme für Betheme mit den Design-Anpassungen von A.S.D.U. International.
Author: A.S.D.U. International
Template: betheme
Version: 1.0.0
Text Domain: betheme-child
*/

/* -------------------------------------------------------------------------
   Design-Tokens
   ------------------------------------------------------------------------- */
:root {
  --asdu-gold: #d2ab45;
  --asdu-gold-dark: #b8912f;
  --asdu-gold-soft: rgba(210, 171, 69, .12);
  --asdu-ink: #0f0d10;
  --asdu-ink-2: #17131a;
  --asdu-plum: #200b12;
  --asdu-text: #e9e4df;
  --asdu-muted: #b5ada6;
  --asdu-line: rgba(255, 255, 255, .08);
  --asdu-radius: 12px;
  --asdu-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --asdu-ease: cubic-bezier(.2, .7, .2, 1);
}

/* -------------------------------------------------------------------------
   Hauptmenü + Untermenüs (bessere Lesbarkeit)
   ------------------------------------------------------------------------- */
#Top_bar #menu > ul > li > a span:not(.description) {
  transition: color .2s var(--asdu-ease);
}

#Top_bar #menu ul li ul.sub-menu {
  min-width: 270px;
  width: max-content;
  max-width: 340px;
  padding: 8px 0;
  background: rgba(23, 10, 16, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--asdu-gold);
  border-radius: 0 0 var(--asdu-radius) var(--asdu-radius);
  box-shadow: var(--asdu-shadow);
  text-align: left;
}

#Top_bar #menu ul li ul.sub-menu li {
  width: 100%;
  border: 0;
}

#Top_bar #menu ul li ul.sub-menu li a {
  display: block;
  padding: 11px 24px 11px 21px;
  border: 0;
  border-left: 3px solid transparent;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .015em;
  color: var(--asdu-text);
  white-space: nowrap;
  transition: background-color .18s var(--asdu-ease), color .18s var(--asdu-ease), border-color .18s var(--asdu-ease), padding .18s var(--asdu-ease);
}

#Top_bar #menu ul li ul.sub-menu li a span {
  display: inline;
  padding: 0;
}

#Top_bar #menu ul li ul.sub-menu li a:hover,
#Top_bar #menu ul li ul.sub-menu li a:focus-visible,
#Top_bar #menu ul li ul.sub-menu li.current-menu-item > a {
  background: var(--asdu-gold-soft);
  border-left-color: var(--asdu-gold);
  color: var(--asdu-gold);
  padding-left: 25px;
}

#Top_bar #menu ul li ul.sub-menu li a:focus-visible,
#Top_bar #menu > ul > li > a:focus-visible {
  outline: 2px solid var(--asdu-gold);
  outline-offset: -2px;
}

/* Rechte Menüspalte: Untermenü rechtsbündig öffnen, damit es nicht aus dem Bild läuft */
#Top_bar .menu_right #menu ul li ul.sub-menu,
#Top_bar #menu.menu-right ul li ul.sub-menu,
#Top_bar .secondary-menu ul li ul.sub-menu {
  left: auto;
  right: 0;
}

/* -------------------------------------------------------------------------
   News-Leiste unter dem Slider  [asdu_latest_news]
   ------------------------------------------------------------------------- */
.asdu-news-section {
  background: linear-gradient(180deg, #120d14 0%, var(--asdu-ink) 100%);
  border-bottom: 1px solid var(--asdu-line);
}

.asdu-news {
  padding: 26px 0 30px;
}

.asdu-news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

#Content .asdu-news__title,
.asdu-news__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "Kanit", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--asdu-gold);
}

.asdu-news__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--asdu-gold);
  box-shadow: 0 0 0 0 rgba(210, 171, 69, .6);
  animation: asdu-pulse 2.4s infinite;
}

@keyframes asdu-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(210, 171, 69, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(210, 171, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 171, 69, 0); }
}

.asdu-news__all {
  font-weight: 600;
  font-size: 16px;
  color: var(--asdu-text);
  text-decoration: none;
  white-space: nowrap;
}

.asdu-news__all:hover,
.asdu-news__all:focus-visible {
  color: var(--asdu-gold);
  text-decoration: none;
}

#Content .asdu-news__list,
.asdu-news__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#Content .asdu-news__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.asdu-news__card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--asdu-line);
  border-radius: var(--asdu-radius);
  background: rgba(255, 255, 255, .035);
  color: var(--asdu-text);
  text-decoration: none;
  transition: transform .2s var(--asdu-ease), border-color .2s var(--asdu-ease), background-color .2s var(--asdu-ease);
}

.asdu-news__card:hover,
.asdu-news__card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(210, 171, 69, .55);
  background: rgba(210, 171, 69, .07);
  text-decoration: none;
}

.asdu-news__card:focus-visible {
  outline: 2px solid var(--asdu-gold);
  outline-offset: 2px;
}

.asdu-news__thumb {
  flex: 0 0 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--asdu-plum);
}

.asdu-news__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asdu-news__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}


.asdu-news__headline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: "Kanit", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.asdu-news__card:hover .asdu-news__headline {
  color: var(--asdu-gold);
}

/* Mobil: horizontal wischbar statt untereinander → bleibt kompakt */
@media (max-width: 767px) {
  .asdu-news { padding: 18px 0 20px; }
  #Content .asdu-news__list,
  .asdu-news__list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox: wischbar, aber ohne Scrollbalken */
  }
  .asdu-news__list::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  #Content .asdu-news__item {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .asdu-news__thumb { flex-basis: 76px; height: 60px; }
  .asdu-news__headline { font-size: 16px; }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.button,
a.button,
input[type="submit"],
button.button {
  border-radius: 999px !important;
  padding-left: 26px !important;
  padding-right: 26px !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(210, 171, 69, .22);
  transition: transform .2s var(--asdu-ease), box-shadow .2s var(--asdu-ease), background-color .2s var(--asdu-ease) !important;
}

.button:hover,
a.button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(210, 171, 69, .32);
}

.button:focus-visible,
a.button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Startseite „What we do“: die drei Blöcke Competitions / More about us /
   Non-Profit als gleich hohe Karten, Buttons bündig unten
   ------------------------------------------------------------------------- */
.home .mcb-section-8f98b1e1c img {
  border-radius: var(--asdu-radius);
}

.home .mcb-section-8f98b1e1c .mcb-wrap-inner:has(> .mcb-item-a5f8be47f) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.home .mcb-item-a5f8be47f,
.home .mcb-item-76667f871,
.home .mcb-item-fb87fe7f8 {
  display: flex;
  float: none;
}

.home .mcb-item-a5f8be47f > .mcb-column-inner,
.home .mcb-item-76667f871 > .mcb-column-inner,
.home .mcb-item-fb87fe7f8 > .mcb-column-inner {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
}

.home .mcb-item-a5f8be47f .column_attr,
.home .mcb-item-76667f871 .column_attr,
.home .mcb-item-fb87fe7f8 .column_attr {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 14px 28px !important; /* Betheme setzt rechts ~27px, unten 0 */
  border: 1px solid #ece6dc;
  border-radius: var(--asdu-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 13, 16, .07);
}

/* Absatz mit dem Button nach unten schieben → alle Buttons auf einer Linie */
.home .mcb-item-a5f8be47f .column_attr > p:has(.button),
.home .mcb-item-76667f871 .column_attr > p:has(.button),
.home .mcb-item-fb87fe7f8 .column_attr > p:has(.button) {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 16px;
  text-align: center;
}

.home .mcb-item-a5f8be47f .column_attr .button,
.home .mcb-item-76667f871 .column_attr .button,
.home .mcb-item-fb87fe7f8 .column_attr .button {
  margin: 0 auto;
}

/* leere Absätze nach dem Button (Competitions) würden ihn sonst nach oben drücken */
.home .mcb-item-a5f8be47f .column_attr > p:has(.button) ~ p,
.home .mcb-item-76667f871 .column_attr > p:has(.button) ~ p,
.home .mcb-item-fb87fe7f8 .column_attr > p:has(.button) ~ p {
  display: none;
}

/* -------------------------------------------------------------------------
   Allgemein: Bilder, Karten, Abstände
   ------------------------------------------------------------------------- */
#Content .image_frame,
#Content .image_wrapper,
#Content .post-photo-wrapper {
  border-radius: var(--asdu-radius);
  overflow: hidden;
}

#Content .posts_group.tiles .post-item {
  border-radius: var(--asdu-radius);
  overflow: hidden;
}

@media (max-width: 767px) {
  /* Großzügige Desktop-Abstände auf dem Handy reduzieren */
  #Content .section.mcb-section {
    padding-top: 56px !important;
    padding-bottom: 48px !important;
  }
  #Content .asdu-news-section.mcb-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
#Footer {
  border-top: 1px solid var(--asdu-line);
}

#Footer .widgets_wrapper a,
#Footer .footer_copy a {
  transition: color .2s var(--asdu-ease);
}

#Footer .widgets_wrapper a:hover {
  color: var(--asdu-gold);
}

#Footer .footer_copy {
  border-top: 1px solid var(--asdu-line);
}

/* Bewegungen reduzieren, wenn das System es wünscht */
@media (prefers-reduced-motion: reduce) {
  .asdu-news__dot { animation: none; }
  .asdu-news__card,
  .button,
  a.button { transition: none; }
}

/* -------------------------------------------------------------------------
   Startseite: YouTube-Vorschau war per -130px über den Slider gezogen und
   überlappt sonst die News-Leiste
   ------------------------------------------------------------------------- */
.home .mcb-section-f463a635f {
  padding-top: 70px !important;
}

.home .mcb-wrap-2c6780012 {
  margin-top: 0 !important;
}

.home .mcb-item-d10e3f4a9 img {
  border-radius: var(--asdu-radius);
  box-shadow: var(--asdu-shadow);
}

.asdu-news-section .mcb-column,
.asdu-news-section .mcb-column-inner,
.asdu-news-section .column_attr {
  margin-bottom: 0 !important;
}

/* Startseite: Hauptüberschrift ist jetzt <h1>, sieht aber aus wie zuvor die h2 */
.home h1.asdu-home-h1 {
  font-family: "Kanit", sans-serif;
  font-size: 60px;
  font-style: italic;
  font-weight: 700;
  line-height: 70px;
  letter-spacing: 0;
  margin-bottom: 15px;
}

@media (max-width: 767px) {
  .home h1.asdu-home-h1 { font-size: 40px; line-height: 46px; }
}

/* -------------------------------------------------------------------------
   Inhalte auf weißem Standard-Hintergrund
   ------------------------------------------------------------------------- */
/* Akkordeons mit Gold-Hintergrund (z. B. Information): dunkle Schrift statt weiß */
.mcb-item-4430e48a0 .accordion .question > .title {
  color: #1a1208 !important;
  font-weight: 700;
}

/* Formulare (Contact Form 7) */
#Content input[type="text"], #Content input[type="email"], #Content input[type="tel"],
#Content input[type="url"], #Content input[type="number"], #Content textarea, #Content select {
  border: 1px solid #d9d4cf;
  border-radius: 8px;
}

#Content input:focus, #Content textarea:focus, #Content select:focus {
  border-color: var(--asdu-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(210, 171, 69, .25);
}

/* Alps Adria Open: Text auf goldenem Hintergrund dunkel statt weiß */
.mcb-item-ddf7076e1 h2,
.mcb-item-66f3372b8 h2,
.mcb-item-ddf7076e1 .desc,
.mcb-item-ddf7076e1 .desc * {
  color: #1a1208 !important;
}

/* -------------------------------------------------------------------------
   News-Übersicht (Timeline): Datum links neben dem Bild samt Linie entfernen
   ------------------------------------------------------------------------- */
#Content .posts_group.timeline .date_label {
  display: none !important;
}

#Content .posts_group.timeline .post-item {
  padding-left: 0 !important;
  background: none !important;
}

#Content .posts_group.timeline .post-item:before {
  display: none !important;
}

/* Startseite: Bilder in den drei Karten auf volle Kartenbreite, gleiches Format */
.home .mcb-item-a5f8be47f .column_attr img,
.home .mcb-item-76667f871 .column_attr img,
.home .mcb-item-fb87fe7f8 .column_attr img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   Einzelner News-Beitrag: Datum oben links entfernen, verwandte Beiträge
   mit einheitlich großen Bildern (ohne Datum)
   ------------------------------------------------------------------------- */
.single-post .post-header .post-meta .date,
.single-post .post-meta .author-date .date,
.single-post .section-post-header .post-meta .date {
  display: none !important;
}

.single-post .section-related-adjustment .date_label {
  display: none !important;
}

.single-post .section-related-adjustment .image_wrapper img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   FAQ / Akkordeon (Dance school management, Information): gleiche Schrift
   und Größe wie der übrige Seitentext, Überschrift wie andere Überschriften
   ------------------------------------------------------------------------- */
#Content .faq > .heading,
#Content .accordion > .heading {
  font-family: "Kanit", sans-serif;
  font-size: 32px;
  line-height: 40px;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 20px;
}

#Content .faq .question > .title,
#Content .accordion .question > .title {
  font-family: "Rajdhani", sans-serif;
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
  color: var(--asdu-ink);
}

#Content .faq .question .num {
  font-size: 18px;
  font-weight: 700;
  color: #8a6914;
}

#Content .faq .answer,
#Content .accordion .answer,
#Content .faq .answer p,
#Content .accordion .answer p {
  font-size: 18px;
  line-height: 28px;
}

/* Information: goldene Akkordeon-Zeilen – Großbuchstaben nicht so gedrängt */
.mcb-item-4430e48a0 .accordion .question > .title {
  letter-spacing: .04em;
}

@media (max-width: 767px) {
  #Content .faq > .heading,
  #Content .accordion > .heading { font-size: 26px; line-height: 32px; }
  #Content .faq .question > .title,
  #Content .accordion .question > .title { font-size: 17px; line-height: 24px; }
}

/* Goldene Überschriften auf weißem Grund (Rules & Regulations: Disziplinen, Judges): dunkleres Gold */
.page-id-183 #Content .column_heading .title,
.page-id-183 #Content .column_heading .title a,
.mcb-item-qlnbrnw7j .team .title {
  color: #8a6914 !important;
  text-shadow: none !important;
}

/* -------------------------------------------------------------------------
   Dunkle Abschnitte (per Skript als .asdu-dark markiert): Hintergrund bleibt,
   Fließtext hell statt Grau/Lila
   ------------------------------------------------------------------------- */
#Content .asdu-dark :is(p, li, td, blockquote, .column_attr, .desc),
#Content .asdu-dark :is(p, li) span:not([class*="gradient"]):not(.button_label) {
  color: #e9e4df !important;
}

#Content .asdu-dark :is(p, li) :is(strong, b) {
  color: #ffffff !important;
}

#Content .asdu-dark :is(p, li) a:not(.button) {
  color: var(--asdu-gold) !important;
}

#Content .asdu-dark ul li::marker {
  color: var(--asdu-gold);
}

/* -------------------------------------------------------------------------
   Mobiles Menü (Side_slide): wie am Desktop – Hauptpunkte gold, aktiver
   Hauptpunkt weiß, geöffneter Unterpunkt gold mit Goldlinie links
   ------------------------------------------------------------------------- */
#Side_slide {
  background-color: #120e14;
}

#Side_slide #menu > ul > li > a {
  color: var(--asdu-gold);
  transition: color .2s var(--asdu-ease);
}

/* Hervorhebung auf der ganzen Zeile (li), nicht nur auf dem Link neben dem +/−-Schalter */
#Side_slide #menu > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current_page_ancestor) > a {
  color: #ffffff;
}

#Side_slide #menu > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current_page_ancestor) {
  box-shadow: inset 3px 0 0 var(--asdu-gold);
  background: rgba(255, 255, 255, .04);
}

#Side_slide #menu ul li ul.sub-menu li a {
  color: #e9e4df;
  transition: color .2s var(--asdu-ease);
}

#Side_slide #menu ul li ul.sub-menu li.current-menu-item {
  box-shadow: inset 3px 0 0 var(--asdu-gold);
  background: var(--asdu-gold-soft);
}

#Side_slide #menu ul li ul.sub-menu li.current-menu-item > a,
#Side_slide #menu ul li ul.sub-menu li a:active,
#Side_slide #menu ul li ul.sub-menu li a:hover {
  color: var(--asdu-gold);
}

#Side_slide #menu ul li .menu-toggle {
  color: var(--asdu-gold);
  opacity: 1;
  border-left: 0 !important;
}

#Side_slide .close {
  color: #e9e4df;
}

/* -------------------------------------------------------------------------
   Seitentitel passen sich der Bildschirmbreite an (65px am Desktop,
   kleiner auf Tablet/Handy), lange Wörter brechen notfalls um
   ------------------------------------------------------------------------- */
#Subheader .title {
  font-size: clamp(32px, 7.5vw, 65px) !important;
  line-height: 1.1 !important;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 767px) {
  #Subheader { padding-top: 140px !important; padding-bottom: 36px !important; }

  /* Große Überschriften im Seiteninhalt ebenfalls nie breiter als der Bildschirm */
  #Content :is(h1, h2) {
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
