/* =========================================================
   CUSTOM CSS für Divi Theme
   Bereinigt und optimiert
   ========================================================= */

/* =========================================================
   MOBILE HEADER & LOGO
   ========================================================= */
@media (max-width: 980px) {
  /* Logo in mobiler Ansicht vergrößern */
  .et_pb_menu__logo img,
  #logo {
    max-height: 85px !important;
    width: auto !important;
  }

  /* Menü-Höhe reduzieren */
  .et_pb_menu,
  .et_pb_fullwidth_menu {
    padding-top: 15px !important;
    padding-bottom: 10px !important;
    min-height: auto !important;
  }

  /* Standard Divi-Header kompakter machen */
  #main-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: auto !important;
  }

  /* Abstand zwischen Hamburger-Icon und Dropdown */
  #main-header .et_mobile_menu,
  .et_pb_menu__wrap .et_mobile_menu {
    margin-top: 14px !important;
  }
}

/* =========================================================
   DESKTOP HEADER & MENÜ
   ========================================================= */
@media (min-width: 981px) {
  /* Header-Höhe und Padding für Logo (120px) */
  #main-header #et-top-navigation,
  .et-fixed-header #et-top-navigation {
    padding-top: 28px !important;
    padding-bottom: 0px !important; /* Kein bottom padding */
  }

  /* Logo auf 120px Höhe setzen */
  #main-header .logo_container img,
  #main-header #logo,
  .et-fixed-header .logo_container img,
  .et-fixed-header #logo {
    max-height: 120px !important;
    height: auto !important;
    width: auto !important;
  }

  /* Menüpunkte vertikal zentrieren mit padding */
  #et-top-navigation #top-menu > li,
  #et-top-navigation .nav > li {
    padding-top: 48px !important; /* Schiebt Menü nach unten = zentriert */
    padding-right: 15px !important; /* Abstand zwischen Menüpunkten */
  }

  /* Nur die Unterstreichungen deaktivieren, NICHT die Pfeile */
  #et-top-navigation .nav > li::after,
  .et_pb_menu .et-menu > li::after {
    content: none !important;
  }

  /* Standard Divi-Pfeile für alle Dropdowns wiederherstellen */
  #et-top-navigation .nav > li.menu-item-has-children > a:first-child:after {
    font-family: 'ETmodules' !important;
    content: '\33' !important; /* Pfeil nach unten */
    margin-left: 6px !important;
  }

  /* Dropdown-Menü direkt unter dem Menüpunkt positionieren */
  #et-top-navigation .nav > li.menu-item-has-children {
    position: relative !important;
  }

  #et-top-navigation .nav > li.menu-item-has-children .sub-menu {
    top: 100% !important; /* Direkt unter dem Menüpunkt */
    margin: 0 !important;
    padding-top: 0 !important;
  }

  
  /* Pfeil bei Item 31 ebenfalls rot einfärben */
  #et-top-navigation #menu-item-31.menu-item-has-children > a:first-child:after {
    color: #990000 !important;
  }

  /* Pfeil bei Hover dunkler (nur Item 31) */
  #et-top-navigation #menu-item-31.menu-item-has-children > a:hover:after {
    color: #bd1900 !important;
  }
}

/* Zweifarbiger Menüpunkt "VERANSTALTUNGEN" */
#menu-item-31 .veran {
  color: #990000;
  font-style: normal;
}

#menu-item-31 .staltungen {
  color: #000000;
  font-style: italic; /* dieser Teil wird kursiv */
}

#menu-item-31:hover .veran { color: #660000; }
#menu-item-31:hover .staltungen { color: #222222; }




/* =========================================================
   HINTERGRUND (GRAUER SITE-HINTERGRUND)
   ========================================================= */
html, body, #page-container {
  background-color: #d9d9d9 !important;
}

/* Theme-Builder Schichten transparent machen */
.et-l .et_pb_section,
.et-l .et_pb_row,
.et-l .et_pb_column,
.et-l .et_builder_inner_content,
#et-main-area,
#main-content {
  background-color: transparent !important;
}

/* =========================================================
   TYPOGRAFIE & TEXT-KLASSEN
   ========================================================= */
.side-text {
  font-family: 'letter gothic std';
  color: #bd1900;
  line-height: 1.5;
  font-size: 1.1em;
  text-align: left;
}

.side-text-small {
  font-family: 'letter gothic std';
  color: #bd1900;
  line-height: 1.5;
  font-size: 0.8em;
  text-align: left;
  font-style: italic;
}


#text-2
{margin-bottom: 125px !important;}


.joba-waswar-years a {
  list-style: none;
  margin: 0;
  padding: 0;
line-height: 0.9 !important; }



/* Widget-Links */
.et_pb_widget a {
  text-decoration: none;
  color: #990000;
}

.et_pb_widget a:hover {
  text-decoration: underline;
  color: #990000 !important;
}

.et_pb_widget ol li,
.et_pb_widget ul li {
  margin-bottom: .01em;
}

/* =========================================================
   SIDEBAR & TRENNLINIE
   ========================================================= */
/* Alte Standard-Trennlinie entfernen */
.et_right_sidebar #main-content .container::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

.et_right_sidebar #sidebar {
  border-left: 0 !important;
  box-shadow: none !important;
}

/* Neue vertikale Trennlinie zwischen Content und Sidebar */
@media (min-width: 768px) {
  #left-area {
    position: relative;
  }

  #left-area::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #999;
  }
}

@media (max-width: 767px) {
  #left-area::after {
    display: none !important;
  }
}

