/*!
 * meteo365.es — „Meine Orte" (Web-Fassung der App-Seite)
 * © MAWE MEDIAONLINE, S.L.U.
 *
 * FORMENSPRACHE wie in der App (src/aktuell/Baustein.js, Maren 20.09.2026):
 * keine Kästen, nur feine Linien; Rubrik in kleinen Versalien, darunter EIN Kennwert
 * in leichter großer Schrift, rechts eine kleine Grafik. Orange trägt NUR der Jetzt-Wert.
 * Warnstufen-Farben identisch zu warnings.css / Kartenebene. Am Rechner zwei Spalten.
 */

.mo {
  --mo-halb: var(--muted);
  --mo-leise: color-mix(in srgb, var(--text) 30%, transparent);
  --mo-linie: var(--line);
  max-width: 1120px; margin: 0 auto; padding: 8px 16px 48px;
}
.mo [hidden] { display: none !important; }
.mo-sym { width: 18px; height: 18px; flex: 0 0 auto; }

/* ── Namensleiste ─────────────────────────────────────────────────── */
.mo-leiste {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--mo-linie); margin: 0 -16px 0; padding: 0 16px;
  position: sticky; top: var(--header-height, 86px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mo-leiste::-webkit-scrollbar { display: none; }
.mo-reiter {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  max-width: 15rem; padding: 14px 12px 12px; border: 0; background: none;
  color: var(--mo-halb); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  position: relative; white-space: nowrap;
}
.mo-reiter span { overflow: hidden; text-overflow: ellipsis; }
.mo-reiter:hover { color: var(--text); }
.mo-reiter.is-an { color: var(--text); font-weight: 800; }
.mo-reiter.is-an::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 22px; height: 3px;
  margin-left: -11px; border-radius: 2px; background: var(--accent);
}
.mo-reiter.is-gesperrt { opacity: .55; }
.mo-reiter.is-gesperrt .mo-sym { width: 14px; height: 14px; }
.mo-reiter:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 8px; }

/* ── Bahn: Seiten nebeneinander, wischen ───────────────────────────── */
.mo-bahn {
  display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  transition: height .2s var(--ease);
}
.mo-bahn::-webkit-scrollbar { display: none; }
.mo-seite { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 22px 2px 8px; }
@media (prefers-reduced-motion: reduce) { .mo-bahn { transition: none; scroll-behavior: auto; } }

.mo-laedt { color: var(--mo-halb); font-size: .95rem; text-align: center; padding: 24px 0; }
.mo-link { border: 0; background: none; color: var(--text); text-decoration: underline; font: inherit; cursor: pointer; }

/* ── Zwei Spalten am Rechner ───────────────────────────────────────── */
.mo-zwei { display: grid; gap: 8px; }
.mo-eins { max-width: 640px; margin: 0 auto; }
@media (min-width: 960px) {
  .mo-zwei { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
  .mo-links { position: sticky; top: calc(var(--header-height, 86px) + 70px); }
}

/* ── Ortskopf + Ring (der Moment) ─────────────────────────────────── */
.mo-ortkopf { text-align: center; margin-bottom: 8px; }
.mo-ortname {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 0; background: none; color: var(--text); cursor: pointer;
  font: inherit; font-size: clamp(1.45rem, 3.4vw, 1.9rem); font-weight: 300; letter-spacing: .01em;
}
.mo-ortname .mo-sym { width: 20px; height: 20px; color: var(--mo-halb); }
.mo-ortunter { margin: 2px 0 0; color: var(--mo-halb); font-size: .92rem; letter-spacing: .02em; }
.mo-hier { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--accent); font-size: .85rem; font-weight: 700; }

