/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved by My WordPress Agent */
/* Tiefgrund.vision - Komponenten
   Baut nur auf den Rollen-Tokens aus "TGV 01 Tokens" auf. Kein Hex-Wert hier.
   Snippet: "TGV 02 Komponenten", priority 2, external, frontend, header.

   Diese Datei gibt Farbe, Schrift und Abstand. Sie baut KEIN Raster und
   KEIN Formular. Beides bringt MembersSuite schon mit. Wir faerben um.

   Jede Regel haengt an einer Klasse, die wirklich im Markup steht.
   Geprueft am 01.12.2026 an /meine-produkte/ und /anmelden/. */

/* ============ 0. Grundschrift ============ */

/* Das Theme (vivotheme) setzt body und h1 auf 'Open Sans'. Diese Schrift
   liefert es nicht aus, Besucher sehen Helvetica oder Arial. Hier gilt
   deshalb die Schrift der oeffentlichen Seite fuer jede Seite, die NICHT
   Elementor ist: Anmeldung, Meine Produkte, Produkte, Module, Einheiten.
   Elementor-Seiten tragen die Klasse elementor-page und behalten das Kit. */

body:not(.elementor-page) {
  font-family: var(--tgv-font-body);
}

body:not(.elementor-page) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--tgv-font-display);
  font-weight: var(--tgv-display-weight);
  text-transform: var(--tgv-display-case);
  letter-spacing: var(--tgv-display-tracking);
}

/* Telefon: Das Theme setzt h1 auf 54px. In Versalien passt ein langes
   deutsches Wort dann nicht mehr in die Zeile ("PERSOENLICHEN") und wird
   abgeschnitten. 26px passt fuer "PERSOENLICHEN" auf 390px. Chrome trennt
   Versalien nicht, overflow-wrap bleibt die letzte Sicherung. */
@media (max-width: 600px) {
  body:not(.elementor-page) .wrapper h1 {
    font-size: 26px;
    line-height: 1.15;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* Grundflaeche der ganzen Seite: helles Creme statt Weiss. Gilt fuer die
   Theme-Seiten und als Rueckfall fuer Elementor-Abschnitte ohne eigene Farbe. */
html,
body {
  background-color: var(--tgv-surface-light);
}

/* Login und Logout auf den Elementor-Seiten (Fusszeile der Startseite,
   der Buchseite und der Rechtstexte). Elementor ohne Pro kennt keine
   Anzeige nach Anmeldung, also stehen beide Links im Inhalt und hier
   bleibt einer davon sichtbar. WordPress setzt logged-in auf body.
   Die Theme-Menues regelt Nav Menu Roles, nicht diese Klassen. */
body.logged-in .tgv-nur-abgemeldet,
body:not(.logged-in) .tgv-nur-angemeldet {
  display: none;
}

/* ============ 1. Produktraster ============ */

.mesu_product_grid_wrapper {
  margin: 0 0 var(--tgv-space-xl);
}

.mesu-grid-title {
  font-family: var(--tgv-font-display);
  font-weight: var(--tgv-display-weight);
  text-transform: var(--tgv-display-case);
  letter-spacing: var(--tgv-display-tracking);
  color: var(--tgv-on-surface);
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 var(--tgv-space-sm);
}

.mesu-grid-description {
  color: var(--tgv-on-surface-muted);
  font-family: var(--tgv-font-body);
  line-height: var(--tgv-line-body);
  margin: 0 0 var(--tgv-space-lg);
}

/* Kein eigenes Raster hier.
   members-suite-public.css legt .mesu-grid schon als Flex-Layout an,
   mit Spaltenbreiten je Spaltenzahl und eigenen Umbruchpunkten bei
   950px, 800px und 600px. Das bleibt, wie es ist.
   Ein eigenes display:grid daruebergelegt bricht es: die Breite 31,5%
   des Plugins gilt dann innerhalb der eigenen Spalte, und die Karte
   schrumpft auf ein Drittel eines Drittels. */

/* Ein leeres Raster laesst keine Luecke. Tritt auf, solange niemand
   das Produkt gebucht hat: "Deine Raeume" ist dann leer. */
.mesu-grid:empty { display: none; }
.mesu_product_grid_wrapper:has(.mesu-grid:empty) { margin-bottom: 0; }

/* ============ 2. Produktkarte (Vorlage teachable) ============ */

/* Die Vorlage "teachable" liefert ihr CSS als product.css, das Plugin
   laedt aber css/product-0.css. Diese Datei gibt es nicht, der Aufruf
   endet mit 404. Die Karte bekommt sonst also gar keine Gestaltung. */

.mesu_teachable_product_wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tgv-surface);
  border: var(--tgv-border-w) solid var(--tgv-border);
  border-radius: var(--tgv-radius);
  overflow: hidden;
}

