/* =============================================================
   CarneyDogs — Custom CSS v1.1.0
   ============================================================= */

/* ── 1. CSS CUSTOM PROPERTIES ── */
:root {
  --cd-forest:       #2B4C3F;
  --cd-forest-dark:  #1A3329;
  --cd-cream:        #EDE5D0;
  --cd-cream-light:  #F7F3EC;
  --cd-gold:         #B8966A;
  --cd-gold-light:   #D4B586;
  --cd-bark:         #2A2218;
  --cd-ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --cd-ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ── 2. BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: 'Cormorant Garamond', Georgia, serif; }
p { font-family: 'Jost', system-ui, sans-serif; }
::selection { background-color: var(--cd-gold); color: var(--cd-forest-dark); }


/* ── 3. DIAGONAL DIVIDER (hero → leistungen) ── */
.cd-diagonal-divider {
  display: block;
  margin-top: -1px;
  line-height: 0;
  background-color: #1A3329; /* matches hero */
}
.cd-diagonal-divider svg {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 80px);
}


/* ── 4. SITE HEADER ── */
/* ── STICKY HEADER — CSS override, FSE block attribute allein reicht nicht ── */

/*
  WordPress FSE setzt position:sticky via Inline-Style auf dem Block,
  aber parent-Container können overflow oder display-Werte haben,
  die sticky brechen. Diese Regeln erzwingen es zuverlässig.
*/
header.wp-block-template-part {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
}

.site-header {
  z-index: 1000;
  min-height: 68px;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transition: background-color 0.35s var(--cd-ease), box-shadow 0.35s var(--cd-ease);
}
.site-header.scrolled {
  background-color: rgba(26, 51, 41, 0.96) !important;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.18);
}
.site-header .header-site-title a {
  text-decoration: none;
  color: var(--cd-cream) !important;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}
.site-header .header-site-title a:hover { color: var(--cd-gold) !important; }

/* Nav links */
.primary-nav .wp-block-navigation__container { gap: 2rem; }
.primary-nav .wp-block-navigation-item__content {
  color: rgba(237, 229, 208, 0.8);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.22s ease;
  padding: 0;
  position: relative;
}
.primary-nav .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background-color: var(--cd-gold);
  transition: width 0.3s var(--cd-ease);
}
.primary-nav .wp-block-navigation-item__content:hover { color: var(--cd-gold) !important; }
.primary-nav .wp-block-navigation-item__content:hover::after { width: 100%; }

