: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;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html {
    overflow-y: scroll;
}
main { flex: 1; }
	  
#header img{width:100%;vertical-align: bottom;}

/* Abstand zwischen Navigation und 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);
  align-items: stretch;
}

/* Responsive Grid (wieder eingefügt aus Sicherung) */
@media (min-width: 1600px) {
  main.feeds-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  main.feeds-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  main.feeds-grid { grid-template-columns: 1fr; }
}
.page-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0c1e3e;
  margin: 1.5rem auto;
  position: relative;
  padding-bottom: 0.6rem;
}

/* leichte Linie unter der Überschrift */
.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1976d2, #42a5f5);
}

/* Feed Container */
.feed-container {
  background: #fdfdfd;
  border: 9px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 16px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.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;
  width: auto;
  display: block;
  max-width: 160px;
  height: auto;
}
.feed-logo-fallback {
  display: none;
}

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


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

/* Headlines */
.feed-header, .headlines { visibility: visible; }
.tippy-ready .feed-header, .tippy-ready .headlines { visibility: visible; }
.tippy-ready .loader { display: none; }

.headlines {
  list-style: 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;
  cursor: pointer;
  user-select: text;
  line-height: 1.15;
}
.headlines a.headline:hover {
  text-decoration: underline;
  color: var(--link);
}

/* Einheitliches Styling für alle Feed-Listen */
.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feed-list .headline {
  display: inline-block;
  color: #000;
  text-decoration: none;
}
.feed-list .headline:hover {
  text-decoration: underline;
  color: var(--link, #1976d2);
}
.feed-list li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.feed-list li:last-child {
  margin-bottom: 0;
}

/* Tooltip Content */
.tooltip-content {
  position: relative;
  padding: 1em 0.8em 0.8em 0.8em;
  max-width: 400px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
}
.tooltip-content .close-tip {
  position: absolute;
  top: -5px;
  right: -5px;
  border: none;
  background: transparent;
  color: orange;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.tooltip-content .close-tip:hover { color: darkorange; }
.tooltip-content .tip-more {
  display: inline-block;
  margin-top: 0.4em;
  color: orange;
  font-weight: 600;
  text-decoration: none;
}
.tooltip-content .tip-more:hover { text-decoration: underline; }

#tooltip-text:focus {
  outline: none;
}
/* Tooltip Container */
.preview-dialog {
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: fadeInScale 0.25s ease-out;
  position: relative;
  z-index: 9999;
  max-width: 90vw;
  word-wrap: break-word;
}
.preview-dialog.show { opacity: 1; }
.preview-dialog[hidden] { display: none !important; }

.preview-dialog .tip-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: #4dabf7;
  text-decoration: underline;
  font-weight: 600;
}
.preview-dialog .tip-more:hover,
.preview-dialog .tip-more:focus { color: #82cfff; }
.preview-dialog .close-preview {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.preview-dialog .close-preview:hover,
.preview-dialog .close-preview:focus {
  color: #ff5252;
  transform: scale(1.2);
  outline: none;
}

/* Einblend-Animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Spenden-Button */
.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; }
}

/* Loader */
.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-to-top */
#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; font-weight: bold;
  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); }
#scrollTopBtn:active { transform: translateY(0); }

/* =========================================================
   Accordion – Final & bündig optimiert (v.10)
   ========================================================= */

/* Gesamt-Container */
.accordion {
  width: 100%;
  max-width: 1200px;
  margin: 1.0rem auto;
  padding: 0; /* bündig links/rechts */
  border: none;
}


/* Einzelne Accordion-Elemente */
.accordion-item {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  margin: 0 0 1 0;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.accordion-item:first-child {
  margin-bottom: 0 !important;
}

/* Farbvarianten für Header pro Abschnitt */
.accordion-item:nth-child(1) .accordion-header {
  background: #e7f1ff;   /* Politik – hellblau */
  color: #0a2e6b;
}
.accordion-item:nth-child(2) .accordion-header {
  background: #f3f9e7;   /* Regionen – hellgrün */
  color: #2b5d00;
}
.accordion-item:nth-child(3) .accordion-header {
  background: #fff6e0;   /* Ressorts – warmes Gelb */
  color: #6b4a00;
}
.accordion-item:nth-child(4) .accordion-header {
  background: #f7ecff;   /* Ausland – hellviolett */
  color: #4b1f74;
}

/* Header-Stil */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, filter 0.25s ease;
}

