/* === Reset === */
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
  font-family: Arial, sans-serif;
  color: #111;
  background: #fff;
  overflow-y: auto;
}

/* === Header === */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
}

.header-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar {
  max-height: 100vh;      /* maximale Höhe: gesamte Bildschirmhöhe */
  overflow-y: auto;       /* vertikal scrollbar, wenn nötig */
  overflow-x: hidden;     /* keine horizontale Scrollleiste */
  position: sticky;       /* bleibt beim Scrollen am Platz */
  top: 0;                 /* fixiert oben */
}

.logo {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

header h1 {
  font-size: 20px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

/* === Layout === */
.container {
  display: flex;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
}

/* === Sidebar === */
.sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #eee;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-section {
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-header {
  padding: 14px 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.sidebar-header::before {
  content: '';
  width: 24px;
  height: 24px;
  background: #075e54;
  border-radius: 50%;
  display: inline-block;
  margin-right: 12px;
}

.sidebar-header::after {
  content: '⬇';
  position: absolute;
  right: 16px;
  transition: transform 0.3s ease;
  font-size: 12px;
}

.sidebar-header.open::after {
  transform: rotate(180deg);
}

.sidebar-items {
  display: none;
  padding-left: 36px;
}

.sidebar-items li {
  padding: 8px 0;
  cursor: pointer;
  padding-left: 5px; /* Verschiebt den Punkt und den Text um 5px nach rechts */
}

.sidebar-items li:hover {
  background: #e6f9ec;
  border-radius: 6px;
}

.sidebar-items .active {
  background: #e0f2e9;
  border-radius: 6px;
  padding: 8px;
}

/* === Content === */
.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.search-box {
  background: #f5f7f8;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  flex: 1;
  width: 100%;
}

#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  border-top: none;
  background: #fff;
  display: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #f0f0f0;
}

.signal-suggestion {
  color: #b0b0b0; /* Helles Grau für Signale */
}

/* Artikel-Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: #f5f7f8;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 5px; /* Verschiebt die gesamte Karte um 5px nach rechts */
}

.card:hover {
  background: #e6f9ec;
}

.card img {
  width: 40px;
  margin-bottom: 10px;
}

.card h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  color: #666;
}

/* Artikel-Seite */
.article-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.article-content {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
  margin-left: 5px; /* Verschiebt den Text um 5px nach rechts */
}

.related-articles li {
  margin-bottom: 8px;
}

.related-articles a {
  color: #1a7f64;
  text-decoration: none;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100% - 60px);
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .content {
    padding: 15px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  header .header-container {
    justify-content: space-between;
  }
}


 /* 
.article-content {
  text-align: center;  Alles im Container mittig ausrichten 
}
*/


.header-link {
  color: inherit;        /* gleiche Farbe wie normaler Text */
  text-decoration: none; /* Unterstreichung entfernen */
  display: inline-block; /* verhält sich wie normaler Textblock */
}

.header-link:hover {
  text-decoration: none; /* auch beim Hover keine Unterstreichung */
}






/* Horizontale Scroll-Leiste */
.card-scroll {
  display: flex;
  gap: 16px;               /* Abstand zwischen den Cards */
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 20px;     /* Abstand unterhalb */
  margin-top: 20px;        /* Abstand oberhalb, z. B. über dem Grid */
  scroll-behavior: smooth;
}

.card-scroll::-webkit-scrollbar {
  height: 6px;
}
.card-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* Mini-Version deiner Cards */
.mini-card {
  flex: 0 0 auto;
  width: 180px;
  height: 90px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
}

.mini-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.mini-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}







/* Aktionen unter Artikel */
.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* Link kopieren Button */
.btn-copy {
  background: #f5f7f8;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-copy:hover,
.btn-copy.copied {
  background: #e6f9ec; /* gleich wie .card:hover */
}

/* Feedback Popup */
.feedback-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 1px solid #eee;
  padding: 14px;
  display: none;
  max-width: 420px;
}
.feedback-box.show { display: block; }

.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 10px;
}
.fb-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 8px;
}
.fb-close:hover { background: #f5f7f8; }

.fb-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.feedback-btn {
  background: #f5f7f8;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}
.feedback-btn:hover { background: #e6f9ec; }




.app-badge {
  margin-right: 10px;
  display: inline-block;
}