/* Nav CTA */
.nav-cta .wp-block-navigation-item__content {
  color: var(--cd-gold) !important;
  border: 1px solid rgba(184, 150, 106, 0.4);
  padding: 0.45rem 1rem;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-cta .wp-block-navigation-item__content:hover {
  background-color: var(--cd-gold) !important;
  color: var(--cd-forest-dark) !important;
  border-color: var(--cd-gold);
}
.nav-cta .wp-block-navigation-item__content::after { display: none; }

/* ── MOBILE MENU: force hamburger at 768px ── */

/* Hide desktop nav links and show hamburger at 768px */
@media (max-width: 768px) {
  .primary-nav .wp-block-navigation__container {
    display: none !important;
  }
  .primary-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
}

/* Hamburger button */
.wp-block-navigation__responsive-container-open {
  color: var(--cd-cream) !important;
  background: transparent !important;
  border: none !important;
  padding: 6px !important;
}
.wp-block-navigation__responsive-container-open svg {
  stroke: var(--cd-cream) !important;
  width: 26px !important;
  height: 26px !important;
}

/* ── FULL-PAGE FLYOUT OVERLAY ── */
.wp-block-navigation__responsive-container {
  display: none;
}
.wp-block-navigation__responsive-container.is-menu-open {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background-color: var(--cd-forest-dark) !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden;
  animation: flyoutOpen 0.35s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

@keyframes flyoutOpen {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo/brand mark inside overlay */
.wp-block-navigation__responsive-container.is-menu-open::before {
  content: 'CARNEY DOGS';
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: rgba(237,229,208,0.35);
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Close button */
.wp-block-navigation__responsive-container-close {
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  color: var(--cd-cream) !important;
  background: transparent !important;
  border: none !important;
  opacity: 0.7;
  padding: 6px !important;
  transition: opacity 0.2s;
}
.wp-block-navigation__responsive-container-close:hover {
  opacity: 1;
}
.wp-block-navigation__responsive-container-close svg {
  stroke: var(--cd-cream) !important;
  width: 28px !important;
  height: 28px !important;
}

/* Nav links in flyout — stacked, centered, large */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(184,150,106,0.12);
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item:first-child {
  border-top: 1px solid rgba(184,150,106,0.12);
}

.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
  display: block !important;
  width: 100% !important;
  padding: 1.1rem 2rem !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--cd-cream) !important;
  transition: color 0.2s ease, background-color 0.2s ease !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content:hover {
  color: var(--cd-gold) !important;
  background-color: rgba(184,150,106,0.06) !important;
}
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content::after {
  display: none !important;
}

/* CTA item in flyout */
.wp-block-navigation__responsive-container.is-menu-open
  .nav-cta .wp-block-navigation-item__content {
  color: var(--cd-gold) !important;
  border: none !important;
  background: transparent !important;
  padding: 1.1rem 2rem !important;
}

/* Gold tagline below nav items */
.wp-block-navigation__responsive-container.is-menu-open::after {
  content: 'Hundeschule & Betreuung · Limbach-Oberfrohna';
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184,150,106,0.55);
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}


/* ── 5. HERO ── */
.hero-section { position: relative; overflow: hidden; margin-top: 0px;}

/* Grain texture */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
/* Radial glow */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(59, 100, 85, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-section .wp-block-cover__inner-container { position: relative; z-index: 2; }

/* Hero animations */
.hero-eyebrow { opacity:0; animation: fadeSlideUp 0.8s var(--cd-ease-out) 0.3s forwards; }
.hero-heading  { opacity:0; animation: fadeSlideUp 0.9s var(--cd-ease-out) 0.5s forwards; }
.hero-subtitle { opacity:0; animation: fadeSlideUp 0.8s var(--cd-ease-out) 0.75s forwards; }
.hero-buttons  { opacity:0; animation: fadeSlideUp 0.8s var(--cd-ease-out) 0.95s forwards; }
.hero-scroll-hint { opacity:0; animation: fadeIn 1s ease 1.4s forwards, bounceDown 2.5s ease 2s infinite; }

@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
@keyframes bounceDown {
  0%,100% { transform:translateY(0); }
  50%     { transform:translateY(6px); }
}


/* ── 6. PHILOSOPHY STRIP ── */
.philosophy-strip { position: relative; overflow: hidden; }
.philosophy-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(138,110,69,0.4) 0%, transparent 50%, rgba(138,110,69,0.4) 100%);
  pointer-events: none;
}
.philosophy-strip p { position: relative; z-index: 1; }


/* ── 7. SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--cd-ease-out), transform 0.75s var(--cd-ease-out);
}
.reveal.is-visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }


/* ── 8. SERVICE CARDS ── */
.service-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  transition: transform 0.3s var(--cd-ease), box-shadow 0.3s var(--cd-ease), border-color 0.3s ease !important;
  cursor: default;
}
/* Gold top accent bar */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cd-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--cd-ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(43, 76, 63, 0.12);
  border-color: rgba(184, 150, 106, 0.5) !important;
}
.service-card:hover::before { transform: scaleX(1); }

