/*
Theme Name: Maus Theme
Theme URI: https://pax-digital.de/
Author: PAX
Author URI: https://pax-digital.de/
Description: MAUS block theme for the WordPress monorepo harness.
Requires at least: 6.5
Requires PHP: 8.1
Version: 0.1.0
Text Domain: maus-theme
*/

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wp-site-blocks {
  min-height: 100vh;
  background: #ffffff;
}

a {
  color: #1487ff;
}

.site-header-bar,
.site-hero__content,
.site-footer .container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

main.wp-block-group {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding: 0;
  margin-block-start: 0 !important;
}

.site-header.is-layout-flow > .site-header-bar,
.site-header.is-layout-flow > .site-hero,
.site-header > .site-header-bar,
.site-header > .site-hero {
  margin-block-start: 0 !important;
}

.site-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  margin-block-start: 0 !important;
}

.site-brandmark {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.site-brandmark img {
  display: block;
  width: min(180px, 38vw);
  height: auto;
}

.site-primary-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem;
  align-self: center;
}

.site-primary-navigation a {
  padding: 0.1rem 1.5rem;
  background: #fff200;
  color: #111111;
  font-size: 1.1rem;
  font-weight: 730;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-hero {
  width: 100%;
  max-height: 400px; 
  aspect-ratio: 16 / 9; 
  background:
    linear-gradient(90deg, rgba(255, 194, 0, 0.18), rgba(255, 194, 0, 0)),
    url("https://kinderkurse.erstehilfe.de/wp-content/uploads/2026/04/xxxl_header_maerz16.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.site-hero__content {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.customSloganWrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  gap: 0.5rem;
}

.customSloganWrapper .carousel-header {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 30px 0 8px;
  padding: 0 10px;
  background: #1495ff;
  color: #ffffff;
  font-family: "Montserrat", "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  transform-origin: left center;
  font-size: clamp(20px, 5vw, 50px) !important; 
  line-height: 1.2 !important; 
  white-space: normal; 
}

.customSloganWrapper .hero-slogan-line-secondary {
  margin: -8px 0 8px 10px;
}

main.wp-block-group {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

main.wp-block-group > .wp-block-post-title {
  margin-top: 0;
}

.site-footer.section.footer-section.footer-section-content {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  background: #fff200;
  color: #111111;
}

.site-footer.section.footer-section.footer-section-content::after {
  content: "+";
  position: absolute;
  right: -2rem;
  bottom: -6rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(16rem, 34vw, 30rem);
  line-height: 1;
  transform: rotate(-18deg);
  pointer-events: none;
}

.site-footer .section-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
}

.site-footer .customFooter {
  position: relative;
  z-index: 1;
  text-align: center;
}

.site-footer .follow {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
}

.site-footer hr {
  margin: 1.2rem auto;
  border: 0;
  border-top: 2px solid rgba(17, 17, 17, 0.12);
}

.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footerLinkIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  color: #111111;
}

.footerLinkIcon svg {
  width: 2.7rem;
  height: 2.7rem;
  fill: currentColor;
}

.customNavItems {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.customNavItems a,
.customFooterLink {
  color: #111111;
  text-decoration: none;
}

.customNavItems a:hover,
.customFooterLink:hover,
.site-primary-navigation a:hover,
.site-brandmark:hover {
  text-decoration: underline;
}

.footer-meta-copy {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
}

/* Button auf großen Bildschirmen verstecken */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #111111;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- ZUSAMMENGEFASSTER BLOCK FÜR TABLET & MOBILE MENÜ (max 900px) --- */
@media (max-width: 900px) {
  .site-header-bar {
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between;
    flex-wrap: wrap;
    inset-block-start: 0.5rem; 
  }
  
  .site-brandmark img {
    width: min(140px, 30vw); 
  }

  .mobile-menu-toggle {
    display: block;
    background-color: #ff0; 
    color: #111111; 
    border-radius: 6px; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); 
    font-size: 1.5rem;
    padding: 0.35rem 0.6rem;
  }

  .site-primary-navigation {
    display: none; 
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .site-primary-navigation a {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .site-primary-navigation.is-open {
    display: flex;
  }

  .site-footer .section-row {
    grid-template-columns: 1fr;
  }
}

/* --- BLOCK FÜR KLEINE HANDYS (max 640px) --- */
@media (max-width: 640px) {
  .site-header-bar,
  .site-hero__content,
  .site-footer .container {
    width: min(100%, calc(100% - 1.25rem));
  }

  main.wp-block-group {
    width: min(720px, calc(100% - 1.25rem));
  }

  .site-primary-navigation {
    gap: 0.1rem;
  }

  .site-primary-navigation a {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .site-hero {
    background-position: 75% center;
    align-items: flex-end; 
    overflow: hidden; 
  }

  .site-hero__content {
    padding-top: 0; 
    padding-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .customSloganWrapper .hero-slogan-line-secondary {
    margin: -4px 0 6px 6px;
  }

  .footer-social-links {
    gap: 0.5rem;
  }

  .footerLinkIcon {
    width: 3rem;
    height: 3rem;
  }

  .footerLinkIcon svg {
    width: 2.2rem;
    height: 2.2rem;
  }

  .customNavItems {
    gap: 0.3rem 0.9rem;
    font-size: 0.94rem;
  }
}