/*!
 * NOSSUED Theme
 * Custom styles based on the original "Treble" theme, adapted for Bootstrap 5.
 */

/* ============================================================
   PAGE | WELCOME
   ============================================================ */
.page-welcome {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #292929 url(../images/welcome.jpg) 50% 0 repeat fixed;
  background-size: cover;
  color: #ffffff;
}

.page-welcome .logo {
  transition: all 0.5s ease-in-out;
  height: 140px;
  position: relative;
  width: 140px;
  margin: 0 auto;
}

.page-welcome .logo .scrollNormal {
  opacity: 1;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -70px;
  transition: all 0.5s ease-in-out;
}

.page-welcome .logo .scrollDown {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -70px;
  transition: all 0.5s ease-in-out;
}

.page-welcome .logo:hover .scrollNormal {
  opacity: 0;
  transform: rotate(360deg);
}

.page-welcome .logo:hover .scrollDown {
  opacity: 1;
  transform: rotate(-360deg);
}

.page-welcome #welcome-messages {
  margin-top: 35px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 123123;
}

.page-welcome #welcome-messages h1 {
  margin: 0;
  padding-top: 10px;
  padding-bottom: 5px;
}

.page-welcome #welcome-messages ul,
.page-welcome #welcome-messages li {
  margin: 0;
  padding: 0;
}

.page-welcome #welcome-messages + p {
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 2px;
}

.slider-toggle {
  margin-top: 18px;
  padding: 6px 14px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.slider-toggle:hover,
.slider-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.7);
  border-color: #f7f7a8;
  color: #f7f7a8;
}

.page-welcome .social-icons {
  margin: 50px auto 0;
}

.page-welcome .centralized {
  z-index: 2;
}

/* ============================================================
   PAGE | ABOUT
   ============================================================ */
.page-about .about-items .item {
  position: relative;
  display: inline-block;
  color: #fff;
  overflow: hidden;
}

.page-about .about-items h5 {
  margin-bottom: 30px;
}

.page-about .team-members {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.page-about .about-items .item:hover .about-overlay {
  opacity: 0.95;
  left: 0;
  transform: rotate(360deg);
}

.page-about .about-items .about-overlay {
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  position: absolute;
  display: block;
  z-index: 4;
  background-color: #4e808e;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.page-about .about-items .about-overlay .social-icons {
  left: 50%;
  margin-left: -85px;
  margin-top: -15px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 170px;
  z-index: 6;
}

.page-about .about-items .about-overlay .social-icons a {
  padding: 4px;
}

.page-about .about-items .about-overlay .social-icons i {
  display: inline-block;
}

/* ============================================================
   PAGE | BLOG
   ============================================================ */
.page-blog h5 {
  margin-bottom: 12px;
}

#page-blog .row .col-12 p {
  margin-bottom: 0;
}

#page-blog article {
  margin-top: 0;
}

.page-blog .read-more {
  text-align: right;
  margin-bottom: 20px;
}

.page-blog .read-more a {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 20px;
  letter-spacing: 1px;
  color: #ffffff;
  padding: 3px 8px;
  margin: 0 3px;
  position: relative;
  background-color: #bbbbbb;
}

.page-blog .read-more a:hover,
.page-blog .read-more a.active {
  background-color: #4e808e;
  text-decoration: none;
  color: #ffffff;
}

.page-blog .agenda-gallery-highlight {
  display: grid;
  gap: 8px;
  padding: 0 8px 0;
}

.page-blog .agenda-gallery-feature img,
.page-blog .agenda-gallery-item img {
  display: block;
  width: 100%;
}

.page-blog .agenda-gallery-side {
  display: grid;
  gap: 8px;
}

.page-blog .agenda-gallery-item img {
  height: auto;
}

#page-blog .agenda-gallery-rest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 8px;
}

.page-blog .agenda-gallery-rest > [class*="col-"] {
  flex: none;
  width: auto;
  max-width: none;
  padding: 0;
}

