/* ========================================
   GRUNDLAYOUT
======================================== */

html,
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-repeat: repeat;
  background-color: #f3f4ec;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
}

body.home {
  background-image: url("grafiken/hintergrund.png");
  background-repeat: repeat;
  min-width: 1600px;
}

.ticker,
.footer-bar {
  background-color: #181818;
  color: #f3f4ec;
}

.ticker,
.footer-bar a {
  color: #f3f4ec !important;
}


/* ========================================
   OBERE LAUFLEISTE
======================================== */

.ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  box-sizing: border-box;
  white-space: nowrap;
}


/* Enthält zwei identische Gruppen */

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
}


/* WICHTIG:
   Jede Gruppe ist mindestens so breit
   wie das Browserfenster.
*/

.ticker-group {
  display: flex;
  flex-shrink: 0;
  min-width: 100vw;
  justify-content: space-around;
  align-items: center;
}


/* einzelne Texte */

.ticker-group span {
  flex-shrink: 0;
  padding: 5px 12px;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 1px;
}


/* Die erste komplette Gruppe wird
   nach links herausgeschoben.
   Gruppe 2 übernimmt nahtlos. */

@keyframes ticker-scroll {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}


/* ========================================
   FOOTER
======================================== */

.footer-bar {
  width: 100%;
  position: relative;
  margin-top: auto;
  box-sizing: border-box;
  border-top: 1px solid #000;
  padding: 8px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1px;
}


/* Footer-Links */

.footer-bar a {
  color: inherit;
  text-decoration: none;
}

.footer-bar a:hover {
  text-decoration: underline;
}

/* ========================================
   HAUPT-LAYOUT
======================================== */

.canvas {
  position: relative;
  width: 1600px;
  height: 1600px;
  margin: 0 auto;
  flex-shrink: 0;
}
.canvas2 {
  position: relative;
  width: calc(100% - 30px);
  max-width: 800px;
  margin: 100px auto;
  flex-shrink: 0;
  box-sizing: border-box;
	line-height: 2;
}

.canvas2 ul {
  position: relative;
  left: 30px;
  padding-left: 20px;
}

.canvas2 li {
  margin-bottom: 18px;
}
.menupunkt {
  background-color: white;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.bild_momo {
    position:absolute;
    left: 520px;
    top: 490px;
    z-index: 5;
}
.bild_stern {
    position:absolute;
    left: 300px;
    top: 690px;
    z-index: 5;
}
.bild_punkte{
    position:absolute;
    left: 220px;
    top: 570px;
    z-index: 10;
}
.bild_mikro{
    position:absolute;
    left: 290px;
    top: 1170px;
    z-index: 10;
}
.foto_universum {
    position:absolute;
    left: 600px;
    top: 350px;
    z-index: 10;
}

.bild_konfetti {
    position:absolute;
    left: 1050px;
    top: 270px;
	rotate: -10deg;
    z-index: 5;
}

.feld_about {
    position:absolute;
    left: 500px;
    top: 50px;
    z-index: 50;
}
.logo_fieberherz {
    position:absolute;
    left: 800px;
    top: 35px;
    z-index: 50;
}
.bild_gekrakel {
    position:absolute;
    left: 650px;
    top: 10px;
    z-index: 15;
}
.bild_auge {
    position:absolute;
    left: 1050px;
    top: 330px;
    z-index: 15;
}
.foto_vans {
    position:absolute;
    left: 110px;
    top: 160px;
    z-index: 15;
}
.z_braucheichnicht {
    position:absolute;
    left: 1010px;
    top: 580px;
    z-index: 15;
}
.z_arrowsatthesun {
    position:absolute;
    left: 1190px;
    top: 780px;
    z-index: 20;
}
.text_why {
    position:absolute;
    left: 1540px;
    top: 680px;
    z-index: 20;
	rotate: 2deg;
	cursor: help;
}
.feld_latestzines {
    position:absolute;
    left: 1000px;
    top: 440px;
    z-index: 50;
}
.foto_momo {
    position:absolute;
    left: 780px;
    top: 942px;
    z-index: 40;
}
.feld_creditslinks {
    position:absolute;
    left: 880px;
    top: 1050px;
    z-index: 45;
	cursor: cell;
}
.bild_sterngezeichnet {
    position:absolute;
    left: 1040px;
    top: 1130px;
    z-index: 50;
}
.feld_funstuff {
    position:absolute;
    left: 340px;
    top: 670px;
    z-index: 50;
	cursor: sw-resize;
}
.text_yuzu {
    position:absolute;
    left: 1040px;
    top: 1470px;
    z-index: 50;
	cursor: pointer;
}

.gif_sternblinkend {
    position:absolute;
    left: 680px;
    top: 670px;
    z-index: 50;
}

.gif_cat {
    position:absolute;
    left: 20px;
    top: 1470px;
    z-index: 50;
}

/* ========================================
   POP-UPS
======================================== */


/* Abdunklung komplette Seite */
.info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}


/* Wenn das Fenster geöffnet ist */
.info-overlay.active {
  display: flex;
}


/* Eigentliches Infofenster */
.info-popup {
  position: relative;
  width: min(560px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  background: #f3f4ec;
  color: black;
  border: 2px solid black;
  padding: 22px 24px;
  box-sizing: border-box;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
}

.info-popup ::selection {
  background-color: #f2ff00;
  color: #000000;
}

/* Überschrift */
.info-title {
  margin-bottom: 14px;
  font-weight: bold;
}


/* Absätze */
.info-popup p {
  margin: 0 0 14px;
}

/* Trenner */
.trenner1 {
  color: #6c9435;
}

.trenner2 {
  color: #ba88b9;
}


/* X oben rechts */
.info-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-family: "Geist Mono", monospace;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}


