@font-face {
  font-family: 'Rubik_Doodle_Shadow';
  src: url('../fonts/Rubik_Doodle_Shadow/RubikDoodleShadow-Regular.ttf') format('truetype'),
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/Quicksand/Quicksand-VariableFont_wght.ttf') format('truetype'),
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito/Nunito-VariableFont_wght.ttf') format('truetype'),
  font-weight: 400;
  font-style: normal;
}

/*ROOT-Variablen*/
:root{
  --color-main-1: #b9264a; /*#ac0950*/
  --color-main-1-rgb: 185, 38, 74; /*172, 9, 80*/
  --color-main-2: #fe5f55;
  --color-main-2-rgb: 254, 167, 202; /*254, 95, 85;
  --color-main-3: #fbc460; /*hellgelb*/
  --color-main-4: #438ca1; /*blau*/
  --color-main-5: #796a72; /*grau*/
  --color-main-6: #64a002; /*apfelgrün*/
  --color-main-7: #396ac1; /*blau-kombi*/
  --color-main-8: #196b54;
  --background-color: #fff;
  --background-color-1: #c9e3dd;
  --background-color-2: #aaa;
  --font-main-1: 'Rubik_Doodle_Shadow';
  --font-main-2: 'Rubik_Doodle_Shadow';
  --font-main-3: 'Nunito';
}

* {
  box-sizing: border-box;
  padding: 0em 0em;
  margin: 0em 0em;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: var(--color-main-1);
}

/* FONTS und SIZES */

body {
  font-family: var(--font-main-3), sans-serif;
  max-width: 1400px;   /* maximale Breite auf großen Screens */
  margin: 0 auto;      /* zentriert den Body horizontal */
  padding: 0 1rem;     /* Sicherheitsabstand links/rechts für kleine Geräte */
}

h1, h2 {
  font-family: var(--font-main-3), sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-main-8);
  animation: fadeInUp 0.9s ease-out;
}
h2 {
  font-size: 1.8rem;
  margin: 1em 0em .5em 0em;
}

.h3-uppercase {
  text-transform: uppercase;
  margin-top: 2em;
}

h1 .subtitle {
  font-size: 1.5rem;
}

/*
.meine-liste {
  list-style-type: disc;
  margin: 1em 0em 0em 1em;
}
.meine-liste li {
  margin-bottom: 1em;
}
.weniger-abstand li {
  margin-bottom: 0em;
}
*/

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER */
header {
  display: flex;
  flex-direction: row;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0em 0em;
  margin-top: 2em;
  z-index: -1;
  background-color: var(--color-main-1);
  border: none;
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
  }
header .left {
  flex: 1;
  padding: 2em 2em;
  color: #fff;
}
header .left h1 {
  color: #fff;
  line-height: 1em;
}
header .right {
  flex: 1;
  background-color: var(--color-main-1);
  align-self: stretch;
}
header .right img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-ohne-bild {
  height: auto;
}
.header-stueck .left {
  flex: 1;
}
.header-stueck .right {
  flex: 2;
}

/* MAIN */
main {
  margin: 1em 0em;
  padding: 0.5em 1.5em;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

main > div {
  flex: 1;
}

/* UNTERMENÜ */
.untermenu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  padding: 1em 0em;
  gap: 2em;
  border-top:  0.1em solid var(--color-main-1);
  border-bottom: 0.1em solid var(--color-main-1);
}
.untermenu li a{
  color: var(--color-main-1);
}

main #stueck-teaser {
  display: flex;
  flex-direction: row;
  position: relative;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 0vh;
  margin: 1.5em 0.0em;
  border: none;
  gap: 1em;
}
main #stueck-teaser .left {
  flex: 1;
}
main #stueck-teaser .right {
  flex: 1;
  border: 0.1em dashed var(--color-main-1);
}

table {
  border-collapse: collapse; /* schöner, keine Doppelrahmen */
}
td {
  padding: 4px 12px; /* Abstand wie Tabulatoren */
  text-align: left;     /* linksbündig */
  vertical-align: bottom;  /* ganz oben in der Zelle */
}
td:first-child {
  width: 150px; /* feste Tabulatorbreite */
  font-weight: bold; /* optional */
}

#besetzung {
  margin: 1em 0em;
}

