/*
Theme Name: Kadence Child – Pyroladies
Template: kadence
Version: 1.1.0
Description: Child theme for the Pyroladies refresh – dark fire look, self-hosted fonts.
*/

/* ---------- Self-hosted fonts (DSGVO: no Google CDN) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/fraunces-700-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/figtree-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/figtree-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/figtree-700-normal.woff2) format('woff2');
}

/* ---------- Palette ---------- */
:root {
  --pyro-bg: #0d0908;
  --pyro-bg-soft: #161010;
  --pyro-panel: #1d1412;
  --pyro-text: #ece3d6;
  --pyro-text-soft: #c7bba9;
  --pyro-accent: #ff6b2b;
  --pyro-accent-soft: #ff8f5a;
  --pyro-ember: #e2401b;
}

/* ---------- Base ---------- */
body {
  background: var(--pyro-bg);
  color: var(--pyro-text);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}
h1, h2, h3, h4, .site-title {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--pyro-text);
  letter-spacing: 0.01em;
}
h1 em, h2 em { font-style: italic; font-weight: 700; }
a { color: var(--pyro-accent); }
a:hover { color: var(--pyro-accent-soft); }

html, body, .site, #wrapper, .site-container {
  background: var(--pyro-bg);
}
.entry-content-wrap, .content-bg, body.page .content-bg,
body.page .content-bg.entry-content-wrap,
.site-content, .content-area, .single-content,
.content-wrap, .single-entry {
  background: transparent !important;
}
body {
  --global-palette9: var(--pyro-bg);
  --global-palette8: var(--pyro-bg-soft);
  --global-palette7: var(--pyro-panel);
  --global-palette3: var(--pyro-text);
  --global-palette4: var(--pyro-text);
  --global-palette5: var(--pyro-text-soft);
  --global-content-bg: var(--pyro-bg);
}

/* Old inline styling neutralised: legacy red-on-black pills from previous theme */
.has-black-background-color { background-color: transparent !important; }
.has-vivid-red-color, [style*="color:#e62626"] { color: var(--pyro-text) !important; }

/* ---------- Header ---------- */
.site-header, #masthead, .site-header .site-header-row-container-inner {
  background: rgba(13, 9, 8, 0.96);
  border-bottom: 1px solid #2a1d18;
}
.site-header .site-title, .site-header a, .main-navigation a {
  color: var(--pyro-text);
  font-weight: 500;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a {
  color: var(--pyro-accent);
}
.site-branding img,
.site-header-item .custom-logo {
  max-height: 56px;
  width: auto !important;
  height: auto;
}

/* ---------- Mobile header + drawer menu ---------- */
@media (max-width: 1024px) {
  /* Logo collapses to 0 width inside Kadence's flex header on mobile — force it visible */
  .site-header-main-section-left,
  .site-header-main-section-left .site-header-item,
  .site-branding,
  .site-branding .brand {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  .site-branding .custom-logo {
    width: auto !important;
    max-height: 48px;
    display: block;
  }
}
/* Hamburger toggle: theme accent, not default blue. SVG draws via fill:currentColor */
.menu-toggle-open,
.menu-toggle-open .menu-toggle-icon,
.menu-toggle-open .kadence-svg-icon,
.mobile-toggle-open-container .menu-toggle-open {
  color: var(--pyro-text) !important;
  background: transparent !important;
}
.menu-toggle-open .kadence-menu-svg { fill: currentColor !important; }
/* Off-canvas drawer */
.popup-drawer .drawer-inner,
#mobile-drawer .drawer-inner {
  background: var(--pyro-bg) !important;
}
.popup-drawer .drawer-content,
.popup-drawer .mobile-navigation,
.popup-drawer .drawer-menu-container {
  background: transparent !important;
}
.popup-drawer .mobile-navigation a,
.popup-drawer .menu-item a,
.popup-drawer .drawer-menu-container a {
  color: var(--pyro-text) !important;
  border-bottom: 1px solid #2a1d18;
}
.popup-drawer .mobile-navigation .current-menu-item > a,
.popup-drawer .mobile-navigation a:hover {
  color: var(--pyro-accent) !important;
}
.popup-drawer .drawer-header .menu-toggle-close,
.popup-drawer .menu-toggle-close {
  color: var(--pyro-text) !important;
}

/* ---------- Hero + slider ---------- */
.pyro-hero {
  position: relative;
}
.pyro-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.pyro-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.pyro-slide.is-active { opacity: 1; }
.pyro-hero .wp-block-cover__background { z-index: 1; }
.pyro-hero .wp-block-cover__inner-container { z-index: 2; }
.pyro-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-style: italic;
  font-weight: 700;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7);
}
.pyro-hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--pyro-text);
  text-shadow: 0 1px 16px rgba(0,0,0,0.8);
}