.accordion-header:hover {
  filter: brightness(0.95);
}

.accordion-header::after {
  content: "+";
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.accordion-header.active::after {
  content: "–";
}

/* Accordion-Inhalte */
.accordion-content {
  display: none;
  background: #fff;
  padding: 1rem 1.2rem;
  border-top: 1px solid #ddd;
  animation: fadeIn 0.3s ease;
}
.accordion-content.show {
  display: block;
}

/* Fieldset-Inhalt als Grid */
.accordion-content fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem 1rem;
  border: none;
  margin: 0;
  padding: 0;
}

/* === Details / Unterebenen (z. B. Ausland, Regionen) === */
details > summary {
  font-weight: 600;
  cursor: pointer;
  margin: 0.5rem 0;
  list-style: none;
}
details[open] > summary {
  margin-bottom: 0.4rem;
}
details[open] summary::after {
  content: " ▲";
  font-size: 0.8rem;
}
details summary::after {
  content: " ▼";
  font-size: 0.8rem;
  color: #666;
}

/* Unterste Ebene: gleichmäßige Checkboxen */
.accordion-content details[open] > div,
.accordion-content details[open] > fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
  align-items: start;
  overflow: hidden;
}

/* Checkbox-Ausrichtung */
.accordion-content label {
  display: flex;
  align-items: center;
  white-space: normal;
  line-height: 1.4;
  gap: 0.4rem;
}