#besetzung .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em 4em;
  margin-bottom: 1em;
}
#besetzung .container .item {

}
#besetzung .nav-schieber {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5em;
  margin-bottom: 1em;
  margin-top: 1.5em;
}
#besetzung .nav-schieber #prev-schieber,
  #besetzung .nav-schieber #next-schieber {
  padding: 1em 1.5em;
  background-color: white;
  border: 0.1em solid var(--color-main-8);
}
#besetzung .nav-schieber #prev-schieber:hover,
  #besetzung .nav-schieber #next-schieber:hover {
  cursor: pointer;
  color: white;
  background-color: var(--color-main-8);
}


#besetzung .schauspieler-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  overflow-x: scroll;
  scrollbar-width: thin;              /* auto | thin | none */
  scrollbar-color: #888 #f1f1f1;      /* thumb | track */
}
.schauspieler-item {
  height: 31.5em;
  flex-basis: 19.5em;
  /*box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8);*/
  text-align: center;
  flex-shrink: 0;
  margin: 0.5em 1em;
}
.schauspieler-item-top {
  width: 100%;
  height: 75%;
}
.schauspieler-image {
  width: 100%;
  height: 95%;
  object-fit: cover;
  background-color: rgba(var(--color-main-1-rgb), 0.5);
  display: block;
  border-top-left-radius: 3em;
  border-bottom-right-radius: 3em;
  border-top-right-radius: 1em;
  border-bottom-left-radius: 1em;
}
.schauspieler-image-caption {
  height: auto;
  font-size: 0.5em;
  line-height: 1.5em;
  text-align: left;
  padding-left: 0.2em;
}
.schauspieler-item-bottom {
  height: auto;
  padding: 0.2em;
  text-align: left;
  line-height: 1.2em;
}
.schauspieler-item-bottom span h3 {
  font-size: 1.5em;
  text-transform: uppercase;
  line-height: 1.4em;
}
.flipped {
  transform: rotateX(180deg);
}

#inhalt {
  margin-bottom: 1em;
}

/*TERMINE*/
.termin-card-container {
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: center;
  align-items: center;
  background-color: var(--background-color-1);
  margin-bottom: .2em;
  border-radius: 1em 1em 1em 1em;
}
.termin-card-wochentag {
  color: #fff;
  background-color: var(--color-main-1);
  padding: .5em 1em;
  min-width: 4em;
  text-align: center;
  flex: .5;
  align-self: stretch;
  border-top-left-radius: 1em;
  border-bottom-left-radius: 1em;
}
.termin-card-tag-monat {
  font-size: 1.5em;
  flex: 1;
  padding: .5em 1em;
}
.termin-card-titel {
  font-size: 2em;
  flex: 3;
  padding: .5em 1em;
}
.termin-card-titel a {
  color: var(--color-main-1);
  text-decoration: underline;
}
.termin-card-ort-und-uhrzeit {
  padding: 1em;
  flex: 2;
}
.termin-card-karten {
  padding: .5em 1em;
  flex: 1;
  text-align: center;
}
.termin-card-karten-button {
  background-color: var(--background-color-1);
  border: .1em solid var(--color-main-8);
  border-radius: 2em;
  padding: .5em 1em;
  font-size: 1em;
  text-transform: uppercase;
}
.termin-card-karten-button:hover {
  cursor: pointer;
  background-color: var(--color-main-8);
  color: #fff;
}
.termin-card-titel a:hover {
  color: var(--color-main-1);
  text-decoration: underline;
  font-weight: bold;
}

/*KARTENABWIKCLUNG*/
.hervorheben {
  display: inline-block;
  font-weight: bold;
  color: var(--color-main-1);
  width: auto;
  margin: .5em 1em;
  padding: .5em 1em;
  border: .1em solid var(--color-main-1);
}
.gesamtsumme {
  font-weight: bold;
  border-bottom: .2em double #0e0e0e;
  max-width: 20em;
}
.zurueck-zu-terminen {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1em;
  border: .1em solid var(--color-main-1);
}
.zurueck-zu-terminen:hover {
  cursor: pointer;
  background-color: var(--background-color-1);
}

/* ASIDE*/
aside {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  background: var(--color-main-8);
  margin: 1.5em 0em 0em 0em;
  color: white;
}
aside h4 {
  font-size: 1.2em;
  text-transform: uppercase;
}