@media (min-width: 768px) {
  #page-blog .agenda-gallery-rest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-blog .agenda-gallery-highlight {
    grid-template-columns: 2fr 1fr;
  }

  .page-blog .agenda-gallery-side {
    grid-row: 1;
    grid-column: 2;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .page-blog .agenda-gallery-feature {
    grid-row: 1;
    grid-column: 1;
  }

  .page-blog .agenda-gallery-feature img {
    height: 100%;
    object-fit: cover;
  }

  .page-blog .agenda-gallery-item img {
    height: 100%;
    object-fit: cover;
  }
}

/* ============================================================
   PAGE | CLIENTS
   ============================================================ */
.page-clients .row,
.page-clients1 .row,
.page-clients2 .row {
  padding-bottom: 40px;
  padding-top: 15px;
}

.historical-sponsors .row {
  margin-top: 0;
  padding: 8px 0;
}

.historical-sponsors .row > [class*="col-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 16px 40px !important;
}

.historical-sponsors a {
  display: block;
  width: 100%;
}

.historical-sponsors img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.historical-sponsors .dev-specialists-logo {
  transform: scale(0.85);
}

.historical-sponsors {
  padding-bottom: 24px;
}

/* Auf kleinen Bildschirmen Logos wie im Sponsoren-Bereich darstellen:
   kleinere, zentrierte Bilder mit mehr seitlichem Abstand */
@media (max-width: 767.98px) {
  .historical-sponsors .row > [class*="col-"] {
    padding: 10px 36px !important;
  }

  .historical-sponsors img {
    width: auto;
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.pages header {
  padding-top: 30px;
  padding-bottom: 40px;
  text-align: center;
}

#page-anmeldung header {
  padding-bottom: 0;
}

#page-blog header {
  padding-bottom: 10px;
}

#page-sponsor header,
#page-imprint header {
  padding-top: 4px;
  padding-bottom: 5px;
}

#navigation {
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.65);
  z-index: 2000;
}

#navigation .brand {
  padding: 7px 100px 8px 0;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #292929;
  text-decoration: none;
}

#navigation #main-menu {
  display: inline-block;
  float: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  list-style: none;
}

#navigation #main-menu li {
  display: inline-block;
  position: relative;
  padding: 0;
  margin: 0;
  line-height: 18px;
  list-style: none;
}

#navigation #main-menu a {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 18px;
  letter-spacing: 1px;
  color: #292929;
  padding: 12px 15px;
  margin: 0;
  text-decoration: none;
  text-shadow: 0 1px 0 #ffffff;
  position: relative;
  display: block;
}

#navigation #main-menu li a:focus,
#navigation #main-menu li a:hover {
  background: none;
  outline: medium none;
}

#navigation #main-menu li:hover a:after,
#navigation #main-menu li.active a:after {
  background-color: #bbbbbb;
  bottom: -4px;
  content: "";
  height: 7px;
  left: 50%;
  margin-left: -4px;
  position: absolute;
  transform: rotate(45deg);
  width: 7px;
}

#navigation .mobile-menu {
  display: none;
  float: right;
  padding: 7px 10px;
  margin-left: 5px;
  margin-top: 3px;
  cursor: pointer;
}

#navigation .mobile-menu .icon-bar {
  background-color: #292929;
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  display: block;
  height: 3px;
  width: 26px;
  margin-bottom: 3px;
  margin-top: 1px;
}

#navigation .mobile-menu:hover .icon-bar {
  background-color: #4e808e;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pages footer {
  padding-top: 30px;
  padding-bottom: 60px;
  text-align: center;
}

