/* =======================================================================
   MEX Marketing – zentrale Gestaltung
   Alle Farben, Schriften und Masse stehen hier an einer Stelle.
   Divi-Module bekommen nur die Klassen zugewiesen
   (Divi: Erweitert -> CSS-ID & Klassen -> CSS-Klasse).
   ======================================================================= */

/* -- Schriften ---------------------------------------------------------- */
@font-face {
  font-family: "MEX Cormorant";
  src: url("../fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MEX Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -- Variablen ---------------------------------------------------------- */
:root {
  /* Farben */
  --mex-blau:        #1d3b58;   /* Ueberschriften, dunkle Flaechen */
  --mex-blau-tief:   #1c3b58;   /* dunkle Sektionen */
  --mex-gold:        #b6894f;   /* Akzent, Eyebrow, Buttons */
  --mex-creme:       #f7f3ec;   /* helle Flaechen */
  --mex-text:        #515151;   /* Fliesstext */
  --mex-text-leise:  #8a8a8a;   /* Bildunterschriften, Nebeninfos */
  --mex-linie:       #e6e0d6;   /* Trennlinien */
  --mex-weiss:       #ffffff;

  /* Schriften */
  --mex-serif: "MEX Cormorant", Georgia, "Times New Roman", serif;
  --mex-sans:  "MEX Montserrat", Helvetica, Arial, sans-serif;

  /* Masse */
  --mex-breite:       1080px;   /* Inhaltsbreite */
  --mex-breite-weit:  1240px;   /* fuer Raster und Galerien */
  --mex-breite-text:   700px;   /* Lesebreite Fliesstext */
  --mex-abstand:        88px;   /* Sektionsabstand oben/unten */
}

/* -- Grundtypografie ---------------------------------------------------- */
.mex-design,
.mex-design p,
.mex-design li {
  font-family: var(--mex-sans);
  color: var(--mex-text);
  font-size: 18px;
  line-height: 1.9;
}
.mex-design h1,
.mex-design h2,
.mex-design h3 {
  font-family: var(--mex-serif);
  color: var(--mex-blau);
  font-weight: 400;
  letter-spacing: 0;
}
.mex-design h1 { font-size: 76px; line-height: 1.08; }
.mex-design h2 { font-size: 46px; line-height: 1.15; }
.mex-design h3 { font-size: 26px; line-height: 1.3; }

/* -- Wiederkehrende Bausteine ------------------------------------------- */

/* Goldene Versalzeile ueber einer Ueberschrift */
.mex-eyebrow,
.mex-eyebrow p {
  font-family: var(--mex-sans) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mex-gold) !important;
  margin: 0 0 6px !important;
}

/* Sektionsflaechen */
.mex-section        { background: var(--mex-weiss); }
.mex-section-creme  { background: var(--mex-creme); }
.mex-section-dunkel { background: var(--mex-blau-tief); }
.mex-section-dunkel h1,
.mex-section-dunkel h2,
.mex-section-dunkel h3,
.mex-section-dunkel p,
.mex-section-dunkel li { color: var(--mex-weiss); }

/* Aufzaehlung mit goldenem Strich statt Punkt */
.mex-liste ul { padding-left: 0; list-style: none; }
.mex-liste li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.mex-liste li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 16px; height: 2px; background: var(--mex-gold);
}

/* Grosse Abbildung mit Bildunterschrift */
.mex-figure { margin: 0 0 52px; }
.mex-figure:last-child { margin-bottom: 0; }
.mex-figure img {
  width: 100%; height: auto; display: block; border-radius: 2px;
  box-shadow: 0 10px 34px rgba(28, 59, 88, .10);
}
.mex-figure figcaption {
  margin-top: 16px; font-size: 15px; line-height: 1.65;
  color: var(--mex-text-leise);
}

