Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.

  • Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
  • Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
  • Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */

/* --- Layout für die drei Bewertungsboxen --- */
.whisky-rating {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 1rem 0 1.5rem;
}
.whisky-rating__item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  background: #fff;
}
.whisky-rating__label {
  font-weight: 600;
  margin-bottom: .5rem;
  color: #111827;
}

/* --- Container für die Gläser --- */
.whisky-rating__widget {
  display: flex;            /* flex statt inline-flex */
  flex-wrap: wrap;          /* erlaubt Umbruch bei kleinen Screens */
  align-items: center;
}

/* --- Gläser (Button) --- */
.whisky-glass {
  display: inline-block;    /* verhindert Überlappungen */
  width: 28px;
  height: 28px;
  margin: 0 6px 6px 0;      /* Abstand zwischen den Gläsern */
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  background-image: url("/index.php?title=Special:FilePath/Whisky_empty.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  line-height: 0;
  vertical-align: middle;
  box-sizing: content-box;
  opacity: .8;
  transition: opacity .08s ease, filter .08s ease;
}

/* --- Aktive (gefüllte) Gläser --- */
.whisky-glass.is-active {
  background-image: url("/index.php?title=Special:FilePath/Whisky_filled.png");
  opacity: 1;
}

/* --- Hover/Fokus-Effekt --- */
.whisky-glass:hover,
.whisky-glass:focus {
  opacity: 1;
  outline: none;
  filter: drop-shadow(0 0 0.4px rgba(0,0,0,.25));
}

/* --- Textbereich unter den Gläsern --- */
.whisky-rating__meta {
  margin-top: .4rem;
  font-size: .9rem;
  color: #4b5563;
}

/* --- Zustand: nicht eingeloggt --- */
.whisky-rating--disabled .whisky-glass {
  cursor: not-allowed;
  filter: grayscale(0.3) opacity(.5);
}

/* --- Mobile: kleinere Gläser --- */
@media (max-width: 420px) {
  .whisky-glass { width: 26px; height: 26px; margin: 0 5px 5px 0; }
}



.whisky-overall-badge {
  display: inline-block;
  margin-left: .5rem;
  padding: .1rem .45rem;
  border-radius: .5rem;
  background: #111827;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
}

/* Tabelle für Whisky-Bewertungen */
.whisky-summary__table {
  border-collapse: collapse;
  margin-top: 0.5em;
  width: auto; /* oder 100% */
}

.whisky-summary__table th,
.whisky-summary__table td {
  padding: 0.4em 0.8em;
  text-align: left;
}

.whisky-summary__table th {
  background: #f5f5f5;
  font-weight: 600;
}

.whisky-summary__table tr:nth-child(even) td {
  background: #fafafa;
}

/* Letzte Zeile (Gesamt) hervorheben */
.whisky-summary__table tr:last-child td {
  padding-top: 0.6em;
  padding-bottom: 0.6em;
  border-top: 2px solid #333;
  font-weight: bold;
  background: #fff9e6;
}



/* Whisky Ø-Balken */
.whisky-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 160px;            /* Platz für den Balken */
}
.whisky-bar__track {
  position: relative;
  flex: 1 1 auto;
  height: 10px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.whisky-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0b429, #d97706); /* bernstein */
  transition: width .35s ease;
}
.whisky-bar__value {
  font-variant-numeric: tabular-nums;
  min-width: 3ch;              /* z. B. “7.5” */
  text-align: right;
}