/* "Mehr erfahren" card CTA button */
.cd-card-cta .wp-block-button__link {
  color: var(--cd-forest) !important;
  border-color: rgba(43, 76, 63, 0.35) !important;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
.cd-card-cta .wp-block-button__link:hover {
  background-color: var(--cd-forest) !important;
  color: var(--cd-cream) !important;
  border-color: var(--cd-forest) !important;
  transform: none;
  box-shadow: none;
}


/* ── 9. PRICING ROWS (replaces wp:table) ── */
.cd-price-rows {
  border-top: 2px solid var(--cd-gold);
}
.cd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(42, 34, 24, 0.08);
  transition: background-color 0.2s ease;
}
.cd-price-row:hover {
  background-color: rgba(184, 150, 106, 0.05);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.cd-price-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cd-bark);
  font-family: 'Jost', sans-serif;
}
.cd-price-label em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(42, 34, 24, 0.5);
  margin-top: 1px;
}
.cd-price-amount {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cd-gold);
  font-family: 'Cormorant Garamond', serif;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Pricing column divider */
.section-pricing .pricing-col {
  position: relative;
}
.section-pricing .pricing-col:first-child::after {
  content: '';
  position: absolute;
  top: 0; right: -2rem; bottom: 0;
  width: 1px;
  background: rgba(184, 150, 106, 0.15);
}

.pricing-notes {
  transition: border-color 0.3s ease;
}
.pricing-notes:hover {
  border-color: rgba(184, 150, 106, 0.45) !important;
}


/* ── 10. PHILOSOPHIE SECTION ── */
.philosophy-logo-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 300px;
  aspect-ratio: 1;
  transition: border-color 0.4s ease;
}
.philosophy-logo-circle:hover {
  border-color: rgba(184, 150, 106, 0.5) !important;
}
.philosophy-quote {
  border-left: 3px solid var(--cd-gold);
}


/* ── 11. ABOUT SECTION ── */
.about-image-col .wp-block-image img {
  transition: transform 0.5s var(--cd-ease);
}
.about-image-col:hover .wp-block-image img {
  transform: scale(1.03);
}
.about-image figure {
  background: linear-gradient(135deg, var(--cd-forest) 0%, var(--cd-forest-dark) 100%);
  min-height: 200px;
  width: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image figure::after {
  content: 'CD';
  color: var(--cd-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  opacity: 0.5;
}
.about-image figure img[src=""] { display: none; }


/* ── 12. CONTACT ── */
.contact-card {
  height: 100%;
  transition: border-color 0.3s ease;
}
.contact-card:hover { border-color: rgba(184, 150, 106, 0.4) !important; }
.contact-card--highlight {
  background: linear-gradient(135deg, rgba(43, 76, 63, 0.3) 0%, rgba(26, 51, 41, 0.15) 100%);
}


/* ── 13. SERVICE DETAIL PAGE ── */
.cd-service-page-content .wp-block-post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(42, 34, 24, 0.8);
}
.cd-service-page-content .wp-block-post-content h2,
.cd-service-page-content .wp-block-post-content h3 {
  color: var(--cd-forest);
  margin-top: 2rem;
}
.cd-service-page-content .wp-block-post-content ul {
  padding-left: 1.5rem;
}
.cd-service-page-content .wp-block-post-content ul li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}
.cd-service-page-content .wp-block-post-content ul li::marker {
  color: var(--cd-gold);
}
.cd-service-page-content .wp-block-post-content strong {
  color: var(--cd-forest);
  font-weight: 600;
}


/* ── 14. BUTTONS ── */
.wp-block-button__link {
  transition: background-color 0.25s var(--cd-ease),
              color 0.25s var(--cd-ease),
              transform 0.2s var(--cd-ease),
              box-shadow 0.25s var(--cd-ease) !important;
  position: relative;
  overflow: hidden;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.wp-block-button__link:active { transform: translateY(0); }
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease !important;
}