/* Produktkatalog: Kachelraster */
.mex-katalog { width: 100% !important; max-width: 100% !important; }
.mex-katalog .mex-katalog-raster {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; margin: 0;
}
.mex-katalog .mex-kachel { margin: 0; }
.mex-katalog .mex-kachel img {
  width: 100%; height: auto; display: block; border-radius: 2px;
  box-shadow: 0 5px 18px rgba(28, 59, 88, .08);
}
.mex-katalog .mex-kachel .mex-format {
  display: block; font-family: var(--mex-sans);
  font-size: 12px !important; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--mex-gold) !important; margin: 16px 0 5px !important; line-height: 1.4 !important;
}
.mex-katalog .mex-kachel h3 {
  font-family: var(--mex-sans) !important; font-size: 17px !important;
  line-height: 1.35 !important; color: var(--mex-blau) !important;
  margin: 0 0 7px !important; padding: 0 !important; font-weight: 600;
}
.mex-katalog .mex-kachel p {
  font-size: 14.5px !important; line-height: 1.62 !important;
  color: var(--mex-text-leise) !important; margin: 0 !important; padding: 0 !important;
}

/* Platzhalterflaeche, solange ein Bild fehlt */
.mex-platzhalter {
  background: var(--mex-creme); border: 1px solid var(--mex-linie);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  color: var(--mex-text-leise); font-family: var(--mex-sans); font-size: 14px;
}

/* Buttons */
.mex-button .et_pb_button,
a.mex-button {
  font-family: var(--mex-sans) !important; font-size: 16px !important;
  letter-spacing: 1px; color: var(--mex-gold) !important;
  border: 1px solid var(--mex-gold) !important; border-radius: 0 !important;
  padding: 16px 38px !important; background: transparent !important;
}
.mex-section-dunkel .mex-button .et_pb_button,
.mex-section-dunkel a.mex-button {
  color: var(--mex-weiss) !important; border-color: var(--mex-weiss) !important;
}

/* -- Kleinere Bildschirme ----------------------------------------------- */
@media (max-width: 980px) {
  .mex-design h1 { font-size: 48px; }
  .mex-design h2 { font-size: 34px; }
  .mex-katalog .mex-katalog-raster { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
}
@media (max-width: 640px) {
  .mex-design h1 { font-size: 38px; }
  .mex-design h2 { font-size: 28px; }
  .mex-design, .mex-design p, .mex-design li { font-size: 17px; }
  .mex-katalog .mex-katalog-raster { grid-template-columns: 1fr; gap: 30px; }
}

/* =======================================================================
   Kopf- und Fussbereich (eigene Vorlagen im Child-Theme)
   ======================================================================= */

.mex-wrap { width: min(92%, var(--mex-breite-weit)); margin-inline: auto; }

/* Sprunglink fuer Tastatur und Screenreader */
.mex-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--mex-blau); color: #fff; padding: 12px 20px;
  font-family: var(--mex-sans); font-size: 15px;
}
.mex-skip:focus { left: 0; }

/* -- Kopfbereich -------------------------------------------------------- */
.mex-header { background: var(--mex-weiss); border-bottom: 1px solid var(--mex-linie); }
.mex-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: 148px;
}
.mex-logo { display: inline-flex; align-items: center; text-decoration: none; }
.mex-logo__img  { display: block; width: 192px; height: auto; }
.mex-logo__text { font-family: var(--mex-serif); font-size: 30px; color: var(--mex-blau); }

.mex-nav__liste {
  display: flex; align-items: center; gap: 36px;
  list-style: none; margin: 0; padding: 0;
}
.mex-nav__liste a {
  font-family: var(--mex-sans); font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--mex-blau); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.mex-nav__liste a:hover,
.mex-nav__liste .current-menu-item > a { color: var(--mex-gold); border-bottom-color: var(--mex-gold); }

