/**
 * JBS-2026 – Template-Stylesheet
 * Johannes-Brahms-Schule Pinneberg
 */

/* =========================================================
   Schriften
   ========================================================= */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-700.woff2') format('woff2');
}

/* Icons kommen aus dem Font Awesome 6 von Joomla (Asset "fontawesome") */
:root {
  --jbs-icon-font: 'Font Awesome 6 Free';
}

/* =========================================================
   Grundlagen
   ========================================================= */

html {
  overflow-y: scroll;
  height: 100%;
}

body {
  color: #444;
  font-family: 'Source Sans 3', 'Source Sans Pro', Verdana, sans-serif;
  font-size: 110%;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header-links img {
  max-width: 120px;
  float: left;
  margin-right: 10px;
}

.seite,
#footer .row {
  max-width: 1300px;
  margin: auto;
  position: relative;
  padding: 0 10px;
}

/* Inhalt bündig mit Logo und Topmenü: gleiche Breite und gleicher Randabstand wie der Kopfbereich (#header 5px + .headerseite 10px) */
.seite,
.headerseite {
  box-sizing: content-box;
}

.seite {
  padding: 0 15px;
}

.seite {
  min-height: 1000px;
}

.headerseite {
  max-width: 1300px;
  margin: auto;
  padding: 0 10px;
}

.titel {
  color: #fff;
  font-size: 2em;
  line-height: 37px;
  margin: 20px 0 0 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 15px 0 10px;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Überschrift wächst mit der Breite der Inhaltsspalte: 21px (Handy) bis 30px (breite Spalte) */
.inhalt-60,
.inhalt-100 {
  container-type: inline-size;
}

.inhalt-60 h1,
.inhalt-100 h1 {
  font-size: clamp(21px, 14px + 1.2vw, 30px);
  font-size: clamp(21px, 16px + 1.55cqi, 30px);
}

h2 {
  margin-bottom: 5px;
}

.page-content h2 {
  font-size: 160%;
  margin: 20px 0;
}

h3 a,
.fc-col-header a {
  color: #212c41;
}

.page-content h3 {
  font-size: 140%;
  margin: 15px 0;
}

.inhalt-60 h3 {
  font-size: 120%;
}

.item-page h3 {
  margin-top: 40px;
}

#right .row h3 {
  text-transform: uppercase;
}

h4,
h5 {
  font-size: 20px;
}

#main p {
  -webkit-hyphens: auto;
  hyphens: auto;
  text-align: justify;
}

#main p,
#main li {
  line-height: 26px;
}

#right p {
  line-height: 21px;
}

#main .img_caption {
  font-size: 12px;
  line-height: 15px;
}

a,
#main .sppb-alert-primary a {
  text-decoration: none;
  color: #1d4796;
  transition: 1s;
  font-weight: bold;
}

a:hover {
  color: #0c2656;
}

/* Doppelpfeil » hinter Links in Modulen und der rechten Spalte */
.moduletable a::after,
#right a::after {
  content: " \f101";
  font-family: var(--jbs-icon-font);
  font-weight: 900;
}

img {
  height: auto;
  box-sizing: border-box;
  max-width: 100%;
  vertical-align: middle;
  transition: .5s;
}

a:hover img,
a:hover img.sppb-element-lazy.sppb-element-loaded,
.logos img {
  filter: opacity(0.7);
  transition: .5s;
}

p:first-child {
  margin-top: 5px;
}

/* =========================================================
   Breadcrumbs
   ========================================================= */

.breadcrumb {
  padding: 2px;
  margin: 5px 0;
}

.breadcrumb li {
  list-style-type: none;
  float: left;
  margin-right: 6px;
  font-size: 14px;
}

.breadcrumb li:first-child {
  margin-right: 0;
}

.breadcrumb a {
  color: #212c41;
  text-decoration: underline;
}

.breadcrumb li:last-child {
  float: none;
}

.highlight {
  background: #fff;
  padding: 5px;
  display: block;
}

/* =========================================================
   Kopfbereich
   ========================================================= */

#header {
  color: #fff;
  padding: 1px 5px 0 5px;
  background: #2b3953;
  background: linear-gradient(to bottom, #2b3953 0%, #42577d 100%);
}

#header .logo {
  float: left;
  margin: 11px 20px 12px 0;
  display: block;
  width: 16%;
  max-width: 157px;
}

