/* 
Theme Name:    Derjosef-Child
Theme URI:     http://childtheme-generator.com/
Description:   Derjosef-Child is a child theme of DerJosef
Author:       Josef Gerhardter
Author URI:    https://derjosef.com
Template:      derjosef
Version:      1.0.0
Text Domain:   derjosef-child
*/

/*
    Add your custom styles here
*/

:root {
  /* Colors */
  --nav-bg: #2ca894;
  --nav-yellow: #f2d54a;
  --page-bg: #ecefe9;

  --color-beige: #c8bc9d;
  --color-gray-light: #d8d8da;
  --color-gray-dark: #292929;
  --color-black-soft: #1e2325;
  --color-blue: #6370ba;
  --color-pink: #e36eb4;
  --color-yellow-soft: #e5da53;

  /* Typography */
  --font-size-base: 14px;
  --font-size-h1: 3.96vw;
  --font-size-h2: 3.3vw;
  --font-size-h3: 3.3vw;
  --font-size-h4: 2.5vw;
  --font-size-h5: 1.71vw;
  --font-size-h6: 3.3vw;
  --line-height: 1.6;

  /* Spacing */
  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 32px;
  --spacing-xlarge: 150px;

  /* Corners */
  --corner-size-small: 25px;
  --corner-size-big: 50px;
}

/* Fonts */
/* Fonts */

@font-face {
  font-family: "SpaceGrotesk";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Regular.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Regular.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SpaceGrotesk";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Light.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Light.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SpaceGrotesk";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Medium.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Medium.woff")
      format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SpaceGrotesk";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-SemiBold.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-SemiBold.woff")
      format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SpaceGrotesk";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Bold.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SpaceGrotesk-Bold.woff")
      format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Fonts */
