@charset "utf-8";
/* CSS Document */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* -----------------------------------------
   Grundlayout
------------------------------------------ */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.bg__video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-fluid{
  border: none;   
  margin-top: 20px;
  width: auto;
}


main {
  display: block;
  max-width: 1200px;
  margin: 30px auto 20px auto;
  padding-bottom: 25px;
  background: rgba(253,253,253,1.0);
  color: #333;
  border-radius: 30px;
  border: thin solid #DDF721;
  box-shadow: -10px 0px 13px -7px #000000,
              10px 0px 13px -7px #000000,
              5px 5px 15px 5px rgba(0,0,0,0);
}

/* -----------------------------------------
   Grid
------------------------------------------ */

.grid-container {
  display: grid;
  font-size: 1.1rem;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1F175C;
  grid-template-columns: 1fr;   /* genau das macht sie wirklich flexibel */
}


.item1,
.item2,
.item3,
.item4 {
  max-width: 1100px;   /* Obergrenze */
  width: 100%;         /* darf bis zur Fensterbreite schrumpfen */
  margin-left: auto;
  margin-right: auto;
}


.item1 {
  grid-area: 1 / 1 ;
  padding: 20px;
  margin-top: 30px;
  background-color: rgba(253,253,253,1.0);
}

.item2 {
  grid-area: 2 / 1 ;
  padding: 30px;
  margin-top: 30px;
  background-color: rgba(253,253,253,1.0);
  border-radius: 30px;
  border: thin solid #DDF721;
  box-shadow: -10px 0px 13px -7px #000000,
              10px 0px 13px -7px #000000,
              5px 5px 15px 5px rgba(0,0,0,0);
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.item3 {
  grid-area: 3 / 1 ;
  padding: 30px;
  margin-top: 30px;
  background-color: rgba(253,253,253,1.0);
  border-radius: 30px;
  border: thin solid #DDF721;
  box-shadow: -10px 0px 13px -7px #000000,
              10px 0px 13px -7px #000000,
              5px 5px 15px 5px rgba(0,0,0,0);
  text-align: center;
  font-size: 1.4rem;
}

.item4 {
  grid-area: 4 / 1 ;
  padding: 22px 30px 50px;
  margin-top: 30px;
  background-color: rgba(253,253,253,1.0);
  border-radius: 30px;
  border: thin solid #DDF721;
  box-shadow: -10px 0px 13px -7px #000000,
              10px 0px 13px -7px #000000,
              5px 5px 15px 5px rgba(0,0,0,0);
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}


/* -----------------------------------------
   Navigation
------------------------------------------ */

.navbar {
  width: 100%;
  background-color: white;
}

.navbar a {
  float: left;
  padding: 10px;
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
  color: rgba(46,4,255,1.0);
  text-decoration: none;
  font-size: 1.6rem;
  width: 18%;
  text-align: center;
  font-weight: bold;
}

@media screen and (max-width: 550px) {
  .navbar a {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
  }
}



img {
  border: 3px solid #ddd;
  border-radius: 30px;
  padding: 5px;
  width: 188px;
  margin-right: 10px;
  text-decoration: none;
}


/* Countdown-Ausgabe */
output {
  font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro",
               "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
  color: red;
  font-size: 30px;
  font-weight: bold;
}

/* -----------------------------------------
   3D-Zylinder-Karussell
------------------------------------------ */

/* Bühne */
.zyl-scene {
  width: 100%;
  max-width: 100%;
  height: 300px;              /* wieder genug Platz nach unten */
  margin-top: 70px;    /* zentriert, aber ohne Verschiebung nach oben/unten */
    margin-left: auto;
    margin-right: auto;
  perspective: 1200px;
  display: flex;
  align-items: flex-start;    /* WICHTIG: Karten oben ausrichten, nicht zentrieren */
  justify-content: center;
  overflow: visible;
  padding-top: 8px;           /* kleiner Abstand zum Titel */
}


/* Zylinderkörper */
.zyl-carousel {
  position: relative;
  width: 260px;        /* wie die Kartenbreite */
  height: 180px;       /* wie die Kartenhöhe */
  transform-style: preserve-3d;
  transform-origin: 50% 50%;   /* Mittelpunkt als Rotationsachse */
}


/* Karten */
.zyl-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 180px;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  backface-visibility: hidden;
}

/* Bilder im Zylinder – globale img-Regeln überschreiben */
.zyl-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 18px;
}

/* Hinweistext */
.zyl-hint {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* -----------------------------------------
   Responsive
------------------------------------------ */

@media only screen and (max-width: 700px) {
  .item1 { grid-area: 1 / 1; }
  .item2 { grid-area: 2 / 1; }
  .item3 { grid-area: 3 / 1; }
  .item4 { grid-area: 4 / 1; }

  .zyl-scene {
    transform: scale(0.85);
    transform-origin: top center;
    height: 260px;
  }

  .img-fluid {
    width: 80%;
    justify-content: center;
  }
}