#header .logo img {
  width: 100%;
}

.header-titel .custom {
  padding-top: 20px;
}

#header p {
  margin: 10px 0 0 176px;
}

.top-menu {
  float: right;
  background-color: #627597;
  padding: 4px;
}

.top-menu li {
  list-style-type: none;
  display: inline;
  margin: 0 9px;
}

.top-menu li a {
  color: #fff;
}

.top-menu .nav {
  margin: 0;
  padding: 0;
}

/* =========================================================
   Inhalt und rechte Spalte
   ========================================================= */

#main {
  margin-top: 20px;
  overflow: hidden;
  clear: both;
}

#main .rl_tooltips-link {
  border-bottom: 1px dashed #344564;
  display: inline !important;
}

.inhalt-60 {
  width: 69%;
  float: left;
  overflow: hidden;
}


.inhalt-60 .article-info,
.itemid-102 .inhalt-60 .published,
.inhalt-100 .article-info {
  display: none;
}

.itemid-102 .inhalt-60 .article-info {
  display: initial;
}

/* Inhaltsfläche: Weiß mit feinem Rand statt grauer Füllung */
.inhalt-60,
.inhalt-100 {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  padding: 4px 16px;
  margin-bottom: 40px;
}

#right {
  width: 27%;
  float: right;
}

#right .row > div {
  padding: 8px 10px 1px 10px;
  background: #95a7c9;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}

#right a,
#section-id-1585231400760 a {
  color: #212c41;
  transition: 1s;
}

#right a:hover {
  color: #fff;
}

#right h3,
.sppb-addon-module h3,
.sppb-addon-gallery h3 {
  background: #42577d;
  padding: 7px;
  margin-top: 5px;
  color: #fff;
  display: block;
  border-radius: 4px;
}

#right img {
  width: 100%;
}

#right a.highlight:hover,
#main .sppb-alert-primary {
  color: #333;
}

#right .moduletable a.linkonly::after {
  content: "";
}

.hidden,
.article-info-term {
  display: none;
}

.no-padding,
.create,
.article-info {
  padding: 0;
  margin: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.readmore {
  text-align: right;
}

.create {
  font-size: 80%;
  padding-bottom: 6px;
}

.item {
  background: #ecf0f7;
  border: 0.5px solid #666;
  padding: 5px 15px 15px;
  margin-bottom: 20px;
  overflow: hidden;
}

.item-image,
.sppb-addon-text-block img {
  margin: 5px 10px 10px 0;
  width: 55%;
}

.sppb-panel-group .sppb-addon-text-block img {
  width: auto;
}

.item-page .right {
  float: right;
}

.item-page .left {
  float: left;
  margin-right: 15px;
}

.linkkasten,
.downloads .inhalt-60 .sppb-addon-content p {
  background: #d6deed;
  padding: 5px;
  min-height: 65px;
}

#content-top {
  margin-bottom: 10px;
}

/* =========================================================
   Hauptnavigation (DJ-MegaMenu)
   ========================================================= */

#navigation {
  margin-top: 40px;
}

.dj-megamenu-custom90,
#navigation #dj-megamenu90 {
  background: none;
}

.headerseite #dj-megamenu90 li a.dj-up_a,
.headerseite #dj-megamenu90 li:hover a.dj-up_a,
#dj-megamenu90 li.hover a.dj-up_a,
#navigation .dj-megamenu-default li a.dj-up_a {
  border: none;
  font-size: 22px;
  height: 44px;
  text-transform: none;
  font-weight: normal;
}

.headerseite #dj-megamenu90,
#dj-megamenu90sticky {
  background: none;
}

.headerseite .dj-megamenu-custom90 li a.dj-up_a .arrow {
  margin-top: -3px;
}

#navigation #dj-megamenu90 li a.dj-up_a span {
  height: 45px;
  line-height: 45px;
}

#navigation #dj-megamenu90 li.active a.dj-up_a,
#navigation .dj-megamenu-custom91 li:hover a.dj-up_a {
  box-shadow: 2px -2px 3px -2px #382f23;
}

#navigation #dj-megamenu90 li.dj-up {
  margin-right: 5px !important;
}

#navigation #dj-megamenu90 li a.dj-up_a {
  font-weight: normal;
}

#navigation #dj-megamenu90 li a.dj-up_a span.dj-drop {
  padding: 0 !important;
}