/* Fonts */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: fit-content;
  margin-top: 0px !important;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body {
  margin: 0;
  font-family: "SpaceGrotesk";
  font-weight: 400;
  background-color: var(--page-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  width: 100%;
  overflow-x: hidden !important;
}
h1,
.h1,
h1 p {
  font-size: calc(1.5rem + 1vw) !important;
  line-height: 1.2;
  font-family: "SpaceGrotesk" !important;
  font-weight: 700;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

h2,
.h2 {
  font-size: calc(2.4rem + 0.8vw) !important;
  line-height: 1.3;
  font-family: "SpaceGrotesk" !important;
  font-weight: 600;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

h3,
.h3 {
  font-size: calc(1.3rem + 0.4vw) !important;
  line-height: 1.4;
  font-family: "SpaceGrotesk" !important;
  font-weight: 600;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

h4,
.h4 {
  font-size: calc(1.2rem + 0.3vw) !important;
  line-height: 1.5;
  font-family: "SpaceGrotesk" !important;
  font-weight: 500;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

h5,
.h5 {
  font-size: calc(1.1rem + 0.2vw) !important;
  line-height: 1.6;
  font-family: "SpaceGrotesk" !important;
  font-weight: 500;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

h6,
.h6 {
  font-size: calc(1rem + 1vw) !important;
  line-height: 1.7;
  font-family: "SpaceGrotesk" !important;
  font-weight: 400;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}
h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  color: var(--color-green);
  font-family: "SpaceGrotesk";
  font-weight: 700;
}

.subheadline {
  font-family: "SpaceGrotesk";
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: calc(0.9rem + 0.2vw) !important;
}

.h1-xl {
  font-size: calc(2rem + 1vw) !important;
  font-family: "SpaceGrotesk";
  font-weight: 700;
  margin-bottom: 0.2em;
}

p,
li {
  margin-bottom: 1em;
  font-family: "SpaceGrotesk";
  font-weight: 400;
  font-size: 1rem !important;
  text-transform: uppercase;
}

main a {
  font-family: "SpaceGrotesk";
  color: var(--color-black) !important;
}

small {
  font-size: 0.8em !important;
}

strong {
  font-family: "SpaceGrotesk";
  font-weight: 600;
}

button {
  font-family: "SpaceGrotesk";
  font-weight: 600;
  font-size: 0.8em !important;
}

.caption {
  font-family: "SpaceGrotesk";
  font-weight: 500;
}
/* Spacer */

.spacer-none {
  margin: 0px 0px;
}
.spacer-small {
  margin: 32px 0px;
}
.spacer-middle {
  margin: 64px 0px;
}
.spacer-big {
  margin: 128px 0px;
}
.spacer-biggest {
  margin: 200px 0px;
}

/* colors */
/* COLORS (aus Root) */
.bg-pink {
  background: var(--color-pink);
}

.bg-green {
  background: var(--nav-bg);
  color: #fff;
}
.bg-neureitgreen {
  background: #557329;
  color: #fff;
}

.bg-brown {
  background: var(--color-beige);
}

.bg-black {
  background: var(--color-black-soft);
  color: #fff;
}
.site-header {
  --nav-bg: var(--color-beige);
  --nav-text: #000;
  --nav-accent: #000;

  --submenu-bg: #000;
  --submenu-text: #fff;
}
.site-header.theme-green {
  --nav-bg: #2ca894;
  --nav-text: var(--color-yellow-soft);
  --nav-accent: var(--color-yellow-soft);

  --submenu-bg: var(--color-yellow-soft);
  --submenu-text: #000;
}
.site-header.theme-neureitgreen {
  --nav-bg: #557329;
  --nav-text: var(--color-yellow-soft);
  --nav-accent: var(--color-yellow-soft);

  --submenu-bg: var(--color-yellow-soft);
  --submenu-text: #000;
}
.site-header.theme-brown {
  --nav-bg: var(--color-beige);
  --nav-text: #000;
  --nav-accent: #000;

  --submenu-bg: #ffffff;
  --submenu-text: #000000;
}
.site-header.theme-pink {
  --nav-bg: var(--color-pink);
  --nav-text: var(--color-yellow-soft);
  --nav-accent: var(--color-yellow-soft);

  --submenu-bg: var(--color-yellow-soft);
  --submenu-text: #000;
}
.site-header.theme-black {
  --nav-bg: var(--color-black-soft);
  --nav-text: #ffffff;
  --nav-accent: #ffffff;

  --submenu-bg: #000000;
  --submenu-text: #ffffff;
}
/* colors end */
::selection {
  background: var(--color-yellow-soft);
  color: #000;
}

::-moz-selection {
  background: var(--color-yellow-soft);
  color: #000;
}
/* =========================================
   HEADER: fixed + Abstand links/rechts 20px
========================================= */
.main-nav {
  position: fixed; /* oder sticky, wie du es nutzt */
  overflow: visible;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  z-index: 1000;
  font-family: "Press Start 2P", monospace;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  overflow: visible; /* wichtig für Treppe */
}

/* Platz für Header */
body {
  padding-top: 120px;
}

/* Container mit fixen 20px Padding */
.nav-container {
  max-width: 1600px;
  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 20px !important;
  padding-right: 20px !important;

  height: 90px;
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

/* WICHTIG: falls irgendwo .container drin ist, neutralisieren */
.main-nav .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================================
   TREPPENRAND LINKS (Ausschnitt)
========================================= */
/* ===============================
   PIXEL TREPPE – 4 STUFEN
   exakt wie Referenzbild
================================ */

.main-nav {
  overflow: visible;
}
.main-nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* so wie du es korrekt hast */
  width: 64px; /* 4 × 16px */
  height: 64px; /* 4 × 16px */
  background: var(--page-bg, #f2f2ec);
  z-index: 1001;
  pointer-events: none;
  transform: rotate(180deg);

  clip-path: polygon(
    /* oben links */ 0px 0px,

    /* obere Kante */ 64px 0px,

    /* rechte Kante runter */ 64px 64px,

    /* Stufe 4 */ 48px 64px,
    48px 48px,

    /* Stufe 3 */ 32px 48px,
    32px 32px,

    /* Stufe 2 */ 16px 32px,
    16px 16px,

    /* Stufe 1 */ 0px 16px
  );
}

/* =========================================
   LOGO: exakt mittig
========================================= */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.nav-logo img {
  height: 60px;
  display: block;
}

/* =========================================
   MENÜS: links ganz links, rechts ganz rechts
   -> Wichtig: WP Menü hat <ul> + <li> + <a>
   -> Wir umgehen Bootstrap .navbar-nav komplett
========================================= */
.nav-left {
  margin-right: auto;
  display: flex;
  align-items: center;
  margin-left: 40px;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row !important; /* <-- zwingt eine Linie */
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}

/* WP gibt oft <a> OHNE .nav-link -> daher: .menu a */
.menu > li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.menu > li > a {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 0 0 10px 0; /* Platz für underline */
  line-height: 1;
}
.site-header .menu > li > a {
  color: var(--nav-text);
}

/* =========================================
   HOVER: Pixel-Underline von links nach rechts
========================================= */
.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;

  /* pixelige Linie */
  background: repeating-linear-gradient(
    90deg,
    var(--nav-yellow) 0 8px,
    transparent 8px 12px
  );

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s steps(10);
}

.menu > li > a:hover {
  color: #fff;
}

.menu > li > a:hover::after {
  transform: scaleX(1);
}

/* =========================================
   "ANFRAGEN" Button: letzter Menüpunkt rechts
   -> ohne underline
========================================= */

.menu-right > li:last-child > a::after {
  display: none !important;
}

/* Pixel Shadow */
.menu-right > li:last-child > a {
  position: relative;
}

/* =========================================
   MOBILE TOGGLER (Pixel)
========================================= */
/* =========================================
   MOBILE NAV BURGER – BIG / CLEAN / PIXEL
   BOOTSTRAP 5 SAFE (ALL !IMPORTANT)
========================================= */

/* BUTTON RESET */
.nav-toggle {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;

  padding: 8px !important;
  margin-left: auto !important;

  cursor: pointer !important;
  z-index: 1100 !important;
}

/* Bootstrap Focus / Active RESET */
.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* =========================================
   BURGER ICON – STABLE & SMOOTH
========================================= */

.burger-icon {
  width: 38px !important;
  height: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.burger-icon span {
  width: 100% !important;
  height: 4px !important;
  background: var(--nav-yellow) !important;
  display: block !important;

  /* WICHTIG */
  transform-origin: center !important;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease !important;
}

/* Pixel-Charakter OHNE transform */
.burger-icon span:nth-child(2) {
  margin-left: 6px !important;
}
.burger-icon span:nth-child(3) {
  margin-left: 2px !important;
}
/* =========================================
   X STATE – SYNCHRON MIT OVERLAY
========================================= */

.nav-toggle.is-open .burger-icon span:nth-child(1) {
  transform: translateY(14px) rotate(45deg) !important;
  margin-left: 0 !important;
}

.nav-toggle.is-open .burger-icon span:nth-child(2) {
  opacity: 0 !important;
}

.nav-toggle.is-open .burger-icon span:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg) !important;
  margin-left: 0 !important;
}
/* OPTIONAL: SUBTILER PIXEL-PULSE */
@keyframes pixelPulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

/* DESKTOP – BURGER AUS */
@media (min-width: 768px) {
  .nav-toggle {
    display: none !important;
  }
}

/* =========================================
   MOBILE OVERLAY (fullscreen + fade)
========================================= */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--nav-bg);
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1050;
}

.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-logo {
  margin-bottom: 3rem;
}
.mobile-logo img {
  height: 60px;
}

/* Mobile Menüs untereinander */
.menu-mobile {
  flex-direction: column !important;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.menu-mobile > li > a {
  font-size: 1.8rem;
}

/* =========================================
   Desktop/Mobile Sichtbarkeit
========================================= */
@media (min-width: 768px) {
  .nav-toggle,
  #mobileMenu {
    display: none !important;
  }
}
/* =========================================
   SUBMENU – BASIS
========================================= */

.menu-item-has-children {
  position: relative;
}

/* PLUS ICON (DESKTOP + MOBILE) */
.menu-item-has-children > a {
  padding-right: 34px;
}
.menu-item-has-children > a::before {
  right: -13px;
  top: 0;
}

.menu-item-has-children > a::before {
  content: "+";
  position: absolute;
  right: -18px;
  top: -2px;
  font-size: 18px;
  color: var(--nav-yellow);
  transition: transform 0.25s ease;
}

.menu-item-has-children > a::after {
  pointer-events: none;
}

/* =========================================
   DESKTOP SUBMENU (HOVER)
========================================= */
@media (min-width: 768px) {
  .menu .sub-menu {
    position: absolute;
    top: 30px !important;
    left: 0;
    background: var(--submenu-bg);
    padding: 16px 20px;
    min-width: 240px;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1200;
  }

  .menu .sub-menu li {
    margin-bottom: 12px;
  }

  .menu .sub-menu li:last-child {
    margin-bottom: 0;
  }

  .menu .sub-menu a {
    font-size: 12px;
    text-decoration: none;
  }
  .site-header .menu .sub-menu a {
    color: var(--submenu-text);
  }
  .menu-item-has-children:hover > .sub-menu {
    display: block;
  }

  .menu-item-has-children:hover > a::before {
    transform: rotate(45deg);
  }
}
@media (min-width: 768px) {
  .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 16px;
  }
}

/* =========================================
   MOBILE SUBMENU (ACCORDION)
========================================= */

.menu-mobile .sub-menu {
  display: none;
  padding-top: 0.75rem;
}

.menu-mobile .menu-item-has-children.open > .sub-menu {
  display: block;
}

.menu-mobile .menu-item-has-children.open > a::before {
  transform: rotate(45deg);
}
/* =========================================
   MOBILE SUBMENU – RESET & STYLING
========================================= */

@media (max-width: 767px) {
  .menu-mobile .sub-menu {
    position: static; /* WICHTIG */
    display: none;
    padding: 0.75rem 0 0 0;
    margin: 0;
    list-style: none; /* Bulletpoints weg */
  }

  .menu-mobile .sub-menu li {
    margin: 0.5rem 0;
  }

  .menu-mobile .sub-menu a {
    color: var(--nav-yellow);
    font-size: 1.2rem;
    text-decoration: none;
  }

  .menu-mobile .menu-item-has-children {
    flex-direction: column;
    align-items: center;
  }
}
/* DESKTOP */
@media (min-width: 768px) {
  .nav-logo {
    display: block;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .nav-logo {
    display: block;
    margin-right: auto;
  }

  .nav-logo img {
    height: 62px;
    width: auto;
  }
  .menu-item-has-children > a::before {
    content: "+";
    position: absolute;
    right: -28px;
    top: -5px;
    font-size: 38px;
  }
}

/* =====================================
   MAIN BUTTON – BASE
===================================== */

.main-button {
  position: relative;
  display: inline-block;

  padding: 10px 32px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;

  color: var(--color-black-soft);
  background-color: transparent;
}

/* helle Balken */
.main-button .bar {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 8px;
  pointer-events: none;
}

/* Positionen */
.main-button .bar.top {
  top: -8px;
}

.main-button .bar.bottom {
  bottom: -8px;
}

/* Hover: helle Balken aus */
.main-button:hover .bar {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Fokus */
.main-button:focus-visible {
  outline: 2px solid var(--color-black-soft);
  outline-offset: 3px;
}
/* =====================================
   MAIN BUTTON – YELLOW
===================================== */

.main-button-yellow {
  background-color: var(--nav-yellow);
}

.main-button-yellow .bar {
  background-color: var(--color-yellow-soft);
}
/* =====================================
   MAIN BUTTON – Green
===================================== */
.main-button-green {
  background-color: var(--nav-bg);
  color: #ffffff;
}

.main-button-green .bar {
  background-color: rgba(255, 255, 255, 0.35);
}

/* footer */
/* ===============================
   FOOTER
================================ */
/* ========= FOOTER (wie Screenshot) ========= */
.footer {
  background: var(--color-black-soft);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}

/* Logo + Linie */
.footer-top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 70px;
}

.footer-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.footer-line {
  flex: 1;
  height: 3px;
  background: var(--color-pink);
}

/* Spalten */
.footer-cols {
  align-items: flex-start;
}

.footer-headline {
  color: #2ca894;

  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-text {
  font-size: 16px;
  line-height: 1.7;
}

.footer-text a {
  color: var(--color-gray-light);
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

.footer-col-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-cta {
  margin-top: 18px;
}

/* Pixel Ecken */
.footer-pixel {
  position: absolute;
  width: 96px;
  height: 96px;
  background: var(--page-bg);
  z-index: 2;
}

.footer-pixel-tl {
  top: 0;
  left: 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 33%,
    66% 33%,
    66% 66%,
    33% 66%,
    33% 100%,
    0 100%
  );
}

.footer-pixel-br {
  right: 0;
  bottom: 0;
  clip-path: polygon(
    100% 100%,
    0 100%,
    0 66%,
    33% 66%,
    33% 33%,
    66% 33%,
    66% 0,
    100% 0
  );
}

/* Mobile */
@media (max-width: 991px) {
  .footer {
    padding: 70px 0;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-line {
    width: 100%;
  }

  .footer-col-center,
  .footer-col-right {
    text-align: left;
    align-items: flex-start;
  }
}
.footer-col-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.footer-social-item img {
  width: 28px;
  height: auto;
  image-rendering: pixelated;
}

.footer-social-item:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}
/* ================= FOOTER MOBILE FIX ================= */
@media (max-width: 991px) {
  /* Alle Footer-Spalten volle Breite */
  .footer-cols > div {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 32px;
  }

  /* CTA-Spalte sauber links ausrichten */
  .footer-col-center {
    align-items: flex-start !important;
    text-align: left !important;
  }

  /* SOCIAL: unter CTA, sichtbar, nicht gequetscht */
  .footer-col-social {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    margin-top: 12px !important;
  }

  .footer-social {
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 991px) {
  .footer-col-social {
    justify-content: flex-start;
    margin-top: 30px;
  }
}

/* popup */

/* popup */

div#popmake-439 {
  padding: unset;
  border: unset;
  box-shadow: unset;
  background-color: #c8bc9d !important;
}
button.pum-close.popmake-close {
  border-radius: unset !important;
  width: 40px !important;
  height: 40px !important;
  background: #f2d54a !important;
  color: black !important;
  font-size: 40px !important;
}