/* ========================================
   TEXT-BOX VORSTELLUNG + SCHNIPPSEL-TEXT
======================================== */

.textbox {
  position: absolute;
  width: 400px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  line-height: 1.4;
  background: transparent;
}

.textbox-01 {
  top: 330px;
  left: 150px;
  z-index: 60;
}

.schnipsel-text {
  line-height: 1.8;
  margin: 0;
}

.schnipsel-text span {
  display: inline-block;
  background-color: white;
  color: #181818;
  padding: 2px 5px;
  margin: 1px 0;
  line-height: 1.2;
}

.schnipsel-text span:nth-child(odd) {
  transform: rotate(-1deg);
}

.schnipsel-text span:nth-child(even) {
  transform: rotate(1deg);
}


/* ========================================
   TEXT-BOX UPDATES
======================================== */
.update-box {
  position: absolute;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  top: 1480px;
  left: 80px;
}

.update-box span {
  background-color: #f3f4ec;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 1px 3px;
}

/* ========================================
   FONT-TESTER
======================================== */
.font-tester {
  width: 100%;
}

.font-controls {
  display: flex;
  gap: 30px;
  margin-bottom: 35px;
}

.font-control-text,
.font-control-size {
  display: grid;
  grid-template-rows: auto 36px;
  gap: 6px;
}

.font-control-text {
  flex: 1;
}

.font-control-size {
  width: 250px;
}

/* Beschriftungen exakt auf gleicher Höhe */
.font-control-text label,
.font-control-size label {
  margin: 0;
  line-height: 1.35;
}

/* Textfeld */
.font-control-text input {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
}

/* Slider innerhalb derselben 36px-Höhe zentrieren */
.font-control-size #fontSize {
  align-self: center;
}

.font-controls input[type="text"] {
  flex: 1;
  padding: 8px;
  font-family: "Geist Mono", monospace;
}

.font-controls select {
  padding: 8px;
  font-family: "Geist Mono", monospace;
}


/* einzelne Schrift */

.font-entry {
  border-top: 0px solid #181818;
  padding: 12px 0 35px 0;
}

.font-name {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  margin-bottom: 15px;
  font-weight: bold;
}

.font-preview {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 15px;

  /* wichtig bei langen Testtexten */
  overflow-wrap: anywhere;
}


/* individuelle Fonts */

.rola {
  font-family: "Rola";
}

.berger {
  font-family: "Berger";
}


.font-download {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: #181818;
}
/* ========================================
   FONT SIZE SLIDER
======================================== */

#fontSize {
  -webkit-appearance: none;
  appearance: none;

  width: 250px;
  height: 2px;

  padding: 0;
  margin: 0;

  background: #181818;
  border: none;
  outline: none;

  cursor: pointer;
}


/* Chrome / Safari / Edge */

#fontSize::-webkit-slider-runnable-track {
  height: 2px;
  background: #181818;
  border: none;
}

#fontSize::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;

  width: 12px;
  height: 12px;

  margin-top: -5px;

  border-radius: 50%;
  background: #181818;
  border: none;
}


/* Firefox */

#fontSize::-moz-range-track {
  height: 2px;
  background: #181818;
  border: none;
}

#fontSize::-moz-range-thumb {
  width: 12px;
  height: 12px;

  border-radius: 50%;
  background: #181818;
  border: none;
}
/* ========================================
   EIGENE SCHRIFTEN
======================================== */

@font-face {
  font-family: "Rola";
  src: url("/sub/fonts/rola-regular-webfont.woff2") format("woff2"),
       url("/sub/fonts/rola-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Berger";
  src: url("/sub/fonts/Berger-Regular.woff2?v=2") format("woff2"),
       url("/sub/fonts/Berger-Regular.ttf?v=2") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@media (max-width: 600px) {

  .font-control-text,
  .font-control-size {
    flex: 1 1 0;
    width: 50%;
    min-width: 0;
  }

  .font-control-size #fontSize {
    width: 100%;
  }

}

/* ========================================
   IMAGE LIGHTBOX
======================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;
  box-sizing: border-box;

  /* gleicher dunkler Hintergrund wie beim Info-Popup */
  background: rgba(0, 0, 0, 0.75);

  cursor: zoom-out;
}

.image-lightbox.show {
  display: flex;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;
}


/* ========================================
   POLAROID IMAGES
======================================== */

.polaroid {
  width: 280px;
  max-width: 80%;
  background: #fff;
  padding: 7px 7px 7px 7px;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  box-shadow: none;
  box-sizing: border-box;
  transform-origin: center;
}
.polaroid2 {
  width: 280px;
  max-width: 80%;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  transform-origin: center;
}
.polaroid2 img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.polaroid2.left {
  float: left;
  margin: 20px 35px 25px 15px;
}

.polaroid2.right {
  float: right;
  margin: 20px 15px 25px 35px;
}
/* Bild innerhalb des Polaroids */

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.polaroid.left {
  float: left;
  margin: 20px 55px 25px 15px;
}

.polaroid.right {
  float: right;
  margin: 20px 15px 25px 35px;
}


/* unterschiedliche Schräglagen */

.tilt-left {
  transform: rotate(-2deg);
}

.tilt-right {
  transform: rotate(2deg);
}

.tilt-soft-left {
  transform: rotate(-0.8deg);
}

.tilt-soft-right {
  transform: rotate(1deg);
}

@media (max-width: 600px) {

  .polaroid,
  .polaroid2 {
    width: 85%;
    max-width: 320px;
  }

  .polaroid.left,
  .polaroid.right,
  .polaroid2.left,
  .polaroid2.right {
    float: none;
    margin: 25px auto 35px auto;
  }

}