/* Responsive Verhalten */
@media (max-width: 800px) {
  .accordion-content fieldset {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
@media (max-width: 500px) {
  .accordion-content fieldset {
    grid-template-columns: 1fr;
  }
}

/* Sanftes Einblenden */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Debug-Modus (nur zur Kontrolle, danach löschen) === */
.debug .accordion        { outline: 2px solid red; }
.debug .accordion-item   { outline: 2px dashed orange; }
.debug .accordion-header { outline: 1px dotted blue; }
.debug .accordion-content{ outline: 1px solid limegreen; }

/* Sanftes Einblenden */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Bedien-Buttons (modern, farbig & responsiv)
   ========================================================= */

.action-buttons {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.action-buttons button {
  min-width: 150px;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: #fff;
  transition:
    background 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* --- Farbzuordnung --- */
#saveSelection   { background: #1976d2; } /* Blau */
#resetSelection  { background: #757575; } /* Grau */
#linkSelection   { background: #ffb300; color: #000; } /* Gelb */
#gotoIndex       { background: #2e7d32; } /* Grün */

/* --- Hover-Effekt --- */
#saveSelection:hover   { background: #1565c0; }
#resetSelection:hover  { background: #616161; }
#linkSelection:hover   { background: #ffa000; }
#gotoIndex:hover       { background: #1b5e20; }

/* --- Active (gedrückt) --- */
.action-buttons button:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- Fokus (Tastaturbedienung / Barrierefreiheit) --- */
.action-buttons button:focus {
  outline: 3px solid rgba(25, 118, 210, 0.5);
  outline-offset: 2px;
}

/* --- Responsiv: Buttons untereinander auf kleinen Screens --- */
@media (max-width: 600px) {
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  .action-buttons button {
    width: 90%;
    max-width: 300px;
  }
}

	  
/* Checkbox-Listen (allgemein) */
.media-list label {
  display: inline-block; width: 23%; margin-bottom: 0.4rem;
  vertical-align: top; white-space: nowrap;
}
.media-list input[type="checkbox"] { margin-right: 4px; }
@media (max-width: 900px) { .media-list label { width: 48%; } }
@media (max-width: 600px) { .media-list label { width: 100%; } }
/* Politik-Container als Grid */
/* Politik-Block: Fieldset steuert das Grid */
.media-list.politik fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.4rem 1rem;
  border: none;   /* Rahmen weg */
  padding: 0;     /* kein Innenabstand */
  margin: 0;      /* kein Außenabstand */
}

/* Label im Grid */
.media-list.politik label {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Legend extra behandeln: ohne Abstand */
.media-list.politik legend {
  margin: 0;
  padding: 0;
  font-weight: bold;
}

/* Ausland */
/* =====================
   Ausland (optimiert)
   ===================== */
/* =====================
   Ausland – finale Version (mit Pfeilen & besserem Text-Layout)
   ===================== */
.media-list.ausland {
  margin: 1rem 0;
}

.media-list.ausland fieldset.region-block {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fafafa;
}

/* Regionstitel (z. B. Western Europe, Southern Europe) */
.media-list.ausland legend {
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
}

/* Ländercontainer */
.media-list.ausland details {
  margin: 0.8rem 0;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid #ccc;
  background: #fff;
  border-radius: 6px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Länderüberschrift mit Pfeil */
.media-list.ausland summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #2a5db0;
  list-style: none;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.media-list.ausland details[open] summary::before {
  content: "▼";
  transform: translateY(0.05rem);
}


/* Geöffnete Länder */
.media-list.ausland details[open] {
  background: #f0f4ff;
  border-color: #4a90e2;
}

/* Grid für Checkboxen */
.media-list.ausland details[open] > *:not(summary) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* etwas breiter */
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

/* Checkbox + Label nebeneinander */
.media-list.ausland label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;              /* verhindert unnötige Zeilenumbrüche */
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  font-size: 1rem;
  width: 100%;                    /* erlaubt Text, den Platz auszunutzen */
}

.media-list.ausland input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
  transform: translateY(0.5px);
}

/* Responsive Verhalten */
@media (max-width: 900px) {
  .media-list.ausland details[open] > *:not(summary) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .media-list.ausland details[open] > *:not(summary) {
    grid-template-columns: 1fr;
  }
}




/* Regionale Separatoren */
.region-separator {
  margin-top: 1.5rem; margin-bottom: 0.5rem; padding: 0.25rem 0;
  font-size: 1.1rem; border-top: 1px solid #ccc; list-style: none;
}
.region-separator strong a {
  color: #1976d2; text-decoration: none;
}
.region-separator strong a:hover,
.region-separator strong a:focus { text-decoration: underline; }

.region-block {
  border: 2px solid #8ab6d6; border-radius: 8px;
  padding: 10px 15px; margin-bottom: 1rem; background: #f9f9f9;
}
.region-block legend { font-weight: bold; font-size: 1.1rem; padding: 0 6px; }
.region-block label { display: block; margin: 4px 0; }
.region-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* FIX: Mehr laden Button Styling */
.load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  text-align: center;
}
.load-more-btn {
  display: none; /* Standard unsichtbar, 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; }

	  .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Sortierbare Liste mit Bullets */
/* Rahmen um die Medienauswahl-Liste */
.sortable-list {
  list-style: disc inside;      /* Bullets anzeigen */
  padding: 10px 15px;           /* Innenabstand */
  margin: 10px 10px;            /* Abstand nach außen */
  border: 4px solid #ccc;       /* grauer Rahmen */
  border-radius: 6px;           /* leicht abgerundet */
  background: #fafafa;          /* dezenter Hintergrund */
}

/* einzelne Medien-Einträge */
.sortable-list li {
  margin: 6px 0;
  padding: 6px 10px;
/*  background: #fff;
  border: 1px solid #ddd;*/ 
  border-radius: 4px;
  cursor: grab;
}

/* beim Ziehen */
.sortable-list li.dragging {
  opacity: 0.6;
  background: #e3f2fd;   /* leichte Hervorhebung */
  border: 1px dashed #1976d2;
}
	  
.sortable_text {
margin: 15px 10px;
}
	  
	  /* Hilfe-Dialog */
.help-dialog {
  max-width: 600px;
  padding: 1.5rem 2rem;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.help-dialog::backdrop {
  background: rgba(0,0,0,0.6);
}

.help-btn {
  display: block;
  max-width: 220px;
  margin: 0.5rem auto 1rem auto; /* zentriert */
  text-align: center;
  font-size: 1.05rem;
  border-radius: 6px;
  background: #1976d2;
  color: #fff;
  font-weight: 600;
  border: none;
}


.help-btn:hover {
  background: #0d47a1;
}
/* Doppelte Pfeile bei <summary> verhindern */
.media-list.ausland summary::-webkit-details-marker {
  display: none;
}
.media-list.ausland summary::marker {
  content: "";
}

.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;
}
/* === Tooltip-Bereich neu (barrierefrei & modern) === */

/* Tooltip-Hülle */
.preview-dialog {
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 1rem 1.5rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-top: 0.5rem;
  position: relative;
  z-index: 9999;
  max-width: 90vw;
  word-wrap: break-word;
  animation: fadeInScale 0.25s ease-out;
}

/* Tooltip-Text */
#tooltip-text {
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  line-height: 1.45;
}

/* Aktionsleiste im Tooltip */
.tooltip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

/* "Zur Originalseite" Button */
.tip-go {
  background: #4dabf7;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.tip-go:hover,
.tip-go:focus {
  background: #82cfff;
  outline: 2px solid #fff;
  transform: translateY(-1px);
}

/* Schließen-Kreuz */
.close-preview {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.close-preview:hover,
.close-preview:focus {
  background: #ff5252;
  color: #fff;
  outline: none;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
  .tooltip-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .tip-go {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }

  .close-preview {
    align-self: flex-end;
    margin-bottom: 0.3rem;
  }
}

/* Sanfte Einblend-Animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
} 
/* Auswahl-Liste: keine Bullets */
#selectionOutput .sortable-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Jede Zeile als Row */
#selectionOutput .selection-item {
  display: flex;
  flex-wrap: nowrap;              /* 🔒 nicht umbrechen */
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.6rem;

  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* Text links, darf umbrechen */
#selectionOutput .selection-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Pfeile rechts */
#selectionOutput .order-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  margin-left: 0.4rem;
}

/* Buttons */
#selectionOutput .order-controls button {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  border-radius: 0.5rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
}

/* Fokus sichtbar */
#selectionOutput .order-controls button:focus-visible {
  outline: 2px solid rgba(0,0,0,0.5);
  outline-offset: 2px;
}
html.font-large #selectionOutput .order-controls button {
  font-size: 1.35rem;
}

