/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Italic-VariableFont_wdth,wght.ttf")
    format("truetype");
  font-style: italic;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic-VariableFont_SOFT,WONK,opsz,wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Variablen
   ========================================================================== */

:root {
  --ink: #ffffff;
  --paper: #000000;
  --signal: #befde6;
}

/* ==========================================================================
   Basis / Reset
   ========================================================================== */

html {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  position: relative;
  overflow-x: clip;
}

::selection {
  background: var(--signal);
  color: #000;
}

body > header > nav.mod_changelanguage.language-meta {
  display: none !important;
}

/* ==========================================================================
   Layout: Textebene
   ========================================================================== */

.bgWrapperInner {
  position: relative;
  z-index: 100; /* Text bleibt ueber dem Hintergrund lesbar */
  width: 100%;
  max-width: none;
}

/* ==========================================================================
   Section-Grundlayout (alle <section>-Bloecke im Hauptbereich)
   ========================================================================== */

section {
  position: relative;
  min-height: 100vh;
  padding: 8vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bgWrapper {
  position: sticky;
  top: 0;
}

#s-start,
#s-drawing {
  position: relative;
}

.bgNatural {
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

.bgNatural .backgroundImage {
  position: static;
  overflow: visible;
  width: 100%;
}

.bgNatural .backgroundImage figure {
  margin: 0;
}

.bgNatural .backgroundImage .image_container,
.bgNatural .backgroundImage img {
  width: 100%;
  height: auto;
  object-fit: unset;
}

.bgNatural .bgWrapperInner {
  padding-left: 8vw;
  padding-right: 8vw;
}

#s-drawing .grid > .wow:nth-child(6n + 1) {
  animation-delay: 0.15s !important;
}
#s-drawing .grid > .wow:nth-child(6n + 2) {
  animation-delay: 0.3s !important;
}
#s-drawing .grid > .wow:nth-child(6n + 3) {
  animation-delay: 0.45s !important;
}
#s-drawing .grid > .wow:nth-child(6n + 4) {
  animation-delay: 1s !important;
}
#s-drawing .grid > .wow:nth-child(6n + 5) {
  animation-delay: 1.15s !important;
}
#s-drawing .grid > .wow:nth-child(6n) {
  animation-delay: 1.3s !important;
}

@media (min-width: 701px) and (max-width: 1100px) {
  /* Tablet: 5 Spalten (grid5ColTablet) - gleichmaessig +0.15s pro Bild */
  #s-drawing .grid > .wow:nth-child(5n + 1) {
    animation-delay: 0.15s !important;
  }
  #s-drawing .grid > .wow:nth-child(5n + 2) {
    animation-delay: 0.3s !important;
  }
  #s-drawing .grid > .wow:nth-child(5n + 3) {
    animation-delay: 0.45s !important;
  }
  #s-drawing .grid > .wow:nth-child(5n + 4) {
    animation-delay: 0.6s !important;
  }
  #s-drawing .grid > .wow:nth-child(5n) {
    animation-delay: 0.75s !important;
  }
}

@media (max-width: 700px) {
  /* Smartphone: 3 Spalten (grid3ColSmartphone) - gleichmaessig +0.15s pro Bild */
  #s-drawing .grid > .wow:nth-child(3n + 1) {
    animation-delay: 0.15s !important;
  }
  #s-drawing .grid > .wow:nth-child(3n + 2) {
    animation-delay: 0.3s !important;
  }
  #s-drawing .grid > .wow:nth-child(3n) {
    animation-delay: 0.45s !important;
  }
}

/* ==========================================================================
   Typografie
   ========================================================================== */

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

h1,
h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 1.2rem 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

p {
  line-height: 1.65;
}

/* ==========================================================================
   Komponenten
   ========================================================================== */

.btn a,
a.btn {
  background: black;
  color: white;
}

main {
  position: relative;
  z-index: 2;
  background: #000;
  margin-bottom: -260px;
}

footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: #000000;
}

/* Fix: fehlender Einzug im Footer (div statt section) */
footer .bgWrapper {
  padding-left: 8vw;
  padding-right: 8vw;
  box-sizing: border-box;
}

footer .bgWrapper:first-of-type {
  padding-top: 260px;
}
footer a {
  text-decoration: none;
  color: #000000;
}

.ski {
  margin-bottom: 0;
}
.ski p {
  margin: revert;
}
footer p.ski.themoreIconWrapper {
  margin-top: 1em;
}

footer .themoreIconWrapper:not(.floatingButton, .iconpos_block) .icon {
  transform: none;
  vertical-align: middle;
}
/* iOS-Sticky-Fix OHNE Reveal zu deaktivieren */
@media (max-width: 480px) {
  main {
    /* margin-bottom: 0; ← Entfernen oder anpassen */
    min-height: -webkit-fill-available; /* iOS Safari Viewport-Fix */
  }
}
/* Sticky-Reveal-Footer auf kleinen/kurzen Screens deaktivieren (iOS-Sticky-Bug) */
/*@media (max-height: 700px), (max-width: 480px) {
  main {
    margin-bottom: 0;
  }
  footer,
  footer .bgWrapper {
    position: static;
    top: auto;
    bottom: auto;
  }
  footer .bgWrapper:first-of-type {
    padding-top: 0;
  }
  footer {
    padding-bottom: 40px;
  }
}
*/
/* ==========================================================================
   Footer-Grid (Impressum/Datenschutz, NFT-Link, Copyright)
   ========================================================================== */

/* Verhindert vertikalen Versatz/"Springen", egal ob 1 oder 3 Spalten */
footer .ce_rsce_themoreGrid {
  align-items: center;
}

@media (max-width: 700px) {
  /* Kleinerer Abstand, wenn das Grid auf 1 Spalte (grid1ColSmartphone) umschaltet */
  footer .ce_rsce_themoreGrid {
    row-gap: 0.35rem; /* nach Bedarf anpassen, z.B. 0.75rem für etwas mehr Luft */
  }

  /* Entfernt zusätzliche Absatz-Ränder, die sich zum Grid-Gap addieren */
  footer .ce_rsce_themoreGrid .rte p {
    margin: 0;
  }
}
/* ==========================================================================
   Barrierefreiheit
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
