/* === Grundlayout === */
html, body {
  margin: 0;
  padding: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 1.1rem; /* Basisgröße für Skalierung */
  line-height: 1.3;
  color: #606060;
  height: 100vh;
  background-color: #fff;   
  display: grid;
  place-items: center;
}

.wrapper {	
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  background-color: #fff;
}

/*
.wrapper {
  max-width: 1250px;
  margin: 0 auto;
  background-color: #fff;
}*/

/* === Header === */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #336799;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-image {
  position: sticky;
  top: 10px;
  left: 0;
  max-height: 40px;
  height: auto;

}

/* === Burger-Menü (mobil) === */
.burger {
  display: none;
}

/* === Layout mit Grid === */
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  margin-top: 0px; /* Abstand unter Header */
  min-height: calc(100vh - 60px);
}

/* === Sidebar === 
.sidebar {
  background-color: #f4f4f4;
  padding: 1rem;
  overflow-y: auto;
  scrollbar-width: none;
}*/

.sidebar {
  height: calc(100vh - 95px);
  overflow-y: auto;           /* Scrollen nur bei Bedarf */
  position: sticky;           /* bleibt beim Scrollen sichtbar */
  top: 60px;                     /* klebt oben */
  flex-shrink: 0;             /* verhindert Schrumpfen im Flex-Layout */
  background-color: #f4f4f4;  /* Beispielhintergrund */
  padding: 1rem;
  font-size: 1rem; /* Basisgröße für Skalierung */
}


.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar hr {
  margin-top: -20px;
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: #333;
}

a:hover {
  text-decoration: none;
}

/* === Hauptinhalt === */
.main {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}


.content-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
}

/* === Bildblock === */
.image-block img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === Textblock === */
.text-block {
  font-size: 1rem;
  line-height: 1.3;
  
}

/* === Trennlinie === */
.trennlinie {
  border: none;
  height: 2px;
  background-color: #336799;
  margin: -1rem 0 1rem;
}

/* === Typografie === */
h1 {
  font-size: 2rem;
  color: #336799;
}

h2 {
  font-size: 1.5rem;
  color: #336799;

}

h4 {
  font-size: 1rem;
  font-weight: bold;
  color: #336799;
}

/* styles.css */
.table-container {
  max-width: 100%;
  overflow-x: auto;
  padding: 0rem;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* Spalte 1 passt sich dem Inhalt an */
}

.custom-table th,
.custom-table td {
  border: 1px solid #ccc;
  padding: 0.45rem;
  text-align: left;
  vertical-align: top;
}

/* Optional: Spalte 2 kann gestreckt werden */
.custom-table th:nth-child(2),
.custom-table td:nth-child(2) {
  width: 100%; /* Restliche Breite */
}

.custom-table-bauteilliste {
  width: 100%;
  border-collapse: collapse;
}

.custom-table-bauteilliste th,
.custom-table-bauteilliste td {
  border: 1px solid #ccc;
  padding: 0.25rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem; 
}



/* === Footer === */
footer {
  display: flex;
  justify-content: center; /* horizontal zentriert */
  align-items: center;     /* vertikal zentriert */
  height: 80px;            /* Beispielhöhe */
}


/* === Responsive Design === */
@media (max-width: 768px) {
  html {
  font-size: 1rem; /* Basisgröße für Skalierung */
}

  .layout {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 200px;
    height: calc(100% - 60px);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
	font-size: 1rem; /* Basisgröße für Skalierung */
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .burger {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 1.0rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 1001;
    cursor: pointer;
  }

  .main {
    padding-top: 0rem;
	font-size: 1.0rem;
	max-width: 90%;
  }

  .header-image {
    max-width: 85%;
  }
}