/* ── 15. FOOTER ── */
.site-footer { position: relative; }
.site-footer::before {
  content: '';
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.site-footer a:hover { color: var(--cd-gold-light) !important; text-decoration: none !important; }
.footer-divider { margin-top: 3rem !important; margin-bottom: 1.5rem !important; }


/* ── 16. GENERAL ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--cd-gold) !important;
  opacity: 0.3;
  max-width: 80px;
  margin-left: auto;
  margin-right: auto;
}
.site-logo-block img, .wp-block-site-logo img { max-width: 44px !important; height: auto; }
html.wp-toolbar .site-header { top: 32px; }


/* ── 17. RESPONSIVE — TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  .section-philosophy .wp-block-columns { flex-direction: column; }
  .section-philosophy .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100%;
    padding-left: var(--wp--preset--spacing--md) !important;
    padding-right: var(--wp--preset--spacing--md) !important;
  }
  .philosophy-image-col { min-height: 300px; }

  /* Pricing divider hides on tablet when stacked */
  .section-pricing .pricing-col:first-child::after { display: none; }
}


/* ── 18. RESPONSIVE — MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  /* Header */
  .site-header {
    min-height: 58px;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Hero */
  .hero-section { min-height: 100svh; }

  /* Diagonal divider — smaller on mobile */
  .cd-diagonal-divider svg { height: 36px; }

  /* Service cards — 2 per row on mobile */
  .section-services .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .section-services .wp-block-column { flex-basis: auto !important; }

  /* Pricing — stack columns */
  .section-pricing .wp-block-columns { flex-direction: column; }

  /* About — stack */
  .section-about .wp-block-columns { flex-direction: column; }
  .section-about .wp-block-column { flex-basis: 100% !important; }

  /* Contact — stack */
  .section-contact .wp-block-columns { flex-direction: column; }

  /* Footer — stack */
  .site-footer .wp-block-columns { flex-direction: column; }
  .site-footer .wp-block-column { flex-basis: 100% !important; }
}


/* ── 19. RESPONSIVE — SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  /* Service cards — single column */
  .section-services .wp-block-columns { grid-template-columns: 1fr; }

  /* Hero buttons stack */
  .hero-buttons .wp-block-buttons { flex-direction: column; align-items: center; }

  .philosophy-logo-circle {
    width: 220px;
    min-height: 220px;
    padding: 1.5rem !important;
  }

  /* Pricing rows on tiny screens */
  .cd-price-row { flex-wrap: wrap; gap: 0.25rem; }
  .cd-price-amount { margin-left: auto; }
}


/* ── 20. ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid var(--cd-gold);
  outline-offset: 3px;
}
.wp-block-navigation-item__content:focus-visible {
  outline: 2px solid var(--cd-gold);
  outline-offset: 3px;
  border-radius: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── 21. EDITOR OVERRIDES ── */

/*
  WordPress FSE rendert Hintergrundfarben von Gruppen im Editor
  manchmal nicht. Das macht hellen Text auf dunklem Hintergrund
  unsichtbar. Diese Regeln erzwingen Farben im Editor-Kontext,
  damit alles auch ohne Spotlight Mode sichtbar ist.
*/