.social-media-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-right: .1em solid white;
}
.social-media-container .oben {
  border-bottom: .1em solid white;
  padding: 1.5em 1em 1em 2em;
}
.social-media-container .oben h4,
.social-media-container .oben p {
  margin-bottom: 0.5em;
}
.social-media-container .oben button {
  color: white;
  background-color: var(--color-main-8);
  border: .1em solid white;
  border-radius: 2em;
  padding: 0.5em 4em;
  text-transform: uppercase;
}
.social-media-container .oben button:hover {
  background-color: var(--color-main-1);
  cursor: pointer;
}
.social-media-container .unten {
  display: flex;
  flex-direction: row;
  padding: 1em 2em 1em 1em;
  justify-content: center;
  gap: 1em;
}

.kartenreservierung {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-right: .1em solid white;
}
.kartenreservierung .oben {
  border-bottom: .1em solid white;
  padding: 1em;
}
.kartenreservierung .unten {
  padding: 1em;
}

.sponsoren {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-right: .1em solid white;
}
.sponsoren .oben {
  border-bottom: .1em solid white;
  padding: 1em;
}
.sponsoren .unten {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: 1em;
  gap: .5em;
}
.sponsoren .unten li {
  flex: 1;
  min-width: 20%;
  height: auto;
  overflow: hidden;
}
.sponsoren .unten li img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

.downloads {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.downloads .oben {
  border-bottom: .1em solid white;
  padding: 1em;
}
.downloads .unten {

  padding: 1em;
}

/* NEWSLETTER */
.newsletter-bestaetigung {
  width:50%;
  margin:0 auto 5% 2em;
}

/* FOOTER */
footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: var(--color-main-1);
  margin: 0em 0em 1.5em 0em;
  padding: .5em 1em;
  color: #fff;
  border-top: 0.1em solid white;
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
}

.footer-link-container {
  display: flex;
  flex-direction: row;
  gap: 1em;
  list-style: none;
}

.footer-link-element {
  color: #fff;
}

/* Mobile Portrait: untereinander */
@media (max-width: 768px) {
  body {
    max-width: 768px;
  }
/*HEADER-mobile*/
  header {
    width: 100%;
    height: auto;
    flex-direction: column-reverse;
    border-top-left-radius: 0em;
    border-top-right-radius: 0em;
    margin-bottom: 0em;
  }
  header .left, header .right {

  }
  header .left {

  }
  header .left h1 {
    color: #fff;
    line-height: 1em;
    font-size: 2em;
  }
  header .right {

  }
  header .right img {

  }
  .header-ohne-bild {
    height: auto;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
  }

  /* UNTERMENÜ */
  .untermenu {
    flex-direction: column;
    gap: 0em;
  }
  .untermenu li a{
    color: var(--color-main-1);
  }
  .stueck-untermenu {
    flex-direction: row;
    justify-content: space-around;
  }

  main #stueck-teaser {
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
  }
  main #stueck-teaser .right {
    align-self: stretch;
  }
  td {
    padding: 4px 12px; /* Abstand wie Tabulatoren */
    text-align: left;     /* linksbündig */
    vertical-align: top;
  }
  #besetzung .nav-schieber {
    /*display: none;*/
  }


  /* ASIDE-mobile*/
  aside {
    flex-direction: column;

  }
  aside h4 {

  }

  .social-media-container {
    border-right: none;
  }
  .social-media-container .oben {

  }
  .social-media-container .oben h4,
  .social-media-container .oben p {

  }
  .social-media-container .oben button {

  }
  .social-media-container .oben button:hover {

  }
  .social-media-container .unten {
    padding: 1em 2em 0.5em 1em;
    border-bottom: .1em solid white;
  }
  .kartenreservierung {
    border-right: none;
  }
  .kartenreservierung .oben {

  }
  .kartenreservierung .unten {
    border-bottom: .1em solid white;
  }

  .sponsoren {
    border-right: none;
  }
  .sponsoren .oben {

  }
  .sponsoren .unten {
    border-bottom: .1em solid white;
  }
  .downloads {
    border-right: none;
  }
  .downloads .oben {

  }
  .downloads .unten {

  }

  /* FOOTER-mobile */
  footer {
    flex-direction: column;
    align-items: center;
  }

  .footer-link-container {

  }

  .footer-link-element {

  }

  .termin-card-container {
    flex-direction: column;
    margin-bottom: 1em;
    border: .1em solid var(--color-main-1);
    border-radius: 1em;
  }
  .termin-card-wochentag {
    border-top-right-radius: 1em;
    border-bottom-left-radius: 0em;
    border-bottom-right-radius: 0em;
  }
  .termin-card-karten {
    padding-bottom: 1em;

}
