html, body {
  margin: 0; padding: 0;
  height: 100vh;
  max-width: 100vw;
  font-family: Open Sans, Helvetica, Arial, sans-serif;
  background: #f0f0f0;
  overflow: hidden;
  /* font-size: calc(16px * 1.5); */
  /* font-size: clamp(12px, 0.8vw + 8px, 16px); soll dynamische Berechnung ermöglichen */
  font-size: 20px;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.main-wrapper {
  display: flex;
  flex: 1;
  /*height: calc(100vh - 50px);*/
  height: calc(100vh - 50px);
}

main#slideshow {
  flex: 0 0 70%;
  position: relative;
  overflow: hidden;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sidebar {
  flex: 0 0 30%;
  background: #dbf3ff;
  color: #02335d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2%;
  box-sizing: border-box;
}

#sidebar-logo {
  max-height: 120px * 1.5;
  max-width: 100% * 1.5;
  margin-bottom: 2vh;
}

.orientation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  flex-grow: 1;
}

.direction {
  display: flex;
  /*display: grid;
  grid-auto-flow: column; 
  gap: 1.75rem;*/
  align-items: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #02335d;
  word-wrap: anywhere;
}

.direction > * { /* Nötig, weil Opera GAP nicht unterstützt */
  margin-right: 1rem;
}
.direction > *:last-child {
  margin-right: 0; /* Verhindert ungewollten Abstand am Ende */
}

.arrow-img {
  width: 2.5rem;
  height: 2.5rem;
}

.arrow-up {
  transform: rotate(0deg);
}

.arrow-up-right {
  transform: rotate(45deg);
}

.arrow-right {
  transform: rotate(90deg);
}

.arrow-down-right {
  transform: rotate(135deg);
}

.arrow-down {
  transform: rotate(180deg);
}

.arrow-down-left {
  transform: rotate(225deg);
}

.arrow-left {
  transform: rotate(270deg);
}

.arrow-up-left {
  transform: rotate(315deg);
}

#infobar {
  height: 50px;
  background: #02335d;
  color: white;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  font-size: 1.5rem;
  font-weight: 900
}

.slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  position: absolute;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  max-height: 100%;
  max-width: 40%;
  object-fit: contain;
}

.slide .text {
  padding: 1rem;
  max-width: 60%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100%;
}

