:root {
  --brand-color: #00492C;
  --cookie-bg: #ffffff;
  --cookie-text: #00492C;
  --cookie-accent: #00492C;
  --cookie-accent-contrast: #FBBA16;
}

/* =========================
   FONTS
   ========================= */
@font-face {
  font-family: "Plaster";
  src: url("assets/fonts/plaster-v25-latin_latin-ext-regular.woff2") format("woff2");
  font-weight: 400;
	
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* =========================
   RESET
   ========================= */
html, body {
  margin: 0;
  padding: 0;
}

body{
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
}


/* =========================
   GRID
   ========================= */
.row {
  width: 100%;
  display: grid;
  grid-template-columns:
    1fr
    minmax(320px, 512px)
    minmax(320px, 512px)
    1fr;
}

/* =========================
   CELL – QUADRAT
   ========================= */
.cell {
  position: relative;
  overflow: hidden;
}

.cell::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* =========================
   CONTENT ALIGNMENT
   ========================= */
.content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;      /* vertikal zentriert */
  justify-content: center;  /* horizontal zentriert */
}


/* =========================
   MOBILE-ONLY LINKS
   (Desktop: nicht klickbar)
   ========================= */
.mobile-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  pointer-events: none; /* Desktop: deaktiviert */
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   INSET BORDER
   ========================= */
.inset {
  outline: 20px solid transparent;
  outline-offset: -20px;
}

/* =========================
   HEADLINE BLOCK
   linksbündig, Block zentriert
   ========================= */
.headline-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  color: var(--brand-color);
}

.headline {
  margin: 0;
  font-family: "Plaster", system-ui, sans-serif;
  font-size: 90px;
  line-height: 64px;
  letter-spacing: -0.05em;
}

.subline {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 26px;
}

/* =========================
   TEXTFLOW
   ========================= */
.textflow {
  max-width: 420px;
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 24px;
  color: var(--brand-color);
}

.textflow p {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 26px;
}

.textflow .closing {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 26px;
}

/* =========================
   LEGAL LINKS
   ========================= */
.legal-links{
  margin: 28px auto 40px;
  text-align: center;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 26px;
  color: var(--brand-color);
}

.legal-links a{
  text-decoration: none;
  color: inherit;
}

.legal-links--mobile{
  display: none;
}

/* =========================
   LEGAL PAGES (DESKTOP)
   ========================= */
.legal-page{
  max-width: 880px;
  margin: 80px auto;
  padding: 0 24px;
}

.legal-page .headline{
  font-size: 64px;
  line-height: 52px;
}

/* =========================
   OVERLAY (DESKTOP LEGAL)
   ========================= */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 9000;
}

.overlay:target{
  display: flex;
}

.overlay__panel{
  background: #e22028;
  max-width: 60vw;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 32px;
  position: relative;
}

.overlay__panel .textflow{
  max-width: none;
  padding: 0;
}

.overlay__header{
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  background: transparent;
  padding-bottom: 0;
  z-index: 1;
}

.overlay__close{
  position: static;
  font-size: 32px;
  line-height: 1;
  text-decoration: none;
  color: #000000;
}

@media (max-width: 700px){
  .overlay{
    display: none !important;
  }
}

/* =========================
   DESKTOP KONTAKT
   ========================= */
.kontakt-float{
  position: fixed;
  right: 40px;
  top: 200px;
  z-index: 500;
  display: block;
}

.kontakt-float img{
  display: block;
  width: 100px;
  height: auto;
}

/* =========================
   COOKIE BANNER
   ========================= */
.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #000000;
  color: #ffffff;
  border: 0;
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: center;
  font-family: "Inter", system-ui, sans-serif;
  pointer-events: auto;
  touch-action: manipulation;
}

