/*
Theme Name:   Divi Child
Theme URI:    https://ein.coach
Description:  Mein Divi-Child-Theme
Author:       Mark Hellwig
Author URI:   https://ein.coach
Template:     Divi
Version:      1.0.2 – 05.07.2025 – Grundstruktur neu, saubere Typo und Formulare
*/

/* =====================================================
   GLOBAL: Grundschrift, Farben, Headlines
===================================================== */
body {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #474747;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  font-weight: bold;
}

h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}
/* ===============================================
   BASISSTIL für ALLE Buttons
=============================================== */
.button-zwei,
.button-drei,
.button-vier {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  padding: 16px 28px !important;
  border-radius: 59px !important;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-width: 2px !important;
  border-style: solid !important;
  box-sizing: border-box; /* <<< Stabilität bei Hover */
  transition: all 0.3s ease;
}

/* ===============================================
   BUTTON-ZWEI – Gold, Hover grau, Text weiß
=============================================== */
.button-zwei {
  background-color: #d29f68;
  color: white !important;
  border-color: #d29f68;
}

.button-zwei:hover {
  background-color: #9e9e9e; !important;
  color: white !important;
  border-color: #9e9e9e; !important;
  border-radius: 59px !important;
}

/* ===============================================
   BUTTON-DREI – Transparent, Hover weiß, Text schwarz
=============================================== */
.button-drei {
  background-color: transparent;
  color: black !important;
  border-color: black;
}

.button-drei:hover {
  background-color: white;
  color: black !important;
  border-color: white;
  border-radius: 59px !important;
}

/* ===============================================
   BUTTON-VIER – Schwarz, Hover grau, Text weiß
=============================================== */
.button-vier {
  background-color: black;
  color: white !important;
  border-color: black;
}

.button-zwei:hover {
  background-color: #9e9e9e !important;
  color: white !important;
  border-color: #9e9e9e !important;
  border-radius: 59px !important;
}
/* =====================================================
   SEITEN (z.B. Kontaktseite mit ID 3)
===================================================== */
.page-id-3 {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #474747;
}

.page-id-3 h1,
.page-id-3 h2,
.page-id-3 h3 {
  font-family: 'Lora', serif;
  font-weight: bold;
}

.page-id-3 h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* =====================================================
   LINKS (z.B. goldene Markenlinks)
===================================================== */
.gold-links a {
  color: #d29f68;
}

.gold-links a:hover {
  color: #bd8549;
}

/* =====================================================
   FORMULARE – Kontakt (Contact Form 7)
===================================================== */
.wpcf7-form {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #474747;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: 'Lora', serif;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.wpcf7-form input[type="submit"] {
  background-color: #d29f68;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 16px 28px;
  margin-top: 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #bd8549;
}

/* =====================================================
   FORMULARE – Newsletter (MailerLite eingebettet)
===================================================== */
.mailerlite-form {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: white;
  text-align: center;
  line-height: 1.6;
}