.mex-menu-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.mex-menu-toggle__strich,
.mex-menu-toggle__strich::before,
.mex-menu-toggle__strich::after {
  display: block; width: 26px; height: 2px; background: var(--mex-blau); content: "";
}
.mex-menu-toggle__strich::before { transform: translateY(-8px); }
.mex-menu-toggle__strich::after  { transform: translateY(6px); }

/* -- Fussbereich -------------------------------------------------------- */
.mex-footer { background: var(--mex-creme); margin-top: 0; }
.mex-footer__raster {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 72px 0 56px;
}
.mex-footer .mex-logo__img { height: 52px; margin-bottom: 18px; }
.mex-footer h2 {
  font-family: var(--mex-sans); font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mex-gold); margin: 0 0 14px;
}
.mex-footer p, .mex-footer a {
  font-family: var(--mex-sans); font-size: 16px; line-height: 1.8; color: var(--mex-text);
}
.mex-footer a { text-decoration: none; }
.mex-footer a:hover { color: var(--mex-gold); }

.mex-footer__abschluss { border-top: 1px solid var(--mex-linie); }
.mex-footer__abschluss-inner { padding: 22px 0; }
.mex-footer__recht {
  display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.mex-footer__recht a { font-size: 15px; color: var(--mex-text-leise); }

@media (max-width: 980px) {
  .mex-header__inner { min-height: 84px; }
  .mex-logo__img { height: 46px; }
  .mex-menu-toggle { display: block; }
  .mex-nav { display: none; width: 100%; }
  .mex-header--offen .mex-nav { display: block; }
  .mex-header--offen .mex-header__inner { flex-wrap: wrap; padding-bottom: 18px; }
  .mex-nav__liste { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mex-footer__raster { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 40px; }
}

/* =======================================================================
   Textseiten (Impressum, Datenschutz, Cookie-Richtlinie, Fakten)
   Hier steht bewusst KEINE Serif: Überschriften laufen in Montserrat,
   der Textblock ist schmal und linksbündig – wie auf mexmarketing.de.
   ======================================================================= */

.mex-textseite h1,
.mex-textseite h2,
.mex-textseite h3 {
  font-family: var(--mex-sans) !important;
  color: var(--mex-blau) !important;
}
.mex-textseite h1 {
  font-size: 30px !important;
  line-height: 2 !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  margin: 0 0 4px !important;
}
.mex-textseite h2 {
  font-size: 23px !important;
  line-height: 2.5 !important;
  font-weight: 400 !important;
  text-transform: none;
  margin: 18px 0 0 !important;
}
.mex-textseite h3 {
  font-size: 20px !important;
  line-height: 2.2 !important;
  font-weight: 400 !important;
}
.mex-textseite p,
.mex-textseite li {
  font-size: 18px !important;
  line-height: 1.8 !important;
  color: var(--mex-text) !important;
}
.mex-textseite a { color: var(--mex-blau); }
.mex-textseite a:hover { color: var(--mex-gold); }

/* Schmaler Lesetext, linksbündig in der Zeile – nicht zentriert */
.mex-textseite .et_pb_text_inner,
.mex-textseite .et_pb_code_inner { max-width: 700px; }

@media (max-width: 980px) {
  .mex-textseite h1 { font-size: 26px !important; }
  .mex-textseite h2 { font-size: 21px !important; }
}

/* =======================================================================
   Startseite
   ======================================================================= */

/* Einleitungstext über einer Überschrift */
.mex-intro p { max-width: 760px; }
.mex-intro .mex-zitatzeile,
.mex-zitatzeile {
  font-family: var(--mex-serif); font-size: 24px; line-height: 1.5;
  color: var(--mex-blau); max-width: 720px;
}

/* Hero */
.mex-hero .et_pb_text_inner { max-width: 560px; }
.mex-hero h1 { margin-bottom: 22px; }
.mex-hero__text p { margin-bottom: 16px; }
.mex-hero .et_pb_button_module_wrapper { display: inline-block; margin: 14px 14px 0 0; }

/* Gefüllter Button (Hauptaktion) */
.mex-button--voll .et_pb_button {
  background: var(--mex-gold) !important;
  color: var(--mex-weiss) !important;
  border-color: var(--mex-gold) !important;
}

/* Drei Karten: Entlastung / Sicherheit / Ergebnisse */
.mex-karte { padding-top: 6px; border-top: 2px solid var(--mex-gold); }
.mex-karte__label {
  display: block; font-family: var(--mex-sans); font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--mex-gold);
  margin: 14px 0 10px;
}
.mex-karte__zitat {
  font-family: var(--mex-serif) !important; font-size: 27px !important;
  line-height: 1.25 !important; color: var(--mex-blau) !important;
  margin: 0 0 12px !important;
}
.mex-karte p { font-size: 17px !important; line-height: 1.75 !important; }

/* Drei Schritte: Mein Versprechen */
.mex-schritt__label {
  display: block; font-family: var(--mex-sans); font-size: 13px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--mex-gold);
  margin: 0 0 12px;
}
.mex-schritt h3 {
  font-family: var(--mex-serif) !important; font-size: 27px !important;
  line-height: 1.25 !important; color: var(--mex-blau) !important; margin: 0 0 14px !important;
}
.mex-schritt p { font-size: 17px !important; line-height: 1.75 !important; }

