html {
  font-size: 16px;
}

body {
  background-color: #343a40;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

h1 {
  font-family: "Syncopate", sans-serif;
}
.font-1-6 {
  font-size: 1.6rem;
  padding-top: 2rem;
}

li a {
  margin-top: 8px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 400;
}

.navbar-dark .navbar-nav .nav-link {
  color: #007bff;
}

.nav-item {
  padding-left: 20px;
  padding-right: 20px;
}

.nav-link {
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.navbar-brand {
  padding-top: 11px;
  padding-right: 20px;
  padding-bottom: 7px;
  padding-left: 20px;
}

.fixed {
  background-color: #232930;
  position: fixed;
  width: 100%;
  z-index: 1;
}

.body-section {
  padding: 84px 1rem 1rem;
  color: #007bff;
  text-align: center;

  margin: 0 auto; /* Zentriert den Inhalt horizontal */
}

@media (max-width: 1024px) {
  .body-section {
    max-width: 100%; /* Volle Breite bei kleinen Bildschirmen */
    padding: 80px 0.5rem 1rem; /* Weniger Rand an den Seiten */
  }
}
@media (min-width: 1340px) {
  .body-section {
    max-width: 80%; /* Begrenzung auf 80% der Breite */
  }
}

.bottom-section {
  text-align: left;
}

.navbar-dark {
  color: #007bff;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Standardmäßig links ausrichten */
}
/* .image-bckgr {
  width: 100%;
  height: auto;
  border-radius: 1%;
  margin: 0px;
  height: 70%;
  z-index: -1;
} */

p {
  /* margin-top: 8px; */
  text-align: left;
  font-size: 0.9rem;
  font-weight: 400;
}

.no-underline {
  text-decoration: none;
}

.table-title {
  /* background-color: #5a5858; */
  color: #eee9e9;
  font-weight: normal;
  /* margin-bottom: 5px; */
  font-size: 1.2rem;
  /* font-weight: 700; */
  /* padding-bottom: 0.6rem; */
  padding: 1rem 0.4rem 0.4rem 1rem;
}

.bottom-section {
  display: none;
}

.project-table {
  display: block;
  width: 100%;
  max-width: 1200px; /* Maximale Breite der Tabelle */
  margin: 0 auto; /* Zentriert die Tabelle */
  border-collapse: collapse;
  margin-bottom: 20px;
  /* padding: 0px 12px 0px 0px; */
  margin: 0px 12px 0px 0px;
  table-layout: fixed;
  word-wrap: break-word;

  border: #5a5858;
  border-style: solid;
  border-width: thin;
}

.project-table th,
.project-table td {
  border: 1px solid #5a5858;
  padding: 8px;
  text-align: left;
}

.project-table td {
  word-wrap: break-word; /* Lange Wörter umbrechen */
  word-break: break-word; /* Unterstützung für ältere Browser */
  hyphens: auto; /* Optional: Automatische Silbentrennung */
  min-width: 70px;
}

.project-table th {
  background-color: #5a5858;
  color: #eee9e9;
  font-weight: normal;
}

.project-table td a {
  color: #007bff;
  text-decoration: none;
}

.project-table td a:hover {
  text-decoration: underline;
}

@media (max-width: 1599px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    /* font-size: 0.9rem; */
  }

  .nav-link {
    font-size: 1rem;
  }

  .first-section {
    padding-top: 8%;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 26px;
  }
  .navbar-toggler {
    font-size: 18px;
  }
}

@media (max-width: 299px) {
  h1 {
    font-size: 22px;
  }
  .navbar-toggler {
    font-size: 14px;
  }

  .navbar-brand {
    padding-right: 0px;
  }
}

@media (max-width: 940px) {
  .visible-hidden {
    display: contents;
  }
  /* .body-section {
      padding: 0px 0px 0px;
    } */
  .bottom-section {
    padding: 0px 12px 12px;
  }
}

@media (min-width: 600px) {
  .align-right {
    align-self: flex-end; /* Rechts ausrichten */
    padding: 5px; /* Optional: Innenabstand für besseren Textabstand */
  }
}

@media (min-width: 941px) {
  .visible-hidden {
    display: none;
  }

  .project-table th {
    font-size: 0.8rem;
  }

  .project-table td {
    font-size: 0.8rem;
  }

  /* Ab 941px: bottom-section sichtbar, project-table divs ausgeblendet */

  #java,
  #web {
    display: none !important;
  }

  .bottom-section {
    display: block !important;
  }

  .carousel-description {
    display: block;
    margin-top: 20px;
    text-align: center;
  }

  .carousel-description p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .carousel-description a {
    font-size: 1rem;
    color: #007bff;
    text-decoration: underline;
  }
}

