/*  
Theme Name: Default Theme with Mobile Header
Theme URI: 
Description: Theme with Stylesheet as Base for Brizy or Elementor
Version: 1.0
Author: desmeit
Author URI: https://schmeidt.de
*/

/* Basis */

/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/open-sans-v44-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/open-sans-v44-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/lato-v25-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/lato-v25-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* height: 50px; */
  background: #fff;
  min-height: 80px;
  padding: 0 20px;
  position: relative;
  z-index: 1000;
}

header .logo {
  display: flex;
  /* falls Bild/Text drin ist */
  align-items: center;
  /* Inhalt (Logo-Bild) auch mittig */
  color: #fff;
  font-weight: bold;
}

header .logo img {
  max-height: 40px;
  /* kleiner als header (50px) */
  height: auto;
  width: auto;
  display: block;
}

/* Hamburger */

.hamburger {
  display: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transform-origin: center;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  transform: translateY(-10px);
}

.hamburger span:nth-child(2) {
  transform: translateY(0);
}

.hamburger span:nth-child(3) {
  transform: translateY(10px);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Navigation Desktop */

/* ========================= */

/* DESKTOP MENÜ (Header)     */

/* ========================= */

ul.menu {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
}

ul.menu > li {
  position: relative;
  margin: 0 5px;
}

ul.menu > li > a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

ul.menu > li:hover > a {
  background: #fce6f1;
  color: #7a005c;
}

/* ===== Pfeil an Elternpunkten ===== */

ul.menu li.menu-item-has-children > a {
  position: relative;
  padding-right: 30px;
  /* Platz für Pfeil */
}

/* ===== Dropdown Box ===== */

ul.menu li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  /* kein Space */
  padding: 10px 0;
  background: #fff;
  border-radius: 8px;
  list-style: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

/* Dropdown sichtbar */

ul.menu li:hover > ul.sub-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Einträge im Dropdown */

ul.menu li ul.sub-menu li {
  border: none;
}

ul.menu li ul.sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #330033;
  text-decoration: none;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

/* Hover Effekt auf Unterpunkte */

ul.menu li ul.sub-menu li a:hover {
  background: #fce6f1;
  color: #7a005c;
}

/* Polylang: aktuelle Sprache im Sprachmenü ausblenden */

ul.menu li ul.sub-menu li.current-lang {
  display: none;
}

.zoom-in-frame .brz-picture {
  display: block;
  overflow: hidden;
}

.zoom-in-frame .brz-img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.35s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.zoom-in-frame:hover .brz-img {
  transform: scale(1.08);
}

.hover-overlay .brz-image {
  position: relative;
  overflow: hidden;
}

.hover-overlay .brz-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-color, rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 0.6s ease-in-out; /* weicher */
  pointer-events: none;
  z-index: 2;
}

.hover-overlay:hover .brz-image::after {
  opacity: 1;
}

.hover-overlay.overlay-black {
  --overlay-color: rgba(0, 0, 0, 0.35);
}

.hover-overlay.overlay-red {
  --overlay-color: rgba(255, 0, 0, 0.35);
}

.hover-overlay.overlay-blue {
  --overlay-color: rgba(0, 102, 255, 0.35);
}

.hover-overlay.overlay-green {
  --overlay-color: rgba(0, 140, 90, 0.35);
}

.hover-overlay.overlay-gold {
  --overlay-color: rgba(212, 175, 55, 0.35);
}

.blur-bg {
  position: relative;
  overflow: hidden;
  background: #f7f7f4;
  isolation: isolate;

  /* 🔒 harte Begrenzung */
  clip-path: inset(0 0 0 0);
}

.blur-bg::before,
.blur-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* große Basisfläche */
.blur-bg::before {
  width: 950px;
  height: 950px;
  background:
    radial-gradient(
      circle at 48% 42%,
      rgba(0, 140, 255, 0.95) 0%,
      transparent 26%
    ),
    radial-gradient(
      circle at 56% 44%,
      rgba(210, 255, 40, 0.92) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 44% 56%,
      rgba(190, 120, 255, 0.88) 0%,
      transparent 26%
    ),
    radial-gradient(
      circle at 54% 58%,
      rgba(255, 70, 180, 0.9) 0%,
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 210, 60, 0.72) 0%,
      transparent 20%
    );
  filter: blur(34px);
  opacity: 1;
  animation: blobChaosWide1 16s ease-in-out infinite;
}

/* zweite Ebene für flächigere Aufweitungen */
.blur-bg::after {
  width: 820px;
  height: 820px;
  background:
    radial-gradient(
      circle at 52% 46%,
      rgba(242, 247, 95, 0.8) 0%,
      transparent 35%
    ),
    radial-gradient(
      circle at 46% 52%,
      rgba(255, 100, 210, 0.76) 0%,
      transparent 23%
    ),
    radial-gradient(
      circle at 58% 54%,
      rgba(80, 220, 255, 0.74) 0%,
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 60%,
      rgba(178, 245, 98, 0.7) 0%,
      transparent 21%
    );
  filter: blur(26px);
  opacity: 0.95;
  animation: blobChaosWide2 13s ease-in-out infinite;
}

.blur-bg > * {
  position: relative;
  z-index: 1;
}