#navigation .arrow,
#navigation #dj-megamenu90 li.itemid102 {
  display: none;
}

#navigation #dj-megamenu90 li ul.dj-submenu > li > a {
  font-size: 17px;
}

.headerseite .dj-megamenu-select-light .dj-mobile-open-btn,
.seite .dj-megamenu-offcanvas-light .dj-mobile-open-btn,
.site .dj-megamenu-accordion-light .dj-mobile-open-btn {
  font-size: 32px;
}

.headerseite .dj-megamenu-select-light.select-button {
  display: flex;
}

.headerseite .dj-megamenu-custom91 li ul.dj-submenu > li > a {
  font-size: 16px;
  line-height: 18px;
  padding: 8px 20px;
}

/* =========================================================
   Startseite und SP Page Builder
   ========================================================= */

.home .seite {
  max-width: 1252px;
}

/* Startseite: kein Rahmen, Page-Builder-Zeilen über die volle Inhaltsbreite */
.home .inhalt-100,
.itemid-101 .inhalt-100 {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0 0 0;
}

.itemid-101 .inhalt-100 .sppb-row-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home .breadcrumb,
.itemid-184 .sppb-article-meta {
  display: none;
}

/* Beitragskacheln: weiß, dezenter Schatten, leichtes Anheben beim Überfahren */
.sppb-addon-articles .sppb-addon-article,
.blog-item {
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(43, 57, 83, .08);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}

.sppb-addon-articles .sppb-addon-article:hover,
.blog-item:hover {
  border-color: #c5cee0;
  box-shadow: 0 6px 16px rgba(43, 57, 83, .14);
  transform: translateY(-2px);
}

.sppb-article-info-wrap {
  padding: 0 10px;
}

/* Startseite: Beitragstitel unter den Fotos */
#sppb-addon-1585153606159 h3 {
  font-size: 110%;
  line-height: 1.3;
}

#sppb-addon-1585153606159 h3,
#sppb-addon-1585153606159 h3 a {
  font-weight: normal;
}

/* Startseite: Link "Mehr Beiträge" als Button */
#sppb-addon-1592937473294 a[href$="/aktuelles"] {
  display: inline-block;
  padding: 10px 28px;
  color: #fff;
  background: #42577d;
  border-radius: 5px;
  transition: background .3s;
}

#sppb-addon-1592937473294 a[href$="/aktuelles"]:hover {
  color: #fff;
  background: #2b3953;
}

/* Startseite: Titelbild auf volle Inhaltsbreite */
#sppb-addon-1672747285702 .sppb-addon-single-image-container,
#sppb-addon-1672747285702 img {
  width: 100%;
}

#sppb-addon-1611528206259 img {
  width: auto;
}

.sppb-carousel-extended-item img {
  height: auto;
}

#sppb-addon-1672747285711 img {
  max-width: 570px;
  box-shadow: 0 0 15px 0;
  transform: rotate(-5deg);
  margin-top: -90px;
  opacity: 90%;
  width: 100%;
}

#column-id-1585239927228,
#column-id-1585231400758 {
  padding: 8px 10px 1px 10px;
  background: #95a7c9;
  overflow: hidden;
}

#column-id-1585231400759 {
  padding: 8px 10px 1px 10px;
  background: #c5cee0;
}

.nav-child {
  margin-top: 10px;
}

img.sppb-element-lazy {
  filter: opacity(0.5);
}

.moduletable .spezialgebiete div {
  float: left;
  margin: 0 10px 30px 0;
}

.spezialgebiete h3 {
  color: #344564;
}

.moduletable .spezialgebiete a {
  font-size: 21px;
  color: #fff;
  background: #42577d;
  border-radius: 5px;
  padding: 10px 15px;
  border: 1px solid #42577d;
  transition: 1s;
  margin: 0 10px 30px 0;
}

.moduletable .spezialgebiete a:hover {
  background: #fff;
  color: #344564;
}

.kurse .spezialgebiete {
  margin-bottom: 30px;
}

.logos img {
  width: 22.9%;
  margin: 1%;
  float: left;
  box-shadow: 0 0 10px 0 #aaa;
  border-radius: 15px;
}

.logos img:hover {
  filter: opacity(1);
  box-shadow: 0 0 2px 0 #aaa;
}

/* =========================================================
   Fußbereich
   ========================================================= */

#footer a {
  color: #b1c2e3;
  font-weight: normal;
  transition: 1s;
}