.cookie-banner__icon{
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.cookie-banner__text{
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 26px;
  pointer-events: none;
}

.cookie-btn{
  border: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  width: fit-content;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  touch-action: manipulation;
}

.cookie-btn.cookie-ok{
  background: #ffffff;
  color: #000000;
}


/* Scrollbar innerhalb Content (Zeile 4) */
.textflow--scroll {
  max-height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 60px 0;
  max-width: 360px;
  margin: 0 auto;
  padding-right: 20px;
}

.textflow--scroll::-webkit-scrollbar{
  width: 0;
  height: 0;
}

.scroll-wrap{
  position: relative;
  height: calc(100% - 60px);
  padding: 60px 0;
}

.scrollbar{
  position: absolute;
  top: 60px;
  right: 0;
  width: 11px;
  height: calc(100% - 120px);
  background: transparent;
  pointer-events: none;
}

.scrollbar__thumb{
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 50%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

/* =========================
   TYPOFARBEN PRO ZEILE
   ========================= */

/* Zeile 1 */
.row-1 .headline-block,
.row-1 .textflow {
  color: var(--brand-color);
}

/* Zeile 2 */
.row-2 .headline-block,
.textflow-row2 {
  color: #E22028;
}

/* Zeile 3 */
.row-3 .headline-block,
.textflow-row3 {
  color: #1F4381;
}

/* Zeile 4 */
.row-4 .headline-block,
.row-4 .textflow {
  color: #E04C26;
}

/* Zeile 5 */
.row-5 .headline-block,
.textflow-row5 {
  color: #FCD46D;
}

/* =========================
   ROW BACKGROUNDS + OUTLINES
   ========================= */

/* Zeile 1 */
.row-1 .cell:nth-child(1),
.row-1 .cell:nth-child(3),
.row-1 .cell:nth-child(4) { background: #FBBA16; }
.row-1 .cell:nth-child(2) { background: #ffffff; }
.row-1 .inset { outline-color: #FBBA16; }

/* Zeile 2 */
.row-2 .cell:nth-child(1),
.row-2 .cell:nth-child(2),
.row-2 .cell:nth-child(4) { background: #9BCCD0; }
.row-2 .cell:nth-child(3) { background: #ffffff; }
.row-2 .inset { outline-color: #9BCCD0; }

/* Zeile 3 */
.row-3 .cell:nth-child(1),
.row-3 .cell:nth-child(3),
.row-3 .cell:nth-child(4) { background: #E3B2B5; }
.row-3 .cell:nth-child(2) { background: #ffffff; }
.row-3 .inset { outline-color: #E3B2B5; }

/* Zeile 4 */
.row-4 .cell:nth-child(1),
.row-4 .cell:nth-child(2),
.row-4 .cell:nth-child(4) { background: #B1D8B9; }
.row-4 .cell:nth-child(3) { background: #ffffff; }
.row-4 .inset { outline-color: #B1D8B9; }

/* Zeile 5 */
.row-5 .cell:nth-child(1),
.row-5 .cell:nth-child(3),
.row-5 .cell:nth-child(4) { background: #00492C; }
.row-5 .cell:nth-child(2) { background: #ffffff; }
.row-5 .inset { outline-color: #00492C; }

/* =========================
   MOBILE
   Sichtbar NUR:
   Z1/S2, Z2/S3, Z3/S2, Z4/S3, Z5/S2
   + diese Zellen sind NUR mobile klickbar
   ========================= */
@media (max-width: 700px) {
  body{
    padding-top: 0px;
  }

  .kontakt-float{
    display: none;
  }

  .row {
    grid-template-columns: 1fr;
  }

  /* Alles ausblenden */
  .row .cell {
    display: none !important;
  }

  /* Nur die gewünschten Zellen einblenden */
  .row-1 .cell:nth-child(2),
  .row-2 .cell:nth-child(3),
  .row-3 .cell:nth-child(2),
  .row-4 .cell:nth-child(3),
  .row-5 .cell:nth-child(2) {
    display: block !important;
  }

  /* Links NUR auf Mobile aktivieren */
  .mobile-link {
    pointer-events: auto;
  }

  /* Optionales Tap-Feedback */
  .mobile-link:active .content {
    opacity: 0.9;
  }

  .legal-links--desktop{
    display: none;
  }

  .legal-links--mobile{
    display: block;
  }

  .ticker{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 8px 0;
  }

  .ticker__item{
    font-size: 12px;
    line-height: 16px;
    margin-right: 56px;
  }

  .ticker--bottom{
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }
}

/* =========================
   SLIDER (BOTTOM ROW)
   ========================= */
.slider-section{
  background: #ffffff;
  padding: 0;
  border-top: 0;
  overscroll-behavior: contain;
  height: clamp(320px, 40vw, 512px);
  overflow-y: auto;
  margin-top: -2px;
  position: relative;
}

.slider-swipe-hint{
  display: none;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  width: 100%;
  color: #ffffff;
  font-family: "Plaster", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 5;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-swipe-hint__pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  background: #e22028;
  border-radius: 999px;
}

.slider-swipe-hint__arrows{
  display: inline-block;
  animation: swipe-hint 1.2s ease-in-out infinite;
}


@keyframes swipe-hint{
  0% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.6; }
}

.slider-loader{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 4;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-loader__text{
  font-family: "Plaster", system-ui, sans-serif;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0;
}

.slider-section.is-ready .slider-loader{
  opacity: 0;
  visibility: hidden;
}

.slider-pin{
  position: sticky;
  top: 0;
  height: 100%;
  display: block;
}

.slider-view{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
}

.slider-spacer{
  height: 0;
}

.slider-section::-webkit-scrollbar{
  width: 0;
  height: 0;
}

.slider-section{
  scrollbar-width: none;
}

.slider-track{
  display: flex;
  gap: 0;
  padding: 0;
  will-change: transform;
  height: 100%;
}

.slide-cell{
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  outline: 0;
  border: 0;
  scroll-snap-align: start;
  position: relative;
  box-sizing: border-box;
}

.slide-cell::after{
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 20px #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.slide-cell:hover{
  box-shadow: none;
}

.slide-cell:hover::after{
  opacity: 1;
}

.audio-note{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #e22028;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 3;
}

.slide-cell.is-audio .audio-note{
  opacity: 1;
  transform: translateY(0);
}

.slide-cell:nth-child(even){
  background: #f1f1f1;
}

.slide-content{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plaster", system-ui, sans-serif;
  font-size: 90px;
  line-height: 64px;
  letter-spacing: -0.05em;
  color: #e22028;
}

.slide-content--label{
  pointer-events: none;
}

.slide-info{
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 8px 12px;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  color: #e22028;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 4;
}

.slide-cell:hover .slide-info{
  opacity: 1;
  transform: translate(-50%, 0);
}

.slide-cell:focus-within .slide-info{
  opacity: 1;
  transform: translate(-50%, 0);
}

.slide-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px){
  .slider-section{
    padding: 0;
    height: 100vw;
    overflow-y: visible;
  }

  .slider-swipe-hint{
    display: inline-flex;
  }

  .slider-pin{
    position: relative;
  }

  .slider-spacer{
    display: none;
  }

  .slider-pin{
    position: relative;
    height: 100%;
  }

  .slider-track{
    gap: 0;
    padding: 0;
  }

  .slide-cell{
    flex-basis: 100vw;
    height: 100vw;
    border-width: 2px;
  }

  .slider-view{
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .slide-content{
    font-size: 72px;
    line-height: 56px;
  }

  .slide-cell::after{
    opacity: 0;
    transition: none;
  }

  .slide-cell:hover::after{
    opacity: 0;
  }

  .slide-cell:hover{
    box-shadow: none;
  }

  .audio-note{
    display: none;
  }

  .slide-info{
    bottom: 0;
  }

}

@media (hover: none){
  .slide-info{
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* =========================
   NEWS TICKER (DESKTOP)
   ========================= */
.ticker{
  position: relative;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  border: 0;
  padding: 12px 0;
  display: block;
  text-decoration: none;
  width: 100%;
}

.ticker__track{
  display: flex;
  width: max-content;
  animation: ticker-move 28s linear infinite;
  will-change: transform;
}

.ticker__item{
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  margin-right: 80px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
}

.ticker--bottom{
  background: #ffffff;
  color: #e22028;
  padding: 18px 0;
}

.ticker--bottom .ticker__track{
  animation-duration: 70s;
}

.ticker--bottom .ticker__item{
  margin-right: 96px;
}

.ticker__headline{
  margin: 0;
  font-family: "Plaster", system-ui, sans-serif;
  font-size: 90px;
  line-height: 64px;
  letter-spacing: -0.05em;
  color: #e22028;
}

.ticker__star{
  display: inline-block;
  position: relative;
  top: 20px;
}


.ticker__btn{
  font-size: 14px;
}

@keyframes ticker-move{
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 700px){
  .ticker{
    display: block;
    padding: 10px 0;
  }

  .ticker__item{
    font-size: 13px;
    line-height: 18px;
    margin-right: 56px;
  }
}

.arrow-bounce{
  display: inline-block;
  vertical-align: middle;
  animation: arrow-bounce 0.85s cubic-bezier(0.2, 0.9, 0.2, 1) infinite;
}

.arrow-bounce + .arrow-bounce{
  margin-left: 227px;
}

@keyframes arrow-bounce{
  0% { transform: translateY(0); }
  20% { transform: translateY(-16px); }
  40% { transform: translateY(0); }
  55% { transform: translateY(-7px); }
  70% { transform: translateY(0); }
  100% { transform: translateY(0); }
}