/* Das Bild steht als inline background-Kurzform im Markup. Die Kurzform
   setzt background-size inline auf auto zurueck, und ein inline-Wert
   schlaegt ein Stylesheet. Nur !important kommt dagegen an. */
.mesu_teachable_image_wrapper { display: block; }

.mesu_teachable_image {
  display: block;
  aspect-ratio: 3 / 2;
  background-color: var(--tgv-bone-muted) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.mesu_teachable_text_wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--tgv-space-lg);
  font-family: var(--tgv-font-body);
}

.mesu_teachable_text_wrapper a {
  text-decoration: none;
  color: inherit;
}

.mesu_teachable_description_wrapper {
  color: var(--tgv-on-surface-muted);
  font-size: 16px;
  line-height: var(--tgv-line-body);
}

.mesu_teachable_description_wrapper h3 {
  font-family: var(--tgv-font-display);
  font-weight: var(--tgv-display-weight);
  text-transform: var(--tgv-display-case);
  letter-spacing: var(--tgv-display-tracking);
  color: var(--tgv-on-surface);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 var(--tgv-space-sm);
}

/* Die Vorlage haengt ein <br> hinter den Text. Es erzeugt nur Luft. */
.mesu_teachable_description_wrapper br { display: none; }

/* Ohne Preis bleiben zwei leere divs stehen. Die verschwinden. */
.mesu_teachable_product_price {
  margin: var(--tgv-space-md) 0 0;
  color: var(--tgv-on-surface-muted);
  font-size: 16px;
}

.mesu_teachable_product_price:not(:has(div:not(:empty))) { display: none; }

.mesu_teachable_regular_price {
  text-decoration: line-through;
  color: var(--tgv-on-surface-muted);
}

/* ============ 3. Schaltflaeche ============ */

/* Form und Schrift wie die Schaltflaechen der oeffentlichen Seite: Pille,
   Hind Siliguri 300, 12px, Versalien, weit gesperrt. Die Farbe bleibt die
   Aktion des Mitgliederbereichs (Petrol), Bone darauf misst 7,78. */

/* margin-top: auto haelt die Schaltflaechen aller Karten auf einer Linie,
   auch wenn ein Text laenger ist. */
.mesu_teachable_see_more_wrapper {
  margin-top: auto;
  padding-top: var(--tgv-space-lg);
}

.mesu_teachable_see_more,
.mesu-login-lostpassword .mbtn-primary,
.tgv-button {
  display: inline-block;
  box-sizing: border-box;
  background: var(--tgv-action);
  color: var(--tgv-on-action) !important;
  border: 0;
  border-radius: var(--tgv-radius-pill);
  padding: 18px 36px;
  font-family: var(--tgv-font-button);
  font-size: var(--tgv-button-size);
  font-weight: var(--tgv-button-weight);
  line-height: 1;
  letter-spacing: var(--tgv-button-tracking);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease;
}

.mesu_teachable_see_more:hover,
.mesu_teachable_see_more:focus-visible,
.mesu-login-lostpassword .mbtn-primary:hover,
.mesu-login-lostpassword .mbtn-primary:focus-visible,
.tgv-button:hover,
.tgv-button:focus-visible {
  background: var(--tgv-action-hover);
}

.mesu_teachable_see_more:focus-visible,
.mesu-login-lostpassword .mbtn-primary:focus-visible,
.tgv-button:focus-visible {
  outline: 2px solid var(--tgv-on-surface);
  outline-offset: 2px;
}

.mesu-login-lostpassword .mbtn-block { width: 100%; }

/* ============ 4. Anmeldeformular ============ */

/* WICHTIG, sonst baut man es zweimal:
   MembersSuite baut das Eingabefeld NICHT aus dem <input>, sondern aus
   dem umgebenden .form-item. Dieses traegt Flaeche, Rahmen und Radius.
   Das <input> darin ist durchsichtig und randlos, und .input-with-icon
   ist eine Flex-Zeile aus Symbol und Feld.
   Nachzulesen in element-login-0.css. Diese Datei laedt NUR auf der
   Anmeldeseite, deshalb sieht man die Regeln auf keiner anderen Seite.
   Wird stattdessen das <input> zum Kasten gemacht, steht ein Kasten im
   Kasten: aussen weiss von .form-item, innen der eigene Rahmen.

   Also: umfaerben, nicht neu bauen.
   Eine Klasse tiefer als das Plugin, damit die Reihenfolge egal ist. */

.mesu-login-lostpassword {
  font-family: var(--tgv-font-body);
  color: var(--tgv-on-surface);
}

.mesu-login-info,
.mesu-lostpassword-info {
  color: var(--tgv-on-surface-muted);
  line-height: var(--tgv-line-body);
  margin: 0 0 var(--tgv-space-lg);
}

