/* Basis */
html,
body,
button,
input,
select,
textarea,
summary {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

body {
  background-color: #e9e9e9;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}

/* Überschriften */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: bold;
  color: #c80a1e;
}

h1 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Karriere */
.karriere-ul ul {
  margin-top: 0;
}

.karriere-ul h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Abstände */
.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Layout */
#wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 50px auto;
  padding: 0 3%;
}

#header {
  margin-bottom: 1rem;
}

#header p {
  margin: 0;
  padding: 6px 0 0;
  font-size: 1rem;
  font-weight: bold;
}

#main .inside {
  margin: 0;
  padding: 5px 20px;
}

#left {
  margin-right: 20px;
}

/* Links */
a,
.tickertext {
  text-decoration: none;
  color: #c80a1e;
}

/* Footer */
#footer {
  margin-top: 20px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 10px solid #283f5f;
  border-bottom: 10px solid #283f5f;
}

/* Slider */
.slider {
  margin-top: 1rem;
}

.swiper-pagination,
.swiper-button-prev,
.swiper-button-next {
  display: none;
}

/* Galerie */
.content-gallery ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.content-gallery li {
  width: auto;
  list-style: none;
}

.content-gallery figure {
  margin: 0;
}

.content-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Navigation */
.mod_navigation {
  width: 220px;
}

.nav-details {
  width: 100%;
}

.nav-details summary {
  display: none;
  list-style: none;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

.nav-details > ul,
.nav-details:not([open]) > ul {
  display: block !important;
}

.mod_navigation ul {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
  color: #fff;
}

.mod_navigation li {
  margin: 0 0 10px 0;
  padding: 10px 20px;
  list-style: none;
  background-color: #283f5f;
}

.mod_navigation li::marker {
  content: "";
}

.mod_navigation li:hover {
  background-color: #c80a1e;
}

.mod_navigation a,
.mod_navigation span {
  text-decoration: none;
  color: #fff;
}

.mod_navigation a {
  display: block;
}

.nav-toggle-label {
  display: none;
}

/* Kopfbereich */
.content-area {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 0;
}

.logo-container {
  width: 280px;
  flex-shrink: 0;
}

.logo-container a {
  display: block;
}

.logo-container img,
.logo-container a img {
  display: block;
  width: 100%;
  height: auto;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.line-top {
  width: 100%;
  height: 8px;
  margin-bottom: 10px;
  background-color: #283f5f;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.text-line {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  color: #000;
}

/* Kontaktzeile Desktop */
.contact-line {
  white-space: nowrap;
  font-size: 17px;
}

/* Umbruch zwischen Telefon und Telefax standardmäßig ausblenden */
.contact-break {
  display: none;
}

.line-bottom {
  width: 100%;
  height: 8px;
  margin-top: 5px;
  background-color: #283f5f;
}

/* Hauptcontainer */
.main-block {
  width: 960px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

/* Partner-Zeile */
.row.ce_rowStart.partner {
  align-items: center;
}

/* Hilfsklassen */
.red {
  color: #c80a1e;
}

/* Tablet und kleiner */
@media (max-width: 768px) {
  #wrapper {
    margin: 25px auto;
    padding: 0 6% 0 3%;
  }

  #container {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 0 !important;
  }

  #main {
    order: 2;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #left {
    order: 1;
    float: none !important;
    position: static !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
  }

  #left .inside {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #main .inside {
    padding: 5px 0;
  }

  .mod_navigation {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-details summary {
    display: inline-flex;
  }

  .nav-toggle-label {
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 10px;
    background-color: #283f5f;
    cursor: pointer;
    color: #fff;
  }

  .hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 20px;
  }

  .hamburger-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
  }

  .nav-label-text {
    display: inline-block;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1;
    color: #fff;
  }

  .nav-details > ul,
  .nav-details:not([open]) > ul {
    display: none !important;
  }

  .nav-details[open] > ul {
    display: block !important;
    margin-top: 10px;
  }

  .mod_navigation li {
    margin-bottom: 6px;
  }

  /* Galerie Tablet: 3 Spalten, damit Bilder nicht zu groß/unscharf werden */
  .content-gallery ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .content-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .main-block {
    width: 100%;
  }

  /* Kopfbereich Tablet */
  .content-area {
    align-items: center;
    gap: 22px;
  }

  .logo-container {
    width: 220px;
  }

  .line-top,
  .line-bottom {
    height: 7px;
  }

  .text-container {
    min-height: 80px;
  }

  .text-line {
    font-size: 15px;
    line-height: 1.45;
  }

  .contact-line {
    white-space: nowrap;
    font-size: 13px;
  }
}

/* Smartphone */
@media (max-width: 480px) {
  #wrapper {
    padding: 0 7% 0 4%;
  }

  /* Galerie Smartphone: 2 Spalten statt riesiger Einzelbilder */
  .content-gallery ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .content-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  /* Kopfbereich Smartphone */
  .content-area {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .logo-container {
    order: 1;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .right-column {
    order: 2;
    width: 100%;
  }

  .line-top,
  .line-bottom {
    height: 6px;
  }

  .text-container {
    min-height: 0;
  }

  .text-line {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
  }

  .contact-line {
    white-space: normal;
    font-size: 13px;
  }

  .contact-break {
    display: block;
  }
}