/* Zwei Wege: Nach Bedarf / Mit System */
.mex-weg {
  background: var(--mex-weiss); padding: 40px 38px;
  border: 1px solid var(--mex-linie); height: 100%;
}
.mex-weg h3 {
  font-family: var(--mex-sans) !important; font-size: 15px !important;
  letter-spacing: 2px; text-transform: uppercase; color: var(--mex-gold) !important;
  margin: 0 0 18px !important; font-weight: 600;
}
.mex-weg p { font-size: 17px !important; line-height: 1.8 !important; }

/* Aktionsliste */
.mex-aktionsliste .et_pb_post {
  background: var(--mex-weiss); border: 1px solid var(--mex-linie);
  padding: 0 0 26px; margin-bottom: 30px;
}
.mex-aktionsliste .entry-featured-image-url { margin-bottom: 22px; }
.mex-aktionsliste .entry-title {
  font-family: var(--mex-serif) !important; font-size: 26px !important;
  padding: 0 28px !important; margin-bottom: 10px !important;
}
.mex-aktionsliste .entry-title a { color: var(--mex-blau); text-decoration: none; }
.mex-aktionsliste .post-content { padding: 0 28px; }
.mex-aktionsliste .post-content p { font-size: 16px !important; line-height: 1.7 !important; }
.mex-aktionsliste .more-link {
  display: inline-block; margin: 14px 28px 0; font-family: var(--mex-sans);
  font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--mex-gold); text-decoration: none;
  border-bottom: 1px solid var(--mex-gold); padding-bottom: 3px;
}

@media (max-width: 980px) {
  .mex-hero .et_pb_text_inner { max-width: none; }
  .mex-zitatzeile { font-size: 21px; }
  .mex-karte__zitat, .mex-schritt h3 { font-size: 23px !important; }
  .mex-weg { padding: 30px 26px; }
}

/* ---------------------------------------------------------------- Kontakt
   Abschluss-Sektion der Startseite. Der Menuepunkt "Kontakt" springt
   ueber den Anker #kontakt hierher.
   ------------------------------------------------------------------------ */
.mex-kontakt .mex-kontaktdaten .et_pb_text_inner {
  font-family: var(--mex-sans);
  font-size: 17px;
  line-height: 1.9;
  margin: 22px 0 0 !important;
}
.mex-kontakt .mex-kontaktdaten a {
  color: var(--mex-weiss);
  text-decoration: none;
  border-bottom: 1px solid var(--mex-gold);
  padding-bottom: 2px;
}
.mex-kontakt .mex-kontaktdaten a:hover { color: var(--mex-gold); }