/* Das ist das Feld. */
.mesu-login-lostpassword form .form-item {
  background: var(--tgv-field);
  border: var(--tgv-border-w) solid var(--tgv-border);
  border-radius: var(--tgv-radius);
  color: var(--tgv-on-surface);
  margin-top: var(--tgv-space-md);
}

.mesu-login-lostpassword form .form-item:focus-within {
  border-color: var(--tgv-action);
  outline: 2px solid var(--tgv-action);
  outline-offset: 1px;
}

/* Das <input> bleibt durchsichtig und randlos, wie das Plugin es vorsieht.
   16px, sonst zoomt iOS beim Hineintippen in das Feld. */
.mesu-login-lostpassword form .form-item input {
  color: var(--tgv-on-surface);
  font-family: var(--tgv-font-body);
  font-size: 16px;
}

.mesu-login-lostpassword form .form-item input::placeholder {
  color: var(--tgv-on-surface-muted);
  opacity: .65;
}

/* Die Symbole sind Flex-Elemente der Zeile, keine Ueberlagerung.
   Sie brauchen deshalb keine Position und kein Polster im Feld. */
.mesu-login-lostpassword form .mesu-front-icon,
.mesu-login-lostpassword form .mesu-toggle-password {
  color: var(--tgv-on-surface-muted);
  font-size: 16px;
  opacity: .7;
}

.mesu-login-lostpassword form .mesu-toggle-password:hover {
  background: var(--tgv-bone-muted);
  border-radius: var(--tgv-radius);
  opacity: 1;
}

/* Label und Sternchen blendet das Plugin in diesen Formularen aus.
   Die Platzhalter im Feld sagen dasselbe. Hier nur fuer den Fall,
   dass ein anderes Formular sie doch zeigt. */
.mesu-login-lostpassword label {
  font-size: 13px;
  letter-spacing: var(--tgv-label-tracking);
  text-transform: uppercase;
  color: var(--tgv-on-surface);
}

.mesu-login-lostpassword .asteriskField { color: var(--tgv-ton-900); }

.mesu-login-menu-wrapper {
  margin-top: var(--tgv-space-lg);
  font-size: 15px;
}

