/* ==========================================================================
   SPC v2 – nur in der Vorschau geladen (?preview=neu)
   Farben kommen per Inline-Script aus header.php als --spc-bg / --spc-fg
   ========================================================================== */

:root {
  --spc-bg: #000;
  --spc-fg: #fff;
}

body.spc-v2 {
  background-color: var(--spc-bg);
  color: var(--spc-fg);
}

body.spc-v2 a,
body.spc-v2 a:hover {
  color: var(--spc-fg);
}


/* ---------- Header ---------- */

body.spc-v2 .header {
  background-color: transparent;
  color: var(--spc-fg);
}
body.spc-v2 .header.scrolled,
body.spc-v2.menuopen .header {
  background-color: var(--spc-bg);
}

body.spc-v2 .spc-claim {
  text-transform: uppercase;
}

body.spc-v2 .menubtn span,
body.spc-v2 .menubtn.open span {
  display: inline-block;
}


/* ---------- Menue (Overlay) ---------- */

body.spc-v2 .menu {
  background-color: var(--spc-bg);
  color: var(--spc-fg);
  height: calc(100vh - 136px);
  height: calc(100dvh - 136px);
}

.spc-mainnav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
}

.spc-mainnav {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'SUPERCONTINENT';
  text-transform: uppercase;
  font-size: min(11vw, 16vh);
  line-height: 0.95;
}

.spc-mainnav a {
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s;
}
/* Aktives bzw. angetipptes Wort: Dunkelgrau, Rest bleibt in Textfarbe */
body.spc-v2 .spc-mainnav a:hover,
body.spc-v2 .spc-mainnav a:active,
body.spc-v2 .spc-mainnav a:focus-visible,
body.spc-v2 .spc-mainnav .current-menu-item > a {
  /* Schriftfarbe zu 45 % auf den Hintergrund gemischt: funktioniert auf jeder Palette */
  color: var(--spc-fg);
  opacity: 0.45;
}
/* Dunkle Hintergruende (z. B. Gruen): statt Dunkelgrau ein helles, blasses Weiss */
html.spc-lighttext body.spc-v2 .spc-mainnav a:hover,
html.spc-lighttext body.spc-v2 .spc-mainnav a:active,
html.spc-lighttext body.spc-v2 .spc-mainnav a:focus-visible,
html.spc-lighttext body.spc-v2 .spc-mainnav .current-menu-item > a {
  color: var(--spc-fg);
  opacity: 0.45;
}


/* ---------- Footer ---------- */

body.spc-v2 .footer,
body.spc-v2 .footer a {
  background-color: var(--spc-bg);
  color: var(--spc-fg);
}

body.spc-v2 .footer a:after {
  width: 100%;
}
body.spc-v2 .footer a:hover:after {
  width: 0%;
}


/* ---------- Startseite: Work-Bereich ohne Farbwechsel ---------- */

body.spc-v2 .bg-works,
body.spc-v2 .bg-works.view {
  background-color: var(--spc-bg);
}
body.spc-v2 .bg-works h1 {
  color: var(--spc-fg);
}


/* ---------- Start-Hero: Buchstaben-Maske in Seitenfarbe ---------- */

body.spc-v2 .startvid-wrapper .buchstabe {
  background-image: none;
  background-color: var(--spc-bg);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}


/* ---------- Start-Hero: Text unten links (ACF hero_text) ---------- */

body.spc-v2 .start-hero-text {
  font-size: 14px; /* gleiche Groesse wie Claim und MENU (.header) */
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--spc-fg);
  padding: 1.5rem 0;
}

@media (min-width: 992px) {
  body.spc-v2 .start-hero-text {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0 0 1.5rem;
    z-index: 10;
  }
}


/* ---------- Buchstaben-Grafiken in Textfarbe (z. B. Kontakt „B") ----------
   Das Bild selbst wird ausgeblendet, Form kommt aus der Maske (--spc-mask) */

body.spc-v2 img.spc-tint {
  object-position: -99999px 0;
  background-color: var(--spc-fg);
  -webkit-mask: var(--spc-mask) center / 100% 100% no-repeat;
  mask: var(--spc-mask) center / 100% 100% no-repeat;
}


