/* static/welcome.css */


.welcome-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.welcome-modal-content {
  background-color: var(--bg-color, #fff);
  color: var(--text-color, #000);
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  text-align: center;
  border: 1px solid var(--border-color, #ddd);
}

.welcome-modal-content header h1 {
  color: var(--primary-color, #333);
}

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}
.news-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.welcome-kpi {
  background-color: var(--bg-offset, #f9f9f9);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, #eee);
}

.welcome-kpi .label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  margin-bottom: 0.5rem;
}

.welcome-kpi .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color, #000);
}

.welcome-modal-content footer {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.btn-primary, .btn-secondary {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}



.btn-primary:hover {
  background-color: var(--primary-color-dark, #0056b3);
}

.btn-secondary {
  background-color: var(--bg-offset, #f0f0f0);
  color: var(--text-color, #333);
  border: 1px solid var(--border-color, #ccc);
}

.btn-secondary:hover {
  background-color: var(--border-color, #e0e0e0);
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background-color: var(--bg-offset, #f9f9f9);
  color: var(--text-color, #000);
  padding: 0rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 10px;
  vertical-align: middle;
  border-top: 8px solid;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  transition: transform 0.2s ease-in-out;
}

.dropdown-container:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-color, #f9f9f9);
  min-width: 100%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 6px;
  bottom: 100%;
  margin-bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  font-size: .8rem;
}

.dropdown-content a {
  color: var(--text-color, black);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--bg-offset, #f1f1f1);
}

.dropdown-container:hover .dropdown-content {
  display: block;
}

.add-new-site {
  font-style: italic;
  color: var(--primary-color, #007bff) !important;
}

.qr-code-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  scale: 0.8;
}


/* Tab-Navigation */
.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--border-color, #ddd);
  margin-bottom: 1.5rem;
}

.tab-link {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted, #666);
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 3px solid transparent;
}

.tab-link.active {
  color: var(--primary-color, #007bff);
  border-bottom: 3px solid var(--primary-color, #007bff);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  max-height: calc(100vh - 250px); /* Viewport-Höhe minus Header/Footer */
  overflow-y: auto;
}

/* News-spezifische Stile */
.news-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1.5rem;
  text-align: left;
}

.latest-news {
  background-color: var(--bg-offset, #f9f9f9);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, #eee);
  max-height: 400px;
  overflow-y: auto;
}

.latest-news h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.latest-news h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-muted, #666);
}

.latest-news p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.latest-news a {
  color: var(--primary-color, #007bff);
  text-decoration: none;
}

.latest-news a:hover {
  text-decoration: underline;
}

.news-list-container h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

#news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 350px;
  overflow-y: auto;
}

#news-list li {
  padding: 0.5rem 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color, #eee);
  transition: background-color 0.2s;
}

#news-list li:hover {
  background-color: var(--bg-offset, #f9f9f9);
}

#news-list li:last-child {
  border-bottom: none;
}

#welcome-tab {
  height: 100%;
}

#qr-tab.tab-content.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}