.mo-ring { position: relative; width: 268px; height: 268px; margin: 14px auto 0; }
.mo-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mo-ring-hof { fill: color-mix(in srgb, var(--bg) 45%, transparent); }
.mo-ring-leer { stroke: var(--mo-leise); }
.mo-ring-mitte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mo-ring-wx { width: 58px; height: 58px; }
.mo-ring-temp { font-size: 4.6rem; font-weight: 200; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mo-ring-lage { margin-top: 6px; font-size: 1.05rem; font-weight: 600; max-width: 170px; }
.mo-ring-ende { position: absolute; bottom: 8px; font-size: 1rem; font-weight: 600; color: var(--mo-halb); font-variant-numeric: tabular-nums; }
.mo-ring-ende.l { left: 46px; } .mo-ring-ende.r { right: 46px; }
.mo-messung { text-align: center; margin: 4px 0 0; color: var(--mo-halb); font-size: .84rem; }

.mo-speichern { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .88rem; color: var(--mo-halb); }
.mo-chip {
  padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--mo-linie);
  background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.mo-chip:hover { background: var(--menu-hover); }

/* ── Warnung: immer oben, Stufenfarbe als Kante + Rahmen ──────────── */
.mo-warn {
  display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
  padding: 12px 12px 12px 18px; margin: 0 0 6px; border-radius: 14px;
  border: 1px solid var(--stufe); background: color-mix(in srgb, var(--stufe) 10%, transparent);
  color: var(--text); text-decoration: none;
}
.mo-warn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--stufe); }
.mo-warn-sym { width: 24px; height: 24px; color: var(--stufe); }
.mo-warn-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mo-warn-text strong { font-size: 1rem; }
.mo-warn-text span { color: var(--mo-halb); font-size: .84rem; font-weight: 600; }

