/*
Theme Name: Kath Winterthur Peter und Paul
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: 'Arrows';
  src: url('https://peterundpaul.verowa-infodisplays.ch/theme/fonts/Arrows.ttf') format('truetype'),
    url('https://peterundpaul.verowa-infodisplays.ch/theme/fonts/Arrows.otf') format('opentype');
  font-style: normal;
}

/* --------------------------------------------------------
 General
-------------------------------------------------------- */
:root {
  /* Fonts */
  --font-base: 'Roboto', sans-serif;
  --font-accent: 'Roboto', sans-serif;
  --font-arrows: 'Arrows';

  /* Colors */
  --color-base: #ffffff;
  --color-accent: #999999;
  --color-light: #e5e5e5;
  --color-body: #000000;
  --color-contrast-1: #344f66;
  --color-contrast-2: #8a084a;

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

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

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

body {
  color: var(--color-body);
  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-weight: 600;
}

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

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

img {
  width: auto;
}

.flex-column{
  display: flex;
  flex-direction: column;
  width: 322vw;
}

/* --------------------------------------------------------
 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-accent);
  color: white;
  display: flex;
  height: 6.25vw !important;
  min-height: 6.25vw !important;
  justify-content: space-between;
  padding: 0 var(--space-big);
  position: relative;
  width: 100%;
}

.header h1 {
  color: #b4b4b4;
}

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

.logo-wrapper img {
  max-width: 20.5vw;
}

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

.clock {
  font-size: 2.6042vw;
  line-height: 1;
  font-family: var(--font-accent);
  color: white;
  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: 2vw;
  margin-right: 0;
  height: 42vw;
  width: 64vw;
  overflow: hidden;
}

h2.event-type-header {
  max-width: max-content;
  word-break: normal;
  hyphens: auto;
  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-light); */
  color: var(--color-contrast-2);
  border-radius: 0;
  font-family: var(--font-accent);
  font-size: 1.2vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05vw;
  padding-left: 11.1vw;
  margin-bottom: var(--space-small);
  margin-top: var(--space-normal);
}

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

.event-time {
  width: 61.5vw;
  font-weight: 400;
  line-height: 1;
  font-family: var(--font-accent);
  font-size: 1.1979vw;
  font-style: normal;
  font-weight: 400;
  line-height: 2vw;
  /* letter-spacing: 0.078125vw; */
  /* text-transform: uppercase; */
  padding-right: 2vw;
  text-align: right;
}

.event-title {
  width: 95%;
  text-align: left;
  color:var(--color-contrast-1);
  font-size: 1.7708vw;
  font-weight: 500;
  letter-spacing: 0.04vw; 
  font-family: var(--font-base);
  font-style: normal;
  line-height: 2vw;
}

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

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

/* --------------------------------------------------------
 Slider
-------------------------------------------------------- */
.slider-wrapper {
  border-radius: 0;
  background: var(--color-light);
  padding: 2vw;
  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 {
  width: auto;
  max-height: 18vw;
  aspect-ratio: 319.00/255.20;
  /* border-radius: 0.8vw; */
}

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

.slide_content {
  display: flex;
}

.slide_content_wrapper h2 {
  color: var(--color-contrast-1);
  font-size: 1.7708vw;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04vw;
  word-break: break-word;
  hyphens: auto;
  text-edge: cap;
}

.slide_content_wrapper span.slide_topic {
  color: var(--color-contrast-1);
  margin-top: var(--space-small);
  /* letter-spacing: 2%; */
  font-family: var(--font-accent);
  font-size: 1.2vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  /* letter-spacing: 1.1px; */
  margin-bottom: 1.44vw;
}

.slide_content_wrapper .slide_datum {
  color: var(--color-contrast-2);
  border-radius: 0;
  font-family: var(--font-accent);
  font-size: 1.2vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05vw;
  margin: var(--space-small) 0 ;
}

.slide_content_wrapper span.slide_location {
  font-family: var(--font-accent);
  font-size: 1.2vw;
  font-style: normal;
  font-weight: 400;
  line-height: 2;
}

.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: space-between;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.25vw;
  line-height: 1.2 !important;
  height: 4vw;
  padding: 1vw 2vw;
  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-accent);
  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;
}

.footer #text-1{
  gap: var(--space-normal);
}

.footer .footer-label{
  gap: 5vw;
  color: var(--color-contrast-2);
}

.footer .footer-value {
  color: white;
}

.footer #text-4 {
  text-align: center;
  gap: var(--space-big);
  display: flex;
  flex-direction: column;
}

#text-4.widget.widget_text {
  justify-content: center;
}

.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-accent);
  font-size: 0.9vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  /* letter-spacing: 0.078125vw; */
  /* */
  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 {
  border-radius: 0;
  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-accent);
  font-size: 1.3vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  /* letter-spacing: 0.078125vw; */
  /* */
  padding: 0.5vw 0 0;
}

.person-wrapper .personwidget .person-name {
  font-family: var(--font-accent);
  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-accent);
  font-size: 1.3vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  /* letter-spacing: 0.078125vw; */
  /* */
}

/* --------------------------------------------------------
 Error Box
-------------------------------------------------------- */
.verowa-down {
  background-color: #8fb810;
  border-radius: 0.5vw;
  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;
}