/*
Theme Name: ref-winterthur-liebestrasse
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
*/

/* --------------------------------------------------------
  Fonts
-------------------------------------------------------- */
@font-face {
  font-family: 'OpenSans';
  src: url('https://liebestrasse.verowa-infodisplays.ch/theme/fonts/OpenSans-Variable.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}


/* --------------------------------------------------------
 General
-------------------------------------------------------- */
:root {
  /* Fonts */
  --font-base: 'OpenSans', sans-serif;    /* Regular */

  /* Colors */
  --color-accent: #7c8183;
  --color-light: #e5e6e6;
  --color-body: #333;

  /* Space / Margins / Paddings */
  --space-big: 3vh;
  --space-normal: 2vh;
  --space-small: 1vh;
  --space-mini: 0.5vh;
}

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

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

body {
    color: #333;
    font-family: var(--font-base);
    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-family: var(--font-base);
    font-weight: 500;
}

h2 {
    font-size: 1.2vw;
    line-height: 1.2;
    margin-bottom: 0.2em;
}

h3 {
    font-size: 1.8vw;
    margin: 0.2em 0;  
}

img {
    width: auto;
}

/* --------------------------------------------------------
 Main wrapper
-------------------------------------------------------- */
.wrapper {
    background: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    aspect-ratio: auto;
}

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

/* --------------------------------------------------------
 Header
-------------------------------------------------------- */
.header {
    align-items: center;
    background: var(--color-accent);
    color: white;
    display: flex;
    height: 7vw !important;
    min-height: 7vw !important;
    justify-content: space-between;
    padding: var(--space-normal);
    position: relative;
    width: 100%;
}

/* Logo */
.topimage {
    line-height: 1;
    z-index: 200;
}

.topimage img {
    margin-top: 0.21vw;   
    max-height: 4.48vw;  
}

/* Date & Time */
.cur_date_time {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.clock {
    font-size: 2.2vw;   
    height: 2.81vw;     
    line-height: 1.2;
}

.cur_date {
  font-size: 1.17vw;   
  display: none;
}

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

.event-list {
    margin: var(--space-normal);
    margin-right: 0;
    width: 77.63vw;
    box-sizing: border-box;
}

/* -------------------------------------------------------
 Event List
-------------------------------------------------------- */
.date-row {
    align-items: center;
    background-color: var(--color-light);
    display: flex;
    height: 1.85vw !important;
    margin: 1.04vw 0 0.52vw;
    padding: 0 1.04vw 0 0;
    width: 100%;
    font-size: 1.2vw;
    box-sizing: border-box;
    padding: 1.2vw 12.7vw;
   padding-right: var(--space-normal);
    max-width: 31vw;
}

.date-row:first-child {
    margin: 0 0 0.52vw;
}

.event-row {
    display: flex;
    align-items: baseline;
    margin: 0 0 0.52vw 0;
    padding: 0 1vw;
    width: 100%;
    box-sizing: border-box;
    gap: var(--space-normal);
}

.event-time {
    width: 17%;
    text-align: right;
    padding-right: 1vw;
    font-size: 1.2vw;
}

.event-title {
    flex-grow: 1;
    font-weight: 600;
}

.event-location {
    width: 22%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    font-size: 1.2vw; 
}


/* --------------------------------------------------------
 Slider
-------------------------------------------------------- */
.slider-wrapper {
    background: var(--color-accent);
    color: white;
    display: flex;
    flex-direction: column;
    margin: var(--space-normal);
    position: relative;
    margin-right: 0 !important;
    width: 40vw;
}

#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;
    width: 100%;
}

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

.slide_image {
 max-width: 100%;
 text-align: left;
 margin: 0 0 var(--space-normal) 0;
 overflow: hidden;
 box-sizing: border-box;
 /* max-height: 20.83vw; */
 height: 20.83vw;
 display: block;
}

.slide_image img {
   /* height: 20.83vw;        */
   min-height: 20.83vw;      
   max-width: 100%;      
   width: auto;        
   /* object-fit: contain;  */
   /* display: block; */
   
   height: auto;
   width: auto;
   max-width: 100%;
   text-align: left;
   padding-left: 0;
}

.slide_content_wrapper {
    display: flex;
    flex-direction: column;
    font-size: 1.1vw;  
    overflow: hidden !important;
    padding: 0 var(--space-normal); 
    max-height: 16.67vw; 
    height: 16.67vw;
}

.slide_content_wrapper h2 {
    font-size: 1.6vw; 
}

.slide_topic {
    margin: 0.63vw 0 0 0; 
}

.slide_content {
    display: flex;
    font-size: 1.2vw;  
}


/* --------------------------------------------------------
 Person
-------------------------------------------------------- */
#hausdienst {
    display: flex;
    flex-wrap: nowrap;
}

#hausdienst .headline {
    font-size: 1.15vw;  
    line-height: 1.2;
    margin: 0 1.04vw 0 0;
    width: 5.21vw;       
}

#hausdienst .person-image {
    border: 0.05vw solid white; 
    max-height: 5.63vw; 
    overflow: hidden;
    width: 4.58vw;     
    margin-right: 0.73vw; 
}

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

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

#hausdienst .person-data .name {
    font-size: 0.99vw;   
    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.63vw; 
}


/* --------------------------------------------------------
 Footer
-------------------------------------------------------- */
.footer {
  background: var(--color-accent);
    color: white;
    display: flex;
    font-size: 1.25vw;  
    justify-content: space-between;
    padding: var(--space-small) var(--space-normal);
    height: 3.5vw;
}

.footer h3 {
    font-size: 1.15vw;  
    line-height: 1.2;
    margin: 0 0 0.5em;
}

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

.footer .textwidget {
  display: flex;
  gap: 2.5vw;
  justify-content: space-between;
}

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

.footer #text-1 {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.footer #text-1 .wp-block-column {
  width: 100%;
}

.footer #text-4 {
  display: flex;
  flex-wrap: nowrap;
}

/* --------------------------------------------------------
 Verowa Error Box
-------------------------------------------------------- */
.verowa-down {
    background-color: #8fb810;
    border-radius: 0.52vw; 
    color: white;
    font-size: 1.67vw;   
    font-weight: 600;
    left: 7.81vw;        
    line-height: 3.02vw;
    padding: 1.82vw 1.82vw 2.08vw;
    position: absolute;
    text-align: center;
    top: 22.5vw;         
    width: 43.75vw;     
}
