:root {
  --bg: #f3f5f7;
  --fg: #111;
  --link: #0a58ca;
  --card-bg: #fff;
  --card-shadow: 0 4px 12px rgba(0,0,0,.08);
  --radius: 12px;
}

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Grundlayout
   ============================================================ */

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* wichtiger, aber sanfter Fix: keine horizontale Scrollerei */
  max-width: 100%;
  overflow-x: hidden;
}
html {
    overflow-y: scroll;
}
p {
  margin: 3em;
}
h1 {
  margin: 0em 1em;
}
h2 
{
  margin: 1em 1.5em;
}
.static-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

/* Bilder/Videos können nie breiter als der Bildschirm werden */
img,
video {
  max-width: 100%;
  height: auto;
}

/* FEEDS-GRID */
main.feeds-grid {
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 1400px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* 4 Spalten auf großen Screens */
@media (min-width: 1600px) {
  main.feeds-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 2 Spalten auf Tablets */
@media (max-width: 1100px) {
  main.feeds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 Spalte auf Smartphones – mit etwas Rand links/rechts */
@media (max-width: 700px) {
  main.feeds-grid {
    grid-template-columns: 1fr;
    padding: 0 0.75rem; /* leichter Abstand zum Rand */
  }

.feeds-grid > * {
  min-width: 0;
  max-width: 100%;
}
.feeds-grid {
  overflow-wrap: anywhere;
  word-break: break-word;
}
  .feed-box,
  .feed-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  overflow-wrap: anywhere;
  }
}

html.font-large main.feeds-grid,
html.font-xlarge main.feeds-grid {
  max-width: 1200px;
}

html.font-large main.feeds-grid {
  grid-template-columns: repeat(2, 1fr);
}

html.font-xlarge main.feeds-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 700px) {
  html.font-large main.feeds-grid,
  html.font-xlarge main.feeds-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Feed-Container (Boxen)
   ============================================================ */

.feed-box,
.feed-container {
  background: #fdfdfd;
  border: 4px solid #57B9FF;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding:12px 12px 30px 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;

  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.feed-box:hover,
.feed-container:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  position: relative;
}
/*
.feed-logo {
  max-height: 40px;
  max-width: 160px;
  width: auto;
  height: auto;
  display: block;
} */
.feed-logo {
  height: 38px;
  border-radius: 5px;
  margin: 2px 0px 5px 2px;
  max-width: 80%;
  padding: 0;
  vertical-align: bottom;
}
.feed-logo-fallback {
  display: none;
}

.logo-missing + .feed-logo-fallback {
  display: inline;
}


.flag-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: auto;
  z-index: 2;
}


/* ============================================================
   Headlines / Feed-Listen
   ============================================================ */

.headlines,
.feed-header {
  visibility: visible;
}

.headlines {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.headlines li {
  margin-top: 1rem;
  line-height: 0;
}

.headlines li:first-child {
  margin-top: 0;
}

.headlines a.headline {
  display: inline-block;
  color: #000;
  text-decoration: none;
  line-height: 1.15;
  cursor: pointer;
}

.headlines a.headline:hover {
  text-decoration: underline;
  color: var(--link);
}

.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feed-list li {
  position: relative;
  padding-left: 1.1em;   /* Platz für Bullet */
}

.feed-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05em;           /* 🔑 näher an die erste Zeile */
  line-height: 1;        /* 🔑 verhindert Vertikaldrift */
  font-size: 1.2em;      /* optional: visuell schöner */
}

.feed-list .headline {
  display: inline;       /* 🔑 besser als inline-block */
  color: #000;
  text-decoration: none;
}

.feed-list .headline:hover {
  text-decoration: underline;
  color: var(--link, #1976d2);
  cursor: pointer;
}

	  
.region-label {
    display: block;      /* ← ENTSCHEIDEND */
    margin-top: 1.4rem;
    line-height: 1.2;
} 
.feed-list li.region-separator::before {
  content: none;
}
.region-separator {
margin-bottom: 0.5em
}
	  

/* ============================================================
   Mehr laden-Button
   ============================================================ */

.load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  text-align: center;
}

.load-more-btn {
  display: none; /* wird per JS ein-/ausgeblendet */
  background: #1976d2;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
  margin: 20px auto;
}

.load-more-btn:hover {
  background: #0d47a1;
  transform: translateY(-2px);
}

.load-more-btn:active {
  transform: translateY(0);
}

#loader-bottom {
  margin-top: 1rem;
}


/* ============================================================
   Live-Region — UNSICHTBAR GARANTIERT
   ============================================================ */

#sr-live {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   Spenden-Button / Loader / Accordion / Alles wie vorher
   ============================================================ */
/* =========================
   DONATE DIALOG
   ========================= */

.donate-dialog {
  width: min(680px, 92vw);
  border: none;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.donate-dialog::backdrop {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
}

/* Header */
.donate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid #e5e5e5;
}

.donate-header h2 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
}

.donate-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.6;
}

.donate-close:hover {
  opacity: 1;
}

/* Body */
.donate-body {
  padding: 26px;
  display: grid;
  gap: 22px;
}

/* Cards */
.donate-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fafafa;
}