#footer a:hover {
  color: #fff;
}

#footer {
  color: #fff;
  padding: 25px 33px 30px 20px;
  background: #2b3953;
  background: linear-gradient(to bottom, #42577d 0%, #2b3953 100%);
  overflow: hidden;
}

#footer .row {
  max-width: 1286px;
}

#footer .mod-menu li {
  display: inline;
  margin-right: 15px;
}

#footer .mod-menu {
  padding: 0;
}

.mtp-link {
  float: right;
  font-size: 80%;
}

.copyright {
  float: left;
}

#content-top p {
  margin: 0;
}

/* =========================================================
   Beitragslisten und Seitennavigation
   ========================================================= */

.mod-articlescategory {
  padding: 0;
}

.mod-articlescategory li {
  list-style-type: none;
}

.mod-articles-category-group {
  background: #eee;
  padding: 10px;
  margin: 0 10px;
  font-weight: bold;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 3px 3px 1px 3px;
}

.com-content-category-blog__navigation,
#main .com-content-category-blog__counter {
  text-align: center;
  clear: both;
  display: block;
}

.pagination span span:first-child,
.pagination span span:last-child {
  display: none;
}

.pagination a {
  background: #a9a18a;
  color: #fff;
}

.pagination .active a,
.pagination a:hover {
  background: #42577d;
}

.pagination span span {
  background: #dacfb6;
  color: #fff;
}

.com-content-category-blog__navigation .pagination__wrapper ul {
  list-style: none outside none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
}

.com-content-category-blog__navigation .pagination__wrapper ul li {
  display: inline;
}

.com-content-category-blog__navigation .pagination__wrapper a {
  padding: 2px 5px;
  width: auto !important;
}

.pagination .pull-right {
  float: none;
}

.pagenav {
  background: #fff;
}

.schwerpunkt-buttons a {
  display: block;
  background: #56a233;
  color: #fff;
  text-align: center;
  font-size: 25px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #aaa;
}

.schwerpunkt-buttons a:hover {
  background: #aaa;
  transition: .5s;
}

/* Alle Schwerpunkt-Buttons gleich hoch, auch wenn einer zweizeilig umbricht */
.schwerpunkt-buttons .sppb-row-column,
.schwerpunkt-buttons .sppb-column,
.schwerpunkt-buttons .sppb-column-addons,
.schwerpunkt-buttons .sppb-addon-wrapper,
.schwerpunkt-buttons .sppb-addon-wrapper > div,
.schwerpunkt-buttons .sppb-addon,
.schwerpunkt-buttons .sppb-addon-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.schwerpunkt-buttons .sppb-addon-content p {
  display: flex;
  flex: 1 1 auto;
}

.schwerpunkt-buttons a {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

/* Blogansicht */

.blog-item {
  width: 30%;
  float: left;
  margin-right: 3%;
  margin-bottom: 30px;
  min-height: 310px;
}

.blog-item .item-image {
  width: 100%;
  margin: 0;
}

.blog-item h2 {
  font-size: 18px;
  margin-top: 5px;
}

.blog-item .page-header {
  padding: 10px 10px 0 10px;
}

.inhalt-60 .blog-item .article-info {
  display: block !important;
}

.icon-calendar,
.blog-item .published {
  display: none;
}

.create {
  padding-left: 10px;
}

/* =========================================================
   Widgetkit / UIkit
   ========================================================= */

#main .uk-flex-middle {
  background: #fff;
}

.galerie #main .uk-overlay-area-content > :last-child,
.galerie #main .uk-overlay-panel.uk-flex > * > :last-child,
.galerie #main .uk-overlay > :first-child {
  width: 300px;
}

.seite .uk-accordion-title {
  margin-bottom: 11px;
  padding: 12px 20px;
  color: #fff;
  background: #42577d;
  border-radius: 5px;
}

/* Plus/Minus vor Akkordeon-Titeln */
.uk-accordion h3.uk-active::before {
  font-family: var(--jbs-icon-font);
  font-weight: 900;
  content: "\f068 ";
  margin-right: 10px;
}

.uk-accordion h3::before {
  font-family: var(--jbs-icon-font);
  font-weight: 900;
  content: "\f067 ";
  margin-right: 10px;
}

.infos .uk-text-left {
  width: 96%;
}

.uk-scope h3 {
  display: none;
}

