/* =========================
   Fonts
   ========================= */

/* =========================
   Andika
   ========================= */

@font-face {
  font-family: 'Andika';
  src:
    url('../fonts/Andika-Regular.woff2') format('woff2'),
    url('../fonts/Andika-Regular.woff') format('woff'),
    url('../fonts/Andika-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Andika';
  src:
    url('../fonts/Andika-Medium.woff2') format('woff2'),
    url('../fonts/Andika-Medium.woff') format('woff'),
    url('../fonts/Andika-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Andika';
  src:
    url('../fonts/Andika-SemiBold.woff2') format('woff2'),
    url('../fonts/Andika-SemiBold.woff') format('woff'),
    url('../fonts/Andika-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Andika';
  src:
    url('../fonts/Andika-Bold.woff2') format('woff2'),
    url('../fonts/Andika-Bold.woff') format('woff'),
    url('../fonts/Andika-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Roboto Slab
   ========================= */

@font-face {
  font-family: 'Roboto Slab';
  src: url('../fonts/RobotoSlab-Thin-webfont.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Slab';
  src: url('../fonts/RobotoSlab-Light-webfont.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Slab';
  src: url('../fonts/RobotoSlab-Regular-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Slab';
  src: url('../fonts/RobotoSlab-Bold-webfont.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Grundlayout
   ========================= */

/* :root {
  --stage-width: 1080px;
  --stage-height: 890px;
} */

/* :root {
  --stage-width: 1017px;
  --stage-height: 838px;
} */

/* :root {
  --stage-width: 883px;
  --stage-height: 728px;
} */

:root {
  --stage-width: 813px;
  --stage-height: 670px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #111;
  font-family: 'Roboto Slab', serif;
  font-weight: 300;
}

p {
  font-size: 1em;
  line-height: 1.6em;
  color: #ddd;
}

h1 {
  font-family: 'Andika', sans-serif;
  font-weight: 500;
  color: #fe791d;
}

h2 {
  margin-top: 50px;
  font-size: 1.5em;
  font-family: 'Andika', sans-serif;
  font-weight: 500;
  color: #fe791d;
}

h3 {
  margin-top: 50px;
  font-size: 1.2em;
  font-family: 'Andika', sans-serif;
  font-weight: 500;
  color: #fe791d;
}

.colored {
  color: #fe791d;
}

.lightcolored {
  color: #e9cc91;
}

/* Bühne fix */
.stage {
  width: var(--stage-width);
  height: var(--stage-height);
  position: relative;
  overflow: hidden;
  user-select: none;

  transform: scale(1);
  transform-origin: top left;
  margin: 0 auto;
}

/* =========================
   Hintergrundlayer
   ========================= */

.bg {
  position: absolute;
  inset: 0;
  /* background-size: auto; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: var(--stage-width) var(--stage-height);
}

.bg.normal {
  background-image: url('../media/back.png');
  z-index: 1;
}

.bg.color {
  background-image: url('../media/back_farbig.png');
  z-index: 2;

  /* Anfang: nichts sichtbar */
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 60ms ease;
  pointer-events: none;
}

/* =========================
   Hotspots
   ========================= */

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Hotspot-Container */
.hs {
  position: absolute;
  /* border: solid 1px red; */
}

/* Klickfläche: füllt den Hotspot */
.hs__link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  text-decoration: none;
}

.hs__link::before {
  content: none;
}

/* Label: hoverbar, liegt über der Klickfläche */
.hs__label {
  position: absolute;

  /* Standard-Position: unter dem Hotspot */
  left: 0;
  top: 100%;
  margin-top: 10px;

  z-index: 2;
  pointer-events: auto;

  font-family: 'Andika', sans-serif;
  font-weight: 400;

  font-size: 20px;
  line-height: 1.2;

  color: #fff;

  display: inline-block;
  white-space: nowrap; /* verhindert Zeilenumbruch */
  width: max-content; /* Breite = Textbreite (moderne Browser) */
  max-width: none;
  transition:
    transform 120ms ease,
    background 120ms ease;
}

.hs:hover .hs__label,
.hs:focus-within .hs__label {
  color: #fdbf44;
  cursor: pointer;
}

.hs_link:active {
  color: #ff8b8b;
}

/* Optional: damit man die Hotspot-Flächen beim Einrichten sieht */
/* .hs {
  outline: 2px solid rgba(255, 0, 0, 1);
} */

.hs__label__admin {
  color: #fe791d;
  font-family: 'Andika', sans-serif;
  font-weight: 700;
}

.logo {
  z-index: 2;
  inset: 0;
  color: #fe791d;
  font-size: 48px;
  font-family: 'Roboto Slab', serif;
}

body.quest {
  margin: 0 auto 0 auto;
  width: 550px;
  display: block;
  /* border: solid 1px yellow; */
  background: #111;
}

.h1-link {
  margin-left: 2em;
  font-size: 20px;
  color: #666;
  text-decoration: none;
  font-weight: 400;
  border-radius: 20px;
  border: solid 3px #444;
  padding: 0 10px 0 10px;
  vertical-align: 2px;
}

.h1-link:hover {
  color: #fe791d;
  border: solid 2px #fe791d;
}

.h1-link::before {
  content: none;
}

.stage.finale {
  width: var(--stage-width);
  height: var(--stage-height);
  position: relative;
  overflow: hidden;
  user-select: auto;
}

.objects {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.object {
  position: absolute;
}

.bg.finale {
  background-image: url('../media/back_finale.png');
  z-index: 1;
}

h1.finale {
  font-family: 'Andika', sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #fe791d;
}

/* Basis-Link */
a {
  color: #a7d2fd;
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-decoration 0.2s ease;
}

/* Besuchter Link */
a:visited {
  color: #949494;
}

/* Hover */
a:hover {
  color: #3294f6;
  text-decoration: none;
}

/* Aktiv (beim Klicken) */
a:active {
  color: #ff8b8b;
}

/* Fokus (Tastatur-Navigation!) */
/* a:focus,
a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
} */

a::before {
  content: '» ';
}