.mesu-switch-lost-password,
.mesu-switch-login {
  color: var(--tgv-action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Auf der echten Anmeldeseite steht der Link in .submit-row direkt unter
   der Schaltflaeche, nicht in .mesu-login-menu-wrapper. Ohne Abstand
   klebt er an der Pille. */
.mesu-login-lostpassword .submit-row .mesu-switch-lost-password,
.mesu-login-lostpassword .submit-row .mesu-switch-login {
  display: inline-block;
  margin-top: var(--tgv-space-md);
}

.mesu-switch-lost-password:hover,
.mesu-switch-login:hover { color: var(--tgv-action-hover); }

.mstat-msg-list { list-style: none; margin: 0 0 var(--tgv-space-md); padding: 0; }
.mstat-msg-list:empty { display: none; }

/* ============ 5. Buehne der Anmeldeseite ============ */

/* Das Hintergrundbild ist eine Illustration mit hohem Kontrast und einer
   Figur genau in der Mitte. Abdunkeln allein reicht dagegen nicht: es
   nimmt die Helligkeit, nicht den Kontrast und nicht das Detail.
   Die Lasur liegt deshalb als multiply darueber. Sie zieht das ganze
   Bild in einen Ton der Marke, das Detail tritt zurueck, und die Karte
   steht vorn. Das Bild selbst bleibt im Seiteninhalt, nicht hier:
   so kann Elisabeth es im Editor wechseln. */

.tgv-hero { position: relative; }

/* Die Zeile steht auf columns_placement="middle", deshalb traegt sie die
   Klasse vc_row-flex. Und js_composer.min.css sagt dazu:
     .vc_row.vc_row-flex::before { display: none; }
   Das sind zwei Klassen und ein Pseudo-Element. Eine Klasse reicht also
   nicht: die Lasur waere da, aber ausgeblendet. Darum stehen hier drei
   Klassen, und die Regel nennt die fremde Klasse beim Namen.

   Absolut gesetzt heisst ausserdem: KEIN Flex-Element. Das Spaltenlayout
   von WPBakery bleibt unberuehrt. Die Spalten stehen mit z-index darueber,
   also faerbt multiply nur das Bild, nie die Karte. */
.vc_row.tgv-hero.vc_row-flex::before,
.tgv-hero::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: var(--tgv-hero-wash);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.tgv-hero > .wpb_column {
  position: relative;
  z-index: 1;
}

/* ============ 6. Anmeldekarte, zwei Spalten ============ */

/* Links das Formular, rechts der Hinweis. Die breitere Karte deckt die
   Mitte des Bildes ab, dort steht der Kopf der Figur. */

/* Dieselbe Falle wie oben, andere Regel: die Zeile hat ein Hintergrundbild,
   deshalb haengt WPBakery ihr vc_row-has-fill an und polstert jede Spalte
   oben mit 35px ueber
     .vc_row-has-fill > .vc_column_container > .vc_column-inner.
   Drei Klassen. Zwei reichen also nicht, die Karte bekaeme oben einen
   leeren Streifen. Darum hier vier. */
.tgv-hero.vc_row-has-fill > .tgv-login-card > .vc_column-inner,
.tgv-login-card > .vc_column-inner {
  background: var(--tgv-surface);
  border-radius: var(--tgv-radius-lg);
  box-shadow: var(--tgv-shadow-lg);
  overflow: hidden;
  padding: 0;
}

/* WPBakery gibt einer inneren Zeile negative Seitenraender und einen
   Abstand nach unten. Beides muss weg, sonst steht der Inhalt ueber der
   Kante der Karte. */
.tgv-login-card .vc_row.vc_inner {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.tgv-login-card .wpb_content_element,
.tgv-login-card .wpb_text_column { margin-bottom: 0; }

.tgv-login-card .vc_row.vc_inner > .wpb_column {
  display: flex;
  flex-shrink: 0;
}

.tgv-login-card .vc_row.vc_inner > .wpb_column > .vc_column-inner { width: 100%; }

.tgv-login-card__form > .vc_column-inner {
  padding: var(--tgv-space-xl) var(--tgv-space-lg);
}

.tgv-login-card__info > .vc_column-inner {
  padding: var(--tgv-space-xl) var(--tgv-space-lg);
  background: var(--tgv-surface-sunken);
}

.tgv-login-card .vc_custom_heading {
  font-family: var(--tgv-font-display);
  font-weight: var(--tgv-display-weight);
  text-transform: var(--tgv-display-case);
  letter-spacing: var(--tgv-display-tracking);
  line-height: 1.15;
  color: var(--tgv-on-surface);
  margin: 0 0 var(--tgv-space-md);
}

.tgv-login-card__info p {
  color: var(--tgv-on-surface-muted);
  font-family: var(--tgv-font-body);
  line-height: var(--tgv-line-body);
  margin: 0 0 var(--tgv-space-md);
}

.tgv-login-card__info p:last-child { margin-bottom: 0; }

/* Zwei Spalten brauchen Platz. Unter 1024px wird die Spalte des Formulars
   zu schmal fuer Feld und Schaltflaeche, also stehen beide untereinander:
   erst anmelden, dann der Hinweis. WPBakery selbst bricht erst bei 768px,
   das ist hier zu spaet. */
@media (max-width: 1024px) {
  .tgv-login-card .vc_row.vc_inner > .wpb_column { width: 100%; }
}

@media (max-width: 600px) {
  .tgv-login-card__form > .vc_column-inner,
  .tgv-login-card__info > .vc_column-inner {
    padding: var(--tgv-space-lg) var(--tgv-space-md);
  }

  /* Auf dem Telefon laeuft die Karte sonst bis an den Rand des Bildschirms.
     Der Abstand sitzt auf der Spalte, nicht auf der Karte: die Spalte ist
     border-box, also bleibt die Breite gleich und nichts schiebt seitlich. */
  .tgv-hero > .tgv-login-card {
    padding-left: var(--tgv-space-md);
    padding-right: var(--tgv-space-md);
  }
}

/* ============ 7. Fusszeile ============ */

/* Das Theme setzt hier ueber einen inline <style>-Block ein Blaugrau
   (#323745) und ein helles Grau fuer die Links. Beides gehoert nicht
   zur Marke. Zwei Klassen tief, damit es den inline-Block schlaegt. */

.koth_footer .koth_footer_navigation {
  background-color: var(--tgv-surface-dark);
  color: var(--tgv-on-dark);
}

.koth_footer .koth_footer_navigation a {
  color: var(--tgv-on-dark);
  text-decoration: none;
}

.koth_footer .koth_footer_navigation a:hover,
.koth_footer .koth_footer_navigation a:focus-visible {
  color: var(--tgv-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Auf dem Telefon stehen die Links untereinander, ohne Trennstrich.
   Das Theme setzt die Punkte mit float nebeneinander und schreibt den
   Strich als ::before davor. Jeder Link bekommt eine Flaeche zum Tippen. */
@media (max-width: 600px) {
  .koth_footer .koth_footer_navigation_area ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: var(--tgv-space-md) 0;
  }

  .koth_footer .koth_footer_navigation_area ul li { float: none; }
  .koth_footer .koth_footer_navigation_area ul li::before { content: none; }

  .koth_footer .koth_footer_navigation_area ul li a {
    display: block;
    padding: var(--tgv-space-sm) var(--tgv-space-md);
  }
}

/* --- Kopfzeile der Theme-Seiten ---
   Links die Marke: Granatapfel und "Tiefgrund.vision". Snippet "TGV 06"
   setzt sie in .mesu_header_logo, das Theme laesst den Platz leer.
   Der Name steht so, wie er geschrieben wird, nicht in Versalien. */
.mesu_header_logo {
  display: flex;
  align-items: center;
  height: 57px;
  margin-right: var(--tgv-space-xl);
}

.tgv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tgv-on-surface);
  text-decoration: none;
}

.tgv-brand img {
  display: block;
  width: auto;
  height: 32px;
}

.tgv-brand span {
  font-family: var(--tgv-font-display);
  font-weight: var(--tgv-display-weight);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
}

.tgv-brand:hover span,
.tgv-brand:focus-visible span { color: var(--tgv-action); }

/* Wer nicht angemeldet ist, bekommt rechts ein Menue-Symbol ohne Inhalt.
   Das faellt weg, solange das Menue leer ist. */
body:not(.logged-in) .mesu_header_menu_right .mesu_user_menu:not(:has(.menu-item)) {
  display: none;
}

/* Fehlt auch die Marke (Skript aus), faellt die leere Kopfzeile ganz weg.
   Ein Menuepunkt fuer alle (zum Beispiel die Buchseite) holt sie zurueck. */
body:not(.logged-in) header.header:not(:has(.menu-item, .tgv-brand)) {
  display: none;
}

@media (max-width: 600px) {
  .mesu_header_logo { margin-right: var(--tgv-space-md); }
  .tgv-brand img { height: 26px; }
  .tgv-brand span { font-size: 17px; }
}

/* ============ 8. Im Produkt: Produkt, Modul, Einheit ============ */

/* Das Produkt 99 steht auf dem MembersSuite-Schema "dark": Schiefergrau
   (#323745, #474e60), Gelb (#f4c150) und Hellgrau (#dadcdf). Das Schema
   schreibt seine Farben als inline <style>-Block und in die Dateien
   styles/mesu/<vorlage>/css/<name>-<produkt-id>.css. Beides ist Plugin-
   Code und wird bei jedem Speichern des Produkts neu geschrieben. Darum
   werden die Farben hier umgefaerbt, nicht dort. Das Schema bleibt "dark".
   Jede Regel hier ist eine Klasse tiefer als die des Schemas. */

/* --- Kopfzeile des Themes ---
   Auf Produkt- und Modulseiten faerbt das Schema sie schiefergrau. Auf
   "Meine Produkte" ist sie hell. Jetzt ist sie ueberall gleich: hell. */
body.single-mesu_product .header,
body.single-mesu_module .header {
  background-color: transparent;
}

body:not(.elementor-page) .header .mesu_header_menu_left a,
body:not(.elementor-page) .header .mesu_user_nickname,
body:not(.elementor-page) .header .mesu_user_menu i {
  color: var(--tgv-on-surface);
}

body:not(.elementor-page) .header .mesu_user_menu.mesu_user-profile,
body:not(.elementor-page) .header .mesu_header_menu_right .mesu_user-profile img {
  border-color: var(--tgv-border);
}

/* --- Band oben: Produktkopf und Einheitenkopf ---
   Terracotta wie der Kopf der oeffentlichen Seite. Bone auf Ton 900: 5,73. */
body #mesu-product-header,
body #mesu-product-header .c100::after,
body #mesu-unit-header {
  background-color: var(--tgv-ton-900);
}

body #mesu-product-header .mesu-default-header-title h1,
body #mesu-product-header .mesu-default-header-text,
body #mesu-product-header .product_menu_actions li,
body #mesu-product-header .product_menu_actions a,
body #mesu-product-header .mesu-action-page,
body #mesu-product-header .mesu-action-page a,
body #mesu-product-header .mesu-action-page i,
body #mesu-unit-header a,
body #mesu-unit-header h1,
body #mesu-unit-header h2,
body #mesu-unit-header h3,
body .mesu_print_trigger,
body .mesu_help_trigger {
  color: var(--tgv-on-dark);
}

body .mesu_breadcrumbs h3 a {
  border-bottom-color: var(--tgv-bone-muted);
}

/* Die Lupe: gelbes Quadrat im Schema. Jetzt Bone mit Tiefe, 13,31. */
body .mesu_search_trigger {
  background-color: var(--tgv-surface);
  color: var(--tgv-on-surface);
  border-radius: var(--tgv-radius);
}

/* Das Schema setzt bei einer Text-Einheit die Typ-Marke "Text", findet
   den Text dafuer aber nicht und schreibt "Text leider nicht gefunden."
   in ein weisses Kaestchen unter den Titel. Die Marke sagt dem Mitglied
   nichts, das es nicht sieht. Sie bleibt aus. */
/* Das Plugin setzt die Marke mit einer ID-Regel auf inline-block,
   darum steht die ID hier auch. */
body.single-mesu_module #mesu_single_unit_wrapper .mesu_type,
body.single-mesu_module .mesu_type,
body.single-mesu_product .mesu_type {
  display: none;
}

#mesu_single_unit_wrapper .mesu_content_category {
  color: var(--tgv-on-surface-muted);
}