footer {
  color: #CCC;
  font-size: 11px;
  text-align: left;
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-icons {
  display: table;
}

.social-icons a {
  display: table-cell;
}

.social-icons.hover-big a {
  padding: 9px 8px 8px;
  transition: all 0.2s ease-in-out;
}

.social-icons.hover-big a:hover {
  background-color: #4e808e;
  color: #ffffff;
}

/* ============================================================
   FIXED ELEMENTS
   ============================================================ */
.fixed-top {
  position: fixed;
  top: 0;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

/* Fallback ohne JS: Navigation oben fixiert und sichtbar (fixedonlater fügt
   später .fixed-visable hinzu, wenn gescrollt wird) */
body.no-js #navigation {
  position: fixed;
  top: 0;
  opacity: 1;
}

.fixed-bottom {
  position: fixed;
  bottom: 0;
  display: none;
  opacity: 0;
}

.fixed-visable {
  opacity: 1;
  display: block;
}

/* ============================================================
   DIVIDER FOR HEADING LINES
   ============================================================ */
.line-divider:after {
  background: url("../images/divider.png") no-repeat bottom center;
  padding-bottom: 12px;
  display: block;
  height: 10px;
  content: ",";
  text-indent: -9999px;
  width: 630px;
  max-width: 100%;
  text-align: center;
  margin: auto auto 24px;
}

.line-divider-inline:after {
  background: url("../images/divider_more_text.png") no-repeat bottom center;
  padding-bottom: 0;
  display: block;
  height: 10px;
  content: ",";
  text-indent: -9999px;
  width: 100%;
  text-align: center;
  margin: auto auto 24px;
  margin-top: -22px;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.overlay:after {
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAHUlEQVQIW2NkYGD4D8SM6DRIAAQwJDFUwhRRUQcALRkSBISGlPAAAAAASUVORK5CYII=") repeat top left;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  opacity: 0.4;
}

/* ============================================================
   CENTER BLOCK
   ============================================================ */
.centralized {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 15px 60px;
  visibility: visible;
  opacity: 1;
}

/* ============================================================
   IMAGES
   ============================================================ */
.img-circle {
  border-radius: 50%;
}

.white {
  color: #ffffff;
}

.black-bg {
  background-color: #292929;
}

/* ============================================================
   CENTER
   ============================================================ */
.center {
  text-align: center;
}

/* ============================================================
   AGENDA TABLES
   ============================================================ */
.agenda-table {
  width: auto;
  margin: auto;
}

.agenda-table td:first-child {
  text-align: right;
  padding-right: 15px;
  white-space: nowrap;
  min-width: 110px;
}

.agenda-table .agenda-day-header {
  background-color: #e7e7e7;
  color: #1c1c1c;
  text-align: center;
  font-size: 1.15rem;
  padding: 10px 15px;
  border: 1px solid #b0b0b0;
}

footer {
  font-size: 13px;
}

footer,
footer a,
footer a:visited {
  color: #b0b0b0;
}

footer a:hover,
footer a:focus {
  color: #e0e6f0;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Skip-Link: nur sichtbar, wenn er den Fokus erhält (Tastaturnutzer) */
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  background-color: #292929;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.15s ease-in-out;
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
}

/* Deutliche, sichtbare Fokusmarkierung für alle fokussierbaren Elemente */
:focus-visible {
  outline: 3px solid #0b6ba7;
  outline-offset: 2px;
}

/* Menü: eigene Fokusmarkierung statt "outline: none" */
#navigation #main-menu li a:focus {
  outline: 3px solid #0b6ba7;
  outline-offset: -3px;
  color: #0b6ba7;
}

#navigation #main-menu li a:focus:hover {
  background: none;
}

/* Automatisch bewegender Slider anhalten, wenn die Nutzerin/der Nutzer
   reduzierte Bewegung wünscht (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #welcome-messages ul {
    display: block !important;
  }
}

/* ============================================================
   RESPONSIVE NAVIGATION (Bootstrap 5 navbar overrides)
   ============================================================ */
@media (max-width: 991.98px) {
  #navigation #main-menu.collapse:not(.show) {
    display: none;
  }

  #navigation #main-menu {
    display: block;
    text-align: left;
  }

  #navigation #main-menu li {
    display: block;
  }

  #navigation .mobile-menu {
    display: block;
    margin-left: auto;
  }

  #navigation .social-icons {
    display: none;
  }
}