.editor-styles-wrapper {
  font-family: 'Jost', system-ui, sans-serif;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Hero-Bereich: weißer/cremefarbener Text im Editor erzwingen */
.editor-styles-wrapper .hero-section .hero-eyebrow,
.editor-styles-wrapper .hero-section .hero-heading,
.editor-styles-wrapper .hero-section .hero-subtitle,
.editor-styles-wrapper .hero-section .hero-scroll-hint {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Alle has-cream-color und has-white-color Texte sichtbar machen */
.editor-styles-wrapper .has-cream-color {
  color: #EDE5D0 !important;
}
.editor-styles-wrapper .has-gold-color {
  color: #B8966A !important;
}

/* Gruppen mit forest-dark Hintergrund: Text lesbar halten */
.editor-styles-wrapper .has-forest-dark-background-color p,
.editor-styles-wrapper .has-forest-dark-background-color h1,
.editor-styles-wrapper .has-forest-dark-background-color h2,
.editor-styles-wrapper .has-forest-dark-background-color h3,
.editor-styles-wrapper .has-forest-dark-background-color span,
.editor-styles-wrapper .has-forest-dark-background-color li {
  color: rgba(237, 229, 208, 0.85);
}

.editor-styles-wrapper .has-forest-background-color p,
.editor-styles-wrapper .has-forest-background-color h1,
.editor-styles-wrapper .has-forest-background-color h2,
.editor-styles-wrapper .has-forest-background-color h3,
.editor-styles-wrapper .has-forest-background-color span,
.editor-styles-wrapper .has-forest-background-color li {
  color: rgba(237, 229, 208, 0.85);
}

/* Gold-Hintergrund: dunklen Text erzwingen */
.editor-styles-wrapper .has-gold-background-color p,
.editor-styles-wrapper .has-gold-background-color h2,
.editor-styles-wrapper .has-gold-background-color h3 {
  color: #1A3329 !important;
}

/* Inline-Farben (rgba) im Editor lesbar halten */
.editor-styles-wrapper [style*="color:rgba(237"] {
  color: rgba(237, 229, 208, 0.85) !important;
}

/* Reveal-Animationen im Editor deaktivieren */
.editor-styles-wrapper .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Service-Cards im Editor immer vollständig sichtbar */
.editor-styles-wrapper .service-card::before {
  transform: scaleX(1) !important;
}

/* Pricing-Rows im Editor stylen */
.editor-styles-wrapper .cd-price-rows {
  border-top: 2px solid #B8966A;
}
.editor-styles-wrapper .cd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(42, 34, 24, 0.08);
}
.editor-styles-wrapper .cd-price-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2A2218;
  font-family: 'Jost', sans-serif;
}
.editor-styles-wrapper .cd-price-label em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(42, 34, 24, 0.5);
}
.editor-styles-wrapper .cd-price-amount {
  font-size: 1.05rem;
  font-weight: 600;
  color: #B8966A;
  font-family: 'Cormorant Garamond', serif;
  white-space: nowrap;
}





/* ══════════════════════════════════════════════════════════════
   CONTACT FORM 7 — vollständiges Brand-Styling
   Überschreibt alle CF7-Defaults mit dem CarneyDogs Design.
   ══════════════════════════════════════════════════════════════ */

/* Wrapper reset */
.wpcf7 { margin: 0; }
.wpcf7 form { margin: 0; }

/* ── Feldstruktur (via CF7-Template HTML-Wrapper) ── */
.cd-cf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cd-cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cd-cf7-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cd-cf7-group label,
.cd-cf7-form label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 229, 208, 0.6) !important;	
}

.cd-cf7-group .cd-req,
.cd-cf7-form .cd-req {
  color: #B8966A;
  margin-left: 2px;
}

/* ── Inputs, Selects, Textareas ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(184, 150, 106, 0.25) !important;
  border-radius: 0 !important;
  color: #EDE5D0 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  padding: 0.85rem 1rem !important;
  width: 100% !important;
  transition: border-color 0.2s ease, background-color 0.2s ease !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: rgba(184, 150, 106, 0.65) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(237, 229, 208, 0.25) !important;
}

/* Select arrow */
.wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8966A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
  cursor: pointer !important;
}

.wpcf7 select option {
  background: #1A3329;
  color: #EDE5D0;
}

/* Textarea */
.wpcf7 textarea {
  resize: vertical !important;
  min-height: 140px !important;
  line-height: 1.7 !important;
}

/* ── Checkbox (DSGVO) ── */
.wpcf7 .wpcf7-list-item {
  margin: 0 !important;
}

.wpcf7 .wpcf7-list-item label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  font-size: 0.82rem !important;
  font-weight: 300 !important;
  color: rgba(237, 229, 208, 0.55) !important;
  line-height: 1.65 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.wpcf7 input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  border: 1px solid rgba(184, 150, 106, 0.4) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 2px !important;
  accent-color: #B8966A !important;
  cursor: pointer !important;
}

