/* =========================================================
   Zuhause in Italien – user.css (bereinigt & stabil)
   - Montserrat global
   - Background / Links nur Content + Sidebar
   - Buttons nach Vorgabe
   - Header (Bordeaux) + "Die Plattform" rechts via ::after
   - Profil: User-Felder als Liste ohne Bullets + Reihenfolge
   - Vorstellungstext als Box unter dem Beitragstext
   ========================================================= */

/* Font */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

/* Global Typography */
html, body{
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  color: #2b2b2b !important;
}

/* Background (Site) */
body,
.site,
.site-grid,
.wrapper-static,
.container-component,
.container-sidebar-left,
.container-sidebar-right{
  background-color: #faf7f2 !important;
}

/* Links: nur Content + Sidebar (nicht Header global) */
.container-component a,
.container-sidebar-left a,
.container-sidebar-right a{
  color: #8c1d18;
  text-decoration: none;
}
.container-component a:hover,
.container-component a:focus,
.container-sidebar-left a:hover,
.container-sidebar-left a:focus,
.container-sidebar-right a:hover,
.container-sidebar-right a:focus{
  color: #333333;
  text-decoration: underline;
}

/* Buttons: Basis */
.btn,
.button,
[type="button"],
[type="submit"],
input[type="button"],
input[type="submit"]{
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 600;
  border-radius: 0 !important;
  border: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Button-Farben konsolidiert */
.btn-primary,
.btn-outline-primary,
.btn-info,
.btn-secondary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-light,
.btn-dark,
.btn.btn-primary,
.btn.btn-outline-primary,
.btn.btn-info,
.btn.btn-secondary,
.btn.btn-success,
.btn.btn-warning,
.btn.btn-danger,
.btn.btn-light,
.btn.btn-dark{
  color: #8c1d18 !important;
  background-color: #d5d5d5 !important;
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-info:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-primary:focus,
.btn-outline-primary:focus,
.btn-info:focus,
.btn-secondary:focus,
.btn-success:focus,
.btn-warning:focus,
.btn-danger:focus,
.btn-light:focus,
.btn-dark:focus{
  color: #333333 !important;
  background-color: #bfbfbf !important;
}

.btn-primary:active,
.btn-outline-primary:active,
.btn-info:active,
.btn-secondary:active,
.btn-success:active,
.btn-warning:active,
.btn-danger:active,
.btn-light:active,
.btn-dark:active{
  background-color: #b0b0b0 !important;
}

/* CTA / große Buttons */
.btn-lg{
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  letter-spacing: 0.03em;
}

/* Header: Bordeaux, kein Gradient/Overlay */
.container-header,
header.header,
.header{
  background-color: #800020 !important;
  background-image: none !important;
}
.container-header::before,
header.header::before,
.header::before{
  background: none !important;
}

/* Header Logo – links, dezent */
.header .navbar-brand,
.container-header .navbar-brand{
  padding: 0.5rem 0 0.5rem 0.75rem;
  margin: 0;
}
.header .navbar-brand img,
.container-header .navbar-brand img{
  max-height: 44px;
  width: auto;
  display: block;
  background: transparent;
}
.navbar-brand .site-title,
.navbar-brand span{
  display: none !important;
}
@media (max-width: 768px){
  .header .navbar-brand img,
  .container-header .navbar-brand img{
    max-height: 36px;
  }
}

/* Header – Text rechts ("Die Plattform") via ::after */
header.header.container-header .grid-child{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.header.container-header .grid-child::after{
  content: "Die Plattform";
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin-right: 32px;
  white-space: nowrap;
}
@media (max-width: 768px){
  header.header.container-header .grid-child::after{
    font-size: 1.4rem;
    margin-right: 20px;
  }
}
@media (max-width: 480px){
  header.header.container-header .grid-child::after{
    display: none;
  }
}

/* Meta-Zeilen / text-muted: stärker */
.com-content-article .text-muted,
.mod-expertblog-articles .text-muted,
.card-body .text-muted{
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b2b2b !important;
  opacity: 1 !important;
}

/* =========================================================
   PROFIL: User-Felder-Liste (oberer Block)
   ========================================================= */

/* Bulletpoints zuverlässig entfernen */
ul.profile-fields{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 18px 0 !important;
}
ul.profile-fields li::marker{ content: "" !important; }
ul.profile-fields > li{
  background: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Reihenfolge im Profil */
ul.profile-fields{
  display: flex;
  flex-direction: column;
}
ul.profile-fields > li{ order: 10; }

ul.profile-fields > li.field-entry.strasse{ order: 20; }
ul.profile-fields > li.field-entry.plz{ order: 30; }
ul.profile-fields > li.field-entry.stadt{ order: 40; }
ul.profile-fields > li.field-entry.provinz{ order: 50; }
ul.profile-fields > li.field-entry.land{ order: 60; }
ul.profile-fields > li.field-entry.telefonnummer{ order: 70; }
ul.profile-fields > li.field-entry.e-mail-adresse{ order: 80; }

/* Webseite direkt unter E-Mail */
ul.profile-fields > li.field-entry.webseite{ order: 90; }

/* PLZ + Stadt + Provinz in einer Zeile */
ul.profile-fields > li.field-entry.plz,
ul.profile-fields > li.field-entry.stadt,
ul.profile-fields > li.field-entry.provinz{
  display: inline;
}
ul.profile-fields > li.field-entry.plz::after{ content: " "; }
ul.profile-fields > li.field-entry.provinz::before{ content: " ("; }
ul.profile-fields > li.field-entry.provinz::after{ content: ")"; }

/* Webseite-Link etwas „cleaner“ */
.field-entry.webseite a{
  text-decoration: underline;
}
.field-entry.webseite a:hover{
  text-decoration: underline;
}

/* =========================================================
   Beitragstext + Vorstellungstext-Box
   ========================================================= */

/* Reihenfolge im Artikel-Layout (dein Setup) */
.com-content-article.item-page{
  display: flex;
  flex-direction: column;
}
.com-content-article.item-page > ul.profile-fields{ order: 20; }
.com-content-article.item-page > .com-content-article__body{ order: 30; }
.com-content-article.item-page > .profile-intro-box{ order: 40; }

/* Vorstellungstext Box */
.profile-intro-box{
  border: 1px solid #d5d5d5;
  padding: 16px;
  margin-top: 18px;
  border-radius: 6px;
  background: #fff;
}
.profile-intro-box p:last-child{ margin-bottom: 0; }

/* =========================================================
   Frontend: Feld-Labels ausblenden (Backend bleibt unberührt)
   ========================================================= */

/* Nur im Frontend (site), nicht im Administrator */
body.site .profile-fields .field-label,
body.site .profile-intro-box .field-label{
  display: none !important;
}

/* =====================================================
   Profilfelder: Flex-Layout für Reihenfolge + PLZ/Stadt/Provinz in 1 Zeile
   ===================================================== */

ul.profile-fields{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;

  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 18px 0 !important;
}

/* Bullets wirklich weg */
ul.profile-fields > li::marker{ content: "" !important; }

/* Standard: jedes Feld volle Zeile */
ul.profile-fields > li{
  flex: 0 0 100% !important;   /* Zeilenumbruch erzwingen */
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* PLZ + Stadt + Provinz: gemeinsam in einer Zeile */
ul.profile-fields > li.field-entry.plz,
ul.profile-fields > li.field-entry.stadt,
ul.profile-fields > li.field-entry.provinz{
  flex: 0 0 auto !important;   /* KEIN Zeilenumbruch */
}

/* Formatierung: 03010 Serrone (FR) */
ul.profile-fields > li.field-entry.plz::after{ content: " "; }
ul.profile-fields > li.field-entry.provinz::before{ content: " ("; }
ul.profile-fields > li.field-entry.provinz::after{ content: ")"; }

/* optional: verhindert hässliche Umbrüche mitten drin */
ul.profile-fields > li.field-entry.stadt,
ul.profile-fields > li.field-entry.provinz{
  white-space: nowrap;
}

/* ===============================
   Abstände PLZ · Stadt · Provinz
   =============================== */

/* Leerzeichen NACH PLZ */
ul.profile-fields li.field-entry.plz .field-value::after {
  content: "\00a0"; /* geschütztes Leerzeichen */
}

/* Leerzeichen NACH Stadt */
ul.profile-fields li.field-entry.stadt .field-value::after {
  content: "\00a0";
}

/* ===============================
   Website-Link (Artikel-Links)
   Bullet entfernen
   =============================== */

.com-content-article__links ul,
.com-content-article__links li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.com-content-article__links li::marker {
  content: "" !important;
}

/* ===============================
   Website unter E-Mail einordnen
   =============================== */

/* gesamter Artikel als Flex-Container */
.com-content-article.item-page {
  display: flex;
  flex-direction: column;
}

/* Profilfelder */
ul.profile-fields {
  order: 20;
}

/* Website-Link (com_content links) */
.com-content-article__links {
  order: 21;
  margin-top: 6px;
}

/* Artikeltext */
.com-content-article__body {
  order: 30;
}

/* =====================================================
   Kategorie-Badge (z. B. "Webdesigner") im Profil-Header
   ===================================================== */

/* Bezugspunkt */
.com-content-article.item-page{
  position: relative;
}

/* Platz rechts neben dem Namen */
.com-content-article.item-page .page-header{
  position: relative;
  padding-right: 260px;
}

/* Position oben rechts */
.com-content-article.item-page ul.tags.list-inline{
  position: absolute;
  top: 18px;
  right: 0;

  margin: 0 !important;
  padding: 0 !important;
  list-style: none;

  z-index: 10;
}

/* Flächige Kategorie-Leiste */
.com-content-article.item-page ul.tags.list-inline a.btn{
  display: block;

  background-color: #800020 !important;
  color: #faf7f2 !important;

  padding: 14px 28px !important;

  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;

  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  text-decoration: none !important;
  pointer-events: none;
}

/* Mobile: unter den Namen */
@media (max-width: 768px){
  .com-content-article.item-page .page-header{
    padding-right: 0;
  }
  .com-content-article.item-page ul.tags.list-inline{
    position: static;
    margin-top: 10px !important;
  }
  .com-content-article.item-page ul.tags.list-inline a.btn{
    font-size: 1rem;
    padding: 10px 18px !important;
  }
}

/* =========================================
   Tags im Profil-Header: komplett entklicken
   ========================================= */

.com-content-article.item-page ul.tags.list-inline{
  pointer-events: none !important;
}

.com-content-article.item-page ul.tags.list-inline a,
.com-content-article.item-page ul.tags.list-inline a:visited,
.com-content-article.item-page ul.tags.list-inline a:hover,
.com-content-article.item-page ul.tags.list-inline a:focus,
.com-content-article.item-page ul.tags.list-inline a:active{
  cursor: default !important;
  text-decoration: none !important;
}

/* =====================================================
   ExpertBlog: Fragetext hervorheben
   ===================================================== */

/* Nur auf Thread-Seiten */
body.com_expertblog.view-thread 
.expertblog-thread 
.card.mb-4 
.thread-body{
  font-weight: 600;
  color: #800020;
}

/* =====================================================
   NEU: Social Icons direkt unter mondig.it (com_content links)
   - basiert auf FontAwesome <span class="fa-...">
   ===================================================== */

.profile-social{
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 8px 0 0 0;
}

/* Icon-Links */
.profile-social .social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  text-decoration: none !important;

  /* Icon-Farbe */
  color: #800020 !important;
}

.profile-social .social-link:hover{
  opacity: 0.85;
}

.profile-social .social-link:focus-visible{
  outline: 2px solid #29608e;
  outline-offset: 2px;
}

/* Icon-Größe */
.profile-social .social-link span{
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 768px){
  .profile-social .social-link{
    width: 30px;
    height: 30px;
  }
  .profile-social .social-link span{
    font-size: 24px;
  }
}

/* Wissensbereich */
.wissens-card-img img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.mod-expertblog-articles .text-center,
.expertblog-cards .text-center{
  padding-top: 10px;
}



