/* ==================================
   iSeaMonkey / RSS-Feed Modul Style
   ================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: transparent; /* Verhindert Blitzen beim Laden im iFrame */
  font-family: "Open Sans", Roboto, Lato, system-ui, sans-serif;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.page-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  overflow-x: hidden; /* Verhindert seitliches Herausragen im iFrame */
}

/* Responsive 3-Spalten Grid */
.feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 15px;
  width: 100%;
}

.feed-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0; /* Wichtig für CSS Grid Overflow Protection */
}

/* Feed Themenblöcke */
.feed-block {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 12px;
  margin-bottom: 5px;
  overflow: hidden;
}

.feed-topic {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #2196F3;
  word-wrap: break-word;
}

/* Feed Eintrags-Karten */
.feed-item {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease-in-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feed-item:last-child {
  margin-bottom: 0;
}

.feed-item:hover {
  background: #ffffff;
  border-color: #2196F3;
  box-shadow: 0 3px 8px rgba(33, 150, 243, 0.12);
  transform: translateY(-1px);
}

.feed-item time {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.feed-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.feed-title a {
  color: #0055a5;
  text-decoration: none;
  transition: color 0.15s ease;
}

.feed-title a:hover {
  color: #2196F3;
  text-decoration: underline;
}

.feed-body {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

/* Highlight / Neue Nachrichten */
.feed-item.highlight {
  background: #fffdf0;
  border-left: 4px solid #ffb300;
  border-top-color: #ffe082;
  border-right-color: #ffe082;
  border-bottom-color: #ffe082;
}

.feed-item.highlight:hover {
  background: #fffbdf;
}

/* Werbung & Hinweis-Boxen */
.advertise-container {
  margin-top: 15px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
}

.alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 10px;
  text-align: center;
}

/* Footer im iFrame */
.footer-simple {
  margin-top: 15px;
  padding: 10px 0;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}

.footer-simple a {
  color: #0055a5;
  text-decoration: none;
}

.footer-simple a:hover {
  text-decoration: underline;
}

.footer-simple .sep {
  margin: 0 8px;
  color: #cbd5e1;
}

/* Responsive Anpassungen für schmale iFrames oder Mobilgeräte */
@media screen and (max-width: 850px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}