/* =========================================================
   Kalender (DPCalendar)
   ========================================================= */

.mod-dpcalendar-upcoming-default__events {
  font-size: 14px;
}

.mod-dpcalendar-upcoming-default__information,
#main .mod-dpcalendar-upcoming-default__description p {
  font-family: arial;
}

#right .mod-dpcalendar-upcoming-default__date {
  font-style: normal;
}

.dp-event-url {
  font-weight: bold;
}

.mod-dpcalendar-upcoming-default__date {
  color: #fff;
}

.mod-dpcalendar-upcoming-default__events a::after,
#right .mod-dpcalendar-upcoming-default__events a::after {
  display: none;
}

.mod-dpcalendar-upcoming-default__description {
  margin-left: 50px;
}

.mod-dpcalendar-upcoming-default__description p {
  margin-top: 0;
  margin-bottom: 5px;
}

.mod-dpcalendar-upcoming-default__information {
  min-height: 2.1em;
}

.mod-dpcalendar-upcoming-default__event + div {
  margin-bottom: 11px;
}

#main .mod-dpcalendar-upcoming-default .dp-flatcalendar__month {
  line-height: 1.4em;
  font-size: 14px;
}

.seite .mod-dpcalendar-upcoming-default .dp-link {
  margin-bottom: 0;
}

.row .mod-dpcalendar-upcoming-default .dp-flatcalendar {
  margin-bottom: 9px;
}

.dp-event__time {
  display: flex;
}

.dp-event__title {
  font-weight: normal;
}

.site .fc-theme-standard td,
.site .fc-theme-standard th {
  border: 1px solid #aaa;
}

.fc .fc-scrollgrid,
.fc .fc-scrollgrid table {
  background: #f1f5fc;
}

#right .nav,
#right .nav ul {
  list-style-type: none;
  padding-left: 10px;
}

.item-124 span {
  text-decoration: underline;
  color: #000;
}

/* =========================================================
   Tabellen
   ========================================================= */

table {
  border-collapse: collapse;
}

table p {
  margin: 5px;
  font-size: 90%;
}

table,
tr,
td,
th {
  border: solid 1px #aaa;
}

td,
th {
  padding: 5px;
  vertical-align: top;
}

.table-scrollable {
  width: 100%;
  overflow-y: auto;
  margin: 0 0 1em;
}

.table-scrollable::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
}

.table-scrollable::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 3px solid #fff;
  background-color: rgba(0, 0, 0, 0.3);
}

/* =========================================================
   SP Page Builder – Elemente
   ========================================================= */

.sppb-addon-article {
  overflow: hidden;
}

.sppb-readmore {
  margin: 10px 0;
  padding: 5px;
  display: inline-block;
  background: #6983b2;
  color: #fff;
  float: right;
}

.sppb-carousel-extended-nav-control .nav-control.prev-control,
.sppb-carousel-extended-nav-control .nav-control.next-control {
  margin: 0 !important;
  background: #ffffff8a;
}

.site .sppb-carousel-extended-nav-control .nav-control {
  color: #36486a;
  border: none;
  box-shadow: 0 0 5px 0;
}

.sppb-panel-title {
  font-size: 19px;
}

/* =========================================================
   Frontend-Bearbeitung, Cookie-Hinweis, Übersichtsseiten
   ========================================================= */

body a.btn.jmodedit::before {
  content: "edit";
  color: #fff !important;
  background-color: green !important;
  border: 1px solid black !important;
  padding: 5px !important;
  font-size: 20px !important;
  font-weight: bold !important;
}

body #redim-cookiehint .cookiehead .headline::before {
  background-image: none;
}

body #redim-cookiehint .cookiehead .headline {
  padding-left: 0;
}

.item-pageueberblick p {
  width: 30%;
  float: left;
  background: rgba(98, 117, 151, 1);
  padding: 20px 0 20px 10px;
  text-align: center;
  margin: 10px 2% 10px 0;
  transition: .5s;
}

.item-pageueberblick p:first-child {
  margin-top: 10px;
}

.item-pageueberblick p:hover {
  background: rgba(98, 117, 151, 0.8);
  transition: .5s;
}

.item-pageueberblick a,
.ueberblick .sppb-addon-content a {
  color: #fff;
}

.item-pageueberblick a:hover,
.ueberblick .sppb-addon-content a:hover {
  color: #333;
}

