/*
Theme Name: ref-rajo-ezra (Evang. Zentrum Rapperswil)
Author: verowa
Author URI: http://verowa.ch/
Description:
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: display
Auflösung fix Full HD

History:	19.01.2022/PMe: Neuer Aufbau gem. HTML-Struktur
            04.11.2025/PMe: Ausrichtungen und Masseinheiten optimieren, Footer umstellen
*/

/* --------------------------------------------------------
 Fonts
-------------------------------------------------------- */

@font-face {
    font-family: 'Circular';
    src: url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/CircularXXSub-Book.eot');
    src: url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/CircularXXSub-Book.eot?#iefix') format('embedded-opentype'),
        url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/CircularXXSub-Book.woff2') format('woff2'),
        url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/CircularXXSub-Book.woff') format('woff'),
        url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/CircularXXSub-Book.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/OpenSans.eot');
    src: url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/OpenSans.eot?#iefix') format('embedded-opentype'),
        url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/OpenSans.woff2') format('woff2'),
        url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/OpenSans.woff') format('woff'),
        url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/OpenSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: 'Arrows';
  src: url('/https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/Arrows.ttf') format('truetype'),
    url('https://ref-rajo-ezra.verowa-infodisplays.ch/theme/fonts/Arrows.otf') format('opentype');
  font-style: normal;
}


/* --------------------------------------------------------
 General
-------------------------------------------------------- */
:root {
  /* Fonts */
  --font-body: 'Circular', sans-serif;
  /* --font-body: 'OpenSans', sans-serif; */
  --font-heading: 'Circular', sans-serif;

  /* Colors */
  --color-primary: #eda478 ;
  --color-primary-light: #fae4d6;
  --color-primary-dark: #d84400;
  --color-neutral-bg: ;
  --color-text-body: #333 ;
  --color-text-heading: #d84400;
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* Space / Margins / Paddings */
  --space-mini: 0.25vw;
  --space-small: 0.5vw;
  --space-normal: 1vw;
  --space-big: 2vw;
  --space-xl: 3vw;
  
  /* Radius */
  --radius-small: 0.5vw;
  --radius-normal: 1vw ;
  --radius-big: 2vw ;

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  margin: 0 !important;
}

body {
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-weight: 400;
  height: 100%;
  line-height: 1.3;
  overflow: hidden;
  width: 100%;
}

ul,
li {
  list-style-type: none;
  margin: 0;
}

/* Font headings */
h1,
h2,
h3,
h4 {
  font-weight: 600;
}

h2 {
  font-size: 2vw;
  line-height: 1.2;
}

h3 {
  font-size: 1.5vw;
  margin: 0.166666vw 0;
}

img {
  width: auto;
}

/* --------------------------------------------------------
 Main Wrapper
-------------------------------------------------------- */
.wrapper {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  aspect-ratio: 16 / 9;
}

.hd-container {
  background: white;
  display: flex;
  flex-direction: column;
  height: 56.25vw;
  width: 100vw;
}

/* Content Wrapper */
.content-wrapper {
  display: flex;
  flex-direction: row;
  flex-grow: 2;
  flex-wrap: nowrap;
  font-size: 1.5vw;
  justify-content: space-between;
  overflow: hidden;
}

/* --------------------------------------------------------
 Header
-------------------------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-white);
  color: var(--color-text-heading);
  display: flex;
  height: 8.25vw !important;
  min-height: 6.25vw !important;
  justify-content: space-between;
  padding: 0 var(--space-big);
  position: relative;
  width: 100%;
  border-bottom: 4px solid var(--color-primary-dark);
}

.header h1 {
  color: var(--color-text-heading);
}

/* --------------------------------------------------------
 Logo
-------------------------------------------------------- */
.logo-wrapper {
  display: flex;
  align-items: baseline;
  flex-direction: row;
  justify-content: space-between;
}

.logo-wrapper img {
  height: 5vw;
  max-width: 10.5vw;
}

/* Date & Time */
.cur_date_time {
  text-align: right;
  font-family: var(--font-body);
  color: var(--color-text-heading);
  text-align: right;
  font-size: 1.3vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.clock {
  font-size: 3vw;
  line-height: 1;
  font-family: var(--font-body);
  color: var(--color-text-heading);
  text-align: right;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.2vw;
}

.cur_date{
  display: none;
}

/* --------------------------------------------------------
 Event List
-------------------------------------------------------- */
.event-list {
  padding: 0;
  margin: var(--space-big);
  margin-right: 0;
  height: 40vw;
  width: 65vw;
  overflow: hidden;
}

h2.event-type-header {
  max-width: max-content;
  word-break: normal;
  background: var(--color-accent);
  padding: var(--space-small);
  color: white;
  display: flex;
  gap: var(--space-small);
}

.event-row {
  display: flex;
  align-items: baseline;
  padding-bottom: var(--space-small);
  /* padding-left: 0.5vw;
  padding-right: 0.5vw; */
}

.date-row {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 1.5625vw;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  width: 37vw;
  padding: var(--space-small);
  padding-right: var(--space-big);
  padding-left: 13.95vw;
  margin-bottom: var(--space-normal);
  margin-top: var(--space-normal);
}

.date-row:first-of-type{
  margin-top: 0;
}

.event-time {
  font-weight: 400;
  line-height: 1;
  font-family: var(--font-body);
  width: 13.5vw;
  font-style: normal;
  font-weight: 400;
  line-height: 2vw;
  padding-right: 2vw;
  text-align: right;
  width: 14.5vw;
}

.event-title {
  width: calc(100% - 28.5vw);
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.5625vw;
  font-style: normal;
  font-weight: 600;
  line-height: 2vw;
  margin-right: var(--space-normal);
}

.event-location-wrapper {
  display: flex;
  align-items: center;
  width: 16vw;
}
.event-location {
  width: 13.5vw;
  padding-right: var(--space-normal);
  text-align: right;
  font-family: var(--font-body);
  font-size: 1.5vw;
  font-style: normal;
  font-weight: 400;
  line-height: 2vw;
}

.arrow_icon {
  color: var(--color-primary-dark);
  text-align: center;
  font-family: var(--font-arrows);
  font-size: 2.2vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7vw;
  margin-top: 0.3vw;
}

/* --------------------------------------------------------
 Slider
-------------------------------------------------------- */
.slider-wrapper {
  background: var(--color-primary-dark);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 33vw;
}

#SliderNoResult {
  flex-direction: row;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 3;
}