.slide-content {
  display: block;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.slide-content.left {
  flex-direction: row;
}

.slide-content.left img {
  order: 0;
  flex-shrink: 0;
  width: 40%;
  object-fit: cover;
  align-self: stretch;
}

.slide-content.left .text {
  order: 1;
  flex-grow: 1;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.slide-content.right {
  flex-direction: row-reverse;
}

.slide-content.right img {
  order: 0;
  flex-shrink: 0;
  width: 40%;
  object-fit: cover;
  align-self: stretch;
}

.slide-content.right .text {
  order: 1;
  flex-grow: 1;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.slide-content.center {
  justify-content: center;
}

.slide-content.center img {
  height: 100%;
}

.image-full {
  position: relative;
  justify-content: center;
  align-items: stretch;
  width: 100vw;
  max-width: none;
}

.image-full img {
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  width: 100%;
  max-width: none;
  display: block;
}

.image-full-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(2, 51, 93, 0.7);
  color: white;
  padding: 1rem;
  text-align: center;
}

.image-full-text h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.image-full-text p {
  margin: 0;
  font-size: 1.5rem;
}

.slide .qr {
  align-self: flex-end;
  margin-top: 1rem;
  width: 100%;
  height: 120px;
}

.slide .qr img {
  width: auto;
  height: 110px;
  object-fit: contain;
  padding: 5px;
  background: white;
}

.heading-center {
  background-color: black;
  color: white;
  width: 80%;
  margin: 1rem auto 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 0;
  text-align: center;
  font-weight: normal;
  font-size: 1.5rem;
}

/* WETTER */
.weather-icon {
    height: 120px;
    width: 120px;
    display: block;
    /* Other styles here */
    object-fit: cover;
}

.forecast-icon {
    margin: 0 auto;
}

.now-icon {
    height: 354px;
    width: 354px;
    padding-top: 10%;
    padding-bottom: 10%;
}

.sunny {
    background: url('../icons/weather/sonne.png');
}
.cloudy {
    background: url('../icons/weather/wolke_sonne.png');
}
.overcast {
    background: url('../icons/weather/bewoelkt.png');
}

.weather-container {
    display: block;
    height: 100%;
}

.weather-sonne {
    background-image: url("../images/weather/himmel_klar.png");
    background-color: #cccccc;
    background-size: cover;
}

.weather-wolke_sonne {
    background-image: url("../images/weather/himmel_wolken.png");
    background-color: #cccccc;
    background-size: cover;
}

.weather-bewoelkt {
    background-image: url("../images/weather/himmel_wolken.png");
    background-color: #cccccc;
    background-size: cover;
}

.weather-bewWWWoelkt::before {
	background-image: url("../images/weather/himmel_wolken.png");
	background-color: #fff;
	background-size: cover;
	content: ' ';
	opacity: 0.5;
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
    /* https://www.digitalocean.com/community/tutorials/how-to-change-a-css-background-images-opacity */
}

.weather-regen {
    background-image: url("../images/weather/wolke_regen.png");
    background-color: #cccccc;
    background-size: cover;
}

.weather-schauer {
    background-image: url("../images/weather/regentropfen_gras.jpg");
    background-color: #cccccc;
    background-size: cover;
}

.weather-left,
.weather-right {
    display: block;
    width: 50%;
    float: left;
    position:relative;
    overflow: hidden;
    /* padding: 20px;*/
}

.weather-now {
    float:left;
    display: flex;
    width: 100%;
    margin: 10% auto 5% auto;
    background: rgba(2, 51, 93, .22);
    border-radius: 10px;
    color: #fff;
    align-items: center;
}

.weather-now h1 {
    text-align: center;
    /* text-shadow: 2px 2px 22px #fff; */
    margin-right: 150px;
}

.weather-forecast {
    float: left;
    width: 100%;
    display: flex;
}

.forecast-1h,
.forecast-2h,
.forecast-3h {
    float: left;
    width: 25%;
    padding: 20px 35px;
    background: rgba(2, 51, 93, .22);
    margin: 0 auto;
    max-width:fit-content;
    min-width: 123px;
    text-align: center;
    border-radius: 10px;
    color: #fff;
}

.forecast-1h img,
.forecast-2h img,
.forecast-3h img {
    height: auto!important;
}


.weather-centered {
    margin-right: 5%;
    margin-left: 5%;
}

.weather-now-centered {
    margin: 0 15%;
}

.weather-now-centered h1 {
    text-align: center;
}

/* --- Menu slide styles --- */
.menu-slide-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #1a1a1a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

.menu-slide-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 1;
}

.menu-slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.menu-slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 4%;
  box-sizing: border-box;
  color: #ffffff;
}

.menu-slide-header {
  text-align: center;
  margin-bottom: 20px;
}

.menu-main-title {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

.menu-date-placeholder {
  font-size: 1.1rem;
  color: #ffd43b;
  margin-top: 5px;
  font-weight: 600;
}

.menu-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.menu-row {
  display: grid;
  grid-template-columns: 20% 55% 25%;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.menu-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-type {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #ffd43b;
}

.menu-type.veg {
  color: #51cf66;
}

.menu-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 15px;
}

.menu-title {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.menu-ingredients {
  font-size: 0.9rem;
  color: #cccccc;
  font-style: italic;
}

.menu-calories {
  font-size: 0.8rem;
  color: #aaaaaa;
  text-align: right;
}

.menu-prices {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.05rem;
  font-weight: bold;
}

.price-row {
  white-space: nowrap;
}

.price-label {
  font-size: 0.75rem;
  font-weight: normal;
  color: #bbbbbb;
  display: inline-block;
  margin-right: 5px;
}

#datetime.paused {
  color: #ff6b6b;
}

#datetime.paused::after {
  content: "  (pausiert)";
  font-size: 0.8rem;
  font-weight: normal;
}