/* Auf dunklem Grund bleibt die Vorzeile golden, der Fliesstext wird heller. */
.mex-section-dunkel .mex-eyebrow .et_pb_text_inner { color: var(--mex-gold) !important; }
.mex-section-dunkel .mex-intro .et_pb_text_inner { color: rgba(255, 255, 255, .82) !important; }
.mex-section-dunkel .mex-button--voll .et_pb_button {
  background: var(--mex-gold) !important;
  border-color: var(--mex-gold) !important;
  color: var(--mex-weiss) !important;
}
.mex-kontakt .et_pb_button_module_wrapper { margin-top: 30px; }

/* ---------------------------------------------------------------- Schaltflächen
   Wie auf der Live-Startseite: die erste gefüllt, die zweite mit Kontur.
   Divi setzt sonst seine Grundeinstellung (orange, Radius 3, Pfeil-Icon).
   -------------------------------------------------------------------------- */
.mex-button .et_pb_button,
a.mex-button {
  font-family: var(--mex-sans) !important;
  font-size: 1rem !important;
  letter-spacing: 1px !important;
  padding: 9px 22px !important;
  border-radius: 0 !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #b58a4f !important;
  background: transparent !important;
  color: #b58a4f !important;
  transition: background .2s, color .2s;
}
.mex-button .et_pb_button::after,
a.mex-button::after { display: none !important; }