/* --- Schaltflaechen des Schemas ---
   .mbtn-primary traegt "Jetzt starten", "weiter", "Bild hochladen" und
   die Anmeldung. Gleich wie die Produktkarte: Petrol, Pille, Hind Siliguri. */
body .mbtn.mbtn-primary,
body .comment-respond input.submit {
  background-color: var(--tgv-action);
  border-color: var(--tgv-action);
  color: var(--tgv-on-action);
  border-radius: var(--tgv-radius-pill);
  font-family: var(--tgv-font-button);
  font-weight: var(--tgv-button-weight);
  font-size: var(--tgv-button-size);
  letter-spacing: var(--tgv-button-tracking);
  text-transform: uppercase;
  line-height: 1;
  padding: 14px 28px;
  box-shadow: none;
}

body .mbtn.mbtn-primary a,
body .mbtn.mbtn-primary i {
  color: var(--tgv-on-action);
}

body .mbtn.mbtn-primary:hover,
body .mbtn.mbtn-primary.mbtn-hover:hover,
body .mbtn.mbtn-primary:focus-visible,
body .comment-respond input.submit:hover,
body .comment-respond input.submit:focus-visible {
  background-color: var(--tgv-action-hover);
  border-color: var(--tgv-action-hover);
  color: var(--tgv-on-action);
}

