/* =========================================
   BASE — von index.html UND tsbanner.html genutzt
   Enthält alles, was auf beiden Seiten identisch ist.
   Seiten-spezifisches steht in style.css / style_ts.css.
========================================= */

@font-face {
  font-family: "JetBrains";
  src: url("../font/JetBrainsMonoNL-ExtraLight.ttf");
}

/* ---- Theme ---- */
:root {
  --bg: #ffffff;
  --text: #000000;
  --button-bg: #000000;
  --button-text: #ffffff;
  --opacity: .8;
}

body.dark {
  --bg: #000000;
  --text: #ffffff;
  --button-bg: #ffffff;
  --button-text: #000000;
}

/* ---- Reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "JetBrains";
  text-transform: lowercase;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  transition: background .35s ease, color .35s ease;
}

/* ---- Layout ---- */
.container {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

h1 {
  text-align: center;
}

p {
  line-height: 1.7;
  text-align: center;
}

/* ---- Buttons ---- */
.btn-wrapper {
  display: grid;
  gap: 1.25rem;
}

.btn {
  align-items: center;
  padding: 8px 25px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  opacity: var(--opacity);
  border: none;
  border-radius: 999px;
  transition: background .3s, color .3s, transform .25s, opacity .25s;
}

.btn:hover {
  opacity: 1;
}

.footer {
  position: absolute;
  bottom: 25px;
  color: var(--text);
}

/* ---- Hintergrund-Slideshow ---- */
.background-wrapper {
  position: fixed;
  top: 2.5%;
  right: 1%;
  overflow: hidden;
  border-radius: 25px;
  z-index: 2;
}

.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(0.5);
  transition: opacity 1s ease-in-out;
}

.background-current {
  opacity: 1;
}

.background-next {
  z-index: 2;
}

.image-author {
  position: absolute;
  right: 2%;
  bottom: 5%;
  max-width: 70%;
  padding: 10px;
  color: var(--text);
  background: var(--bg);
  font-size: .9rem;
  opacity: var(--opacity);
  border-radius: 999px;
  z-index: 999;
  transition: opacity .3s;
}

.background.fade-out,
.image-author.fade-out {
  opacity: 0;
}

.hidden {
  display: none;
}