/* Was-war-Widget mobil sicher verstecken (Divi-Breakpoint) */
@media only screen and (max-width: 980px) {
  #text-3, #text-3 * { 
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .widget.widget_waswar, .widget.widget_waswar * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/* Divi setzt auf echten Geräten oft .et_mobile_device am body */
.et_mobile_device #text-3,
.et_mobile_device .widget.widget_waswar { display: none !important; }


/* =========================================================
   BLOG-LISTE: THUMBNAIL LINKS (Klasse .thumb-left)
   ========================================================= */
@media (min-width: 981px) {
  /* Bild links floaten */
  .thumb-left .et_pb_post .et_pb_image_container,
  .thumb-left .et_pb_post .entry-featured-image-url {
    float: left;
    width: 320px;
    margin: 0 30px 16px 0;
  }

  .thumb-left .et_pb_post .et_pb_image_container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .thumb-left .et_pb_post .entry-featured-image-url {
    display: block;
    height: auto;
    background-size: cover;
    background-position: center center;
    min-height: 0;
  }

  /* Text umfließt das Bild */
  .thumb-left .et_pb_post .post-content {
    overflow: hidden;
  }

  .thumb-left .et_pb_post {
    clear: both;
  }

  /* Posts ohne Thumbnail normaler Textfluss */
  .thumb-left .et_pb_post:not(.has-post-thumbnail) .post-content {
    overflow: visible;
  }
}

/* Mobile: Bild über dem Text */
@media (max-width: 980px) {
  .thumb-left .et_pb_post .et_pb_image_container,
  .thumb-left .et_pb_post .entry-featured-image-url {
    float: none;
    width: 100%;
    margin: 0 0 25px 0 !important;
  }
}

/* =========================================================
   MENÜ: ARCHIV-DROPDOWN STYLING
   ========================================================= */
.et-menu .sub-menu li.menu-item-archive-year > a {
  display: block;
  padding: 8px 14px;
  line-height: 1.3;
}

.et-menu .sub-menu li.menu-item-archive-year > a:hover {
  background: #f5f5f5;
}

/* Scrollbar bei langen Dropdowns */
.et-menu .sub-menu {
  max-height: 60vh;
  overflow: auto;
}


/* Logo & Social-Icons von Bildstil ausschließen */
#logo,
.et_pb_menu__logo img,
.et_pb_social_icon img {
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}

/* Alignments für Bilder beibehalten */
.entry-content img.alignleft,
.et_pb_post_content img.alignleft,
.et_pb_text_inner img.alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.entry-content img.alignright,
.et_pb_post_content img.alignright,
.et_pb_text_inner img.alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

.entry-content img.aligncenter,
.et_pb_post_content img.aligncenter,
.et_pb_text_inner img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   SEOPress Breadcrumbs – statische Seiten
   bündig mit Divi-Content (Standard 1080px)
   =========================== */

body.page #seopress-breadcrumbs,
body.page .seopress-breadcrumbs,
body.page .seopress-breadcrumbs-wrap {
  max-width: 1080px;
  margin: 10px auto 5px !important;  /* zentrieren + kleiner Abstand */
  padding: 0 0px;                    /* seitlicher Innenabstand wie Content */
  box-sizing: border-box;
  display: block;
  float: none;                        /* falls irgendwo float gesetzt wurde */
  clear: both;                        /* verhindert Andocken an floated-Elemente */
}

/* Typo & Links (optional) */
body.page .seopress-breadcrumbs {
  font-size: 14px;
  color: #666;
}
body.page .seopress-breadcrumbs a { color: #555; text-decoration: none; }
body.page .seopress-breadcrumbs a:hover { color: #000; text-decoration: underline; }
body.page .seopress-breadcrumbs .separator { margin: 0 6px; }

/* Mobil */
@media (max-width: 767px) {
  body.page #seopress-breadcrumbs,
  body.page .seopress-breadcrumbs,
  body.page .seopress-breadcrumbs-wrap {
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.4;
  }
}


/* =========================================================
   CUSTOM FONTS
   ========================================================= */
@font-face {
  font-family: 'Carrois Gothic';
  font-style: normal;
  font-weight: 400;
  src: url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi_Child/fonts/carrois-gothic-v7-latin-regular.eot');
  src: local('Carrois Gothic Regular'), local('CarroisGothic-Regular'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/carrois-gothic-v7-latin-regular.eot?#iefix') format('embedded-opentype'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/carrois-gothic-v7-latin-regular.woff2') format('woff2'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/carrois-gothic-v7-latin-regular.woff') format('woff'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/carrois-gothic-v7-latin-regular.ttf') format('truetype'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/carrois-gothic-v7-latin-regular.svg#CarroisGothic') format('svg');
}

@font-face {
  font-family: 'News Cycle';
  font-style: normal;
  font-weight: 400;
  src: url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/news-cycle-v14-latin-regular.eot');
  src: local('News Cycle'), local('NewsCycle'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/news-cycle-v14-latin-regular.eot?#iefix') format('embedded-opentype'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/news-cycle-v14-latin-regular.woff2') format('woff2'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/news-cycle-v14-latin-regular.woff') format('woff'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/news-cycle-v14-latin-regular.ttf') format('truetype'),
       url('https://sozialeskulptur.com/cms25/wp-content/themes/Divi-Child/fonts/news-cycle-v14-latin-regular.svg#NewsCycle') format('svg');
}

/* =========================================================
   CONTACT FORM 7 FIX
   ========================================================= */
span.wpcf7-form-control.wpcf7-acceptance span.wpcf7-list-item,
span.wpcf7-list-item-label {
  margin-left: -5px;
}