body .mbtn.mbtn-primary:hover a,
body .mbtn.mbtn-primary.mbtn-hover:hover a {
  color: var(--tgv-on-action);
}

body .mbtn.mbtn-primary:focus-visible,
body .comment-respond input.submit:focus-visible {
  outline: 2px solid var(--tgv-on-surface);
  outline-offset: 2px;
}

body .mbtn.mbtn-negative {
  background-color: var(--tgv-ton-900);
  border-color: var(--tgv-ton-900);
  color: var(--tgv-on-dark);
}

/* --- Regeln des Schemas mit !important ---
   Fuenf Regeln des Schemas tragen !important. Gegen die hilft nur
   !important mit hoeherer Spezifitaet. Nur hier, nirgends sonst. */
body.single-mesu_product .header .mesu_header_menu_left a,
body.single-mesu_module .header .mesu_header_menu_left a {
  color: var(--tgv-on-surface) !important;
}

body .comment-respond input.submit {
  background-color: var(--tgv-action) !important;
  border-color: var(--tgv-action) !important;
  color: var(--tgv-on-action) !important;
}

body .comment-respond input.submit:hover,
body .comment-respond input.submit:focus-visible {
  background-color: var(--tgv-action-hover) !important;
  border-color: var(--tgv-action-hover) !important;
}

body .comment-options .comment-reply-link,
body .comment-options .comment-edit-link {
  background-color: var(--tgv-action) !important;
  color: var(--tgv-on-action) !important;
  border-radius: var(--tgv-radius-pill);
}

body .UploadPicture { color: var(--tgv-action) !important; }
body .mbtn.mbtn-primary .UploadPicture,
body .mbtn.mbtn-primary.UploadPicture { color: var(--tgv-on-action) !important; }

/* --- Modulkarten im Produkt (Vorlage index/card) --- */
body .mesu_product_index.card .mesu_pi_module_wrapper {
  background: var(--tgv-surface);
  border: var(--tgv-border-w) solid var(--tgv-border);
  border-radius: var(--tgv-radius);
  box-shadow: none;
  overflow: hidden;
}

body .mesu_product_index.card .mesu_card_image {
  border-radius: 0;
}

body .mesu_product_index.card .mesu_card_module_bottom {
  padding: var(--tgv-space-lg);
}

body .mesu_product_index.card .mesu_card_module_title {
  font-family: var(--tgv-font-display);
  font-weight: var(--tgv-display-weight);
  text-transform: var(--tgv-display-case);
  letter-spacing: var(--tgv-display-tracking);
  color: var(--tgv-on-surface);
  font-size: 22px;
  line-height: 1.2;
}

body .mesu_product_index.card .mesu_card_progress_bar {
  background-color: var(--tgv-bone-muted);
}

body .mesu_product_index.card .mesu_card_progress {
  background-color: var(--tgv-action);
}

/* Gelb auf Weiss war hier Schrift. Jetzt gedaempftes Tiefe. */
body .mesu_product_index.card .mesu_card_progress_description {
  color: var(--tgv-on-surface-muted);
}