/* ── Submit Button ── */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  background: #B8966A !important;
  color: #1A3329 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 1.1rem 2.5rem !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background-color 0.25s ease, transform 0.2s ease !important;
  width: auto !important;
  min-width: 200px;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  background: #D4B586 !important;
  transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0) !important;
}

.wpcf7 input[type="submit"]:disabled,
.wpcf7 .wpcf7-submit.wpcf7-active {
  opacity: 0.6 !important;
  transform: none !important;
  cursor: not-allowed !important;
}

/* ── Validation & Error States ── */
.wpcf7 .wpcf7-not-valid {
  border-color: rgba(226, 75, 74, 0.6) !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 300 !important;
  color: #F09595 !important;
  margin-top: 4px !important;
  display: block;
}

/* Response messages */
.wpcf7 .wpcf7-response-output {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  padding: 1rem 1.25rem !important;
  margin: 1.5rem 0 0 !important;
  border-radius: 0 !important;
  border-width: 0 0 0 3px !important;
  border-style: solid !important;
}

/* Success */
.wpcf7 .wpcf7-form.sent .wpcf7-response-output {
  border-color: #5DCAA5 !important;
  background: rgba(93, 202, 165, 0.08) !important;
  color: rgba(237, 229, 208, 0.9) !important;
}

/* Error / invalid */
.wpcf7 .wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 .wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7 .wpcf7-form.failed .wpcf7-response-output {
  border-color: #E24B4A !important;
  background: rgba(226, 75, 74, 0.08) !important;
  color: rgba(237, 229, 208, 0.9) !important;
}

/* Spam */
.wpcf7 .wpcf7-form.spam .wpcf7-response-output {
  border-color: #EF9F27 !important;
  background: rgba(239, 159, 39, 0.08) !important;
  color: rgba(237, 229, 208, 0.9) !important;
}

/* Loading spinner color */
.wpcf7 .wpcf7-spinner {
  background-color: #B8966A !important;
}

/* ── CF7 form links ── */
.wpcf7 a {
  color: #B8966A !important;
  text-decoration: none !important;
}
.wpcf7 a:hover {
  text-decoration: underline !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .cd-cf7-row {
    grid-template-columns: 1fr;
  }

  .wpcf7 input[type="submit"],
  .wpcf7 .wpcf7-submit {
    width: 100% !important;
    text-align: center !important;
  }
}



/* ── SCROLL-TO-TOP BUTTON ── */
.cd-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: var(--cd-forest-dark);
  border: 1px solid rgba(184, 150, 106, 0.4);
  color: var(--cd-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--cd-ease),
    transform 0.3s var(--cd-ease),
    background-color 0.2s ease,
    border-color 0.2s ease;
  pointer-events: none;
}

.cd-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cd-scroll-top:hover {
  background: var(--cd-forest);
  border-color: rgba(184, 150, 106, 0.7);
}

.cd-scroll-top:active {
  transform: translateY(2px);
}

.cd-scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.cd-scroll-top:hover svg {
  transform: translateY(-2px);
}

/* Mobile: etwas kleiner und weiter innen */
@media (max-width: 768px) {
  .cd-scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-scroll-top {
    transition: opacity 0.01ms !important;
    transform: none !important;
  }
}

/* Equal height cards — button always at bottom */
.service-card {
  display: flex !important;
  flex-direction: column !important;
}

/* Description grows to fill available space */
.service-card > p.wp-block-paragraph {
  flex: 1 !important;
}

/* Price group and button stay at bottom */
.service-card .wp-block-group[style*="border-top"] {
  margin-top: 20px;
}

#cmplz-manage-consent .cmplz-manage-consent {
	margin-right: 50px !important;
}