#main .ueberblick .sppb-addon-content p {
  background: rgba(98, 117, 151, 1);
  padding: 10px;
  margin: 5px 0;
  transition: .5s;
  line-height: 21px;
}

.sppb-addon-alert {
  border: 3px solid #95a7c9;
}

/* =========================================================
   Breezing Forms
   ========================================================= */

.bfClearfix {
  background: #f2f2f2;
  padding: 10px;
}

.bfSubmitButton {
  border: 1px solid;
  padding: 5px 10px;
  margin-top: 10px;
  background: #fff;
}

.bfSubmitButton:hover {
  background-color: #95a7c9;
}

#bfElemWrap11,
#bfElemWrap13 {
  margin-bottom: 30px;
}

.site .formError .formErrorContent {
  font-size: 14px;
  width: 200px;
}

/* =========================================================
   Dunkelmodus
   ========================================================= */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --d-bg: #10151f;
    --d-surface: #1a2130;
    --d-surface-2: #232c3e;
    --d-border: rgba(255, 255, 255, .08);
    --d-text: #d8dee9;
    --d-heading: #f1f4f9;
    --d-muted: #97a2b7;
    --d-link: #9fb8ea;
    --d-accent: #42577d;
  }

  ::selection {
    background: var(--d-accent);
    color: #fff;
  }

  body {
    background: var(--d-bg);
    color: var(--d-text);
  }

  #header {
    box-shadow: 0 1px 0 var(--d-border);
  }

  /* Inhaltsflächen: Markenblau statt neutralem Grau */
  .inhalt-60,
  .inhalt-100,
  .item,
  .pagenav,
  #main #sppb-addon-1585240894902 li {
    background: var(--d-surface);
    border: 1px solid var(--d-border);
    border-radius: 6px;
    box-shadow: none;
  }

  .inhalt-60,
  .inhalt-100 {
    padding: 4px 16px;
  }

  .home .inhalt-100,
  .itemid-101 .inhalt-100 {
    background: transparent;
    border: 0;
    padding: 8px 0 0;
  }

  /* Text: kein reines Weiß, weniger Blendung */
  p,
  .sppb-row .item-124 span,
  .sppb-row .sppb-person-information > span.sppb-person-designation {
    color: var(--d-text) !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    color: var(--d-heading);
  }

  a,
  #main h3 a,
  #main .fc-col-header a,
  #main #sppb-addon-1585240894902 li a,
  #main .sppb-alert-primary a {
    color: var(--d-link);
  }

  a:hover,
  #main h3 a:hover {
    color: #fff;
  }

  .breadcrumb,
  .published,
  .create,
  .sppb-meta-date,
  .sppb-article-meta {
    color: var(--d-muted);
  }

  a.pathway {
    color: var(--d-link);
  }

  /* Rechte Spalte und Kästen unten auf der Startseite: dunkle Karten statt hellblauer Kästen */
  #right .row > div,
  #column-id-1585239927228,
  #column-id-1585231400758,
  #column-id-1585231400759 {
    background: var(--d-surface);
    border: 1px solid var(--d-border);
    border-radius: 6px;
  }

  #right .row > div {
    padding: 10px 12px 4px;
  }

  #right h3,
  #section-id-1585231400760 .sppb-addon-title {
    border-radius: 4px;
  }

  #right a,
  #right .dp-event-url,
  #section-id-1585231400760 a,
  #section-id-1585231400760 .dp-event-url {
    color: var(--d-text);
  }

  #right a:hover,
  #right .dp-event-url:hover,
  #section-id-1585231400760 a:hover,
  #section-id-1585231400760 .dp-event-url:hover {
    color: #fff;
  }

  #right .dp-flatcalendar,
  #section-id-1585231400760 .dp-flatcalendar {
    background: var(--d-surface-2);
    border-radius: 3px;
    overflow: hidden;
  }

  #right .dp-flatcalendar__day,
  #section-id-1585231400760 .dp-flatcalendar__day {
    color: var(--d-heading);
  }

  #right .mod-dpcalendar-upcoming-default__information,
  #section-id-1585231400760 .mod-dpcalendar-upcoming-default__information {
    color: var(--d-muted);
  }

  /* Beitragskacheln */
  .sppb-addon-articles .sppb-addon-article,
  .sppb-col-xs-6 .sppb-addon-article,
  .blog-item {
    background: var(--d-surface);
    border: 1px solid var(--d-border);
    border-radius: 6px;
    box-shadow: none;
    transition: border-color .3s, transform .3s;
  }

  .sppb-addon-articles .sppb-addon-article:hover,
  .blog-item:hover {
    border-color: rgba(159, 184, 234, .35);
    transform: translateY(-2px);
  }

  .sppb-addon-articles .sppb-addon-article h3 a,
  .blog-item h2 a {
    color: var(--d-heading);
  }

  /* Schwerpunkt-Buttons: gedämpftes Grün, Hover bleibt farbig */
  .schwerpunkt-buttons a {
    background: #3b7428;
    border-color: transparent;
    color: #fff;
  }

  .schwerpunkt-buttons a:hover {
    background: #4a8a35;
    color: #fff;
    transition: .3s;
  }

  /* Partnerlogos nicht grell weiß */
  .logos img {
    filter: brightness(.85);
    box-shadow: 0 0 0 1px var(--d-border);
  }

  .logos img:hover {
    filter: brightness(1);
  }

  /* Tabellen, Formulare, Akkordeons */
  .bfClearfix,
  table,
  #main .sppb-panel-modern {
    background: var(--d-surface-2);
  }

  table,
  tr,
  td,
  th,
  .site .fc-theme-standard td,
  .site .fc-theme-standard th {
    border-color: #3a4559;
  }

  .linkkasten,
  .downloads .inhalt-60 .sppb-addon-content p {
    background: var(--d-surface-2);
  }

  .sppb-tab-pane p {
    color: #333;
  }

  .sppb-tab-pane p a {
    color: #7c95c6;
  }

  .com-dpcalendar-calendar a {
    color: #26385b;
  }

  .com-dpcalendar-calendar .fc .fc-scrollgrid,
  .com-dpcalendar-calendar .fc .fc-scrollgrid table {
    background: #c1c4ca;
  }

  #sppb-addon-1672747285711 img {
    box-shadow: 0 0 15px 0 #000;
  }
}