/* ---------- Vorschau-Hinweis ---------- */

.spc-preview-badge {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 2000;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  padding: 10px 5px;
  background: #ffdb00;
  color: #000 !important;
  font: 11px/1 sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ---------- Unterseiten Kids / Creative / Contact (Layout "Contact") ---------- */

body.spc-v2 .spc-page {
  padding-top: 70px;
  padding-bottom: 60px;
  min-height: calc(100vh - 80px);
}

body.spc-v2 .spc-page-title {
  font-family: 'SUPERCONTINENT';
  font-weight: normal;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 18vw;
  line-height: 0.8;
  margin: 0 0 6vw -0.02em;
  color: var(--spc-fg);
}

body.spc-v2 .spc-page-about,
body.spc-v2 .spc-page-contact {
  text-transform: none;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.13;
}
body.spc-v2 .spc-page-about p,
body.spc-v2 .spc-page-contact p {
  margin: 0;
}
body.spc-v2 .spc-page-about strong,
body.spc-v2 .spc-page-contact strong,
body.spc-v2 .spc-page-about b,
body.spc-v2 .spc-page-contact b {
  font-weight: normal;
  -webkit-text-stroke: 0.04em currentColor;
}
body.spc-v2 .spc-page-contact {
  margin-top: 1.4em;
}
body.spc-v2 .spc-page-contact a {
  text-decoration: none;
}

body.spc-v2 .spc-page-info {
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.3;
  padding-top: 0.4em;
}
body.spc-v2 .spc-page-info p {
  margin: 0 0 1em;
}
body.spc-v2 .spc-page-info a {
  text-transform: none;
}

body.spc-v2 .spc-page-back {
  margin-top: 70px;
  font-size: 14px;
  text-transform: uppercase;
}
body.spc-v2 .spc-page-back a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 991px) {
  body.spc-v2 .spc-page-info {
    margin-top: 40px;
    margin-left: 0;
  }
  body.spc-v2 .spc-page-back {
    margin-top: 50px;
  }
}


@media (min-width: 1200px) {
  body.spc-v2 .start-hero-text { font-size: 16px; }
}
@media (min-width: 1919px) {
  body.spc-v2 .start-hero-text { font-size: 18px; }
}


/* ---------- Start-Hero mobil: alles passt in den sichtbaren Bereich (100svh),
   gleiche Abstaende zwischen Header, S, P, C und Text ---------- */
@media (max-width: 991px) {
  body.spc-v2 .start-hero {
    --spc-head: 86px;
    --spc-text: 64px;
    height: 100vh !important;
    height: 100svh !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    padding-top: 40px; /* Unterkante Claim/MENU, Rest verteilt space-evenly */
  }
  body.spc-v2 .start-hero > .start-hero-inner {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
  }
  body.spc-v2 .start-hero .row {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
  }
  body.spc-v2 .start-hero .row {
    --s: min(58vw, calc((100svh - var(--spc-head) - var(--spc-text)) / 3 - 20px));
  }
  body.spc-v2 .start-hero .row > div {
    width: var(--s);
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0 !important;
    padding: 0;
  }
  /* Treppe: S links, P mittig, C etwas naeher unter dem P */
  body.spc-v2 .start-hero .row > div:nth-child(2) { margin-left: calc((100% - var(--s)) * 0.5) !important; }
  body.spc-v2 .start-hero .row > div:nth-child(3) { margin-left: calc((100% - var(--s)) * 0.85) !important; }
  body.spc-v2 .start-hero .row > div > div {
    padding: 0 !important;
  }
  body.spc-v2 .start-hero-text {
    flex: 0 0 var(--spc-text);
    display: flex;
    align-items: flex-end;
    padding: 0 0 22px;
  }
}


/* ---------- Menue mobil: Woerter ueber die volle Breite (CREATIVE = breitestes Wort) ---------- */
@media (max-width: 767px) {
  .spc-mainnav {
    font-size: 16.2vw;
    line-height: 0.92;
  }
}