/* Marken auf der Karte: Tiefe auf Persimmon, 7,00. */
body .mesu_product_index.card .mesu-card-free-module,
body .mesu_product_index.card .mesu-card-module-success-message,
body .mesu_product_index.card .mesu_card_module_unlock_text {
  background-color: var(--tgv-surface-warm);
  color: var(--tgv-on-surface);
  border-radius: var(--tgv-radius-sm);
}

/* Gesperrtes Modul: im Schema Orange. Jetzt Ton 900 mit Bone, 5,73. */
body .mesu_product_index.card .mesu-card-module-locked {
  background-color: var(--tgv-ton-900);
  color: var(--tgv-on-dark);
}

/* --- Ladekreis --- */
body .loader circle {
  stroke: var(--tgv-action);
}

/* --- Fusszeile ---
   Das Schema faerbt auch den aeusseren Rahmen der Fusszeile. */
body .koth_footer {
  background-color: var(--tgv-surface-dark);
  color: var(--tgv-on-dark);
}

/* --- Schmale Bildschirme ---
   Das Theme gibt dem Inhalt auf dem Telefon keinen Rand: der Text steht an
   der Kante. Und der Produkttitel in Versalien ist bei 54px breiter als
   das Telefon, die Seite rollt dann seitlich. */
@media (max-width: 768px) {
  body.single-mesu_product .wrapper,
  body.single-mesu_module .wrapper {
    padding-left: var(--tgv-space-md);
    padding-right: var(--tgv-space-md);
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  body #mesu-product-header .mesu-default-header-title h1 {
    font-size: 30px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
}

/* ============ 9. Seite nicht gefunden (404) ============ */

/* Die Vorlage kommt aus dem MU-Plugin tgv-404 (mu-plugins/tgv-404/template.php),
   nicht aus dem Theme: ein Update von vivotheme ueberschreibt sonst die Datei.
   Keine Karte, kein Rahmen: der Text steht frei und mittig in einem Abschnitt,
   der fast die ganze Hoehe fuellt. Abgezogen sind Kopf (57px) und Fusszeile. */

.tgv-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  min-height: calc(100svh - 160px);
  padding: var(--tgv-space-2xl) var(--tgv-space-md);
  box-sizing: border-box;
}

.tgv-404__card {
  max-width: 640px;
  text-align: center;
}

.tgv-404__eyebrow {
  margin: 0 0 var(--tgv-space-sm);
  font-family: var(--tgv-font-button);
  font-size: var(--tgv-button-size);
  letter-spacing: var(--tgv-label-tracking);
  text-transform: uppercase;
  color: var(--tgv-on-surface-muted);
}

.tgv-404__title {
  margin: 0 0 var(--tgv-space-xl);
  font-size: 44px;
  line-height: 1.15;
  color: var(--tgv-on-surface);
  overflow-wrap: anywhere;
}

.tgv-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--tgv-space-md) var(--tgv-space-lg);
}

