/* Einheitlicher Bildstil + Platzhalterhöhe, damit nichts springt */
.abc-inhalt img {
  display:block;
  max-width:100%;
  height:auto;
  margin:1.5em auto;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  border:3px solid #e0e0e0;
}

/* optional: wenn du die Höhe festhalten willst, falls width/height fehlen */
.abc-inhalt img[width][height] { aspect-ratio: attr(width number) / attr(height number); }




/* Hintergrundfarbe – nur falls noch nicht gesetzt */
body { background:#fdfcfb; }

/* Klasse im Gutenberg-Bildblock: img-fade */
.wp-block-image.img-fade{ 
  position: relative; 
  overflow: visible !important;
}
.wp-block-image.img-fade > img,
.wp-block-image.img-fade > a > img { display:block; }

/* weiche, nicht-ovale Ränder mit leicht organischer Kante */
.wp-block-image.img-fade::after{
  content:"";
  position:absolute; top:0; right:0; bottom:0; left:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 8%,   #fdfcfb 58%, transparent 100%) top left/48px 48px no-repeat,
    radial-gradient(circle at 88% 6%,   #fdfcfb 62%, transparent 100%) top right/48px 48px no-repeat,
    radial-gradient(circle at 10% 92%,  #fdfcfb 55%, transparent 100%) bottom left/48px 48px no-repeat,
    radial-gradient(circle at 86% 90%,  #fdfcfb 60%, transparent 100%) bottom right/48px 48px no-repeat,
    linear-gradient(to bottom, #fdfcfb, transparent) top/100% 48px no-repeat,
    linear-gradient(to top,    #fdfcfb, transparent) bottom/100% 48px no-repeat,
    linear-gradient(to right,  #fdfcfb, transparent) left/48px 100% no-repeat,
    linear-gradient(to left,   #fdfcfb, transparent) right/48px 100% no-repeat;
}


/* Variante: weicher (größere Fade-Breite) */
.wp-block-image.img-fade--soft { --fade: 120px; }

/* Wenn der Block overflow versteckt, Fade erlauben */
.wp-block-image.img-fade { overflow: visible !important; }






.img-h300 {
  height: 300px;
  width: auto !important;        /* proportional skalieren */
  display: block;                /* sauberer Zentrier-Flow */
  margin-inline: auto;           /* zentrieren */
  max-width: 100%;               /* nicht größer als Container */
  object-fit: contain;           /* falls Themes Höhenbegrenzung erzwingen */
}



/* Notbremse: neutralisiere alte Link-Overrides im Header */

.ct-header a,
.ct-header nav a,
.ct-header .menu > li > a,
.ct-header .ct-menu-items .menu-item > a,
.ct-header a.ct-menu-link,
.ct-header .sub-menu a {
  background: transparent !important;
  color: #cc8181;
  text-shadow: none !important;
  border: 0 !important;
  font-size: 1em;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  font-size: 1em;
  font-style: normal;
  margin: 0px;
  font-weight: 400;
}

nav[class*=menu] .ct-menu-link {
  font-weight: 700;
}

#header [data-row*=middle] {
  opacity: 0.9;
}

.ct-header .menu > li.current-menu-item > a.ct-menu-link,
.ct-header .menu > li.current_page_item > a.ct-menu-link {
  font-size: 1.2em;
  color: #9c0e0e !important;
}

body.page-id-545 .ct-header .menu > li.current-menu-item > a.ct-menu-link {
  font-size: 1.15em !important;
}

.coaching-angebot {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em;
}

.coaching-angebot-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.coaching-angebot-title img {
  margin-left: 0.5em;
  /* Abstand zwischen Text und Nuss */
}

.coaching-angebot-titel img {
  width: 62px;
  height: auto;
  margin-left: 0em;
  margin-bottom: 0.5em;
}

.textblock-angebot {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

.akzent {
  font-family: 'Garamond', serif;
  font-style: italic;
  letter-spacing: 0.2px;
  font-size: 1.2em;
}

.textblock-angebot strong {
  font-weight: 600;
}

@media (max-width: 600px) {
  .coaching-angebot-title {
    text-align: left !important;
    display: block !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 600px) {
  h1,
  h2,
  h3 {
    text-align: left !important;
    margin-left: 0 !important;
  }
}

li.menupunkt_psychologieabc > a {
  flex-direction: column;
  align-items: center;
  padding-bottom: 0.6em;
  /* fein anpassen! */
}

li.menupunkt_psychologieabc > a > .ct-toggle-dropdown-desktop {
  position: absolute;
  bottom: 1.2em;
  /* sorgt dafür, dass der Pfeil nicht den Text verschiebt */
}

.menupunkt_dieschale > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  /* reduziert den Zeilenabstand, falls nötig */
  text-align: center;
  white-space: normal;
  /* bricht ggf. langen Text um */
}

/* Damit alle Menüpunkte mit Untertitel schön untereinander stehen */

.menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.untertitel-menupunkt {
  font-size: 0.6em;
  font-family: 'Inter', sans-serif;
  color: #777;
  letter-spacing: 0.5px;
  text-transform: none;
  line-height: 1.2;
}

body.home .untertitel-menupunkt {
  color: #eaeaea !important;
}

body:not(.home) .ct-icon {
  fill: #656564 !important;
  color: #656564 !important;
}

.poetischer-lebensweg {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  max-width: 720px;
  margin: 4em auto;
  padding: 0 1em;
}

.poetischer-lebensweg h3 {
  text-align: center;
  margin-bottom: 1em;
}

.poetischer-lebensweg p {
  margin-bottom: 1em;
}

.poetischer-lebensweg p strong {
  font-family: 'Garamond', serif;
  font-style: italic;
  letter-spacing: 0.2px;
}

.poetischer-lebensweg .akzent {
  font-family: 'Garamond', serif;
  font-style: italic;
  letter-spacing: 0.2px;
  font-size: 1.2em;
}

.textblock-philosophie {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

.textblock-philosophie .akzent {
  font-family: 'Garamond', serif;
  font-style: italic;
  letter-spacing: 0.2px;
}

blockquote {
  font-family: 'Garamond', serif;
  font-style: italic;
  text-align: center;
  margin: 3em auto;
  max-width: 600px;
  font-size: 1.2em;
  color: #555;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-left: none;
  border-right: none;
  padding: 1em 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  background: none;
}

.jd-footer-kontakt {
  font-size: 0.9em;
  text-align: center;
  margin-top: 3em;
  padding: 1.5em 1em;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  color: #666;
  line-height: 1.5;
}

.jd-footer-kontakt p {
  margin: 0.5em 0;
}

.jd-footer-kontakt a {
  color: inherit;
  text-decoration: underline;
}

/* Vereinheitlicht die Breite des Formulars mit dem Seiteninhalt */

.wpforms-container,
.wpcf7,
form {
  max-width: 800px;
  /* gleiche Breite wie Bloxy-Content */
  margin: 0 auto;
  /* zentriert */
  padding-left: 1em;
  padding-right: 1em;
}

.ff-el-group .ff-el-label:after {
  content: " *";
  color: #b30000;
  font-weight: bold;
  margin-left: 0.3em;
}

.menu-item.menupunkt_dieschale > a::after {
  content: "Ein persönlicher Gedanke";
  display: block;
  font-size: 0.7em;
  color: #888;
  font-style: italic;
  line-height: 1.2;
  margin-top: -0.3em;
}

/* mobil ausblenden */

@media (max-width: 7680px) {
  .menu-item.menupunkt_dieschale > a::after {
    display: none;
  }
}

.ungueltig {
  border: 2px solid #c62828 !important;
  background-color: #fff5f5;
  transition: border 0.3s ease;
}

#ff_3_input_text {
  background-image: url('https://joydecision.de/wp-content/uploads/2025/05/telefon.jpg');
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 0.6em center;
  padding-left: 2.4em;
}

.grecaptcha-badge {
  opacity: 0.5;
  /* Halbtransparent */
  bottom: 30px !important;
  /* Position leicht anheben */
  z-index: 9999 !important;
  transition: opacity 0.3s ease;
}

.grecaptcha-badge:hover {
  opacity: 0.9;
  /* Bei Hover fast ganz sichtbar */
}

/* === CSS Seiten === */

/* Coaching-Bereich Container */

.coaching-angebot {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1.5em;
  background-color: #fdfdfc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: 'Inter', sans-serif;
  /* Fließtext in Inter */
  font-size: 1.05em;
  line-height: 1.65;
  color: #333;
}

/* Überschrift im Coaching-Bereich Garamond */

.coaching-angebot h3 {
  font-family: "Garamond", "Georgia", serif;
  font-size: 2.0em;
  font-weight: 600;
  margin-bottom: 1em;
  color: #2a2a2a;
}

/* Hervorhebungen im Fließtext */

.coaching-angebot strong {
  font-weight: 600;
  color: #444;
}

/* Absatzabstand */

.coaching-angebot p {
  margin-bottom: 1.2em;
}

/* Optional: Link-Stil innerhalb des Coaching-Blocks */

.coaching-angebot a {
  color: #5a4d3b;
  text-decoration: underline;
}

.coaching-angebot a:hover {
  color: #8c785c;
  text-decoration: none;
}

.save-entry {
  z-index: 1000;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #ccc;
  padding: 0.3em 0.8em;
  margin-right: 1em;
  border-radius: 0.3em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.delete-entry {
  z-index: 1000;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #ccc;
  padding: 0.3em 0.8em;
  border-radius: 0.3em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #ccc;
  padding: 0.6em 0.8em;
  border-radius: 0.6em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  max-width: fit-content;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.floating-buttons button {
  padding: 0.4em 0.8em;
  font-size: 0.85em;
  background: #f5f5f5;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.floating-buttons button:hover {
  background: #e6e6e6;
}

.rundes-bild {
  width: 200px;
  /* oder eine andere Größe */
  height: 300px;
  object-fit: cover;
  border-radius: 5%;
  border: 3px solid #ccc;
  /* graue Border */
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.7);
  /* optionaler Schatten */
  margin-top: 2em;
  max-width: 100%;
  height: auto;
}

/* === RESET & GLOBALS === */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --theme-content-vertical-spacing: 0px;
}

body {
  background: #fdfcfb;
  color: #333;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

/* === STARTSEITE === */

body.home {
  overflow: hidden;
  height: 100%;
}

body.home a,
body.home .ct-header a,
body.home nav a {
  color: #ffeda5 !important;
}

body.home a:hover,
body.home .ct-header a:hover,
body.home nav a:hover {
  color: #fff !important;
}

body.home .site-logo img {
  width: 200px;
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(45deg) brightness(1.2);
}

@media (max-width: 768px) {
  body.home .site-logo img {
    width: 140px;
  }
}

body.home .page-title,
body.home .joy-footer-symbol {
  display: none;
}

.home .wp-block-cover,
.home .wp-site-blocks,
.home .is-layout-constrained,
.home .wp-block-post-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* === LERNSEITE SPEZIAL: Page ID 2908 === */

body.page-id-2908 header,
body.page-id-2908 .site-header,
body.page-id-2908 footer {
  display: none !important;
}

/* === LAYOUT GRUNDSTRUKTUR === */

.cover-section,
.custom-fullwidth {
  width: 100% !important;
  max-width: 100%;
}

body:not(.home) {
  overflow-x: visible;
}

/* === HEADER === */

.page:not(.home) main {
  padding-top: 6rem;
}

.page-header .page-title {
  display: none !important;
}

.site-header,
.ct-header,
.ct-header-main,
.ct-header-main-inner {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  z-index: 10000;
}

.ct-header-navigation,
.ct-header-navigation .menu,
.ct-header-navigation .menu > li > a,
.site-header::before,
.site-header::after,
.ct-header::before,
.ct-header::after {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  content: none !important;
}

/* === INHALT & TYPOGRAFIE === */

body,
.page,
.site-content,
.entry-content,
.container,
.wp-block-group {
  background-color: #fdfcfb !important;
}

#content,
.site-content,
.entry-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
}

body:not(.home) .page-content,
body:not(.home) .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 4rem;
}

.page-content h1,
.entry-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.page-content h2,
.entry-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #444;
}

.page-content p,
.entry-content p,
.page-content li,
.entry-content li {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #333;
}

.page-content ul,
.entry-content ul {
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

/* === LINKS === */

a {
  color: #5a5a5a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #111111;
}

/* === HEADER-LINKS DUNKLER AUF UNTERSEITEN === */

body:not(.home) .ct-header a,
body:not(.home) nav a {
  color: #333 !important;
}

body:not(.home) .ct-header a:hover,
body:not(.home) nav a:hover {
  color: #000 !important;
}

body:not(.home) .site-description {
  color: #444 !important;
}

.site-title-container {
  position: relative;
  left: 0px;
  margin-bottom: 0;
}

.site-description {
  margin-top: 1.6em !important;
  margin-left: 0;
  text-align: left;
  font-size: 1.15em;
  font-style: italic;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

body.home .site-description {
  color: #fff;
}

.site-description br {
  line-height: 1.1;
  margin: 0;
  padding: 0;
}

.site-title {
  display: block;
  text-align: left;
}

@media (max-width: 600px) {
  .site-title {
    font-size: 2em;
    text-align: left !important;
  }

  .site-description {
    font-size: 1em;
    margin-top: 1.2em;
    line-height: 1.3;
    text-align: left;
  }

  .site-title-container {
    left: 10px;
  }
}

@media (max-width: 900px) {
  .site-title-container {
    left: -10px;
    /* Weniger Verschiebung auf Tablet */
  }
}

@media (max-width: 600px) {
  .site-title-container {
    left: 0;
    padding-left: 10px;
  }
}

/* === INTRO-ANIMATION === */

.joy-text-container {
  position: relative;
  height: 4.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.joy-text1,
.joy-text2 {
  position: absolute;
  opacity: 0;
  font-size: 3.5rem;
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  transform: translateX(-50%);
  left: 50%;
  top: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .joy-text1,
  .joy-text2 {
    font-size: 1.4rem;
  }
}

.joy-text1 {
  animation: fadeInOnly 3s ease-in-out 0s forwards, fadeOut 3s ease-in-out 5s forwards;
}

.joy-text2 {
  animation: fadeInOnly 3s ease-in-out 8s forwards;
}

@keyframes fadeInOnly {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

body.fade-out {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* === MENÜ === */

.ct-header .sub-menu a {
  font-variant: small-caps;
  text-align: center;
  display: block;
  letter-spacing: 0.5px;
}

.sub-menu .ct-menu-link {
  border: 1px solid #fff !important;
  /* Rahmenfarbe nach Wunsch */
  background-color: #333;
  padding: 4px 8px;
  /* etwas Innenabstand */
  display: inline-block;
  /* saubere Darstellung */
}

/* === MOBILE MENU: Basis === */

#joy-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.4s ease;
  font-family: 'Inter', sans-serif;
}

#joy-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

#joy-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#joy-mobile-menu li {
  margin: 0.4rem 0;
}

#joy-mobile-menu a {
  font-size: 1.3rem;
  color: #444;
  text-decoration: none;
  transition: color 0.3s ease;
}

#joy-mobile-menu a:hover {
  color: #000;
}

#joy-mobile-menu ul.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.0s ease, padding-bottom 0.5s ease;
}

#joy-mobile-menu .has-submenu.open > .submenu {
  max-height: 500px;
  padding-bottom: 2em;
}

.menu-label {
  display: block;
  padding: 0.5em 0.5em;
  cursor: pointer;
  position: relative;
  font-size: 1.1em;
}

.menu-label::after {
  content: "▸";
  position: absolute;
  right: -0.5em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.has-submenu.open > .menu-label::after {
  transform: rotate(90deg);
}

/* Untermenü mit Smooth Transition */

#joy-mobile-menu ul.submenu {
  max-height: 0;
  overflow: hidden;
  padding-left: 1em;
  font-size: 0.7em;
  padding-bottom: 0;
  transition: max-height 1.0s ease, padding-bottom 0.5s ease;
}

#joy-mobile-menu .has-submenu.open > .submenu {
  max-height: 500px;
  padding-bottom: 2em;
}

.menu-label {
  display: block;
  padding: 0.5em 0.5em;
  cursor: pointer;
  position: relative;
  font-size: 1.1em;
  text-decoration: none;
  font-family: inherit;
  font-weight: normal;
  color: inherit;
}

.menu-label::after {
  content: "▸";
  position: absolute;
  right: -0.5em;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -0.05em;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

@media screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
  .menu-label::after {
    margin-top: -0.15em;
    /* Nur iPhones */
  }
}

.has-submenu.open > .menu-label::after {
  transform: rotate(90deg);
}

#joy-mobile-menu a,
#joy-mobile-menu .menu-label {
  color: white !important;
}

.wpc-filters-overlay {
  display: none !important;
}

#joy-mobile-menu a .subline {
  display: block;
  font-size: 0.65em;
  margin-top: -0.2em;
  color: #888;
}

#joy-mobile-menu a:hover {
  color: #333;
}