.pp-slideshow {
  flex-grow: 2;
  height: auto;
  overflow: hidden;
  padding-left: 0;
  position: relative;
}

.pp-slideshow>div {
  align-items: center;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.slide_image {
  overflow: hidden;
  width: 100%;
}

.slide_image img {
  max-width: 100%;
  width: 100%;
}

.slide_content_wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-small);
  overflow: hidden !important;
  padding: var(--space-normal) var(--space-big);
  font-family: var(--font-body);
  font-size: 1.2vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
}

.slide_content {
  display: flex;
}

.slide_content_wrapper h2 {
  font-size: 3.02vw;
  word-break: break-word;
  text-edge: cap;
  font-size: 2vw;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.slide_content_wrapper span.slide_topic {
  
}

.slide_content_wrapper .slide_datum {
 
}

.slide_content_wrapper span.slide_location {
  margin-bottom: var(--space-normal);
}

.slide_date_time hr {
  margin: var(--space-small) 0;
}

/* --------------------------------------------------------
 Person
-------------------------------------------------------- */
#hausdienst {
  display: flex;
  flex-wrap: nowrap;
  /*     width: 100%;
    margin-left: 2vw;
    border-top: 3px solid #fff;
    box-sizing: border-box;
    padding: 2.0833vw 0; */
}


#hausdienst .headline {
  font-size: 1.1458333333vw;
  line-height: 1.2;
  margin: 0 1.04166vw 0 0;
  width: 5.20833vw;
}

#hausdienst .person-image {
  border: 1px solid #fff;
  max-height: 5.625vw;
  overflow: hidden;
  width: 4.5833vw;
}

#hausdienst .person-image img {
  width: 100%;
}

#hausdienst .person-image {
  margin-right: 0.72916vw;
}

#hausdienst .person-data {
  font-size: 0.98958vw;
  line-height: 1.5;
  margin-right: 1.6666vw;
}

#hausdienst .person-data .name {
  font-size: 0.98958vw;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0;
  margin-top: 0;
}

.person-data h2,
.person-data span {
  margin: 0;
}

.person-data span {
  display: block;
  margin-bottom: 0.625vw;
}

/* --------------------------------------------------------
 Footer
-------------------------------------------------------- */
.footer {
  display: flex;
  justify-content: end;
  background: var(--color-primary-light);
  font-size: 1.25vw;
  line-height: 1.2 !important;
  height: 4vw;
  padding: var(--space-normal) var(--space-big);
  padding-top: 1.2vw;
}

.footer .wp-block-column {
  display: flex;
  flex-direction: row;
}

.footer .footer-title {
  width: 12.5vw;
}

.footer-title:has(+ .footer-widgets:not(:has(.personwidget))) {
  display: none;
}

.footer h3 {
  font-family: var(--font-body);
  font-size: 1.3vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  padding: 0.5vw 0;
  text-align: left;
}

.footer p {
  font-size: 1vw;
  line-height: 1.5;
}

.footer .lbl-legend {
  display: inline-block;
  width: 2.86458vw;
}

.footer #text-1,
.footer #text-2,
.footer #text-3,
.footer #text-4 {
  display: flex;
  color: var(--color-primary-dark);
}

.footer #text-1 {
  
}

.footer .textwidget-wrapper {
  display: flex;
  justify-content: space-between;
}

.footer .footer-widgets {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 83.5vw;
}

/* QR-Code */
.footer #text-1 .footer-widgets .qrwidget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vw;
}

.footer #text-1 .footer-widgets .qrwidget p {
  font-family: var(--font-body);
  font-size: 0.9vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

img.qr-code {
  width: auto;
  height: 6vw;
}


/* Person Details */
.footer .person-wrapper {
  display: flex;
  justify-content: space-between;
  width: 55vw;
  width: max-content;
  gap: 4vw;
}

.person-wrapper .personwidget {
  display: flex;
  flex-direction: row;
  gap: 1vw;
}

.person-wrapper .personwidget .person-photo {
  width: 9vw;
  overflow: hidden;
}

.person-wrapper .personwidget .person-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
}

.person-wrapper .personwidget .person-details {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.person-wrapper .personwidget .person-profession {
  font-family: var(--font-body);
  font-size: 1.3vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  padding: 0.5vw 0 0;
}

.person-wrapper .personwidget .person-name {
  font-family: var(--font-body);
  font-size: 1.3vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase
}

.person-wrapper .personwidget .person-phone {
  font-family: var(--font-body);
  font-size: 1.3vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

/* --------------------------------------------------------
 Error Box
-------------------------------------------------------- */
.verowa-down {
  background-color: #8fb810;
  border-radius: var(--radius-small);
  color: #fff;
  font-size: 1.6666vw;
  font-weight: 600;
  left: 7.8125vw;
  line-height: 3.02083vw;
  padding: 1.8229vw 1.8229vw 2.0833vw;
  position: absolute;
  text-align: center;
  top: 22.5vw;
  width: 43.75vw;
}