.tgv-404__link {
  color: var(--tgv-action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tgv-404__link:hover,
.tgv-404__link:focus-visible { color: var(--tgv-action-hover); }

@media (max-width: 600px) {
  /* Die Groesse der Ueberschrift regelt Abschnitt 0 (h1 auf dem Telefon). */
  .tgv-404 { padding: var(--tgv-space-xl) var(--tgv-space-md); }
}

/* ============ 9b. Meine Produkte: Willkommen ============ */

/* Der Willkommenstext auf /meine-produkte/ (Seite 35) steht in einem Band ueber die
   volle Breite, in Creme statt Weiss. Der Text bleibt in Inhaltsbreite wie die
   Produkte darunter: WPBakery-Zeile full_width="stretch_row", el_class tgv-willkommen.
   Die Seite selbst ist Creme (Abschnitt 0), das Band deshalb eine Stufe dunkler: Bone. */

.tgv-willkommen.vc_row {
  padding-top: var(--tgv-space-2xl) !important;
  padding-bottom: var(--tgv-space-xl) !important;
  background: var(--tgv-surface);
}

.tgv-willkommen h1 { margin-top: 0; }

/* Vorname aus [mesu_user_firstname]. Ohne Vornamen bleibt der Span leer,
   dann faellt auch das Komma weg: "Schoen, dass du da bist." */
.tgv-name:not(:empty)::before { content: ", "; }
.tgv-willkommen .wpb_text_column p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .tgv-willkommen.vc_row {
    padding-top: var(--tgv-space-xl) !important;
    padding-bottom: var(--tgv-space-lg) !important;
  }
}

/* ============ 10. Profilseite (Vorlage - User Profile, Seite 25) ============ */

/* MembersSuite-Vorlage "pioneersofchange". Sie bringt ein Stockfoto als
   Titelbild, eine orange Schaltflaeche und graue Tabellenzeilen. */

.mesu_member_user_profile { color: var(--tgv-on-surface); }

/* Das Stockfoto kommt aus members-profile.css. Laedt ein Mitglied ein
   eigenes Titelbild hoch, steht es im style-Attribut: das bleibt. */
.mesu_member_user_profile .mesu_musp_cover:not([style*="background"]) {
  background: var(--tgv-ton-900);
}

.mesu_member_user_profile .mesu_musp_avatar {
  background: var(--tgv-surface);
  border-color: var(--tgv-surface);
  border-radius: var(--tgv-radius-lg);
  box-shadow: var(--tgv-shadow);
  overflow: hidden;
}

.mesu_member_user_profile .mesu_maintain_profile {
  background: var(--tgv-action);
  color: var(--tgv-on-action);
  border: 0;
  border-radius: var(--tgv-radius-pill);
  padding: 14px 28px;
  font-family: var(--tgv-font-button);
  font-size: var(--tgv-button-size);
  font-weight: var(--tgv-button-weight);
  line-height: 1;
  letter-spacing: var(--tgv-button-tracking);
  text-transform: uppercase;
  transition: background-color .15s ease;
}

.mesu_member_user_profile .mesu_maintain_profile .fa {
  font-size: 13px;
  margin-right: 6px;
}

.mesu_member_user_profile a:hover .mesu_maintain_profile,
.mesu_member_user_profile a:focus-visible .mesu_maintain_profile {
  background: var(--tgv-action-hover);
}

.mesu_member_user_profile .mesu_musp_name h1 {
  color: var(--tgv-on-surface);
  font-size: 40px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* "Kontaktinformationen", "Engagement Monitor", "Kommentare": MembersSuite
   schreibt font-size und font-weight: bold ins style-Attribut. Ein
   style-Attribut schlaegt jede Regel, nur !important nicht. Darum hier,
   und nur fuer diese zwei Eigenschaften. */
.mesu_member_user_profile .mesu_member_social > div:first-child,
.mesu_member_user_profile .content-wrap > section > div:not([class]) {
  font-family: var(--tgv-font-display);
  font-weight: var(--tgv-display-weight) !important;
  font-size: 18px !important;
  text-transform: var(--tgv-display-case);
  letter-spacing: var(--tgv-display-tracking);
  color: var(--tgv-on-surface);
}

.mesu_member_user_profile .mesu_mc_sozial_icon .fa-stack-2x { color: var(--tgv-action); }
.mesu_member_user_profile .mesu_mc_sozial_icon .fa-inverse { color: var(--tgv-on-action); }

/* Tabelle der Abonnements */
.mesu_member_user_profile .maduka_datagird_container {
  background: transparent;
  border-collapse: collapse;
  font-family: var(--tgv-font-body);
}

/* Die Zeile behaelt ihr Grau aus MembersSuite, die Zelle liegt darueber. */
.mesu_member_user_profile .maduka_datagird_container .header_cell {
  background: var(--tgv-surface-sunken);
}

.mesu_member_user_profile .maduka_datagird_container .header_cell,
.mesu_member_user_profile .maduka_datagird_container .data_container,
.mesu_member_user_profile .maduka_datagird_container .subheader_row {
  border-color: var(--tgv-border);
}

.mesu_member_user_profile .maduka_datagird_container .table_header { color: var(--tgv-on-surface); }

.mesu_member_user_profile .maduka_datagird_container .subheader_row {
  background: var(--tgv-surface);
}

.mesu_member_user_profile .maduka_datagird_container .subheader_cell,
.mesu_member_user_profile .maduka_datagird_container td {
  font-family: var(--tgv-font-body);
  color: var(--tgv-on-surface);
}

.mesu_member_user_profile .maduka_datagird_container .subheader_cell {
  font-family: var(--tgv-font-button);
  font-size: var(--tgv-button-size);
  font-weight: var(--tgv-button-weight);
  letter-spacing: var(--tgv-label-tracking);
  text-transform: uppercase;
  color: var(--tgv-on-surface-muted);
}

/* Telefon: Das Theme gibt der Seite keinen Rand, WPBakery zieht die Zeile
   mit -15px nach aussen. Ohne Rand schiebt die Seite seitlich. Die Tabelle
   hat vier Spalten, die Beschriftung wird dafuer enger. */
@media (max-width: 768px) {
  body:has(.mesu_member_user_profile) .wrapper {
    padding-left: var(--tgv-space-md);
    padding-right: var(--tgv-space-md);
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .mesu_member_user_profile .mesu_musp_name h1 { font-size: 28px; }

  /* Vier Spalten passen nicht auf 390px. Die Tabelle scrollt in sich,
     die Seite bleibt stehen. */
  .mesu_member_user_profile .maduka_datagird_container {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .mesu_member_user_profile .maduka_datagird_container .subheader_cell,
  .mesu_member_user_profile .maduka_datagird_container td {
    padding: 6px 4px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}