/* ---------- Buttons ---------- */
.wp-block-button__link, .button, .kb-button {
  background: var(--pyro-accent);
  color: #16100d;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8em 2em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wp-block-button__link:hover {
  background: var(--pyro-accent-soft);
  color: #16100d;
  transform: translateY(-1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link,
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--pyro-accent) !important;
  border: 2px solid var(--pyro-accent);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover {
  background: var(--pyro-accent) !important;
  color: #16100d !important;
}

/* ---------- Sections ---------- */
.pyro-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.pyro-panel {
  background: var(--pyro-panel);
  border: 1px solid #2a1d18;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pyro-panel img { display: block; }
.pyro-panel > .wp-block-image { margin: 0; }
.pyro-panel > .wp-block-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}
.pyro-panel h3,
.pyro-panel p {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.pyro-panel > .wp-block-buttons {
  margin-top: auto;
  padding: 0.5rem 1.5rem 1.75rem;
}

/* ---------- Inner pages ---------- */
body.page .entry-header {
  padding-top: clamp(1.2rem, 3vw, 1.8rem);
  padding-bottom: 0;
  margin-bottom: 0;
}
body.page h1.entry-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-style: italic;
  text-align: center;
  margin-bottom: 0.25em;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Long single-word titles (e.g. Datenschutzerklärung) must not clip on small screens */
@media (max-width: 600px) {
  body.page h1.entry-title {
    font-size: clamp(1.25rem, 5.4vw, 2.2rem);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
body.page .entry-content { margin-top: 0; padding-top: 0; }
body.page .content-area { margin-top: 1.25rem; }
body.page .entry-content-wrap { padding-top: 0.5rem; }
body.page .entry-content > .wp-block-group:first-child { padding-top: 0; margin-top: 0; }
body.page .entry-content > .wp-block-group:first-child > p:first-child,
body.page .entry-content > p:first-child { margin-top: 0; }
body.page .pyro-show:first-child { margin-top: 0.5rem; }
.pyro-show + .pyro-show { margin-top: 3.5rem; }
.pyro-show h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-style: italic;
  margin-bottom: 0.2em;
}
.pyro-meta {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pyro-accent);
  margin-top: 0;
}
.wp-block-embed.is-type-video {
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.25rem;
}
hr.wp-block-separator {
  border-color: #2a1d18;
  opacity: 1;
}

/* ---------- Contact form (CF7) ---------- */
.wpcf7 {
  max-width: 640px;
  margin: 0 auto;
}
.wpcf7 label {
  display: block;
  font-weight: 500;
  margin-bottom: 1.1rem;
  color: var(--pyro-text);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  margin-top: 0.3rem;
  background: var(--pyro-panel);
  border: 1px solid #3a2a22;
  border-radius: 10px;
  color: var(--pyro-text);
  padding: 0.7em 1em;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
  outline: 2px solid var(--pyro-accent);
  border-color: var(--pyro-accent);
}
.wpcf7 input[type="submit"] {
  background: var(--pyro-accent);
  color: #16100d;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.8em 2.4em;
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--pyro-accent-soft); }
.wpcf7 form .wpcf7-response-output {
  border-color: var(--pyro-accent);
  border-radius: 10px;
  color: var(--pyro-text);
}
.pyro-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pyro-accent);
}
.wp-block-image img { border-radius: 14px; }

/* ---------- Footer ---------- */
.site-footer, .site-footer .site-footer-wrap, .footer-html {
  background: #0a0706;
  color: var(--pyro-text-soft);
}
.site-footer a { color: var(--pyro-text-soft); }
.site-footer a:hover { color: var(--pyro-accent); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .pyro-section { padding: 2.5rem 0; }
  .pyro-hero h1 { font-size: 2.4rem; }
}
