@font-face { font-family: "Plex Arabic"; src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --tanne: #165A50;
  --tanne-tief: #0F463E;
  --lime: #C2FD75;
  --papier: #EEF5F2;
  --nebel: #A8C7BE;
  --linie: rgba(194, 253, 117, .28);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  background: var(--tanne);
  color: var(--papier);
  font-family: "Plex Arabic", "Onest", system-ui, sans-serif;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.buehne {
  align-self: center;
  justify-self: center;
  width: min(100%, 880px);
  padding-block: 32px 48px;
}

.marke {
  margin: 0;
  font-weight: 700;
  font-size: clamp(132px, 30vw, 300px);
  line-height: 1.3;
  color: var(--lime);
  letter-spacing: 0;
}

.zeile {
  margin: 8px 0 0;
  max-width: 30ch;
  font-weight: 600;
  font-size: clamp(21px, 3.4vw, 32px);
  line-height: 1.55;
}

.zeile-en {
  margin: 14px 0 0;
  max-width: 62ch;
  font-family: "Onest", system-ui, sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
  color: var(--nebel);
  text-align: right;
}

.tag {
  width: min(100%, 1120px);
  justify-self: center;
  padding-block-start: 56px;
}

.band {
  position: relative;
  height: 44px;
  border-block: 1px solid var(--linie);
  background:
    repeating-linear-gradient(to left, var(--linie) 0 1px, transparent 1px calc(100% / 24));
}

.schicht {
  position: absolute;
  inset-block: -1px;
  inset-inline-start: calc(8 / 24 * 100%);
  width: calc(8 / 24 * 100%);
  background: var(--lime);
  color: var(--tanne-tief);
  display: flex;
  align-items: center;
  padding-inline: 12px;
  overflow: hidden;
  transform-origin: right center;
  animation: schicht-auf 900ms cubic-bezier(.2, .7, .2, 1) 200ms both;
}

.schicht span {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

@keyframes schicht-auf {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.jetzt {
  position: absolute;
  inset-block: -10px -10px;
  width: 2px;
  margin-inline-start: -1px;
  background: var(--papier);
  transition: inset-inline-start 600ms ease;
}

.jetzt-text {
  position: absolute;
  inset-block-end: calc(100% + 8px);
  inset-inline-start: 0;
  transform: translateX(50%);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--papier);
}

.jetzt.am-anfang .jetzt-text { transform: translateX(0); inset-inline-start: -2px; }
.jetzt.am-ende .jetzt-text { transform: translateX(0); inset-inline-start: auto; inset-inline-end: -2px; }

.stunden {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--nebel);
  font-variant-numeric: tabular-nums;
}

.stunden li { width: 2ch; text-align: center; }
.stunden li:first-child { margin-inline-start: -1ch; }
.stunden li:last-child { margin-inline-end: -1ch; }

.fuss {
  justify-self: center;
  width: min(100%, 1120px);
  padding-block-start: 40px;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 13px;
  color: var(--nebel);
  text-align: left;
}

@media (max-width: 560px) {
  .tag { padding-block-start: 40px; }
  .stunden li:nth-child(even) { visibility: hidden; }
  .schicht span { font-size: 13px; }
  .stunden li:first-child { margin-inline-start: 0; }
  .stunden li:last-child { margin-inline-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .schicht { animation: none; }
  .jetzt { transition: none; }
}