@media (min-width: 1700px) {
  .image-bckgr {
    width: 80%;
    margin: 0 auto;
  }
  .bottom-section {
    margin-left: 10%;
    text-align: left;
  }
}

.content-wrapper {
  display: flex;
  /* flex-wrap: wrap;  Ermöglicht Umschalten zwischen Spalten und Reihen */
  gap: 1rem; /* Abstand zwischen den Spalten/Reihen */
  height: calc(100vh - 100px); /* Verfügbare Höhe abzüglich Padding */
  /* padding: 0px 12px 12px; */
}

.left-column {
  flex: 1 1 30%; /* 25% der Breite */
  max-width: 30%; /* Begrenzung auf 25% */
  overflow-y: auto; /* Scrollen bei Überlauf */
}

.right-column {
  flex: 1 1 70%; /* 75% der Breite */
  max-width: 70%; /* Begrenzung auf 75% */
  overflow: hidden; /* Kein Scrollen */
}

.carousel img {
  max-height: 100%; /* Bild passt sich der Höhe an */
  max-width: 100%;
  object-fit: contain; /* Das gesamte Bild wird angezeigt, ohne zugeschnitten zu werden */
  display: block; /* Entfernt unerwünschte Inline-Abstände */
  padding: 2rem 3rem 1rem 3rem;
  margin: auto;
}

.carousel-container {
  height: auto; /* 50vh Feste Höhe für den Container */
  max-height: 65vh; /* Optional: Begrenzung der maximalen Höhe */
  overflow: hidden; /* Verhindert, dass Inhalte über den Container hinausragen */
  display: flex;
  align-items: center; /* Zentriert das Carousel vertikal */
  justify-content: center; /* Zentriert das Carousel horizontal */
}

.carousel {
  /* height: 50vh; */
  /* height: auto; */
  height: 100%; /* Das Carousel nimmt die volle Höhe des Containers ein */
  width: 100%;
  overflow: hidden; /* Verhindert, dass Inhalte über den Container hinausragen */
}

.carousel-inner {
  height: 100%; /* Passt die Höhe der inneren Elemente an die Carousel-Höhe an */
}

.carousel-item {
  position: relative; /* Ermöglicht die absolute Positionierung der Bilder */
  height: 100%; /* Container nimmt die volle Höhe ein */
  overflow: hidden; /* Verhindert, dass Inhalte über den Container hinausragen */
}

.carousel-item img {
  position: absolute; /* Ermöglicht die Zentrierung */
  top: 50%; /* Positioniert das Bild vertikal in der Mitte */
  left: 50%; /* Positioniert das Bild horizontal in der Mitte */
  transform: translate(
    -50%,
    -50%
  ); /* Verschiebt das Bild, um es genau zu zentrieren *

  max-height: 100%; /* Bilder passen sich der Höhe des Carousels an */
  object-fit: contain;
  max-width: 100%; /* Bilder nehmen die gesamte Breite ein */
  display: block;
  margin: auto;
}
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: block;
  height: 100%;
}

.carousel-description p,
.carousel-description a {
  color: #eee9e9;
}
.carousel-description a:hover {
  color: #007bff;
}

.carousel-description p {
  text-align: center;
}

@media (max-height: 560px) {
  .body-section {
    padding: 3.6rem 0.5rem 0.5rem;
  }

  .navbar {
    padding-top: 0px;
    padding-bottom: 0px;
  }
  .navbar-brand {
    padding-top: 2px;
    padding-bottom: 0px;
  }
}
@media (max-height: 510px) {
  .body-section {
    padding: 3rem 0.5rem 0.5rem;
  }
  .table-title {
    padding-top: 2px;
  }
}

  /* @media (max-height: 510px) {
      .content-wrapper {
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  } */
  @media (min-width: 511px) and (max-width: 810px) and (max-height: 560px) {
    
    .content-wrapper {
      height: auto;
      overflow-y: auto;
    }
  
}
@media (max-width: 300) {
    .body-section {
    padding-top: 5rem;
  }
}
@media (max-width: 810px) {
  .navbar-brand h1 {
    font-size: 1.6rem;
    margin: 0;
  }

  .navbar-toggler {
    font-size: 1.1rem;
  }

  .body-section {
    padding-top: 4rem;
  }

  .content-wrapper {
    flex-direction: column-reverse; /* Rechte Spalte wird zur oberen Reihe */
  }
  

  .left-column {
    /* flex: 1 1 30%; 30% der Höhe */
    flex: unset;
    max-width: 100%; /* Volle Breite */
    max-height: auto;
  }

  .right-column {
    /* flex: 1 1 70%; 70% der Höhe */
    flex: unset;
    max-width: 100%; /* Volle Breite */
    max-height: none;
    overflow: visible;
  }
  .carousel-description {
    position: relative; /* Standardmäßig relativ positionieren */
    /* margin-top: 20px; */
    /* z-index: 10;  Sicherstellen, dass es über anderen Elementen liegt */
    border: #5a5858;
    border-style: solid;
    border-width: thin;
    padding: 0 5px;
  }
  .carousel-container {
    max-height: 50vh; /* Optional: Begrenzung der maximalen Höhe */
  }
  /* Auf kleinen Bildschirmen Links deutlich machen: Unterstreichung anzeigen
     damit Links auch ohne Hover/Mouse klar erkennbar sind. Ausgewählte
     Bereiche (Inhalt, Carousel, Projekt-Listen) werden überschrieben. */
  .body-section a,
  .carousel-description a,
  .project-table td a,
  .project-item a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
    color: #007bff; /* gleiche Link-Farbe für Konsistenz */
  }
}
@media (max-width: 261px) {
  .navbar-brand h1 {
    font-size: 1.3rem;
  }
  .table-title {
    font-size: 1rem;
  }
  .toggle-button {
    font-size: 0.8rem !important;
  }
  .project-table td {
    font-size: 0.8rem;
  }
  .project-item table {
    font-size: 0.8rem;
  }
  .carousel-description p,
  .carousel-description a {
    font-size: 0.8rem;
  }
}