.mex-button--voll .et_pb_button,
a.mex-button--voll {
  background: #b58a4f !important;
  border-color: #b58a4f !important;
  color: #ffffff !important;
}
.mex-button .et_pb_button:hover { background: #b58a4f !important; color: #ffffff !important; }
.mex-button--voll .et_pb_button:hover { background: #9d7642 !important; border-color: #9d7642 !important; }

/* Beide Schaltflächen nebeneinander - auf der alten Seite war das ein
   einziges Doppel-Modul, hier sind es zwei eigenständige. */
.et_pb_button_module_wrapper:has(.mex-button) {
  display: inline-block;
  margin: 0 14px 0 0;
}

/* ---------------------------------------------------------------- Kundenlogos
   Ersetzt das frühere Torque-Karussell. Eine ruhige Reihe, die auf schmalen
   Bildschirmen umbricht. Ein weiteres Logo: in der Textkachel eine <li> ergänzen.
   -------------------------------------------------------------------------- */
.mex-kundenlogos { background: var(--mex-weiss); }

/* Divi gibt Textkacheln ohne eigene Breite eine max-width von 700px -
   die sitzt am Modul selbst, nicht am Innenbereich. */
.mex-logos.et_pb_text,
.mex-logos {
  width: 100% !important;
  max-width: 100% !important;
}
.mex-logos .et_pb_text_inner { max-width: none !important; }

.mex-logos__liste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 42px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mex-logos__liste li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mex-logos__liste li::before { content: none !important; }

.mex-logos__liste a {
  display: block;
  line-height: 0;
  opacity: .78;
  transition: opacity .2s;
}
.mex-logos__liste a:hover { opacity: 1; }

.mex-logos__liste img {
  display: block;
  width: auto;
  height: auto;
  max-height: 46px;
  max-width: 132px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .mex-logos__liste { gap: 26px 34px; }
  .mex-logos__liste img { max-height: 40px; max-width: 124px; }
}

/* --------------------------------------------------------------------------
   Absätze in Divi-Textkacheln
   Die Umwandlung nach Divi 5 hat den Inhalt dieser Kacheln in <p> verpackt;
   auf der Live-Seite steht er direkt im Modul. Das <p> erbt die Einstellungen
   der Kachel nicht - die goldene Zeile „Ich übernehme dein Marketing." fiel
   dadurch von 50px Serif auf 18px Fließtext zurück.
   -------------------------------------------------------------------------- */
.mex-antwort-titel .et_pb_text_inner > p,
.mex-antwort-vorzeile .et_pb_text_inner > p {
  font: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
  margin: 0 !important;
}

/* ==========================================================================
   Mobilansicht der Startseite
   Die Werte stammen aus der Messung der Live-Seite bei 375 px Breite. Die
   übernommenen Desktop-Sektionen tragen Handy-Einstellungen, die dort nie
   benutzt wurden (früher gab es je eine eigene Handy-Fassung) - dadurch war
   die Staffelung durcheinander. 767px ist Divis eigene Handy-Grenze.
   ========================================================================== */
@media (max-width: 767px) {

  /* -- Überschriften: Werte 1:1 von der Live-Seite ------------------------ */
  .mex-wuensche h1,
  .mex-versprechen h1,
  .mex-arbeiten h1,
  .mex-aktionen h1,
  .mex-kontakt h1 {
    font-size: 40px !important;
    line-height: 48px !important;
  }

  /* Hero wie auf der Live-Seite */
  .mex-hero h1 {
    font-size: 38px !important;
    line-height: 45.6px !important;
  }

  /* -- Fließtext --------------------------------------------------------- */
  .mex-hero p,
  .mex-wuensche p,
  .mex-versprechen p,
  .mex-arbeiten p {
    font-size: 18px !important;
    line-height: 32.4px !important;
  }

  /* -- Häkchen-Kacheln --------------------------------------------------- */
  .mex-wunsch .et_pb_main_blurb_image,
  .mex-wunsch .et_pb_main_blurb_image .et_pb_image_wrap {
    width: 75px !important;
  }
  .mex-wunsch .et_pb_main_blurb_image img { width: 75px !important; height: auto !important; }
  .mex-wunsch h4 {
    font-size: 16px !important;
    line-height: 16px !important;
    letter-spacing: 2px !important;
  }
  .mex-wunsch .zitat {
    font-size: 36px !important;
    line-height: 54px !important;
  }

  /* -- Zitat-Kacheln: ohne Anführungszeichen, Text über die volle Breite -- */
  .mex-zitat .et_pb_main_blurb_image { display: none !important; }
  .mex-zitat .et_pb_blurb_content {
    width: 100% !important;
    max-width: none !important;
  }
  .mex-zitat .et_pb_blurb_container { padding-left: 0 !important; }
  /* Die Kachel behielt den Desktop-Innenabstand (50px|100px|50px|50px) -
     dadurch blieben vom Text nur 188px übrig. Auf der Live-Seite läuft die
     Kachel über die volle Breite mit 30px Innenabstand: 315px Text. */
  body #page-container .mex-zitat.et_pb_blurb {
    margin-left: -37.5px !important;
    margin-right: -37.5px !important;
    width: auto !important;
    padding: 34px 30px !important;
  }

  /* -- „Antwort auf …" und die Zeile darunter ---------------------------- */
  .mex-antwort-vorzeile .et_pb_text_inner,
  .mex-antwort-vorzeile p {
    font-size: 14px !important;
    line-height: 35px !important;
    letter-spacing: 2px !important;
    color: #6b7c8f !important;
  }
  .mex-antwort-titel .et_pb_text_inner,
  .mex-antwort-titel p {
    font-family: 'MEX-Cormorant_Garamond', Georgia, serif !important;
    font-size: 42px !important;
    line-height: 50.4px !important;
    font-weight: 500 !important;
    color: #b6894f !important;
  }

  /* -- Yvonnes Einzelwünsche --------------------------------------------- */
  /* Logo etwas größer */
  .mex-logo__img { height: 56px; }

  /* Rundes Porträt: keine eigene Größe mehr - auf der Live-Seite fehlt es
     mobil ganz. Falls es auch hier verschwinden soll, hier display:none. */

  /* Schaltflächen wie auf der Live-Seite: beide mit Kontur, gold auf
     transparent, kein Sperrsatz. Die gefüllte Fassung gibt es dort nur am
     Desktop. Die Live-Seite zeigt mobil nur eine Schaltfläche - hier sind es
     zwei, die brauchen etwas Luft untereinander. */
  .mex-hero .et_pb_button_module_wrapper {
    margin: 0 12px 14px 0 !important;
  }
  /* Divi erzeugt für das Modul eigene Regeln an #page-container - ohne diese
     Hülle im Selektor gewinnen Schriftfarbe und Sperrsatz von dort. */
  body #page-container .mex-hero a.mex-button,
  body #page-container .mex-hero a.mex-button--voll,
  body #page-container .mex-hero .mex-button.et_pb_button,
  body #page-container .mex-hero .mex-button--voll.et_pb_button {
    background: transparent !important;
    color: #b6894f !important;
    border-color: #b6894f !important;
    letter-spacing: normal !important;
    padding: 4.8px 16px !important;
  }
}

