/* Fernia im Browser am Computer (Klasse html.desk aus web-desktop.js, nie in der App).
   Josua 29./30.11.2026: wie Tripadvisor, ganz auf die Top 10 ausgerichtet, "mach eine gute Webseite daraus", Karte viel kleiner
   und nicht immer zu sehen. Aufbau: Kopfzeile über die ganze Breite, Inhalt mittig, rechts daneben eine kleine Karte,
   die man per Knopf groß macht (html.karte-gross). */
html.desk {
  --seite: min(1240px, calc(100vw - 64px)); --rand: calc((100vw - var(--seite)) / 2);
  --kw: 340px; --kh: 250px; --spalt: 40px;
  --kopf: 72px; --reiter: 50px; --oben: calc(var(--kopf) + var(--reiter));
}
html.desk body { background: var(--surface, #fff); }
.karte-knopf, .karte-info { display: none; } /* nur am Computer */

/* ---------- Kleine Karte rechts neben der Liste ---------- */
html.desk #map {
  top: calc(var(--oben) + 30px); left: auto; right: var(--rand); bottom: auto; width: var(--kw); height: var(--kh);
  border-radius: 16px; overflow: hidden; z-index: 1260; box-shadow: 0 0 0 1px var(--line, rgba(13, 31, 30, 0.12));
}
html.desk #map .mapboxgl-ctrl-bottom-left, html.desk #map .mapboxgl-ctrl-bottom-right, html.desk #map .mapboxgl-ctrl-top-right { display: none; }
html.desk .locate-btn, html.desk .web-legal { display: none !important; }
html.desk .karte-knopf {
  position: fixed; z-index: 1270; top: calc(var(--oben) + 30px + var(--kh) - 56px); right: calc(var(--rand) + (var(--kw) - 180px) / 2);
  width: 180px; height: 42px; border: 0; border-radius: 999px; background: #fff; color: var(--ink, #0d1f1e);
  font: 700 14.5px/1 var(--body, system-ui); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
html.desk .karte-knopf:hover { background: #f4f6f6; }
html.desk .karte-info {
  position: fixed; z-index: 1000; top: calc(var(--oben) + 30px + var(--kh) + 18px); right: var(--rand); width: var(--kw); box-sizing: border-box;
  display: block; padding: 18px 20px; border-radius: 16px; background: var(--fill, #f2f4f4); color: #3b4846; font-size: 14px; line-height: 1.5;
}
html.desk .karte-info b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 17px; color: var(--ink, #0d1f1e); }
html.desk .karte-info small { display: block; margin-top: 10px; font-size: 12px; color: #6b7775; }
html.desk .karte-info small a { color: inherit; }
/* Ortsseite, Favoriten, Profil offen: kein Info-Kasten */
html.desk.fenster-offen .karte-info { display: none; }

/* ---------- Große Karte (auf Knopfdruck) ---------- */
html.desk.karte-gross #map { top: var(--oben); left: 0; right: 0; bottom: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; }
html.desk.karte-gross #map .mapboxgl-ctrl-bottom-left, html.desk.karte-gross #map .mapboxgl-ctrl-bottom-right, html.desk.karte-gross #map .mapboxgl-ctrl-top-right { display: block; }
html.desk.karte-gross .locate-btn { display: grid !important; z-index: 1275; }
html.desk.karte-gross .web-legal { display: block !important; z-index: 1275; left: 120px; }
html.desk.karte-gross .karte-knopf { top: calc(var(--oben) + 20px); left: 24px; right: auto; width: auto; padding: 0 20px; }
html.desk.karte-gross .karte-info { display: none; }

html.desk .top-strip, html.desk #strip-head, html.desk .strip-arrow, html.desk #top-fab, html.desk #add,
html.desk #top10, html.desk .topbar #cats, html.desk .topbar #rfilter, html.desk #tab-map, html.desk #sheet-close { display: none !important; }
html.desk .mode-banner { position: fixed; top: calc(var(--oben) + 12px); left: 50%; right: auto; transform: translateX(-50%); width: auto; max-width: 560px; }
html.desk .toast { left: 50%; }

/* ---------- Kopfzeile über die ganze Breite, Inhalt mittig ---------- */
html.desk .topbar {
  top: 0; left: 0; right: 0; width: auto; max-width: none; height: var(--kopf); box-sizing: border-box;
  padding: 0 var(--rand); display: grid; grid-template-columns: auto minmax(0, 560px) 1fr auto; align-items: center; column-gap: 28px;
  background: var(--surface, #fff); pointer-events: auto; z-index: 1300; border-bottom: 0;
}
html.desk .topbar .brand { display: contents; }
html.desk .topbar .brand h1 { grid-column: 1; font-size: 28px; text-shadow: none; }
html.desk .topbar .search { grid-column: 2; grid-row: 1; }
html.desk .topbar .brand-actions { grid-column: 4; grid-row: 1; }
html.desk .topbar #search { height: 46px; border-radius: 999px; border: 1px solid var(--line, rgba(13, 31, 30, 0.14)); box-shadow: none; background: var(--fill, #f2f4f4); font-size: 15px; }
html.desk .topbar #search:focus { background: #fff; box-shadow: 0 0 0 2px var(--brand, #1f7373); }
html.desk .topbar .icon-btn { box-shadow: none; background: transparent; }
html.desk .topbar .icon-btn:hover { background: var(--fill, #f2f4f4); }
html.desk .topbar #results { max-height: 70vh; }

/* ---------- Reiter unter der Kopfzeile ---------- */
html.desk .tabbar {
  display: flex !important; position: fixed; top: var(--kopf); left: 0; right: 0; bottom: auto; width: auto; height: var(--reiter);
  box-sizing: border-box; padding: 0 var(--rand); gap: 32px; align-items: stretch; justify-content: flex-start;
  background: var(--surface, #fff); border: 0; border-bottom: 1px solid var(--line, rgba(13, 31, 30, 0.12)); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 1290;
}
html.desk .tabbar button {
  flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 2px; min-width: 0; height: 100%;
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #55625f; font-size: 15px; font-weight: 700; cursor: pointer;
}
html.desk .tabbar button svg { width: 19px; height: 19px; }
html.desk .tabbar button:hover { color: var(--ink, #0d1f1e); }
html.desk .tabbar button:active { transform: none; }
html.desk .tabbar button[aria-current="page"] { color: var(--ink, #0d1f1e); border-bottom-color: var(--ink, #0d1f1e); }
html.desk .tabbar button::before { display: none; }
html.desk .tabbar .tab-add i { width: auto; height: auto; background: none !important; box-shadow: none !important; color: inherit; display: inline-flex; }
html.desk .tabbar .tab-add i svg { width: 19px; height: 19px; }
html.desk .tabbar .tab-add span { color: inherit !important; font-weight: 700 !important; }
html.desk .tabbar .tab-dot { position: static; }

/* ---------- Seiteninhalt (Top 10, Ort, Favoriten, Profil): ganze Breite, Text mittig links neben der Karte ---------- */
html.desk .sheet {
  position: fixed; top: var(--oben); left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: none !important; height: auto !important;
  margin: 0; border-radius: 0; box-shadow: none; border: 0;
  padding: 30px calc(var(--rand) + var(--kw) + var(--spalt)) 0 var(--rand); overflow-y: auto; background: var(--surface, #fff); transform: none !important;
}
html.desk #sheet { z-index: 1000; }
html.desk .sheet.detail { z-index: 1250; }
html.desk .sheet.auth { z-index: 1400; padding-right: var(--rand); }

/* Überschrift groß wie bei Tripadvisor */
html.desk #sheet .sheet-head { align-items: flex-end; margin-bottom: 6px; }
html.desk #sheet .sheet-head h2 { font-size: clamp(34px, 3vw, 46px); line-height: 1.02; letter-spacing: -0.03em; }
html.desk #sheet .sheet-head p { font-size: 15px; margin-top: 6px; }
html.desk #sheet .filter-zeile { margin: 14px 0 6px; }
html.desk #sheet #sheet-cats { flex-wrap: wrap; overflow: visible; gap: 8px; }
html.desk #sheet #sheet-cats .chip { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
html.desk #sheet .list-cap { display: none; }

/* ---------- Top 10 als Zeilen wie bei Tripadvisor (Josua 30.11.2026: "mehr wie Tripadvisor, aber konzentrier dich auf die Top 10") ----------
   Je Ort eine Zeile: Foto links, rechts "1. Name", Text, Stimmen ganz rechts. Plätze 1 bis 10 groß, ab 11 kleiner unter "Weitere Plätze". */
html.desk #sheet #list { display: flex; flex-direction: column; gap: 16px; margin: 18px 0 28px; padding: 0; }
html.desk #sheet #list > li.item {
  position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: stretch; margin: 0; padding: 0 !important;
  min-height: 0; height: auto; background: #fff; border: 1px solid var(--line, rgba(13, 31, 30, 0.12)); border-radius: 14px; overflow: visible;
  box-shadow: none; cursor: pointer; transition: box-shadow 0.15s; transform: none; opacity: 1; animation: none;
}
html.desk #sheet #list > li.item:hover { box-shadow: 0 6px 22px rgba(13, 31, 30, 0.13); }
html.desk #sheet #list > li.item::before, html.desk #sheet #list > li.item::after { display: none; }
html.desk #sheet #list > li.item > .stufe-platz, html.desk #sheet #list > li.item > .held-zahl, html.desk #sheet #list > li.item .pic-rank { display: none !important; }

/* Foto links */
html.desk #sheet #list > li.item > .item-pic {
  grid-column: 1; grid-row: 1; position: relative; inset: auto; display: block; width: 100%; height: 100%; min-height: 188px; margin: 0;
  border-radius: 13px 0 0 13px; overflow: hidden; background: var(--fill, #eef1f1); -webkit-mask-image: none; mask-image: none; border: 0; padding: 0;
}
html.desk #sheet #list > li.item > .item-pic img, html.desk #sheet #list > li.item > .item-pic .item-ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 1; -webkit-mask-image: none; mask-image: none;
}
html.desk #sheet #list > li.item > .item-pic::after { display: none; }
html.desk #sheet #list > li.item > .item-pic .item-ph svg { width: 34px; height: 34px; }

/* Text rechts: Platz + Name, Beschreibung, Stimmen rechts */
html.desk #sheet #list > li.item > .head {
  grid-column: 2; grid-row: 1; position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
  column-gap: 18px; padding: 18px 20px 18px 22px; margin: 0; background: none !important; min-height: 0;
}
html.desk #sheet #list > li.item > .head > .rank { display: none; }
html.desk #sheet #list > li.item .mid { grid-column: 1; grid-row: 1 / -1; min-width: 0; padding: 0; }
html.desk #sheet #list > li.item .name {
  display: block; font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.22; letter-spacing: -0.015em;
  color: var(--ink, #0d1f1e) !important; white-space: normal; text-align: left; padding: 0; text-shadow: none; background: none; border: 0;
}
html.desk #sheet #list > li.item .name::before { content: attr(data-platz) ". "; }
html.desk #sheet #list > li.item:hover .name { text-decoration: underline; text-underline-offset: 3px; }
html.desk #sheet #list > li.item .platz-zeile { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: #2f3b39; }
html.desk #sheet #list > li.item .platz-zeile .punkte { display: inline-flex; gap: 3px; }
html.desk #sheet #list > li.item .platz-zeile .punkte i { width: 13px; height: 13px; border-radius: 50%; background: var(--brand, #1f7373); }
html.desk #sheet #list > li.item .platz-zeile .punkte i.leer { background: none; box-shadow: inset 0 0 0 2px var(--brand, #1f7373); }
html.desk #sheet #list > li.item .note {
  margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: #4d5a57 !important; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: none;
}
html.desk #sheet #list > li.item .stufe-marken { margin-top: 8px; flex-wrap: wrap; }
html.desk #sheet #list > li.item .item-row { display: none; }
html.desk #sheet #list > li.item > .head > .vote { grid-column: 2; grid-row: 1 / -1; align-self: center; position: static; flex: none; margin: 0; transform: none; }

/* Platz 1: etwas größer, mit Krone */
html.desk #sheet #list > li.item.stufe-held { grid-template-columns: 330px minmax(0, 1fr); }
html.desk #sheet #list > li.item.stufe-held > .item-pic { min-height: 240px; }
html.desk #sheet #list > li.item.stufe-held .name { font-size: 27px; }
html.desk #sheet #list > li.item.stufe-held .note { font-size: 15.5px; }
html.desk #sheet #list > li.item .platz-zeile .krone { color: #d99a00; display: inline-flex; }

/* Ab Platz 11: kleinere Zeilen unter "Weitere Plätze" */
html.desk #sheet #list > li.item.nach-top10 { grid-template-columns: 130px minmax(0, 1fr); border-radius: 12px; }
html.desk #sheet #list > li.item.nach-top10 > .item-pic { min-height: 98px; border-radius: 11px 0 0 11px; }
html.desk #sheet #list > li.item.nach-top10 > .head { padding: 12px 16px; }
html.desk #sheet #list > li.item.nach-top10 .name { font-size: 16.5px; }
html.desk #sheet #list > li.item.nach-top10 .note { -webkit-line-clamp: 1; font-size: 13.5px; margin-top: 4px; }
html.desk #sheet #list > li.item.nach-top10 .platz-zeile { display: none; }
html.desk #sheet #list > li.weitere-kopf { list-style: none; margin: 22px 0 0; padding: 0; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink, #0d1f1e); }

/* Ende der Liste und Knöpfe */
html.desk #sheet #list > li.more, html.desk #sheet #list > li.empty { grid-column: auto; }
html.desk #sheet .fehlt-leiste { position: static; margin: 10px 0 40px; padding: 0; background: none; border: 0; }

/* Überschrift wie bei Tripadvisor als ein Satz: "Top 10 in Deutschland" */
html.desk #sheet #sheet-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.28em; }
html.desk #sheet #sheet-title .wo-ober {
  display: inline; position: static; margin: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: none;
  color: var(--ink, #0d1f1e); background: none; border: 0;
}
html.desk #sheet #sheet-title .wo-ober::before { display: none; }
html.desk #sheet #sheet-title .wo-ober::after { content: attr(data-kat) " in"; position: static; display: inline; background: none; width: auto; height: auto; }
html.desk #sheet #sheet-title .wo-knopf { font: inherit; letter-spacing: inherit; }
html.desk #sheet #sheet-sub:empty::before { content: "Von der Community gewählt, jeden Tag neu."; color: #55625f; }

/* ===== 30.11.2026 abends (Josua: "Kategorien sollen oben sein, schau dir bei Tripadvisor viel ab", "2 mal Anmelden unnötig") =====
   Kopf wie Tripadvisor: Zeile 1 Logo, Suche, Menü mit Beschriftung. Zeile 2 Kategorien als Pillen mit Farbpunkt.
   Die Reiterleiste fällt weg (Top 10 = Startseite, Geheimtipps steckt in den Kategorien, Favoriten und Anmelden stehen oben). */
html.desk { --reiter: 62px; }
html.desk .tabbar { display: none !important; }
html.desk .topbar {
  height: var(--oben); grid-template-rows: var(--kopf) var(--reiter); align-items: center;
  border-bottom: 1px solid var(--line, rgba(13, 31, 30, 0.12)); background: #fff;
}
html.desk .topbar .brand h1 { grid-row: 1; }
html.desk .topbar [hidden] { display: none !important; }

/* Menü rechts: Symbol + Wort, wie "Reisen" / "Anmelden" bei Tripadvisor */
html.desk .topbar .brand-actions { display: flex; align-items: center; gap: 4px; }
html.desk .topbar .brand-actions .icon-btn {
  width: auto; height: 42px; padding: 0 14px; gap: 8px; border-radius: 999px; display: inline-flex; align-items: center;
  color: var(--ink, #0d1f1e); font: 700 14.5px/1 var(--body, system-ui);
}
html.desk .topbar .brand-actions .icon-btn svg { width: 19px; height: 19px; flex: none; }
html.desk .topbar .brand-actions .icon-btn::after { content: attr(title); }
html.desk .topbar .brand-actions .icon-btn.bell::after { content: none; }
html.desk .topbar .account-btn {
  height: 42px; padding: 0 20px; margin-left: 8px; border-radius: 999px; border: 0; background: var(--ink, #0d1f1e); color: #fff;
  font: 700 14.5px/1 var(--body, system-ui); box-shadow: none; cursor: pointer;
}
html.desk .topbar .account-btn:hover { background: #24403e; }

/* Kategorien als zweite Kopfzeile */
html.desk .topbar #cats {
  display: flex !important; grid-column: 1 / -1; grid-row: 2; align-self: start; flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: 0; padding: 2px 0 14px; position: static; background: none; box-shadow: none; mask-image: none; -webkit-mask-image: none;
}
html.desk .topbar #cats::-webkit-scrollbar { display: none; }
html.desk .topbar #cats > .chip {
  flex: none; height: 44px; min-height: 44px; padding: 0 18px; gap: 9px; display: inline-flex; align-items: center; border-radius: 999px;
  background: #fff; color: var(--ink, #0d1f1e); border: 1px solid rgba(13, 31, 30, 0.22); box-shadow: none;
  font: 700 15px/1 var(--body, system-ui); cursor: pointer; transition: background 0.12s, border-color 0.12s;
}
html.desk .topbar #cats > .chip:hover { border-color: var(--ink, #0d1f1e); background: #f6f7f7; }
html.desk .topbar #cats > .chip[aria-pressed="true"] { background: var(--ink, #0d1f1e); border-color: var(--ink, #0d1f1e); color: #fff; }
html.desk .topbar #cats > .chip .dot { width: 11px; height: 11px; margin: 0; flex: none; }
html.desk .topbar #cats > .chip .chip-ico svg { width: 17px; height: 17px; }
html.desk .topbar #cats #rfilter:not([hidden]) { display: flex; gap: 8px; flex: none; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line, rgba(13, 31, 30, 0.14)); }
html.desk .topbar #cats #rfilter .chip { height: 44px; min-height: 44px; }

/* Doppelte Kategorie-Zeile in der Liste weg */
html.desk #sheet .filter-zeile, html.desk #sheet #sheet-cats { display: none !important; }

/* Ruhige, weiße Seite: kein Weihnachts-Streifen quer über der Überschrift */
html.desk .sheet, html.weihnacht.desk body:not(.secret-mode) .sheet .sheet-head { background: #fff !important; }
html.desk #sheet .sheet-head { padding: 0; margin-bottom: 18px; }
html.weihnacht.desk body:not(.secret-mode) .wo-ober::before { content: none; }
html.desk #sheet #sheet-title .wo-ober { color: var(--ink, #0d1f1e) !important; }

/* Stimmen-Kasten bei Platz 1 genauso wie bei den anderen Plätzen */
html.desk #sheet #list > li.item.stufe-held > .head > .vote { background: none; box-shadow: none; border: 0; padding: 0; }
html.desk .topbar #cats > .chip.chip-secret[aria-pressed="true"] { background: linear-gradient(135deg, #f3d27a, var(--secret-gold, #d9a520)); border-color: transparent; color: #2a1d03; }
html.desk .topbar #cats > .chip .chip-x { display: none; }
html.desk .topbar #cats > .chip::after { content: none !important; }
html.desk #sheet #sheet-lists { display: none !important; } /* Top 10 / Geheimtipps schaltet oben die Kategorie-Zeile */
/* "Entdecken" (Startfenster der App) doppelt sich mit den Kategorien oben */
html.desk .topbar #intro-btn { display: none !important; }
/* Profil und Anmelden mittig als schmale Seite (die Karte ist dort verdeckt) */
html.desk .sheet.auth, html.desk #account { padding-left: max(var(--rand), calc((100vw - 720px) / 2)); padding-right: max(var(--rand), calc((100vw - 720px) / 2)); }
html.desk #sheet #list > li.item .v-score { display: none; } /* bei allen Plätzen gleich */