@media (min-width: 811px) {
  .scroll-indicator {
    left: calc(
      15%
    ) !important; /* Zentriert den Pfeil relativ zur linken Spalte */
  }
}

  @media (min-width: 811px) and (min-height: 510px) {
  .carousel-container {
    min-height: 300px !important;
  }
}


.carousel-control-next,
.carousel-control-prev {
  width: 2rem;
}

.project-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.project-item {
  margin-bottom: 1rem;
}

.project-item table {
  display: none; /* Tabellen standardmäßig ausblenden */
}

.project-details {
  display: none; /* Versteckt die Details standardmäßig */
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid #007bff;
}

.toggle-button {
  background: none;
  border: none;
  color: #007bff;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.toggle-button:focus {
  outline: none;
}

.project-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 8px;
}

.project-header,
.bottom-section tr {
  color: inherit; /* Standardfarbe */
  cursor: pointer; /* Zeigt an, dass das Element anklickbar ist */
}
.project-header:hover,
.bottom-section tr:hover {
  color: white; /* Schriftfarbe beim Hover */
}

.arrow {
  margin-right: 8px;
  font-size: 0.8rem;
  color: #007bff;
}

.toggle-button {
  background: none;
  border: none;
  color: #007bff;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.scroll-indicator {
  position: fixed; /* Fixiert den Pfeil relativ zum gesamten Viewport */
  bottom: 10px; /* Abstand vom unteren Rand des Viewports */
  left: calc(50%); /* Zentriert den Pfeil relativ zur linken Spalte */
  transform: translateX(-50%);
  font-size: 2rem; /* Größe des Pfeils */
  color: #007bff; /* Farbe des Pfeils */
  display: none; /* Standardmäßig ausgeblendet */
  pointer-events: none; /* Nicht anklickbar */
  z-index: 10; /* Überlappt andere Inhalte */
}

.left-column {
  position: relative; /* Für die Positionierung des Pfeils */
  overflow-y: auto; /* Ermöglicht Scrollen */
}

.left-column,
.project-table {
  overflow-y: scroll; /* Scrollen ermöglichen */
  scrollbar-width: none; /* Versteckt die Scrollbar in Firefox */
}

.left-column::-webkit-scrollbar,
.project-table::-webkit-scrollbar {
  display: none; /* Versteckt die Scrollbar in Webkit-basierten Browsern */
}

/* Standard: Grid-Look ausblenden, Table anzeigen */
/* #java-grid-look, #web-grid-look {
  display: none;
} */
/* #java, #web {
  display: block;
} */

/* Für große Bildschirme: Table ausblenden, Grid-Look anzeigen */
/* @media (min-width: 811px) {
  #java, #web {
    display: none !important;
  }
  #java-grid-look, #web-grid-look {
    display: block !important;
  }
} */
@media (min-width: 811px) {
  /* Auf großen Bildschirmen: die List-Ansichten für kleine Bildschirme ausblenden */
  #java, #web, #apps {
    display: none !important;
  }
  /* Auf großen Bildschirmen: die Grid-/Table-Views anzeigen */
  #java-grid-look, #web-grid-look, #apps-grid-look {
    display: block !important;
  }
}
@media (max-width: 810px) {
  #java, #web, #apps {
    display: block !important;
  }
  #java-grid-look, #web-grid-look, #apps-grid-look {
    display: none !important;
  }
}