/* style.css */
body {
  font-family: Helvetica, Arial, FreeSans, sans-serif;
  background-color: #f8f8f8;
  color:#333;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

a {
  color:#1272b2;
}

.top-bar {
  background-color:#fff;
}

.top-bar ul {
  background-color: #fff;
}

.top-bar .top-bar-right {
  flex: auto;
}

.logo {
  width:70px !important;
}

.logo > div {
  width:50px;
}

.logotext {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
}
.logotext a{
  color: #333;
}
@media screen and (max-width: 768px) {
  .logotext {
    font-size: 1.0rem;
  }
}

.top-bar {
  padding: .75rem;
}

.top-bar .menu a {
  color:#777575;
  padding: .7rem 1rem;
  font-size:1.4rem;
}

.top-bar .menu a:hover,
.top-bar .menu a:active,
.top-bar .menu a:focus,
.top-bar .menu a.active {
  color:#dc143c;
}

.vertical.menu a {
  color:#777575;
  padding: .5rem;
  font-size: 1.1rem;
}

.vertical.menu a:hover,
.vertical.menu a:active,
.vertical.menu a:focus,
.vertical.menu a.active {
  color:#de4027;
}

ul.vertical {
    list-style: none;
    padding-left: 0;
}

ul.vertical li {
    background-image: url('/fileadmin/Icons/bullet-point.png');
    background-repeat: no-repeat;
    background-position: left 9px;
    background-size: 14px 14px;
    padding-left: 1rem;
}

ul.vertical li:hover,
ul.vertical li.active  {
    background-image: url('/fileadmin/Icons/bullet-point-hover.png');
}

.menu .active > a {
  background: transparent;
}

.line-yellow-red {
    width: 100%;
    height: 5px;
    background-color: #fec90a;
    /*background-color: #de4027;*/
    /* border-top: 4px solid #fec90a; Gelb oben */
}

.line-red-yellow {
    width: 100%;
    height: 5px;
    background-color: #fec90a; /* Gelb unten (größer) */
    /*border-top: 4px solid #de4027; */
}

.content {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #fff;
}

.maincontent > div {
  margin-bottom:2rem;
}

footer {
  background: #f8f8f8;
  /*height: 100vh;*/
  min-height: 150px;
}

footer .grid-container {
  padding-top:2rem;
}

footer .cell {
  margin-bottom:1.5rem;
}

/* Nur für Startseite (ID=1) */
body.page-uid-1 {
    height: 100%;
    //width: 100%;
    overflow: hidden;
}

.page-uid-1 .start-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/fileadmin/user_upload/Startseite/startseite-background.jpg');
    background-size: cover;
    /*background-position: left top;*/
}

.page-uid-1 .start-logo {
    position: fixed;
    left: 70px;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
    transition: transform 0.3s ease;
}

.page-uid-1 .start-logo:hover {
    transform: translateY(-50%) scale(1.05);
}

.page-uid-1 .start-logo img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}


/* Small only */
@media screen and (max-width: 39.9375em) {
  .page-uid-1 .start-background {
     background-position: -60px top;
  }
  .page-uid-1 .start-logo {
    left: 10px;
  }
  .page-uid-1 .start-logo img {
      max-width: 200px;
  }
}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  .page-uid-1 .start-logo img {
      max-width: 200px;
  }
}

/* Medium and up */
@media screen and (min-width: 40em) {
  .page-uid-1 .start-background {
     background-position: left top;
  }
}

/* Extra Format */
.two-column-list {
    column-count: 2;
    column-gap: 3rem;
    column-rule: 1px solid #e0e0e0;
}

