/* === 1. Grundlayout === */
body.editorial-layout {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', sans-serif;
  color: #212529;
  margin: 0;
  padding: 0;
}
/* === 1.1 Links in der Subkategorie === */
.sub-link {
  position: relative;
  cursor: pointer;
  color: #000 !important; /* 🔒 überschreibt Bootstrap-Linkfarbe */
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none !important; /* 🔒 verhindert Unterstreichung */
  margin: 0 10px;
  display: block; /* 🧱 sorgt für volle Breite im Listenelement */
}

.sub-link:hover {
  color: #353535 !important;
  text-decoration: underline;
}
.btn-outline-light {
  border-color: #ccc;
  color: #fff;
}

.btn-outline-light:hover {
  background-color: #ffffff22;
  color: #dadada;
}

/* === 1.2. Links im Login Modul - Sidebar ===*/
.link-register {
    color: black !important;
    text-decoration: none;
}

.link-register:hover {
    text-decoration: underline;
}

/* === 2. Top-Bar === */
#top-bar {
  background-color: #343a40;
  color: white;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

/* === 3. Sidebar Navigation (Desktop) === */
#sidebar {
  background-color: #2c2f33;
  color: #fff;
  padding: 2rem 1rem;
  min-height: 100vh;
  border-right: 1px solid #dee2e6;
}

/* Links im klassischen Sidebar-Menü */
#sidebar a {
  color: #ccc;
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

#sidebar a:hover {
  color: #fff;
}

/* === 4. Sidebar Navigation (Mobil / Hamburger) === */
.sidebar-nav {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* Hamburger Button */
.sidebar-nav .btn {
  font-weight: bold;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* Menü-Inhalte (nur sichtbar nach Klick auf Mobil) */
#sidebarMenu {
  background-color: #2c2f33;
  padding: 1rem;
  border-radius: 0 0 6px 6px;
}

/* Menü-Links */
.sidebar-nav .nav-link {
  color: #ccc;
  padding: 0.5rem 0;
  text-decoration: none;
}

.sidebar-nav .nav-link:hover {
  color: #fff;
}

/* === 5. Responsive Verhalten === */
@media (max-width: 991.98px) {
  /* Desktop-Sidebar ausblenden */
  #sidebar {
    display: none !important;
  }

  /* Menü-Inhalte initial verstecken */
  #sidebarMenu.collapse:not(.show) {
    display: none;
  }

  /* Hamburger sichtbar */
  .sidebar-nav .btn {
    display: block;
  }
}

@media (min-width: 992px) {
  /* Hamburger ausblenden auf Desktop */
  .sidebar-nav .btn {
    display: none;
  }

  /* Menü-Inhalte dauerhaft sichtbar */
  #sidebarMenu {
    display: block !important;
  }
}

/* === 6. Breaking News Banner === */
#breaking-news {
  background-color: #dc3545;
  color: #ffffff;
  padding: 0.25rem 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  /* Reserve space for the badge on the left */
  /* padding-left: 96px; /* match badge width */  */
}

/* Ticker container handles overflow (not the banner) */
.news-ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Laufband */
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  /* Start rechts, läuft nach links */
  padding-left: 100%;
  animation: ticker-scroll 60s linear infinite; /* speed: increase = slower, decrease = faster */
}

/* Stop bei Hover */
#breaking-news:hover .ticker-track {
  animation-play-state: paused;
}

/* Links (one definition, consistent) */
.news-link {
  position: relative; /* for preview positioning */
  cursor: pointer;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  margin: 0 10px;
}

.news-link:hover {
  color: #dadada;
  text-decoration: underline;
}

/* Trenner */
.separator {
  margin: 0 10px;
  color: #ffffff;
  opacity: 0.8;
}

/* Animation */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Thumbnail im Ticker */
.news-thumb {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}

/* Badge: abgeschrägt, mit unskewed inner text */
.news-badge {
  position: absolute;
  top: 0;
  left: -12px; /* leicht nach außen ziehen */
  width: 96px;
  height: 100%;
  background: #000;
  transform: skew(-15deg);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.news-badge-text {
  transform: skew(15deg); /* counter-skew to keep text upright */
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.news-badge::before,
.news-badge::after {
  content: "";
}

/* Vorschau: appears above ticker, not clipped */
.news-link .preview {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #ffffff;
  color: #000;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.2);
  width: 240px;
  font-size: 0.8rem;
  line-height: 1.3;
  z-index: 100;              /* above track */
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* little arrow */
.news-link .preview::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}

/* show on hover */
.news-link:hover .preview {
  display: block;
}

/* === 7. Hauptinhalt === */
#main-content {
  padding: 2rem;
}

/* === 8. Teaser Block === */
.teaser-block {
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.teaser-block img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* === 9. Slideshow Caption === */
.carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  max-width: 85%;
  margin-left: 1rem;
  margin-bottom: 2rem;
}

.carousel-caption h2,
.carousel-caption p {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.carousel-caption .btn-read {
  background-color: #dc3545;
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.75rem;
}

.carousel-caption .btn-read:hover {
  background-color: #c82333;
}

/* === 10. Subkategorien === */
.subcategory-list {
  margin-bottom: 2rem;
}

.subcategory-list .btn-sub {
  background-color: #fd7e14;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.25rem 0;
  width: 100%;
  text-align: left;
  font-weight: bold;
}

.subcategory-list .btn-sub:hover {
  background-color: #e96b0c;
}

/* === 11. Beiträge mit kleinem Bild === */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  display: flex;
  background-color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.post-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 4px;
}

.post-item .post-text {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
}

/* ─────────────────────────────────────────────
   📘 Editorial Button: Outline-Variante (W3Schools inspiriert)
─────────────────────────────────────────────── */
a.btn-read-outline {
	box-shadow:inset 0px 10px 14px -7px #276873;
	background:linear-gradient(to bottom, #599bb3 5%, #408c99 100%);
	background-color:#599bb3;
	border-radius:5px;
	border:1px solid #29668f;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:12px;
	font-weight:bold;
	padding:9px 32px;
	text-decoration:none;
}

a.btn-read-outline:hover,
a.btn-read-outline:active {
  background:linear-gradient(to bottom, #408c99 5%, #599bb3 100%);
	background-color:#408c99;
		position:relative;
	top:1px;
}
/* === 12. Rechte Sidebar Module === */
#urgent-list {
  padding: 2rem 1rem;
}

.sidebar-module {
  margin-bottom: 5px;
}

.sidebar-header {
  font-size: 1rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 6px 6px 0 0;
  color: white;
  background-color: #dc3545; /* Optional: dynamisch per Klasse */
}

.sidebar-body {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 1rem;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* === 13. Urgent Cards === */
.urgent-item {
  background-color: #fff;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.urgent-item h4 {
  margin: 0;
  font-size: 1rem;
  color: #212529;
}

.urgent-item small {
  color: #6c757d;
}

/* === 14. Footer === */
#main-footer {
  background-color: #212529;
  color: white;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}