@keyframes blobChaosWide1 {
  0% {
    transform: translate(-50%, -50%) scale(0.95, 0.95) rotate(0deg)
      skew(0deg, 0deg);
  }
  18% {
    transform: translate(-42%, -57%) scale(1.22, 0.94) rotate(7deg)
      skew(3deg, -2deg);
  }
  34% {
    transform: translate(-58%, -43%) scale(0.92, 1.2) rotate(-8deg)
      skew(-3deg, 3deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.42, 1.18) rotate(4deg)
      skew(1deg, -1deg);
  }
  66% {
    transform: translate(-61%, -58%) scale(1.08, 1.3) rotate(-10deg)
      skew(-4deg, 2deg);
  }
  82% {
    transform: translate(-40%, -46%) scale(1.3, 1.02) rotate(9deg)
      skew(4deg, -3deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95, 0.95) rotate(0deg)
      skew(0deg, 0deg);
  }
}

@keyframes blobChaosWide2 {
  0% {
    transform: translate(-50%, -50%) scale(0.92, 0.98) rotate(0deg)
      skew(0deg, 0deg);
  }
  20% {
    transform: translate(-59%, -44%) scale(1.18, 0.9) rotate(-6deg)
      skew(-2deg, 3deg);
  }
  38% {
    transform: translate(-45%, -61%) scale(0.88, 1.26) rotate(11deg)
      skew(5deg, -3deg);
  }
  58% {
    transform: translate(-52%, -48%) scale(1.36, 1.16) rotate(-9deg)
      skew(-3deg, 2deg);
  }
  78% {
    transform: translate(-42%, -55%) scale(1.02, 1.28) rotate(6deg)
      skew(2deg, -4deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92, 0.98) rotate(0deg)
      skew(0deg, 0deg);
  }
}

@keyframes gradient-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1.08);
  }
}

@keyframes gradient-float {
  0% {
    top: 45%;
    left: 48%;
  }
  25% {
    top: 52%;
    left: 55%;
  }
  50% {
    top: 55%;
    left: 50%;
  }
  75% {
    top: 48%;
    left: 43%;
  }
  100% {
    top: 45%;
    left: 48%;
  }
}

@keyframes gradient-morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 65% 35% / 40% 55% 45% 60%;
  }
  50% {
    border-radius: 42% 58% 30% 70% / 55% 35% 65% 45%;
  }
  75% {
    border-radius: 65% 35% 50% 50% / 35% 60% 40% 65%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.gradient-bg {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  isolation: isolate;
  background-color: #071c39;
}

.gradient-bg > * {
  position: relative;
  z-index: 1;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 750px;
  height: 750px;
  z-index: 0;
  pointer-events: none;

  background-image: linear-gradient(
    180deg,
    hsl(222 84% 60% / 1),
    hsl(164 79% 71% / 1)
  );

  filter: blur(140px);
  transform: translate(-50%, -50%);
  animation:
    gradient-rotate 24s linear infinite,
    gradient-float 18s ease-in-out infinite,
    gradient-morph 14s ease-in-out infinite;
}

@media (min-width: 720px) {
  .gradient-bg::before {
    width: 500px;
    height: 500px;
    filter: blur(100px);
  }
}

/* ========================= */

/* MOBILE MENÜ (Accordion)   */

/* ========================= */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  ul.menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 80px;
    left: 0;
    border-bottom: 1px solid #d6d6d6;
  }
  ul.menu.show {
    display: flex;
  }
  ul.menu li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #d6d6d6;
  }
  ul.menu li:last-child {
    border-bottom: none;
  }
  ul.menu > li > a {
    padding: 15px 20px;
    border-radius: 0;
    color: #333;
    text-decoration: none;
    background: #fff;
    /* Standard weiß */
  }
  /* Aktiver Hauptpunkt beim Aufklappen */
  ul.menu li.show-submenu > a {
    background: #fce6f1;
    /* deine Akzentfarbe */
    color: #7a005c;
  }
  /* Submenu = Teil der Struktur */
  ul.menu li ul.sub-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: static;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: #fff;
    /* bleibt weiß */
  }
  ul.menu li.show-submenu > ul.sub-menu {
    display: flex;
  }
  ul.menu li ul.sub-menu li a {
    padding: 12px 30px;
    background: #fff;
    /* wie Menü-Hintergrund */
    font-size: 0.95em;
    color: #333;
  }
  /* Pfeile rechts */
  ul.menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 40px;
  }
}

/* Content & Footer */

main {
  padding: 20px;
}

.site-footer {
  background: #111;
  color: #ddd;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-nav ul {
  padding: 0 !important;
  margin: 0 !important;
}

.footer-nav li {
  list-style: none !important;
  margin: 8px 0 !important;
}

.footer-nav a {
  color: #ddd;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-social a {
  margin-right: 10px;
  font-size: 20px;
  color: #ddd;
  text-decoration: none;
}

.footer-social a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
}

/* ab 768px Breite (Tablets/Handys) */

@media (max-width: 768px) {
  .footer-container {
    gap: 20px;
    /* weniger Abstand */
  }
  .footer-column h4 {
    font-size: 18px;
    /* Überschrift etwas größer */
  }
  .footer-column p,
  .footer-nav a,
  .footer-disclaimer {
    font-size: 16px;
    /* größere Schrift, besser lesbar */
  }
  ul.menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 35px;
    /* Platz für Pfeil */
  }
  ul.menu li.menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
      no-repeat center;
    background-size: contain;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }
  /* gedreht wenn Submenu offen */
  ul.menu li.show-submenu > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
}