.mailerlite-form h3 {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.mailerlite-form .mailerlite-form-description {
  margin-bottom: 1rem;
}

.mailerlite-form .mailerlite-form-inputs .mailerlite-subscribe-button-container {
  margin-top: 2rem;
}

.mailerlite-form .mailerlite-form-field label {
  display: none;
}

.mailerlite-form .mailerlite-form-field input {
  background-color: #cdcdcd;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  border: none;
  width: 50%;
  max-width: 400px;
  margin-bottom: .25rem;
}

.mailerlite-form button.mailerlite-subscribe-submit {
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
  background-color: #d29f68;
  border: none;
  border-radius: 59px;
  cursor: pointer;
}

.mailerlite-form button.mailerlite-subscribe-submit:hover {
  background-color: #bd8549;
}

/* =====================================================
   MOBILE FIXES – Formulare & Schriftanpassung
===================================================== */
@media (max-width: 768px) {
  body, p, h1, h2, h3, h6 {
    font-family: 'Lora', serif !important;
  }

  h4 {
    font-family: 'Oswald', sans-serif !important;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
  }

  /* Kontaktformular Felder */
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea {
    width: 90% !important;
    margin: 0 auto 15px auto;
  }

  .wpcf7-form input[type="submit"] {
    width: auto;
    padding: 12px 20px;
  }

  /* Newsletter (MailerLite) */
  .mailerlite-form input {
    width: 90% !important;
    max-width: 90%;
  }

  .mailerlite-form button {
    width: 100% !important;
    padding: 14px 22px;
  }
}
/* =====================================================
   Newsletter Formular: Button Styling (Desktop & Mobil)
===================================================== */
.mailerlite-form button.mailerlite-subscribe-submit,
.ml-form-embedContainer button {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: #d29f68;
  color: white;
  padding: 16px 28px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
}

.mailerlite-form button.mailerlite-subscribe-submit:hover,
.ml-form-embedContainer button:hover {
  background-color: #bd8549;
}

/* Mobile Button-Anpassung */
@media (max-width: 768px) {
  .mailerlite-form button.mailerlite-subscribe-submit,
  .ml-form-embedContainer button {
    width: 100% !important;
    padding: 16px 22px !important;
    font-size: 17px;
  }
}
/* ========================
   Blogbereich & Beiträge
   H1–H3: Lora, normal
   ======================== */
.blog h1,
.blog h2,
.blog h3,
.single-post h1,
.single-post h2,
.single-post h3 {
  font-family: 'Lora', serif !important;
  text-transform: none !important;
  font-weight: bold;
}

/* H4 im Blogbereich bleibt Oswald + uppercase */
.blog h4,
.single-post h4 {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* =====================================
   Blog-Beitrag – Weitere Artikel (optisch überarbeitet)
===================================== */
.more-articles-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
  gap: 30px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #d29f68;
  text-align: center;
  line-height: 1; /* wichtig für vertikale Ausrichtung */
}

.more-articles-nav a {
  display: flex;
  align-items: center;
  height: 20px; /* gleiche Höhe wie Text für zentrierte Ausrichtung */
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.more-articles-nav a:hover {
  color: #bd8549;
}

.more-articles-nav .triangle {
  width: 0;
  height: 0;
  display: inline-block;
  border-style: solid;
  margin-top: 2px; /* optisch vertikal feinanpassen */
}

.more-articles-nav .triangle-left {
  border-width: 8px 10px 8px 0;
  border-color: transparent #d29f68 transparent transparent;
}

.more-articles-nav .triangle-right {
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent #d29f68;
}

.more-articles-nav span {
  padding: 0 12px;
  line-height: 1;
  display: inline-block;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
}
/* =====================================================
   Inhaltsverzeichnis / gold-links im Beitrag
===================================================== */
.single-post .gold-links {
  padding: 0;
  margin-bottom: 2rem;
  text-align: left;
}

.single-post .gold-links ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.single-post .gold-links li {
  margin-bottom: 0.5rem;
}

.single-post .gold-links a {
  color: #d29f68;
  text-decoration: none;
  font-weight: 700;
}

.single-post .gold-links a:hover {
  color: #bd8549;
  text-decoration: underline;
}
/* =====================================================
   SEO HEADER SEKTION – manuell gepflegt
===================================================== */
.seo-header-section h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
}

.seo-header-section h2 {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 20px;
}

.seo-header-section p {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 30px;
}

.seo-header-section .et_pb_button {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-right: 15px;
}

.seo-header-section .et_pb_button--ghost {
  background: transparent;
  border: 2px solid #d29f68;
  color: #d29f68;
}

.seo-header-section .et_pb_button--ghost:hover {
  background-color: #d29f68;
  color: white;
}
/* Mobile Anpassung – NUR Text, ohne Buttons */
@media (max-width: 768px) {
  .seo-header-section .et_pb_text {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
  }

  /* .seo-header-section h1 {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.20rem !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    text-align: left !important;
    color: #d29f68 !important;
  }

  .seo-header-section h2 {
    font-family: 'Lora', serif !important;
    font-size: 4.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 16px;
    text-align: left;
    word-break: break-word;
  } */

  .seo-header-section h1 {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.20rem;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    text-align: left !important;
    color: #d29f68 !important;
  }

  .seo-header-section h2 {
    font-family: 'Lora', serif !important;
    font-size: 4.2rem;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 16px;
    text-align: left;
    word-break: break-word;
  }

  .seo-header-section p {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 24px;
    max-width: 100%;
    text-align: left;
  }
}
/* ======================================
   SEO HEADER SEKTION – Ligaturen aktivieren
====================================== */
/* Ligaturen + optimiertes Rendering für Typografie im SEO-Header */
.seo-header-section h1,
.seo-header-section h2 {
  font-feature-settings: "liga" 1, "clig" 1, "dlig" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
}
.seo-header-section p,
.seo-header-section .et_pb_button {
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "liga" 1, "clig" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* =====================================================
   HEADLINE BUTTONS – z. B. auf Startseite oder Programmseite
===================================================== */
.headline-button .et_pb_button {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 18px !important;
  width: auto;
  max-width: 100%;
}
/* =====================================================
   HEADER-BEREICH – Kombi: Headline + Text + Buttons
===================================================== */

/* Allgemeine Struktur */
.section-header-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.section-header-block.fullwidth {
  flex-direction: column;
  text-align: center;
}

.section-header-block.narrow {
  flex-direction: row;
  text-align: left;
}

/* Text in der Header-Sektion */
.section-header-block h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #d29f68;
}

.section-header-block h2 {
  font-family: 'Lora', serif !important;
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #474747;
}

/* Buttons */
.section-header-block .et_pb_button {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 30px;
  margin: 8px;
  display: inline-block;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .section-header-block {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px;
  }

  .section-header-block h2 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .section-header-block .et_pb_button {
    width: 90%;
    font-size: 15px;
    padding: 10px 16px;
    display: block;
    margin: 6px auto;
  }
}
/* ======================================
   SINGLE POST – DESKTOP: H4 gold einfärben
====================================== */
.single-post .post-content h4 {
  color: #d29f68;
}
/* ======================================
   SINGLE POST – MOBILE STYLES (komplett)
====================================== */
@media (max-width: 768px) {
  /* Headlines h1–h3 */
  .single-post .post-content h1,
  .single-post .post-content h2,
  .single-post .post-content h3 {
    font-family: 'Lora', serif !important;
    font-size: 2.4rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    margin-bottom: 1rem;
  }

  /* H4: Gold, uppercase */
  .single-post .post-content h4 {
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.1rem !important;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: #d29f68 !important;
    text-align: left !important;
    margin-bottom: 0.8rem;
  }

  /* Fließtext */
  .single-post .post-content p {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
    padding: 0;
    margin-bottom: 1.2rem;
    color: #474747;
  }

  /* Aufzählungen im Classic Editor */
  .single-post .post-content ul,
  .single-post .post-content ul li {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: left;
    margin-left: 20px;
    padding-left: 0;
    color: #474747;
  }

  .single-post .post-content ul li {
    margin-bottom: 0.6rem;
  }

  /* Aufzählungen in Divi Textmodulen */
  .single-post .et_pb_text ul,
  .single-post .et_pb_text ul li {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: left;
    margin-left: 20px;
    padding-left: 0;
    color: #474747;
  }

  .single-post .et_pb_text ul li {
    margin-bottom: 0.6rem;
  }

  /* Inhaltsverzeichnis ("gold-links") */
  .single-post .gold-links,
  .single-post .gold-links ul,
  .single-post .gold-links li,
  .single-post .gold-links a {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    text-align: left;
    padding: 0;
    margin: 0 0 1rem 0;
    color: #474747;
  }

  .single-post .gold-links a {
    color: #d29f68;
    font-weight: 700;
    text-decoration: none;
  }

  .single-post .gold-links a:hover {
    text-decoration: underline;
    color: #bd8549;
  }

  /* "Weitere Beiträge"-Navigation */
  .more-articles-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .more-articles-nav a {
    justify-content: center;
  }

  .more-articles-nav span {
    padding: 0;
    margin: 4px 0;
  }
}
/* ======================================
   SINGLE POST – MOBILE: "Weitere Beiträge"-Navigation
====================================== */
@media (max-width: 768px) {
  .more-articles-nav {
    display: flex;
    flex-direction: row;            /* Elemente in einer Zeile */
    justify-content: center;        /* zentriert im Container */
    align-items: center;            /* vertikal zentriert */
    text-align: center;
    flex-wrap: nowrap;
    gap: 10px;                      /* Abstand zwischen Elementen */
    margin-top: 2rem;
  }

  .more-articles-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    text-decoration: none;
    color: #d29f68;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  .more-articles-nav span {
    display: inline-block;
    padding: 0 8px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .more-articles-nav .triangle-left,
  .more-articles-nav .triangle-right {
    margin-top: 2px;              /* vertikale Feinkorrektur */
    transform: scale(0.9);        /* etwas verkleinert */
  }

  .more-articles-nav a:hover {
    color: #bd8549;
  }
}
/* ======================================
   Blog-Übersicht: Datum über Überschrift
====================================== */
.et_pb_post .post-meta {
  order: -1; /* nach oben verschieben */
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  color: #d29f68;
  margin-bottom: 8px;
  display: block;
}

@media (max-width: 768px) {
  .et_pb_post .post-meta {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 3px;
    color: #d29f68;
    text-align: left;
    top: -2em;
    margin-bottom: 0.5rem;
  }
}