html.font-xlarge #selectionOutput .order-controls button {
  font-size: 1.65rem;
}

/* Touch: größere Ziele */
@media (pointer: coarse) {
  #selectionOutput .order-controls button {
    padding: 0.6rem 0.75rem;
    font-size: 1.05rem;
  }
}
@media (pointer: coarse) {

  html.font-large #selectionOutput .order-controls button {
    font-size: 1.35rem;
    padding: 0.75rem 0.9rem;
  }

  html.font-xlarge #selectionOutput .order-controls button {
    font-size: 1.65rem;
    padding: 0.9rem 1.1rem;
  }
}

/* Drag-Feedback Desktop */
@media (pointer: fine) {
  #selectionOutput .selection-item {
    cursor: grab;
  }
  #selectionOutput .selection-item.dragging {
    cursor: grabbing;
    opacity: 0.7;
  }
}

/* Sicherheit: keine Bullets irgendwo */
#selectionOutput ul,
#selectionOutput li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* iPhone-Schutz: nichts nach unten rutschen lassen */
@media (max-width: 420px) {
  #selectionOutput .selection-item {
    flex-wrap: nowrap;
  }

  #selectionOutput .order-controls {
    margin-top: 0;
    align-self: flex-start;
  }
}
/* ============================================================
   Schriftgrößen Auswahlseite
   ============================================================ */

html.font-large label,
html.font-large .accordion-header,
html.font-large .action-buttons button,
html.font-large .sortable_text, 
html.font-large .selection-item {
    font-size: 1.35em;
}

html.font-xlarge label,
html.font-xlarge .accordion-header,
html.font-xlarge .action-buttons button,
html.font-xlarge .sortable_text,
html.font-xlarge .selection-item {
    font-size: 1.65em;
}
html.font-large .donate-btn {
    font-size: 1.35em;
}

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