.jmodedit,
[id^="tip-"] {
  display: none;
}

/* =========================================================
   YouTube-Zwei-Klick-Lösung (siehe js/template.js)
   ========================================================= */

.video_con {
  width: 50%;
  float: right;
  margin: 0 0 10px 15px;
}

.video_wrapper {
  background-size: cover;
  position: relative;
  height: 250px;
  width: 100%;
}

.video_wrapper a {
  background: #fff;
}

.video_wrapper p {
  font-size: 90%;
}

.video_wrapper .video_trigger {
  padding: 20px;
  height: calc(100% - 260px);
  width: calc(100% - 60px);
  position: absolute;
  top: 0;
  z-index: 9;
  color: #fff;
}

.video_wrapper .video_layer {
  position: relative;
  display: none;
  height: inherit;
  width: inherit;
  margin: auto;
}

.video_wrapper .video_layer iframe {
  border: 0 none transparent;
  height: inherit;
  width: inherit;
}

/* =========================================================
   Nach-oben-Link (Template-Einstellung)
   ========================================================= */

.back-to-top-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  padding: .5rem .75rem;
  color: #fff;
  background: #42577d;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.back-to-top-link.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-link:hover {
  color: #fff;
  background: #2b3953;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 300px) {
  #sppb-addon-1672747285711 img {
    width: 290px;
    margin-top: -20px;
  }
}

@media (max-width: 450px) {
  .headerseite {
    padding: 0 3px;
  }

  .headerseite .dj-megamenu-offcanvas-light .dj-mobile-open-btn {
    font-size: 33px;
  }

  .header-titel .custom {
    padding-top: 6px;
    line-height: 1px;
  }

  .titel {
    font-size: 20px;
  }

  .subtitel {
    font-size: 12px;
  }

  #header .logo {
    margin: 9px 10px 12px 0;
    width: 60px;
  }

  .top-menu a {
    font-size: 13px;
  }

  #content-top {
    margin-top: 12px;
  }

  .item-image img,
  .sppb-addon-text-block img,
  .video_con {
    width: 100%;
    float: none;
    margin: 0;
  }

  table {
    font-size: 13px;
  }

  .inhalt-60 {
    width: 95%;
  }

  .inhalt-60,
  .inhalt-100 {
    background: none;
    border: 0;
    padding: 2px 0;
  }

  .item-page .right {
    float: none;
  }

  .item-page .left {
    float: none;
    margin-right: 0;
  }

  .sppb-row-container {
    padding: 0 !important;
  }

  .seite {
    padding: 0 8px;
  }

  .breadcrumb li:nth-child(3) {
    display: none;
  }

  .item-page {
    padding-top: 5px;
  }
}