/* --------------------------------------------------------------------------
   Menü auf schmalen Bildschirmen
   Divi blendet die Menüleiste unterhalb von 980px normalerweise selbst aus und
   zeigt stattdessen das Burger-Symbol. Diese Regel fehlt hier, dadurch waren
   beide gleichzeitig zu sehen.
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .et_pb_menu .et-menu-nav > ul.et-menu { display: none !important; }
  .et_pb_menu .et_mobile_nav_menu { display: block !important; }
}

/* --------------------------------------------------------------------------
   Seitenüberschrift auf Aktions- und Referenzseiten
   Divi teilt sein CSS in einen sofort geladenen und einen nachgeladenen Teil
   auf. In der Kombination Theme Builder + eigener Beitragstyp geht dabei die
   Desktop-Regel für die Überschrift verloren - sie existiert nur noch in den
   Medienabfragen für schmale Bildschirme. Auf dem Desktop fiel die Überschrift
   dadurch auf Divis Grundwert von 26px zurück.
   Die Werte stammen aus den Theme-Builder-Layouts selbst.
   -------------------------------------------------------------------------- */
.single-aktionen .et_pb_post_title .et_pb_title_container h1.entry-title {
  font-family: 'MEX-Cormorant_Garamond', Georgia, serif !important;
  font-size: 85px !important;
  line-height: 1.1em !important;
  color: #1d3b58 !important;
}
.single-referenzen .et_pb_post_title .et_pb_title_container h1.entry-title {
  font-family: 'MEX-Cormorant_Garamond', Georgia, serif !important;
  font-size: 76px !important;
  line-height: 1.08em !important;
  color: #1d3b58 !important;
}
@media (max-width: 767px) {
  .single-aktionen .et_pb_post_title .et_pb_title_container h1.entry-title { font-size: 50px !important; }
  .single-referenzen .et_pb_post_title .et_pb_title_container h1.entry-title { font-size: 40px !important; }
}

/* --------------------------------------------------------------------------
   Bestellformular
   Ersetzt die frühere PHP-Seite im Ordner /bestellung/. Aufbau und Preise
   stehen in inc/bestellung.php, hier nur das Aussehen.
   -------------------------------------------------------------------------- */
.mex-bestellung { max-width: 720px; }
.mex-bestellung__falle { position: absolute; left: -9999px; }

.mex-bestellung__block {
  border: 1px solid var(--mex-linie);
  padding: 26px 24px 20px;
  margin: 0 0 24px;
}
.mex-bestellung__block legend {
  font-family: var(--mex-sans);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mex-gold);
  padding: 0 10px;
}
.mex-bestellung label {
  display: block;
  font-family: var(--mex-sans);
  font-size: 14px;
  color: var(--mex-text-leise);
  margin-bottom: 14px;
}
.mex-bestellung input,
.mex-bestellung select,
.mex-bestellung textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 11px 13px;
  border: 1px solid var(--mex-linie);
  border-radius: 0;
  font-family: var(--mex-sans);
  font-size: 16px;
  color: var(--mex-text);
  background: var(--mex-weiss);
}
.mex-bestellung input:focus,
.mex-bestellung select:focus,
.mex-bestellung textarea:focus { outline: 2px solid var(--mex-gold); outline-offset: 1px; }