/* bessere Touch-Fläche */
.whisky-rating__widget {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Buttons: Größe & Klickfläche, aber Bild erhalten */
.whisky-glass {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background-color: transparent;       /* NICHT: background: transparent; */
  touch-action: manipulation;

  /* falls noch nicht gesetzt: */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;            /* oder 100% 100% */
  display: inline-block;               /* sicherheitshalber */
  cursor: pointer;
}

@media (max-width: 480px) {
  .whisky-glass { width: 32px; height: 32px; }
}


-----------------------------------------------------------------------------------


/* Top-5 Widget */
.whisky-top5 {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.whisky-top5__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px dashed #eee;
}
.whisky-top5__item:last-child { border-bottom: 0; }
.whisky-top5__rank {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #fff1c7;
  color: #7a4b00;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.whisky-top5__name a { text-decoration: none; color: #111; }
.whisky-top5__name a:hover { text-decoration: underline; }

/* kleiner Ø-Balken */
.whisky-mini {
  display: flex; align-items: center; gap: .5rem;
}
.whisky-mini__track {
  flex: 1 1 140px; height: 8px; background: #ececec; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.whisky-mini__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #f0b429, #d97706);
  transition: width .35s ease;
}
.whisky-mini__val {
  min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums;
  color: #222;
}
.whisky-top5__votes { color: #666; font-size: .9em; }


-----------------------------------------------------------------------------------


/* Layout Helpers */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.2fr 0.8fr; } }
.col { display: flex; flex-direction: column; gap: 1rem; }

.card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card > h2 { margin-top: 0; }

/* Hero */
.hero { background: linear-gradient(180deg,#f6f6f6,#ffffff); border: 1px solid #eee; border-radius: 16px; }
.hero-content { padding: 1.2rem 1.4rem; text-align: center; }
.hero h1 { margin: .2rem 0; font-size: 2rem; }
.hero-actions a {
  display: inline-block; margin: .25rem; padding: .4rem .7rem; border: 1px solid #ddd;
  border-radius: 999px; text-decoration: none; background: #fff;
}
.hero-actions a:hover { background: #f5f5f5; }

/* Lists & Pills */
.list.compact .news-item { display: flex; gap: .6rem; padding: .25rem 0; border-bottom: 1px dashed #eee; }
.list.compact .news-item:last-child { border-bottom: 0; }
.news-item .date { font-variant-numeric: tabular-nums; color:#666; min-width: 7ch; }

.pill-list a {
  display:inline-block; margin:.25rem; padding:.35rem .7rem; border:1px solid #ddd; border-radius:999px; text-decoration:none;
}
.pill-list a:hover { background:#f8f8f8; }

/* Whisky cards */
.whisky-card { display: grid; grid-template-columns: 140px 1fr; gap: .9rem; align-items: start; }
.whisky-card .whisky-media img { border-radius: 10px; }
.whisky-card h3 { margin:.2rem 0; }
.whisky-card .meta { color:#666; font-size:.95rem; }
.whisky-card .note { margin:.4rem 0 0; }

.whisky-mini { display: block; padding:.35rem 0; }
.whisky-mini .dim { color:#666; }

/* Teaser grid (3 columns on wide) */
.teaser-grid { display:grid; grid-template-columns:1fr; gap:.25rem; }
@media (min-width: 700px){ .teaser-grid { grid-template-columns:1fr 1fr 1fr; } }

/* Recent changes block */
.recent-changes { max-height: 360px; overflow:auto; border:1px solid #eee; border-radius:10px; padding:.5rem; background:#fafafa; }

/* Simple star rating (rendered via JS) */
.rating { --stars: 0; position: relative; display:inline-block; font-size: 1.1rem; line-height: 1; }
.rating::before { content: "★★★★★"; letter-spacing: .1rem; color:#ddd; }
.rating::after  { content: "★★★★★"; letter-spacing: .1rem; color:#f5b50a; position:absolute; left:0; top:0; width: calc(var(--stars) * 20%); overflow:hidden; }

/* Typo tweaks */
h2, h3 { scroll-margin-top: 80px; }



-----------------------------------------------------------------------------------



/* ===== ADOS: Mobile-first Layout & Styles ===== */

/* Typografie & Basis */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --muted: #f6f7f8;
  --border: #e6e6e6;
  --text: #222;
  --text-sub: #666;
  --link: #2d6ca2;
  --link-hover: #1c4d7d;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
}
body { background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 8px; }

/* Hero */
.ados-hero { text-align: center; padding: .8rem .5rem .3rem; }
.ados-hero h1 { margin: 0 0 .3rem; font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.ados-hero p { margin: 0 auto .7rem; max-width: 64ch; text-align: justify; }

/* Chips (horizontales Scrollen auf Handy) */
.ados-chips {
  display: flex; gap: .5rem; overflow-x: auto; padding: .4rem .2rem .6rem;
  scrollbar-width: thin;
}
.ados-chips a, .ados-chips span {
  white-space: nowrap; border: 1px solid var(--border); background: var(--card);
  padding: .45rem .7rem; border-radius: 999px; box-shadow: var(--shadow);
}
.ados-chips a:hover { background: var(--muted); }

/* Grid (1 Spalte mobil, 2 Spalten ab 900px) */
.ados-grid { display: grid; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) {
  .ados-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
.card h2 {
  margin: 0 0 .5rem; padding-bottom: .25rem;
  border-bottom: 1px solid #eee; font-size: 1.12rem;
}
.card-muted { background: var(--muted); }

/* Listen + News */
.list.compact .news-item {
  display: flex; gap: .6rem; padding: .36rem 0;
  border-bottom: 1px dashed #eaeaea;
}
.list.compact .news-item:last-child { border-bottom: 0; }
.news-item .date { color: var(--text-sub); min-width: 7ch; font-variant-numeric: tabular-nums; }

/* Pill-Row (Kategorien als Wrap-Zeile) */
.pill-row {
  display: flex; flex-wrap: wrap; gap: .45rem .55rem; align-items: center;
}
.pill-row a {
  border: 1px solid var(--border); padding: .35rem .6rem; border-radius: 999px; background: var(--card);
}
.pill-row a:hover { background: var(--muted); }

/* Teaser grid */
.teaser-grid { display: grid; gap: .35rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .teaser-grid { grid-template-columns: repeat(3, 1fr); } }

/* Meta/Hinweis */
.meta, .hint { font-size: 90%; color: var(--text-sub); margin-top: .35rem; }

/* Navigation Einzeiler */
.navline { margin: 0; }

/* Footer */
.ados-footerdate { font-size: 80%; color: #777; margin-top: .6rem; }
.ados-footerinfo {
  border-top: 1px solid var(--border); margin-top: .8rem; padding-top: .5rem;
  font-size: 92%; color: var(--text-sub);
}
.ados-footernote { text-align: center; font-size: 90%; margin-top: .8rem; color: var(--text-sub); }

/* Touch-friendly auf sehr kleinen Displays */
@media (max-width: 480px) {
  .card { padding: 12px; }
  .card h2 { font-size: 1.05rem; }
  .ados-chips { gap: .4rem; }
  .ados-hero p { font-size: .98em; }
}

/* Leichtes Hover-Feedback (nur Desktop) */
@media (pointer: fine) {
  .card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transition: box-shadow .2s; }
}

/* Top-5 Widget (neutral, passt egal wie das JS ausgibt) */
.whisky-top5 { padding: .25rem 0; }
.whisky-top5 .item, .whisky-top5 li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed #eaeaea;
}
.whisky-top5 .item:last-child, .whisky-top5 li:last-child { border-bottom: 0; }

/* Bevorzugt dunkles Farbschema */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212; --card: #1c1c1c; --muted: #181818; --border: #313131;
    --text: #e8e8e8; --text-sub: #b4b4b4; --link: #86c2ff; --link-hover: #c5e1ff;
    --shadow: 0 1px 4px rgba(0,0,0,.6);
  }
  img { filter: brightness(.95) contrast(1.05); }
}

/* Respektiere reduzierte Animationen */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


-------------------------------------------------

/* ===== Hard Fix: Force Light Mode on iOS/Safari ===== */
html { color-scheme: light !important; }  /* sagt Safari: NICHT auto-dunkeln */
@media (prefers-color-scheme: dark) {
  /* falls Safari trotzdem toggelt: alles hell halten */
  html, body { background: #ffffff !important; color: #222 !important; }
  .card, .card-muted,
  .whisky-rating__item,
  .whisky-top5,
  .mw-popup-modal,
  .whisky-summary__table th,
  .whisky-summary__table td {
    background: #ffffff !important;
    color: #222 !important;
    border-color: #e6e6e6 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
  }
  .whisky-summary__table tr:nth-child(even) td { background: #fafafa !important; }
  .list.compact .news-item { border-bottom-color: #eee !important; }
  a { color: #2d6ca2 !important; }
  a:hover { color: #1c4d7d !important; }
  img { filter: none !important; }
}


// .................


/* Overlay & Modal */
.mwnews-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  z-index:10000;
}
.mwnews-modal{
  position:fixed; top:50%; left:50%;
  transform:translate(-50%,-50%);
  background:#fff; color:#111;
  max-width:96%; width:760px;
  padding:22px 26px 26px;
  border-radius:14px;
  z-index:10001;
  text-align:center;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
  max-height:94vh; overflow-y:auto;
}
.mwnews-modal h2{ margin:8px 0 6px; font-size:1.35em; }
.mwnews-intro{ margin:.5em 0 1em; font-size:1.06em; line-height:1.5; }

/* Karten */
.mwnews-cards{
  display:flex; gap:12px; flex-wrap:wrap; justify-content:center;
}
.mwnews-card{
  display:block; width:300px; text-decoration:none; color:inherit;
  background:#f8f9fa; border:1px solid #e3e6e8; border-radius:10px; overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow:0 3px 8px rgba(0,0,0,.12);
}
.mwnews-card:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.18); border-color:#d5dadd; }
.mwnews-thumb img{ display:block; width:100%; height:210px; object-fit:cover; }
.mwnews-meta{ padding:10px 12px; }
.mwnews-title{ font-weight:700; font-size:1.02em; margin-bottom:6px; }
.mwnews-cta{ color:#36c; font-weight:600; }

/* Buttons */
.mwnews-btnrow{ display:flex; justify-content:center; gap:10px; margin-top:12px; }
.mwnews-close{
  padding:10px 16px; border:0; background:#36c; color:#fff;
  border-radius:6px; cursor:pointer; font-size:1em; font-weight:600;
}
.mwnews-close:hover{ background:#258; }

/* Mobil */
@media (max-width:640px){
  .mwnews-modal{ width:calc(100% - 20px); padding:16px; }
  .mwnews-card{ width:100%; }
  .mwnews-thumb img{ height:240px; object-fit:contain; background:#000; }
}


/* -----------------------------------------

/* ========= 1) Grundlegende Linksichtbarkeit ========= */
.mw-parser-output a {
  color: #2d6ca2;                 /* klarer Blauton */
  text-decoration: underline;     /* immer erkennbar */
  text-underline-offset: 2px;
}
.mw-parser-output a:hover,
.mw-parser-output a:focus {
  color: #1c4d7d;
  text-decoration-thickness: 2px; /* stärker bei Hover */
}
.mw-parser-output a:visited { color: #5a3fa8; }  /* erkennbar „bereits besucht“ */

/* Tastaturfokus (barrierefrei) */
.mw-parser-output a:focus-visible {
  outline: 3px solid #99c2ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Tap-Feedback auf Touch-Geräten */
@media (hover:none) and (pointer:coarse) {
  .mw-parser-output a:active {
    background: rgba(45,108,162,.08);
    border-radius: 6px;
  }
}

/* ========= 2) Link-Listen / Navigationslisten ========= */
.list-links { list-style: none; padding-left: 0; margin: .4rem 0; }
.list-links li {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .6rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  margin: .35rem 0;
  transition: transform .06s ease, box-shadow .12s ease, background .12s ease;
}
.list-links li::before { content: "›"; font-weight: 700; color: #888; }
.list-links li:hover { background:#f8fbff; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.list-links li a { text-decoration: none; }          /* Kachel-Optik: kein Unterstrich im Kasten */
.list-links li a:hover { text-decoration: underline; }

/* ========= 3) „Chips“ / Kategorie-Pillen ========= */
.pill-row a, .pill-list a {
  display: inline-block;
  border: 1px solid #e0e0e0;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  transition: background .12s ease, box-shadow .12s ease, transform .06s ease;
}
.pill-row a:hover, .pill-list a:hover { background:#f2f7ff; box-shadow: 0 1px 6px rgba(0,0,0,.06); transform: translateY(-1px); }
.pill-row a:focus-visible, .pill-list a:focus-visible { outline: 3px solid #99c2ff; outline-offset: 2px; }

/* ========= 4) Ganze Karten klickbar machen ========= */
/* Im Wikitext: innerhalb .card den ersten Link mit class="card-link" setzen */
.card { position: relative; }
.card .card-link {
  position: static;               /* normal, falls man sie auch im Text sehen will */
  font-weight: 600;
}
.card.card-clickable { cursor: pointer; }
.card.card-clickable:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
/* Optional: unsichtbarer Overlay-Link, falls du die ganze Karte klickbar willst:
   <a class="card-overlay" href="..."></a> */
.card .card-overlay {
  position:absolute; inset:0; z-index:1;
  text-indent:-9999px;            /* sichtbar lassen? dann weglassen */
  background: transparent;
}

/* ========= 5) Kleinere Hinweise-Icons ========= */
a.external::after { content:" ↗"; font-size:.9em; }
a.category-link::after { content:" ⟶"; }

/* ========= 6) Dark-Mode kompatible Farben (nur wenn du Dark-Mode nutzt) ========= */
@media (prefers-color-scheme: dark) {
  .mw-parser-output a { color:#86c2ff; }
  .mw-parser-output a:hover, .mw-parser-output a:focus { color:#c5e1ff; }
  .list-links li { background:#1c1c1c; border-color:#313131; }
  .list-links li:hover { background:#20242b; }
  .pill-row a, .pill-list a { background:#1c1c1c; border-color:#313131; }
}



.cargoNVD3chart svg {
  min-height: 400px !important;
}
.nvd3 .nv-line path {
  stroke-width: 3px !important;
  stroke: #f0b429 !important;
}
.nvd3 text {
  fill: #111 !important;
}

// ----------------Diagramm flexibel--------------------

.ados-chart-multi { width: 100%; max-width: 100%; }
@media (max-width: 480px) { .ados-chart-multi { min-height: 280px; } }


.chart-total-info {
  text-align: center;
  font-weight: bold;
  font-size: 1.05em;
  color: #444;
  margin-top: 0.4em;
}

.ados-chart-multi { margin-bottom: .75rem; }
.chart-total-info { text-align:center; font-weight:700; font-size:1.05em; color:#444;
  margin-top:.5rem; margin-bottom:.5rem; }






// ------------Style für Diagramm PopUp----------

/* ===== Popup: Overlay & Modal ===== */
.mw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
}
.mw-popup-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 96%;
  width: 720px;
  padding: 22px 26px 26px;
  border-radius: 14px;
  z-index: 10001;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  max-height: 94vh;
  overflow-y: auto;
}

/* Canvas-Bühne */
.mw-fw-canvas-wrap {
  position: relative;
  height: 240px;
  margin: -6px -6px 12px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0b1c38 0%, #061025 60%, #03060d 100%);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.65);
}
.mw-fw-canvas { display:block; width:100%; height:100%; }

/* Text */
.mw-popup-modal h2 {
  margin: 8px 0 6px;
  font-size: 1.38em;
}
.mw-popup-content p {
  margin: 0.55em 0;
  font-size: 1.06em;
  line-height: 1.55;
}

/* Buttons */
.mw-popup-button-row {
  display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.mw-popup-wiki-button {
  padding: 10px 16px;
  background: #f60;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.mw-popup-wiki-button:hover { background: #d85000; }
.mw-popup-close {
  padding: 10px 16px;
  border: none;
  background: #36c;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.mw-popup-close:hover { background: #258; }

/* Mobil */
@media (max-width: 640px) {
  .mw-popup-modal { width: calc(100% - 20px); padding: 16px; }
  .mw-fw-canvas-wrap { height: 220px; margin: -6px -6px 10px; }
}


// ------------

/* Minerva: Abschnitte grundsätzlich offen halten */
.skin-minerva .collapsible-block { display: block !important; }

/* Optional: Toggle-Pfeile ausblenden, wenn alles offen sein soll */
.skin-minerva button.section-toggle { display: none !important; }


// --------------Style Hauptseite

.ados-hero{text-align:center;padding:.6rem .6rem .2rem;}
.ados-hero h1{font-size:1.6rem;margin:.1rem 0 .25rem;}
.ados-grid{display:grid;gap:12px;margin-top:10px;}
@media(min-width:900px){.ados-grid{grid-template-columns:1.2fr .8fr;}}
.col{display:flex;flex-direction:column;gap:12px;}
.card{background:#fff;border:1px solid #e6e6e6;border-radius:12px;padding:12px 14px;}
.list.compact li{padding:.3rem 0;border-bottom:1px dashed #eee;}
.list.compact li:last-child{border-bottom:0;}
.pill-row a{display:inline-block;margin:.25rem;padding:.35rem .7rem;border:1px solid #ddd;border-radius:999px;text-decoration:none;}
.pill-row a:hover{background:#f8f8f8;}
.meta{font-size:90%;color:#666;}



//Scan
.ados-scan { border:1px solid #e6e6e6; border-radius:12px; padding:12px; background:#fff; }
.ados-scan__controls { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:.4rem 0; }
.ados-scan__preview img { max-width: 100%; border-radius: 8px; }
.ados-scan__status { color:#666; font-size:90%; margin:.4rem 0; }
.ados-scan__results { display:grid; grid-template-columns: 1fr; gap:8px; }
@media (min-width:700px){ .ados-scan__results { grid-template-columns: 1fr 1fr; } }
.ados-hit { border:1px solid #eee; border-radius:10px; padding:10px; background:#fafafa; }
.ados-hit b { display:block; margin-bottom:4px; }


/* ===== LabelScan UI ===== */
.ados-scan { border:1px solid #e6e6e6; border-radius:14px; padding:12px; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.ados-scan h2 { margin:.2rem 0 .4rem; }
.ados-scan__uploader { display:flex; justify-content:center; }
.ados-scan__btn {
  display:flex; flex-direction:column; align-items:center; gap:.35rem;
  padding:18px 20px; border:2px dashed #cfcfcf; border-radius:16px; background:#fafafa;
  cursor:pointer; width:100%; max-width:520px; text-align:center;
  transition:background .15s, border-color .15s, transform .05s;
}
.ados-scan__btn:hover { background:#f6f6f6; border-color:#bbb; }
.ados-scan__btn:active { transform:scale(.99); }
.ados-scan__btn svg { width:44px; height:44px; fill:#ff7a00; opacity:.9; }
.ados-scan__btn span { font-weight:700; }
.ados-scan__btn small { color:#666; }
#ados-scan-drop.dragover .ados-scan__btn { border-color:#ff7a00; background:#fff8f1; }

.ados-scan__progress { margin:.6rem 0 .3rem; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ados-scan__status { color:#555; font-size:90%; }
#ados-scan-progress { width:220px; height:10px; accent-color:#ff7a00; }

.ados-scan__preview { margin:.5rem 0; }
.ados-scan__preview img { max-width:100%; border-radius:10px; box-shadow:0 2px 10px rgba(0,0,0,.06); }

.ados-scan__actions { margin:.4rem 0 .6rem; }
.ados-scan__run {
  padding:.55rem .9rem; border:1px solid #ddd; border-radius:999px; background:#fff;
  cursor:pointer; font-weight:600;
}
.ados-scan__run[disabled] { opacity:.6; cursor:not-allowed; }

.ados-scan__results { display:grid; grid-template-columns:1fr; gap:8px; }
@media (min-width:700px){ .ados-scan__results { grid-template-columns:1fr 1fr; } }
.ados-hit { border:1px solid #eee; border-radius:10px; padding:10px; background:#fafafa; }
.ados-hit b { display:block; margin-bottom:4px; }

@media (prefers-color-scheme: dark){
  .ados-scan { background:#1c1c1c; border-color:#313131; }
  .ados-scan__btn { background:#181818; border-color:#343434; }
  .ados-scan__btn:hover { background:#1b1b1b; border-color:#555; }
  .ados-scan__status { color:#bbb; }
  .ados-hit { background:#202020; border-color:#2e2e2e; }
}

/* LabelScan: Button sicher klickbar */
#ados-labelscan { position: relative; }
#ados-scan-run, #ados-scan-bigbtn {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

/* Falls irgendein fremdes Overlay über dem Content liegt:
   Deaktiviere dessen Klick-Fang innerhalb unseres Blocks. */
#ados-labelscan * { pointer-events: auto; }
#ados-labelscan [aria-hidden="true"] { pointer-events: none; }

/* Häufige Störenfriede (nur innerhalb des Content-Bereichs!):
   Falls du exakt weißt, welches Element drüber liegt, ersetze .Klassename gezielt. */
.mw-body-content .sticky-header,
.mw-body-content .vector-sticky-header {
  pointer-events: none;
}


















/* ---------------------------------------------
   LabelScan – Mobile Optimiertes Styling
---------------------------------------------- */
#ados-labelscan {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

#ados-labelscan .ados-scan__drop {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 2px dashed #ccc;
  color: #444;
}

#ados-labelscan button,
#ados-labelscan .mw-ui-button {
  font-size: 1rem !important;
  border-radius: 30px !important;
  padding: 0.7rem 1.4rem !important;
}

#ados-labelscan .ados-scan__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#ados-labelscan h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

#ados-scan-preview img {
  border-radius: 14px;
  margin-top: 0.6rem;
}



/* --- Fix: Dropzone wieder hell machen --- */
#ados-labelscan .ados-scan__drop,
#ados-scan-drop,
.ados-scan__drop {
    background: #ffffff !important;
    color: #444 !important;
    border: 2px dashed #ccc !important;
    box-shadow: none !important;
}

/* Bild-Icon hell */
#ados-labelscan .ados-scan__drop img,
#ados-scan-drop img {
    filter: none !important;
}




/* ADOS Timer-Balken oben */
#ados-timer-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #111827;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 12px;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

#ados-timer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#ados-timer-message {
  font-weight: 600;
}

#ados-timer-countdown {
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  white-space: nowrap;
}

#ados-timer-close {
  margin-left: auto;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  padding: 0 4px;
}
#ados-timer-close:hover {
  color: #f9fafb;
}

/* Inhalt ein Stück nach unten schieben, damit nichts verdeckt wird */
body.has-ados-timer {
  padding-top: 38px;
}




/* ===== ADOS-Hauptseite ===== */

body.page-Hauptseitev2 .ados-mainpage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  margin-top: 0.5em;
}

/* Spalten-Stacks auf Mobile */
@media (max-width: 900px) {
  body.page-Hauptseitev2 .ados-mainpage {
    grid-template-columns: 1fr;
  }
}

body.page-Hauptseitev2 .ados-main-left,
body.page-Hauptseitev2 .ados-main-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Standard-Box / Card */
body.page-Hauptseitev2 .ados-box {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

body.page-Hauptseitev2 .ados-box.small {
  font-size: 0.95em;
}

/* Überschriften in Boxen */
body.page-Hauptseitev2 .ados-box h2,
body.page-Hauptseitev2 .ados-box h3 {
  margin: 0 0 6px;
  font-size: 1.15em;
  border-bottom: 1px solid #ececec;
  padding-bottom: 4px;
}

/* Intro: Text + Logo nebeneinander */
body.page-Hauptseitev2 .ados-box-intro .ados-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  body.page-Hauptseitev2 .ados-box-intro .ados-intro-layout {
    grid-template-columns: 1fr;
  }
}

/* Meta-Zeile unten */
body.page-Hauptseitev2 .ados-meta {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: #777;
}

/* Kleinere Textdetails */
body.page-Hauptseitev2 .ados-box ul {
  margin-top: 4px;
}



/* ==== ADOS Hero-Bereich ==== */

/* Breiter Balken über gesamte Inhaltsbreite, nur auf der Hauptseite */
body.page-Hauptseitev2 .ados-hero {
  /* zieht den Bereich bis an den Rand des Inhalts (ConanWiki-Effekt) */
  margin: -0.5rem -1.5rem 1.2rem;
  padding: 1.4rem 1.5rem 1.1rem;

  /* Whisky-Gold Farbverlauf, leicht transparent */
  background: linear-gradient(
    135deg,
    rgba(217, 164, 65, 0.26),   /* Gold */
    rgba(243, 230, 192, 0.85)   /* helles Fass / Vanille */
  );

  border-bottom: 1px solid rgba(145, 104, 38, 0.45);
  box-shadow: 0 8px 18px rgba(80, 50, 20, 0.18);

  color: #3a2a16;
}

/* Innen-Layout: links Text, rechts Linkspalten wie beim ConanWiki */
body.page-Hauptseitev2 .ados-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

/* Linker Block: Titel + Untertitel */
body.page-Hauptseitev2 .ados-hero__left {
  flex: 1 1 45%;
}

body.page-Hauptseitev2 .ados-hero__title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 .3rem;
  color: #4a2f10;
}

body.page-Hauptseitev2 .ados-hero__subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Rechter Block: 2–3 Spalten mit Links, wie Navigation beim ConanWiki */
body.page-Hauptseitev2 .ados-hero__right {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

body.page-Hauptseitev2 .ados-hero__heading {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #5b3a14;
}

body.page-Hauptseitev2 .ados-hero__right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-Hauptseitev2 .ados-hero__right li {
  margin: 1px 0;
}

body.page-Hauptseitev2 .ados-hero__right a {
  text-decoration: none;
}

/* Linkfarben leicht dunkler Whisky-Ton */
body.page-Hauptseitev2 .ados-hero__right a:link,
body.page-Hauptseitev2 .ados-hero__right a:visited {
  color: #7a4b18;
}

body.page-Hauptseitev2 .ados-hero__right a:hover {
  text-decoration: underline;
}

/* Mobile / kleine Screens – untereinander stapeln */
@media (max-width: 900px) {
  body.page-Hauptseitev2 .ados-hero {
    margin: -0.3rem -0.8rem 0.9rem;
    padding: 1.1rem 0.9rem 0.9rem;
  }

  body.page-Hauptseitev2 .ados-hero__inner {
    flex-direction: column;
  }

  body.page-Hauptseitev2 .ados-hero__title {
    font-size: 1.6rem;
    text-align: center;
  }

  body.page-Hauptseitev2 .ados-hero__subtitle {
    text-align: center;
    margin-bottom: 0.6rem;
  }

  body.page-Hauptseitev2 .ados-hero__right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.page-Hauptseitev2 .ados-hero {
    margin: -0.3rem -0.5rem 0.8rem;
    padding: 1rem 0.7rem 0.8rem;
  }

  body.page-Hauptseitev2 .ados-hero__right {
    grid-template-columns: 1fr;
  }
}