@media (max-width: 510px) {
  .logos img {
    width: 48%;
    margin: 1%;
    float: left;
    box-shadow: 0 0 5px 0 #aaa;
  }

  .breadcrumb li {
    font-size: 12px;
    line-height: 15px !important;
  }

  .breadcrumb li:first-child {
    text-decoration: underline;
  }

  .kontakt #main p {
    text-align: left;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 100%;
  }

  #main p {
    line-height: 22px;
  }

  #header {
    position: relative;
    height: 95px;
  }

  #header p {
    margin: 0 0 0 17%;
  }

  .inhalt-60,
  #right {
    float: none;
  }

  #right {
    margin: 0;
    width: 100%;
  }

  #navigation {
    margin-top: 16px;
  }

  #dj-megamenu90mobile {
    width: 50px;
  }

  .dj-megamenu-wrapper {
    position: absolute;
    top: 15px;
    right: 10px;
  }

  .top-menu {
    position: absolute;
    bottom: 0;
    right: 0;
  }

  ul {
    padding: 0 10px;
  }

  #bfElemWrap242,
  #bfElemWrap252 {
    float: left;
  }

  .item-image {
    width: 100%;
  }

  .item-pageueberblick p {
    width: 100%;
    font-size: 120%;
  }

  .blog-item {
    width: 100%;
    float: none;
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .dp-event__time,
  .dp-event__title {
    font-size: 80%;
  }
}

@media (min-width: 701px) {
  #sppb-addon-1672747285711 img {
    width: 80%;
    margin-top: -70px;
  }
}

@media (min-width: 451px) and (max-width: 700px) {
  .titel {
    font-size: 26px;
  }

  .subtitel {
    font-size: 14px;
  }

  .header-titel .custom {
    padding-top: 28px;
  }

  .top-menu a {
    font-size: 14px;
  }

  #header .logo {
    margin-top: 21px;
    width: 14%;
  }

  #header p {
    margin-top: 0;
  }

  #header {
    height: 130px;
  }

  .inhalt-60 {
    width: 97%;
  }

  #sppb-addon-1672747285711 img {
    width: 80%;
    margin-top: -40px;
  }

  .video_con {
    width: 100%;
    float: none;
    margin: 0;
  }
}

@media (min-width: 701px) and (max-width: 870px) {
  .inhalt-60 {
    width: 58%;
  }

  #right {
    width: 38%;
  }

  #navigation {
    clear: both;
    margin-top: 15px;
  }

  .header-titel .custom {
    padding-top: 30px;
  }

  .item-image {
    width: 100%;
  }

  #header .logo img {
    width: 90%;
  }

  #header p {
    margin-top: 5px;
  }

  .item-pageueberblick p {
    width: 100%;
  }

  .video_con {
    width: 100%;
    float: none;
    margin: 0;
  }

  .blog-item {
    width: 47%;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  #navigation .dj-megamenu-custom90 li a.dj-up_a {
    padding: 0 13px;
  }

  .headerseite .dj-megamenu-custom90 li a.dj-up_a,
  .headerseite .dj-megamenu-custom90 li:hover a.dj-up_a,
  .dj-megamenu-custom90 li.hover a.dj-up_a,
  #navigation .dj-megamenu-default li a.dj-up_a {
    font-size: 17px;
  }

  #header p {
    margin-left: 20%;
  }
}

@media (min-width: 1051px) and (max-width: 1150px) {
  #navigation .dj-megamenu-custom90 li a.dj-up_a {
    padding: 0 13px;
  }
}

@media (min-width: 871px) and (max-width: 1150px) {
  .item-pageueberblick p {
    width: 48%;
  }
}

@media (min-width: 555px) {
  .sppb-col-sm-4,
  .sppb-col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 800px) {
  .sppb-col-sm-4 {
    flex: 0 0 33.3%;
    max-width: 33.3%;
  }

  .sppb-col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 1250px) {
  .sppb-row-container {
    padding: 0 !important;
  }
}

@media (min-width: 1380px) {
  .inhalt-100 .sppb-row-container {
    max-width: 1300px;
  }
}