.mex-bestellung__paar { display: flex; gap: 16px; }
.mex-bestellung__paar > label { flex: 1; }

.mex-bestellung__zeile {
  display: grid;
  grid-template-columns: 1fr 1fr 100px 34px;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.mex-bestellung__weg {
  height: 44px;
  border: 1px solid var(--mex-linie);
  background: transparent;
  color: var(--mex-text-leise);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.mex-bestellung__weg:hover { color: var(--mex-gold); border-color: var(--mex-gold); }

.mex-bestellung__mehr {
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--mex-sans);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--mex-gold);
  cursor: pointer;
}

.mex-bestellung__summe {
  font-family: var(--mex-sans);
  font-size: 15px;
  line-height: 1.9;
  background: var(--mex-creme);
  padding: 18px 20px;
  margin: 0 0 20px;
}
.mex-bestellung__summe strong { font-size: 18px; color: var(--mex-blau); }

.mex-bestellung__zustimmung {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}
.mex-bestellung__zustimmung input { width: auto; margin: 3px 0 0; }

.mex-bestellung__senden {
  margin-top: 22px;
  padding: 14px 34px;
  border: 2px solid var(--mex-gold);
  background: var(--mex-gold);
  color: var(--mex-weiss);
  font-family: var(--mex-sans);
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
}
.mex-bestellung__senden:hover { background: #9d7642; border-color: #9d7642; }

.mex-bestellung__hinweis { font-size: 13px; color: var(--mex-text-leise); margin-top: 12px; }

.mex-bestellung__fehler {
  border-left: 4px solid #c0503a;
  background: #fdf3f1;
  padding: 14px 18px;
  margin: 0 0 20px;
  font-family: var(--mex-sans);
  font-size: 15px;
}
.mex-bestellung__danke {
  border: 1px solid var(--mex-linie);
  background: var(--mex-creme);
  padding: 34px 30px;
}

@media (max-width: 640px) {
  .mex-bestellung__paar { flex-direction: column; gap: 0; }
  .mex-bestellung__zeile { grid-template-columns: 1fr 1fr; }
  .mex-bestellung__zeile > label:nth-child(3) { grid-column: 1; }
  .mex-bestellung__weg { grid-column: 2; justify-self: end; width: 44px; }
}

/* Anzahl der Lieferadressen – der Versand wird je Adresse berechnet (§ 3 AGB). */
.mex-bestellung__lieferadressen { margin-top: 20px; }
.mex-bestellung__lieferadressen input { max-width: 120px; }
.mex-bestellung__zusatz {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mex-text-leise);
}

/* Hauptmenue: ueberall gleich gross ------------------------------------------
   Divi laedt auf den Aktions-Einzelseiten zusaetzlich das Customizer-CSS, in dem
   eine Menue-Schriftgroesse von 14px steht. Dadurch war das Menue dort kleiner
   als auf allen anderen Seiten. Diese Regel setzt es einheitlich. */
body #page-container .et_pb_menu .et-menu > li > a {
  font-size: 18px !important;
  text-transform: uppercase !important;
}

/* Untermenue im Kopfbereich -------------------------------------------------
   Das Untermenue uebernahm bisher Groesse und Versalien des Hauptmenues
   (18px, uppercase) und stand dadurch gleichrangig daneben. Kleiner und in
   normaler Schreibweise ordnet es sich dem Hauptpunkt unter. */
body #page-container .et_pb_menu .sub-menu li a,
body #page-container .nav li ul.sub-menu li a {
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
