/* ==========================================================================
   Retreat Königssee – Responsive-Korrekturen
   Ansichten: Tablet quer / Tablet hoch / Handy quer / Handy hoch
   Wird auf allen Seiten am Ende von <body> eingebunden, damit diese Regeln
   die seiteneigenen <style>-Blöcke überschreiben (deshalb !important).
   ========================================================================== */


/* 1) Tagesablauf-Tabelle -------------------------------------------------- */
/* bis 768 px war die Schrift 12 px: Tablet hoch bekommt lesbare 16 px ...    */
@media only screen and (max-width:768px){
  .retreat-tagesablauf-table td{font-size:16px!important;line-height:1.45!important;padding-top:9px!important;padding-bottom:9px!important;}
  .retreat-tagesablauf-table td.retreat-ta-time{width:150px!important;}
  .retreat-tagesablauf-table td.retreat-ta-title{width:170px!important;}
}
/* ... und auf dem Handy (hoch) wird jede Zeile gestapelt: Uhrzeit + Titel oben, Beschreibung darunter */
@media only screen and (max-width:600px){
  .retreat-tagesablauf-table,.retreat-tagesablauf-table tbody{display:block!important;width:100%!important;}
  .retreat-tagesablauf-table tr{display:grid!important;grid-template-columns:118px 1fr;column-gap:12px;row-gap:3px;padding:11px 0;border-bottom:1px solid #eee;}
  .retreat-tagesablauf-table td{display:block!important;width:auto!important;padding:0!important;border:0!important;font-size:16px!important;}
  .retreat-tagesablauf-table td.retreat-ta-time{white-space:normal!important;}
  .retreat-tagesablauf-table td.retreat-ta-desc{grid-column:1 / -1;font-size:15px!important;line-height:1.5!important;}
  .retreat-tagesablauf-table td:empty{display:none!important;}
}


/* 1b) Tagesablauf: Tabelle "Themen der Impulsvortraege" hatte bis 768 px nur 12 px Schrift */
@media only screen and (max-width:768px){
  .retreat-impulsvortraege-table td{font-size:16px!important;line-height:1.4!important;}
  .retreat-impulsvortraege-table td.retreat-ivt-day{width:118px!important;}
}


/* 2) Startseite: Testimonials ------------------------------------------------ */
/* Bis 1024 px ragte der weisse Block "Die Inhalte" 31 px in den Testimonial-Bereich und
   ueberdeckte "Diese Testimonials sind echt." -> gleicher Abstand wie am Desktop */
@media only screen and (max-width:1024px){
  .elementor-element.elementor-element-2e8ae1e{margin-bottom:66px!important;}
}


/* 3) Kopfbild (Hero) ---------------------------------------------------------- */
/* 3a) Titel besser lesbar auf hellen Fotos (Tablet/Handy) */
@media only screen and (max-width:1024px){
  body:not(.retreat-hero-portrait) .elementor-element-b9f8785 h3,
  body:not(.retreat-hero-portrait) .elementor-element-dbf41d7 h3{text-shadow:0 1px 10px rgba(0,0,0,.4);}
}

/* 3b) Seiten mit Portraitfoto (Meine Motivation, Kontakt): Gesicht bleibt frei vom Titel */
/* Tablet/Laptop quer: Titel etwas kleiner, damit er nicht ins Gesicht ragt */
@media only screen and (min-width:769px) and (max-width:1250px) and (orientation:landscape){
  body.retreat-hero-portrait .elementor-element-18030e4{--hero-h1:clamp(30px,3.3vw,40px)!important;}
}
/* Tablet hoch: Gesicht mittig, Titel darunter auf dem Hemd */
@media only screen and (min-width:768px) and (max-width:1024px) and (orientation:portrait){
  body.retreat-hero-portrait .elementor-element-22bf232 img{object-position:84% 0!important;}
  body.retreat-hero-portrait .elementor-element.elementor-element-b9f8785{top:68vh!important;}
  body.retreat-hero-portrait .elementor-element.elementor-element-dbf41d7{top:calc(68vh + 90px)!important;}
}
/* Handy hoch: Gesicht mittig, Titel unter dem Kinn */
@media only screen and (max-width:767px) and (orientation:portrait){
  body.retreat-hero-portrait .elementor-element-22bf232 img{object-position:84% 0!important;}
  body.retreat-hero-portrait .elementor-element-18030e4{--hero-h1:24px!important;}
  body.retreat-hero-portrait .elementor-element.elementor-element-b9f8785{top:552px!important;}
  body.retreat-hero-portrait .elementor-element.elementor-element-b9f8785 h3{white-space:nowrap!important;}
  /* Untertitel rechts neben dem runden "In Kontakt kommen"-Button */
  body.retreat-hero-portrait .elementor-element.elementor-element-dbf41d7{top:590px!important;left:124px!important;width:calc(100% - 144px)!important;}
  body.retreat-hero-portrait .elementor-element.elementor-element-dbf41d7 h3{font-size:26px!important;line-height:1.2!important;}
}

/* 3c) Handy quer (nur ca. 300-430 px Hoehe): Kopfbild kuerzer, damit man nicht erst ein Bild "wegscrollen" muss */
@media only screen and (orientation:landscape) and (max-height:500px) and (max-width:1000px){
  body .elementor-element-22bf232 img{min-height:0!important;height:440px!important;}
  body .elementor-element-18030e4{--hero-h1:28px!important;}
  body .elementor-element.elementor-element-b9f8785{top:170px!important;}
  body .elementor-element.elementor-element-dbf41d7{top:212px!important;}
  body.retreat-hero-portrait .elementor-element-22bf232 img{object-position:100% 0!important;}
}


/* 4) Testimonial-Karussell: nicht mehr 3 Spalten auf schmalen Bildschirmen ist in
      assets/custom-testimonial-autoplay.js geloest (Breakpoints 768 / 1024). */


/* 5) Popup-Menue im Querformat auf dem Handy ----------------------------------- */
/* Es standen nur ca. 5 von 8 Eintraegen im sichtbaren Bereich -> kompakter, damit alles ohne Scrollen passt */
@media only screen and (orientation:landscape) and (max-height:520px){
  .popup_menu_holder_inner{padding-top:56px!important;padding-bottom:20px!important;}
  nav.popup_menu ul li,
  nav.popup_menu ul li a{font-size:20px!important;line-height:34px!important;height:auto!important;}
}