.donate-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.donate-info {
  margin-bottom: 8px;
}

.donate-email {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 6px 0 10px 0;
}

.donate-small {
  font-size: 0.9rem;
  color: #666;
}

.donate-link {
  font-weight: 500;
  text-decoration: none;
}

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

.paypal-button {
  max-width: 160px;
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .donate-body {
    padding: 18px;
  }
}
.donate-container {
  display: flex;
  justify-content: right;
  margin: 5px 8px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.donate-btn {
  background: #d32f2f;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.donate-btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.donate-btn:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .donate-btn {
    font-size: 1rem;
    padding: 10px 18px;
  }
  .donate-container {
    padding: 0.8rem;
  }
}

.global-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.global-loader[hidden] {
  display: none !important;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #1976d2;
  border-radius: 50%;
  animation: bounce 0.8s infinite alternate;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes bounce {
  from { transform: translateY(0);   opacity: 0.6; }
  to   { transform: translateY(-8px); opacity: 1; }
}

/* Scroll-top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background-color: grey;
  color: #fff;
  font-size: 33px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: #0d47a1;
  transform: translateY(-2px);
}

/* Accordion */
.accordion { margin: 0 0 1rem 0; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid #ccc; }
.accordion-content { margin: 0 !important; padding: 0 !important; background: #fff; display: none; }
.accordion-content.show { display: block; padding: 0.8rem 1rem; }

/* Buttons */
.action-buttons button {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 12px;
  background: #0077cc;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.action-buttons button:hover { background: #005fa3; }

.remove-item {
  margin-left: 0.5rem;
  color: #b00020;
  font-weight: bold;
}
.remove-item:hover {
  color: #ff0000;
}


/* Screenreader-only */
.sr-only {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ============================================================
   Feed-Fehlerboxen
   ============================================================ */

.feed-error-container {
  border-left: 4px solid #c62828;
  padding-left: 0.5rem;
  margin-top: 0.5rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feed-error {
  border: 2px solid #b71c1c;
  border-radius: 8px;
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: #ffe6e6;
  color: #4a0000;
  list-style: none;
  box-sizing: border-box;
  max-width: 100%;
}

.feed-error strong {
  font-size: 1rem;
  font-weight: 700;
  color: #7f0000;
}

.feed-error-message {
  margin: 0.3rem 0 0.5rem 0;
}

.feed-error-url {
  font-size: 0.85rem;
  color: #7f0000;
  word-break: break-all;     /* lange URLs brechen */
  overflow-wrap: anywhere;   /* Browser darf überall umbrechen */
}

/* höhere Kontraste, wenn gewünscht */
@media (prefers-contrast: more) {
  .feed-error {
    background: #fff0f0 !important;
    border-color: #900 !important;
    color: #300 !important;
  }
}


/* Sortierliste */
.sortable-list { list-style: disc inside; padding: 10px 15px; border: 2px solid #ccc; border-radius: 6px; }

/* Footer */
.site-footer {
  background-color: #000;
  color: #fff;
  font-size: 16px;
  width: 100%;
  height: 48px;
  padding: 0 1.5rem;

  display: flex;
  align-items: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.footer-text {
  margin: 0 auto;
}

.button-links {
  margin-left: auto;
}

html.font-large .headlines a.headline,
html.font-large .feed-list .headline {
    line-height: 1.4;
}

html.font-xlarge .headlines a.headline,
html.font-xlarge .feed-list .headline {
    line-height: 1.6;
}

/* ============================================================
   A+
   ============================================================ */

html.font-large .headlines a.headline,
html.font-large .feed-list .headline {
    font-size: 1.35em;
    line-height: 1.4;
}

/* ============================================================
   A++
   ============================================================ */

html.font-xlarge .headlines a.headline,
html.font-xlarge .feed-list .headline {
    font-size: 1.65em;
    line-height: 1.6;
}

html.font-large .static-page {
    font-size: 1.35em;
}

html.font-xlarge .static-page {
    font-size: 1.65em;
}

html.font-large .donate-btn {
    font-size: 1.35em;
}

html.font-xlarge .donate-btn {
    font-size: 1.65em;
}


/* ============================================================
   INFO-BOXEN / HINWEISSEITEN
   ============================================================ */

/* Große Einleitung oben */
.hero-box {
  background: #f4f8fb;
  border-left: 5px solid #1976d2;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
  border-radius: 0.5rem;
}

.hero-box h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Allgemeine Hinweisbox */
.info-box {
  background: #f8f9fa;
  border: 1px solid #d8dee4;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.25rem 0;
}

/* Tastenkürzel */
.shortcut-box {
  background: #fff8e8;
  border-left: 4px solid #d6a700;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1.25rem 0;
}

/* ============================================================
   KARTEN-GRID
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: #fff;
  border: 1px solid #d8dee4;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ============================================================
   TIMELINE (Technik-Seite)
   ============================================================ */

.timeline {
  margin: 1.5rem 0;
}

.timeline-item {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-left: 3px solid #1976d2;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #1976d2;
  border-radius: 50%;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .hero-box,
  .info-box,
  .shortcut-box,
  .feature-card {
    padding: 0.9rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