/* ── Baustein ─────────────────────────────────────────────────────── */
.mo-b { border-top: 1px solid var(--mo-linie); padding: 16px 0; }
.mo-zwei .mo-rechts > .mo-b:first-child, .mo-eins > .mo-b:first-of-type { border-top: 0; }
.mo-b-kopf {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; text-decoration: none;
}
button.mo-b-kopf, a.mo-b-kopf { cursor: pointer; }
.mo-b-kopf:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.mo-b-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mo-rubrik { color: var(--mo-halb); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mo-kennwert { font-size: 1.4rem; font-weight: 300; letter-spacing: .01em; line-height: 1.25; }
.mo-unter { color: var(--mo-halb); font-size: .85rem; font-weight: 500; }
.mo-winkel { color: var(--mo-halb); transition: transform .2s var(--ease); }
.mo-b-kopf[aria-expanded="true"] .mo-winkel { transform: rotate(180deg); }
.mo-b-inhalt { padding-top: 14px; display: grid; gap: 12px; }
.mo-mehr { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 700; font-size: .88rem; text-decoration: none; justify-self: start; }
.mo-mehr .mo-sym { width: 14px; height: 14px; }
.mo-notiz { margin: 0; color: var(--mo-halb); font-size: .84rem; }
.mo-zwischen { margin: 4px 0 0; color: var(--mo-halb); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* kleine Grafiken rechts */
.mo-balken { display: flex; align-items: flex-end; gap: 3px; height: 30px; flex: 0 0 auto; }
.mo-balken i { width: 4px; border-radius: 2px; background: var(--mo-leise); }
.mo-balken i.nass { background: var(--text); }
.mo-balken.gross { height: 72px; gap: 2px; border-bottom: 1px solid var(--mo-linie); }
.mo-balken.gross i { flex: 1; width: auto; }
.mo-kompass { width: 38px; height: 38px; flex: 0 0 auto; color: var(--text); }
.mo-kompass-ring { stroke: var(--mo-leise); }
.mo-mond { font-size: 1.9rem; line-height: 1; flex: 0 0 auto; }
.mo-vorschau { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.mo-punkt { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.mo-stufen { display: flex; gap: 6px; flex: 0 0 auto; }
.mo-stufen span { min-width: 28px; padding: 2px 6px; border: 2px solid; border-radius: 8px; text-align: center; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }

/* Achse unter Diagrammen */
.mo-achse { position: relative; height: 18px; margin-top: 5px; }
.mo-achse span { position: absolute; color: var(--mo-halb); font-size: .7rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Wind: Böe leise dahinter, Mittelwind davor */
.mo-wind { display: flex; align-items: flex-end; gap: 2px; height: 72px; border-bottom: 1px solid var(--mo-linie); }
.mo-wind i { flex: 1; height: 100%; position: relative; }
.mo-wind b, .mo-wind u { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2px; }
.mo-wind b { background: var(--mo-leise); }
.mo-wind u { background: var(--text); opacity: .9; }

/* Diagramm | Tabelle */
.mo-dt-wahl { display: inline-flex; gap: 2px; padding: 2px; margin-bottom: 10px; border: 1px solid var(--mo-linie); border-radius: var(--radius-pill); }
.mo-dt-wahl button { border: 0; background: none; color: var(--mo-halb); font: inherit; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); cursor: pointer; }
.mo-dt-wahl button.is-an { background: var(--menu-hover); color: var(--text); }
.mo-dt-t { max-height: 320px; overflow: auto; }
.mo-tab { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.mo-tab th { color: var(--mo-halb); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 4px 6px; position: sticky; top: 0; background: var(--bg); }
.mo-tab td { padding: 5px 6px; border-top: 1px solid var(--mo-linie); }
.mo-tab .r { text-align: right; }

/* Tage */
.mo-tage { list-style: none; margin: 10px 0 0; padding: 0; }
.mo-b-inhalt .mo-tage { margin: -8px 0 0; }
.mo-tage li { display: flex; align-items: center; gap: 10px; height: 40px; }
.mo-tag-n { width: 3.6rem; font-weight: 600; }
.mo-tag-wx { width: 28px; height: 28px; }
.mo-tag-g { width: 2.6rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mo-tag-g.leise { color: var(--mo-halb); }
.mo-spur { flex: 1; height: 5px; border-radius: 3px; background: var(--mo-leise); position: relative; }
.mo-spur i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }

/* Sonne */
.mo-sonnenbogen { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.mo-bogen { stroke: var(--mo-leise); }
.mo-linie { stroke: var(--mo-linie); }
.mo-sonne { fill: var(--text); }
.mo-sonne-hof { fill: color-mix(in srgb, var(--text) 18%, transparent); }
.mo-sonnenzeiten { display: flex; justify-content: space-between; max-width: 340px; margin: 4px auto 0; width: 100%; }
.mo-sonnenzeiten div { display: flex; flex-direction: column; }
.mo-sonnenzeiten .m { align-items: center; } .mo-sonnenzeiten .r { align-items: flex-end; }
.mo-sonnenzeiten small { color: var(--mo-halb); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mo-sonnenzeiten b { font-size: 1.15rem; font-weight: 300; font-variant-numeric: tabular-nums; }

/* Listen in Bausteinen */
.mo-liste { list-style: none; margin: 0; padding: 0; }
.mo-liste li, .mo-liste a { display: flex; justify-content: space-between; gap: 12px; }
.mo-liste li { border-top: 1px solid var(--mo-linie); padding: 8px 0; font-size: .92rem; }
.mo-liste li:first-child { border-top: 0; }
.mo-liste a { flex: 1; color: inherit; text-decoration: none; }
.mo-liste a:hover span { text-decoration: underline; }
.mo-liste b { color: var(--mo-halb); font-weight: 600; white-space: nowrap; text-align: right; }

/* Verlinkungs-Pillen — gleiche Optik wie .lc-morelink auf den Webcam-Seiten (pages/livecams.css) */
.mo-pillen { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 28px 0 0; }
.mo-pille {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--brand-sun-2); color: #fff; font-weight: 700; font-size: 12.5px;
  text-decoration: none; text-shadow: 0 1px 2px rgba(90, 45, 0, .45);
  background: linear-gradient(180deg, #f9c268 0%, var(--brand-sun) 100%);
  transition: filter .15s ease, transform .12s ease;
}
.mo-pille:hover { filter: brightness(1.06); text-decoration: none; }
.mo-pille:active { transform: translateY(1px); }
.mo-pille:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mo-pille svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .mo-pille { transition: none; } }
.mo-fuss { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--mo-linie); padding-top: 14px; margin: 0; }
.mo-fuss a { color: var(--mo-halb); text-decoration: none; font-weight: 600; }
.mo-fuss a:first-child { color: var(--text); }

/* Welt / Standort / + */
.mo-weltkopf { text-align: center; margin-bottom: 14px; }
.mo-weltsym { width: 40px; height: 40px; stroke-width: 1.3; }
.mo-weltkopf h2, .mo-mitte h2 { margin: 4px 0 2px; font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 300; }
.mo-weltkopf p { margin: 0; color: var(--mo-halb); }
.mo-mitte { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 10px; }
.mo-wahl { display: grid; }
.mo-wahl-z {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; border: 0; border-top: 1px solid var(--mo-linie);
  background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; width: 100%;
}
.mo-wahl-z:first-child { border-top: 0; }
.mo-wahl-z > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mo-wahl-z b { font-size: 1.1rem; }
.mo-wahl-z small { color: var(--mo-halb); font-size: .88rem; }
.mo-kreis { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--mo-leise); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mo-kreis .mo-sym { width: 22px; height: 22px; }
.mo-suche { padding: 0 0 12px 64px; }
.mo-suche input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--mo-linie);
  background: var(--menu-input-bg); color: var(--text); font: inherit;
}
.mo-treffer { list-style: none; margin: 6px 0 0; padding: 0; }
.mo-treffer button { display: flex; flex-direction: column; width: 100%; padding: 8px 4px; border: 0; border-top: 1px solid var(--mo-linie); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mo-treffer button:hover { background: var(--menu-hover); }
.mo-treffer small { color: var(--mo-halb); }

.mo-knopf {
  display: inline-block; padding: 10px 18px; border-radius: var(--radius-pill); border: 0;
  background: var(--accent); color: var(--brand-sun-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.mo-knopf:hover { background: var(--accent-hover); }
.mo-gesperrt { max-width: 460px; margin: 28px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mo-gesperrt .mo-sym { width: 34px; height: 34px; color: var(--mo-halb); }
.mo-gesperrt h3 { margin: 0; font-size: 1.3rem; font-weight: 400; }
.mo-gesperrt p { margin: 0 0 8px; color: var(--mo-halb); }

/* ── Blatt „Meine Orte verwalten" ─────────────────────────────────── */
.mo-blatt {
  width: min(460px, calc(100vw - 24px)); max-height: min(80vh, 640px); padding: 0;
  border: 1px solid var(--mo-linie); border-radius: 18px; background: var(--menu-bg); color: var(--text);
  box-shadow: var(--shadow);
}
.mo-blatt::backdrop { background: rgba(4, 25, 38, .55); }
.mo-blatt-kopf { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; }
.mo-blatt-kopf h2 { margin: 0; font-size: 1.2rem; }
.mo-x { border: 0; background: none; color: var(--text); cursor: pointer; padding: 4px; }
.mo-x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.mo-blatt-inhalt { padding: 0 18px 18px; overflow: auto; }
.mo-fest, .mo-orte { list-style: none; margin: 0; padding: 0; }
.mo-fest button, .mo-blatt-neu {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--mo-linie);
  background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.mo-blatt-neu { border-bottom: 0; color: var(--text); }
.mo-blatt .mo-notiz { margin: 12px 0 4px; }
.mo-orte li { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--mo-linie); background: var(--menu-bg); }
.mo-orte li.is-zieht { opacity: .5; }
.mo-orte li.is-gesperrt .mo-orte-name { color: var(--mo-halb); }
.mo-griff { color: var(--mo-halb); cursor: grab; }
.mo-orte-name { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-orte-name .mo-sym { width: 14px; height: 14px; }
.mo-ico { border: 0; background: none; color: var(--mo-halb); padding: 6px; border-radius: 8px; cursor: pointer; }
.mo-ico:hover { color: var(--text); background: var(--menu-hover); }
.mo-ico[disabled] { opacity: .3; cursor: default; }
.mo-ico .mo-sym { width: 17px; height: 17px; }

.mo .ads-slot { margin-top: 24px; }

@media (max-width: 560px) {
  .mo-ring { width: 240px; height: 240px; }
  .mo-ring-temp { font-size: 4rem; }
  .mo-kennwert { font-size: 1.25rem; }
  .mo-suche { padding-left: 0; }
}
