/* ==========================================================================
   niko.studio – Basis-Stylesheet (Nachbau des Semplice-Layouts, ohne WP)
   Grid: 12 Spalten, 1170px, 20px Gutter · Basis 18px · Fonts via Typekit
   ========================================================================== */

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 18px;
  line-height: 1.6667;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "dunbar-text", sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: #21199d; text-decoration: none; }
a:hover { color: #0061ff; }

/* ---------- Typografie (Semplice "Customize > Typography") ---------- */
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1 { font-family: "dunbar-tall", sans-serif; font-weight: 600; font-size: 3.8888888889rem; line-height: 4.1111111111rem; letter-spacing: -0.0167rem; }
h4 { font-family: "dunbar-tall", sans-serif; font-weight: 600; font-size: 2.7777777778rem; line-height: 3rem; }
h2 { font-family: "dunbar-text", sans-serif; font-weight: 700; font-size: 1.1111111111rem; line-height: 1.6666666667rem; }
h3 { font-family: "dunbar-text", sans-serif; font-weight: 700; font-size: 0.5555555556rem; line-height: 1rem; letter-spacing: 0.0111rem; }
p, li { font-family: "dunbar-text", sans-serif; font-weight: 500; font-size: 0.8333333333rem; line-height: 1.3333; }
.is-content p { margin-bottom: 1.3333em; }
.is-content h2, .is-content h3, .is-content h4, .is-content ul, .is-content ol { margin-bottom: 1.6666666667rem; }
.is-content ul, .is-content ol { margin-left: 48px; padding-left: 0; }
.is-content > :last-child { margin-bottom: 0; }
h1 a, h2 a, h3 a, h4 a { color: inherit; }
h2 a:hover, h1 a:hover { color: #0061ff; }
@media screen and (max-width: 543.98px) {
  main h1, main h1[class] { font-size: 50px !important; line-height: 54px !important; }
}

/* Semplice Font-Klassen (Reihenfolge wie im Original: Fonts vor Custom Styles) */
.font_3eiudcv2x, [data-font="font_3eiudcv2x"] { font-family: "dunbar-tall", sans-serif; font-weight: 600; }
.font_nk6a9u7jf, [data-font="font_nk6a9u7jf"] { font-family: "dunbar-text", sans-serif; font-weight: 500; }
.font_bikgph9uk, [data-font="font_bikgph9uk"] { font-family: "dunbar-text", sans-serif; font-weight: 700; }
/* Semplice Custom Styles */
.custom_c4ewj4kqg { font-family: "dunbar-text", sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.5555555556rem; color: #000; }
.custom_x4u2q1f25 { font-family: "dunbar-text", sans-serif; font-weight: 500; font-size: 1rem; line-height: 1.5555555556rem; color: #000; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 120;
  width: 100%; height: 5.5555555556rem;
  mix-blend-mode: exclusion;
}
.navbar .container {
  height: 100%; max-width: 1170px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5555555556rem 0;
}
body.home .navbar { position: fixed; }
.navbar .logo img { width: 2.2222222222rem; height: auto; }
.navbar .menu { list-style: none; margin: 0; padding: 0; display: flex; }
.navbar .menu a {
  font-family: "dunbar-text", sans-serif; font-weight: 500; font-size: 0.8888888889rem;
  color: #fff; text-transform: uppercase; padding: 0.5555555556rem 0;
}
.navbar .menu a:hover { color: #0061ff; }
@media screen and (max-width: 1169.98px) { .navbar .container { padding-left: 1.6666666667rem; padding-right: 1.6666666667rem; } }

/* ---------- Grid ---------- */
main { display: block; }
.sections { display: block; }
section.content-block { display: flex; flex-direction: column; position: relative; width: 100%; }
.container { display: flex; flex-wrap: wrap; width: 100%; max-width: 1170px; margin: 0 auto; }
.row { display: flex; flex: auto; flex-wrap: wrap; width: 100%; margin-left: -10px; margin-right: -10px; }
.column { display: flex; position: relative; padding-left: 10px; padding-right: 10px; word-wrap: break-word; }
.column .content-wrapper { width: 100%; }
.column-content { width: 100%; position: relative; }
.column-content .is-content { position: relative; }
@media screen and (min-width: 992px) and (max-width: 1169.98px) { .container { padding-left: 1.6666666667rem; padding-right: 1.6666666667rem; } }
@media screen and (max-width: 991.98px) { .container { padding-left: 1.1111111111rem; padding-right: 1.1111111111rem; } }

/* Spaltenbreiten */
[data-xl-width="1"]  { width: 8.3333%;  flex: 0 0 8.3333%; }
[data-xl-width="2"]  { width: 16.6667%; flex: 0 0 16.6667%; }
[data-xl-width="3"]  { width: 25%;      flex: 0 0 25%; }
[data-xl-width="4"]  { width: 33.3333%; flex: 0 0 33.3333%; }
[data-xl-width="5"]  { width: 41.6667%; flex: 0 0 41.6667%; }
[data-xl-width="6"]  { width: 50%;      flex: 0 0 50%; }
[data-xl-width="7"]  { width: 58.3333%; flex: 0 0 58.3333%; }
[data-xl-width="8"]  { width: 66.6667%; flex: 0 0 66.6667%; }
[data-xl-width="9"]  { width: 75%;      flex: 0 0 75%; }
[data-xl-width="10"] { width: 83.3333%; flex: 0 0 83.3333%; }
[data-xl-width="11"] { width: 91.6667%; flex: 0 0 91.6667%; }
[data-xl-width="12"] { width: 100%;     flex: 0 0 100%; }

/* Section-Optionen */
[data-layout="fluid"] .container { max-width: 100%; }
@media screen and (min-width: 544px) { [data-layout="fluid"] .container { padding: 0; } }
[data-layout="fluid"] .container .row, [data-gutter="no"] .row { margin: 0; }
[data-gutter="no"] .column, [data-gutter="no"] .container { padding: 0; }
[data-valign="center"] .container { align-items: stretch; }
[data-valign="center"] .container .row { align-items: center; }
[data-valign="top"]    .container .row { align-items: flex-start; }
[data-valign="bottom"] .container .row { align-items: flex-end; }
[data-valign="center"] .container .spacer-column,
[data-valign="bottom"] .container .spacer-column { align-self: stretch; }
.column[data-valign="center"] { align-items: center; }
.column[data-valign="bottom"] { align-items: flex-end; }
.column[data-valign="stretch"] { align-items: stretch; }
[data-justify="right"]  .container .row { justify-content: flex-end; }
[data-justify="center"] .container .row { justify-content: center; }
[data-justify="left"]   .container .row { justify-content: flex-start; }
.spacer-column { height: auto; min-height: auto; }

/* Mobile: alle Spalten untereinander (Semplice "single column" ab sm) */
@media screen and (max-width: 767.98px) {
  .column { width: 100% !important; flex-basis: 100% !important; max-width: 100%; }
  /* Projektseiten: im Seitenkopf Bild/Video VOR dem Text (Abweichung vom
     Original-Layout, Wunsch 2026-08: Titelbild soll mobil immer oben stehen) */
  body.project section:first-of-type .row:first-of-type .column:has(.ce-image),
  body.project section:first-of-type .row:first-of-type .column:has([data-module="video"]) { order: -1; }
}

/* ---------- Module ---------- */
/* Bild */
.ce-image { font-size: 0; line-height: 0; }
.ce-image[data-align="right"] { text-align: right; }
.ce-image[data-align="center"] { text-align: center; }
.ce-image img { display: inline-block; height: auto; }
.ce-image img[data-width="grid-width"] { width: 100%; }
.ce-image img[data-width="original"] { max-width: 100%; }

/* Video */
.ce-video { font-size: 0; line-height: 0; }
.ce-video video { width: 100%; height: auto; background: #000; }

/* Button (Semplice-Default, per Page-CSS meist auf transparent überschrieben) */
.ce-button { text-align: center; }
.ce-button[data-align="left"] { text-align: left; }
.ce-button[data-align="right"] { text-align: right; }
.ce-button .is-content { display: inline-block; background-color: #ffd300; cursor: pointer; }
.ce-button .is-content a { display: inline-block; padding: 0.5555555556rem; color: #000; font-size: 0.8888888889rem; text-align: center; }
.ce-button .is-content:hover { background-color: #ffe152; }
.ce-button .is-content:hover a { color: #0061ff; }

/* ---------- Home: "View project"-Buttons ----------
   Weisser Pill-Button, uppercase 14px. Zwei Konturen uebereinander:
   unten 1px rgba(0,0,0,0.03) auf allen vier Seiten (auf dem <a> selbst),
   darueber der Figma-Verlauf als 1px-Kontur nur rechts+unten (::after).
   Verlauf folgt dem border-radius dank border-box-Gradient + Mask-Exclude.
   Hover: Crossfade auf die 4-seitige Verlaufskontur (::before). */
body.home .column-content[data-module="button"]:has(a:is([href^="project/"], [href^="https://www.moia.io"])) { padding-top: 24px !important; }
body.home .ce-button:has(a:is([href^="project/"], [href^="https://www.moia.io"])) .is-content,
body.home .ce-button:has(a:is([href^="project/"], [href^="https://www.moia.io"])) .is-content:hover { background: transparent; }
body.home :is(.ce-button a:is([href^="project/"], [href^="https://www.moia.io"]), #section_xen9f3p66 h2 a) {
  position: relative;
  display: inline-block;
  /* !important: Semplice-Per-Page-CSS (#content_… IDs) setzt sonst font-size 20px
     und padding 0 durch */
  padding: 16px 32px !important;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  color: #000;
  font-size: 14px !important;
  font-weight: 500; /* dunbar-text: ein Schnitt duenner als der 700er-Default */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
/* :not(#_) hebt die Spezifitaet ueber die #content_…-Hover-Regel (!important #21199d) */
body.home .ce-button .is-content:hover a:is([href^="project/"], [href^="https://www.moia.io"]):not(#_),
body.home #section_xen9f3p66 h2 a:hover { color: #000 !important; }
body.home :is(.ce-button a:is([href^="project/"], [href^="https://www.moia.io"]), #section_xen9f3p66 h2 a)::before,
body.home :is(.ce-button a:is([href^="project/"], [href^="https://www.moia.io"]), #section_xen9f3p66 h2 a)::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  border-style: solid;
  border-color: transparent;
  background: linear-gradient(to bottom left,
    #241A1C, #009DE4, #C88595, #0095D0, #FFC200, #E35884, #241A1C, #D0EEF2) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.home :is(.ce-button a:is([href^="project/"], [href^="https://www.moia.io"]), #section_xen9f3p66 h2 a)::after { border-width: 0 1px 1px 0; }
body.home :is(.ce-button a:is([href^="project/"], [href^="https://www.moia.io"]), #section_xen9f3p66 h2 a)::before { border-width: 1px; opacity: 0; }
body.home .ce-button .is-content:hover a:is([href^="project/"], [href^="https://www.moia.io"])::before,
body.home #section_xen9f3p66 h2 a:hover::before { opacity: 1; }
body.home .ce-button .is-content:hover a:is([href^="project/"], [href^="https://www.moia.io"])::after,
body.home #section_xen9f3p66 h2 a:hover::after { opacity: 0; }

/* Code-Modul (iframe) */
.ce-code iframe { width: 100%; border: 0; }
.fullheight { height: 100vh; }

/* Galerie (Crossfade-Slider) */
.semplice-gallery-slider { position: relative; font-size: 0; line-height: 0; }
.semplice-gallery-slider .sgs-slide { width: 100%; }
.semplice-gallery-slider .sgs-slide img { width: 100%; height: auto; }
.semplice-gallery-slider .sgs-slide ~ .sgs-slide { position: absolute; top: 0; left: 0; }
.sgs-crossfade .sgs-slide { opacity: 0; transition: opacity 0.4s ease-in-out; }
.sgs-crossfade .sgs-slide.is-selected { opacity: 1; z-index: 1; }
.sgs-btn { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.75); cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.sgs-btn:hover { opacity: 1; }
.sgs-btn.prev { left: 10px; } .sgs-btn.next { right: 10px; }
.sgs-btn svg { width: 17px; height: 17px; fill: #333; }
.sgs-dots { text-align: center; line-height: 0; margin: 16px 0; }
.sgs-dots .dot { display: inline-block; width: 10px; height: 10px; margin: 0 8px; background: #333; border-radius: 50%; opacity: 0.25; cursor: pointer; }
.sgs-dots .dot.is-selected { opacity: 1; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 118;
  display: block; padding: 10px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s linear;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 53px; height: auto; fill: #000; transition: transform 0.2s linear; }
.back-to-top:hover svg { transform: scale(1.1); }

/* ---------- Seiten-Einblendung ---------- */
main { opacity: 0; transition: opacity 0.5s ease-out; }
body.ready main { opacity: 1; }

/* ---------- Next / Prev (ältere Projekte) ---------- */
.semplice-next-prev { position: relative; background: #f7f7f7; }
.semplice-next-prev .container { max-width: 100%; padding: 0; }
.semplice-next-prev .row { margin: 0; }
.semplice-next-prev .column { padding: 0; }
.semplice-next-prev .np-inner { display: flex; width: 100%; height: 13.8888888889rem; }
.semplice-next-prev .np-link { width: 50%; position: relative; display: flex; flex-direction: column; line-height: 1; overflow: hidden; transition: background 0.3s ease; }
.semplice-next-prev .np-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: opacity 0.3s ease; }
.semplice-next-prev .np-text { position: absolute; top: 0; padding: 2.2222222222rem; }
.semplice-next-prev .semplice-next .np-text { right: 0; text-align: right; }
.semplice-next-prev .np-label-above { display: block; color: #ddd; font-size: 0.7777777778rem; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 2px; }
.semplice-next-prev .np-label { color: #fff; font-size: 1.1111111111rem; text-transform: uppercase; }
.semplice-next-prev .np-link:hover { background: #000; }
.semplice-next-prev .np-link:hover .np-bg { opacity: 0.4; }
.semplice-next-prev .np-link:hover .np-label-above { color: #fff; }
.nextprev-seperator { display: none; }

/* ---------- Slime Page-Transition ---------- */
/* absolute statt fixed: iOS-26-Safari clippt fixed-Vollflaechen an der Toolbar,
   rendert absolute Elemente aber wie normalen Content dahinter. Position/Hoehe
   setzt transition.js (Scrollposition + Geraetehoehe + Marge). */
.slime-overlay { position: absolute; top: 0; left: 0; width: 100%; z-index: 300;
  pointer-events: none; height: 100vh; height: 100lvh; opacity: 0.999; }
.slime-overlay.active { pointer-events: auto; }
.slime-overlay svg { display: block; width: 100%; height: 100%; }
/* Reduced motion: simples Fade statt Liquid */
.slime-overlay.slime-fade { background: #000; opacity: 0; transition: opacity 0.2s ease-out; }
.slime-overlay.slime-fade svg { display: none; }
.slime-overlay.slime-fade.slime-fade-in { opacity: 1; }
/* Neue Seite startet schwarz (Klasse kommt pre-paint aus dem Head-Snippet),
   bis das SVG-Overlay übernimmt (html.slime-reveal) */
html.slime-cover body::after { content: ""; position: absolute; top: 0; left: 0; width: 100%;
  height: 120vh; height: 150lvh; background: var(--slime-c, #000); z-index: 299;
  opacity: 0.999; }
/* iOS-26-Safari sampelt die Toolbar-Farbe beim Rendern aus dem body-Hintergrund
   (theme-color wird ignoriert) -> waehrend der Cover-Phase Slime-Farbe hinterlegen,
   dann tintet die Glass-Toolbar nativ mit */
/* nur waehrend der Cover-Phase: sobald das Abfliessen beginnt (slime-reveal),
   hat der body wieder seine normale Farbe - die Toolbar behaelt ihre gesampelte
   Slime-Farbe, der Content wird aber auf richtigem Grund freigelegt */
html.slime-cover:not(.slime-reveal) body { background-color: var(--slime-c, #000) !important; }
/* Spline-Stage (iframe) waehrend der Cover-Phase ausblenden, sonst sampelt
   Safari deren weissen Hintergrund statt der body-Farbe fuer die Toolbar.
   Ab Drain-Start (slime-reveal) wieder sichtbar - da liegt noch Slime drueber,
   und die Szene laedt unsichtbar normal weiter. */
html.slime-cover iframe { visibility: hidden; }
html.slime-reveal iframe { visibility: visible; }
html.slime-reveal body::after { content: none; }
/* Seite unter dem Schleim ist beim Freilegen bereits voll sichtbar */
html.slime-cover main { opacity: 1 !important; transition: none !important; }

/* responsive text overrides (from Semplice data-*-xs) */
@media screen and (max-width:543.98px){.xs1{font-size:1.444rem!important;line-height:1.667rem!important}.xs2{font-size:3.333rem!important;line-height:3.556rem!important}.xs3{font-size:3.333rem!important;line-height:3.556rem!important}.xs4{font-size:3.333rem!important;line-height:3.556rem!important}.xs5{font-size:3.333rem!important;line-height:3.556rem!important}.xs6{font-size:3.333rem!important;line-height:3.556rem!important}.xs7{font-size:3.333rem!important;line-height:3.556rem!important}.xs8{letter-spacing:0.000rem!important}.xs9{font-size:3.333rem!important;line-height:3.556rem!important}}