/* Oder als Tabellen-ähnliche Darstellung mit Flexbox */
.flex-table {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.flex-table table {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .two-column-list {
        column-count: 1;
    }
    .flex-table table {
        flex: 1 1 100%;
    }
}

@media screen and (min-width: 1200px) {
    .two-column-list {
        column-count: 3;
    }
    .flex-table table {
        flex: 1 1 calc(33.333% - 1.5rem);
    }
}

/* Stil für die Listen-Variante */
.employee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.employee-list li {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    break-inside: avoid;
}

.employee-list .kuerzel {
    font-weight: bold;
    min-width: 60px;
}

.employee-list .name {
    flex: 1;
}

.ce-intext.ce-left .ce-gallery {
  margin-right: 1rem;
}

/* h2 in Bild-Text-Elementen kleiner */
.ce-textpic.ce-intext .ce-bodytext h2 {
  font-size: 1.4rem;
  line-height: 1.3;
}

/* Auf Mobile: ce-nowrap-Layout auf vertikale Stapeldarstellung umschalten */
@media screen and (max-width: 639px) {
  .ce-textpic.ce-intext.ce-nowrap {
    display: block;
  }

  .ce-textpic.ce-intext.ce-nowrap .ce-gallery {
    float: none;
    width: auto;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .ce-textpic.ce-intext.ce-nowrap .ce-bodytext {
    overflow: visible;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* Mobile Header */
.mobile-header {
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
}

.mobile-header .logo {
  min-width: 55px;
}

.mobile-logo {
    height: 40px;
}

/* Hamburger Menu Button - Verbesserte Version */
.hamburger-menu {
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: #666;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 10px;
}

.hamburger-menu span:nth-child(3) {
    top: 20px;
}

/* Wenn aktiv - wird zu X */
.hamburger-menu.active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    left: -30px;
}

.hamburger-menu.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-header {
    padding: 15px;
    border-bottom: 1px solid #e1e1e1;
    text-align: right;
}

.close-menu {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list .menu-item {
    border-bottom: 1px solid #e1e1e1;
}

.mobile-menu-list .menu-item a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

/* Aktive Seite und aktiver Pfad: linker Balken + fett */
.mobile-menu-list .menu-item.active > a {
    border-left: 4px solid #fec90a;
    font-weight: bold;
    padding-left: 16px;
}

.mobile-menu-list .menu-item.has-submenu {
    position: relative;
}

.mobile-menu-list .menu-item.has-submenu .submenu-arrow {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-list .menu-item.has-submenu .submenu-arrow::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -3px;
}

.mobile-menu-list .menu-item.has-submenu.open > .submenu-arrow::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* 3. Ebene Sidebar-Navigation */
ul.level-3 {
    padding-left: 0.5rem;
}

ul.level-3 li {
    background-size: 10px 10px;
    background-position: left 11px;
    font-size: 0.95rem;
}

/* 4. Ebene Sidebar-Navigation */
ul.level-4 {
    padding-left: 1rem;
}

ul.level-4 li {
    background-size: 8px 8px;
    background-position: left 12px;
    font-size: 0.9rem;
}

/* Aktiver Pfad im mobilen Menü: Untermenü automatisch aufklappen */
.mobile-menu-nav .has-submenu.active > ul.submenu {
    display: block;
}

/* Pfeil für automatisch geöffnete aktive Submenüs drehen */
.mobile-menu-nav .has-submenu.active:not(.open) > .submenu-arrow::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Submenu - 2. Ebene */
.submenu {
    display: none;
    background: #f0f0f0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li {
    border-bottom: 1px solid #ddd;
    position: relative;
}

.submenu > li > a {
    display: block;
    padding: 11px 20px 11px 35px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.submenu > li.active > a,
.submenu > li.has-submenu.active > a {
    border-left: 4px solid #fec90a;
    font-weight: bold;
    padding-left: 31px;
}

/* Pfeil für Level-2-Einträge mit Unterseiten */
.submenu li.has-submenu {
    position: relative;
}

.submenu li.has-submenu > .submenu-arrow {
    position: absolute;
    right: 15px;
    top: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu li.has-submenu > .submenu-arrow::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.submenu li.has-submenu.open > .submenu-arrow::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Submenu - 3. Ebene */
.submenu .submenu {
    background: #e4e4e4;
}

.submenu .submenu > li > a {
    padding-left: 2rem;
    font-size: 14px;
}

.submenu .submenu > li.active > a {
    border-left: 4px solid #fec90a;
    font-weight: bold;
    padding-left: 46px;
}

/* Submenu - 4. Ebene */
.submenu .submenu .submenu {
    background: #d8d8d8;
}

.submenu .submenu .submenu > li > a {
    padding-left: 3rem;
    font-size: 13px;
}

.submenu .submenu .submenu > li.active > a {
    border-left: 4px solid #fec90a;
    font-weight: bold;
    padding-left: calc(3rem - 4px);
}

/* Body Overlay */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.body-overlay.active {
    display: block;
}

/* Responsive */
@media screen and (max-width: 1023px) {
    .mobile-header {
        display: block;
    }

    .content {
        /*margin-top: 60px;*/
    }
}

@media screen and (min-width: 1024px) {
    .mobile-menu-overlay,
    .body-overlay {
        display: none !important;
    }
}

/* Seite Aktuelles über die gesamte Breite */
.page-uid-55 .navi-left {
   display: none;
}
.page-uid-55 .maincontent {
   width: 100%;
}
