/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://example.com/
Description: Child theme for Twenty Twenty-Five
Author: Your Company
Author URI: https://example.com/
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/* remove the margin between page elements */
:root :where(.is-layout-constrained) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* WHERE form layout */

.where-form__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 1.5rem;
  padding: 1em 0;          /* top & bottom padding */
  box-sizing: border-box;
  flex-wrap: wrap;
}

.where-form__label {
  font-family: var(--wp--preset--font-family--work-sans);
  font-weight: 300;
  color: var(--wp--preset--color--accent-1);
  font-size: 1.5rem;
  white-space: nowrap;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Select styling */

.where-select {
  font-family: var(--wp--preset--font-family--work-sans);
  font-weight: 300;
  color: var(--wp--preset--color--accent-1);

  padding: 0.6rem 2.8rem 0.6rem 1.2rem;
  font-size: 1.2rem;
  min-width: 270px;

  border: 1px solid var(--wp--preset--color--accent-1);
  background-color: #fff;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-image: url("assets/icons/arrow-down-circle.svg");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2em 1.2em;
}

.where-select:focus {
  outline: 2px solid var(--wp--preset--color--accent-1);
  outline-offset: 2px;
  border-color: var(--wp--preset--color--accent-1);
}

.where-results {
  font-family: var(--wp--preset--font-family--work-sans);
  font-weight: 300;
  color: var(--wp--preset--color--accent-1);
  
  min-height: 10em;
  background-color: #fff;
  padding: 1.2em 2em;
  margin-top: 0.5rem;
  box-sizing: border-box;
}

.where-results p {
  margin-block-start: 0px;
  margin-block-end: 0px;
}

p {
    letter-spacing: 0.02em;
}

h2.wp-block-heading {
    margin-bottom: 1em;
}


/* Barrierefreiheit: Fokus-Indikator für den Schließen-Button des mobilen Menüs.
 * WordPress-Block-CSS unterdrückt outline vollständig – hier für Tastaturnutzer korrigiert.
 */
.wp-block-navigation .wp-block-navigation__responsive-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Legal Terms */

.style-legal ul {
    margin-bottom: 1em;
}
.style-legal li {
    line-height: 1em;
}

.style-legal h2 {
    margin-bottom: 0.8em;
    margin-top: 1em;
}
.style-legal h3 {
    margin-bottom: 0.9em;
    margin-top: 0.8em;
}
.style-legal p {
    margin-bottom: 1em;
}

/* Barrierefreiheit: Hintergrundvideo bei reduzierter Bewegungspräferenz ausblenden.
 * Das Cover-Block-Video läuft autoplay/loop – für Nutzer mit motion-sensitivity
 * wird es ausgeblendet (WCAG 2.1, SC 2.2.2).
 */
@media (prefers-reduced-motion: reduce) {
    .wp-block-cover__video-background {
        display: none;
    }
}

/* TranslatePress-Sprachumschalter im Header: Rahmen entfernen + kompakt machen */
.trp-language-switcher.trp-shortcode-switcher {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}
.trp-language-switcher.trp-shortcode-switcher .trp-language-item {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    line-height: 1.4 !important;
}
/* Leere wpautop-Absätze um den Shortcode (verursachen je 22px Margin) ausblenden */
    .trp-language-switcher.trp-shortcode-switcher > p,
    .trp-language-switcher.trp-shortcode-switcher > div:empty {
    display: none !important;
    margin: 0 !important;
}

.trp-language-switcher.trp-shortcode-switcher .trp-language-item {
    padding-top: 1.5px !important;    /* war 3px */
    padding-bottom: 1.5px !important; /* war 3px */
    line-height: 1.4 !important;
}

@media(max-width: 1023px) {
    .hero-video-callout__badge-text {
        line-height: 1.1 !important;
    } 
}

@media (max-width: 799px) {
    /* Flagge weg, Sprachname-Text verstecken (font-size:0, damit ::after nutzbar bleibt) */
    .trp-shortcode-switcher .trp-flag-image { display: none !important; }
    .trp-shortcode-switcher .trp-language-item-name { font-size: 0 !important; }
    .trp-shortcode-switcher .trp-language-item-name::after { font-size: 14px !important; }

    /* Dropdown-Optionen (Links MIT href) */
    .trp-shortcode-switcher a.trp-language-item[href*="/en/"] .trp-language-item-name::after { content: "en"; }
    .trp-shortcode-switcher a.trp-language-item[href*="/de/"] .trp-language-item-name::after { content: "de"; }
    .trp-shortcode-switcher a.trp-language-item[href*="/fr/"] .trp-language-item-name::after { content: "fr"; }

    /* Aktuelle Sprache (Overlay-Modus = <div> OHNE href) über die Seitensprache */
    html[lang^="en"] .trp-shortcode-switcher .trp-language-item__current .trp-language-item-name::after { content: "en"; }
    html[lang^="de"] .trp-shortcode-switcher .trp-language-item__current .trp-language-item-name::after { content: "de"; }
    html[lang^="fr"] .trp-shortcode-switcher .trp-language-item__current .trp-language-item-name::after { content: "fr"; }

    /* kompakte Abstände */
    .trp-shortcode-switcher .trp-language-item {
        line-height: 1.3 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
}

@media (max-width: 799px) {
    .trp-shortcode-switcher__wrapper { order: 1; }   /* Switcher nach vorne */
    .wp-block-navigation            { order: 2; }   /* Hamburger nach hinten */
}

@media (max-width: 799px) {
    /* Aufgabe 1: Personen-Hintergrundbild zentrieren (war oben-links) */
    .wp-block-group[style*="background-image"] {
        background-position: center !important;
    }
    /* Aufgabe 2: Callout-Box schmaler — Padding 4rem → 1rem (Rainers Wunsch) */
    .hero-video-callout__box {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 799px) {
    .wp-block-group[style*="background-image"] {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        min-height: 0 !important;            /* hebt das inline min-height:500px auf */
        aspect-ratio: 2560 / 1108 !important; /* Block bekommt das Bildformat → ganzes Bild, kein Anschnitt, kein Leerraum */
    }
} 
  
@media (max-width: 799px) {
    .hero-video-box { min-height: 450px !important; }
}

/* Sprachauswahl vorübergehend ausschalten */
/* mib, 2026-06-18                         */
div.trp-shortcode-switcher__wrapper {
    display: none;
}


