/* Home "/" (city chooser) and "/suche" — design ticket 001 §1, Plakatwand: the wall, a poster headline next to a map of
   Germany, then one paper notice per city with its next markets (colour dot = category, as on the city page).
   Display sizes are 30 % below the city page (owner, 2026-11-16: "chữ nhỏ lại 30% thử xem"); body text stays 17 px. */
.home{padding:32px var(--pad) 0}
.hhead{display:grid; grid-template-columns:minmax(0,1fr) 500px; gap:40px; align-items:start}
.htitle{margin:0; font:680 78px/1 var(--f); font-variation-settings:"wdth" 62; text-transform:uppercase; letter-spacing:-.005em}
.home .lead{max-width:640px; margin:16px 0 0; font-size:18px; line-height:1.5; color:var(--ink-2)}
.hsearch{display:flex; flex-wrap:wrap; gap:12px; max-width:760px; margin-top:24px}
.hsearch label{flex:1 1 300px; display:flex; align-items:center; gap:10px; height:52px; padding:0 18px; border-radius:var(--r-pill); background:var(--paper); min-width:0}
.hsearch label:focus-within{box-shadow:0 0 0 3px var(--c-fest)}
.hsearch input{flex:1; min-width:0; border:0; outline:0; background:transparent; font:500 18px var(--f); color:var(--ink)}
.home .hnote{min-height:1.5em; max-width:760px; margin:14px 0 0; font-weight:600; color:var(--ink-2)}

/* What the colour dots in the notices mean (same colours as the city page and the posters). */
.legend{list-style:none; display:flex; flex-wrap:wrap; gap:10px; max-width:760px; margin:22px 0 0; padding:0}
.legend li{display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px; border-radius:var(--r-pill); background:var(--paper); font-size:15px; font-weight:500}
.legend i{width:10px; height:10px; border-radius:50%; background:var(--c)}

/* Map of Germany (same card as the city page's map). */
/* Taller than wide, like Germany itself, so the country fills the card. */
.hmap{height:500px; border-radius:var(--r-poster); overflow:hidden; background:var(--line-2); position:relative; box-shadow:var(--shadow-poster)}
.hmap .map{position:absolute; inset:0}
.hmap .lbl{position:absolute; z-index:3; left:12px; top:12px; background:var(--ink); color:var(--paper); font:600 14px/1 var(--f); padding:7px 10px; border-radius:3px; letter-spacing:.04em; text-transform:uppercase}
/* One dot per city (bigger = more markets); name and count in a tooltip — numbers would overlap where cities are close. */
.cpin{display:block; width:var(--s, 14px); height:var(--s, 14px); padding:0; border:2px solid var(--paper); border-radius:50%;
  background:var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.35); cursor:pointer}
.cpin:hover, .cpin:focus-visible{background:var(--c-fest); z-index:5}

.hsub{margin:36px 0 14px; font:650 18px/1.1 var(--f); font-variation-settings:"wdth" 75; text-transform:uppercase; letter-spacing:.02em}
.cities{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px}
.city{display:flex; flex-direction:column; padding:18px 20px 16px; border-radius:var(--r-poster); background:var(--paper); box-shadow:var(--shadow-poster); scroll-margin-top:24px}
.city:target{box-shadow:var(--shadow-poster), inset 0 0 0 2px var(--ink)}
.city .name{align-self:flex-start; font:680 28px/1.05 var(--f); font-variation-settings:"wdth" 62; text-transform:uppercase; overflow-wrap:anywhere}
.city .name:hover{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px}
.city .meta{display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:6px; font-size:14px; color:var(--ink-2)}
.city .live{font-weight:600; color:var(--ok)}
.city .live::before{content:""; display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:var(--ok); vertical-align:1px}
.next{list-style:none; margin:14px 0 0; padding:12px 0 0; border-top:1px solid var(--line-2); display:grid; gap:10px}
.next a{display:grid; grid-template-columns:10px minmax(0,1fr); column-gap:10px; align-items:baseline}
.next i{width:10px; height:10px; border-radius:50%; background:var(--c); transform:translateY(1px)}
.next .when{font-size:13px; font-weight:600; color:var(--ink-2)}
.next .what{grid-column:2; font-size:16px; font-weight:500; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.next a:hover .what{text-decoration:underline; text-underline-offset:3px}
.city .all{margin-top:auto; padding-top:14px; font-size:14px; font-weight:600; color:var(--ink)}
.city .all:hover{text-decoration:underline; text-underline-offset:3px}

@media (min-width:1101px) and (max-width:1500px){ .hhead{grid-template-columns:minmax(0,1fr) 420px} .hmap{height:440px} .cities{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:1100px){
  .home{padding-top:20px}
  .hhead{grid-template-columns:minmax(0,1fr); gap:18px}
  .htitle{font-size:43px; line-height:1.02}
  .home .lead{font-size:17px}
  .hmap{height:340px}
  .legend{display:none}
  .hsub{margin-top:28px}
  .cities{grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px}
  .city{padding:16px 16px 14px}
  .city .name{font-size:21px}
}
@media (max-width:560px){
  .hsearch .btn{flex:1 1 0}
  .cities{grid-template-columns:minmax(0,1fr)}
}
/* The chooser has its own big search row: no second box in the header on these pages. */
@media (min-width:1101px){ .top .search{visibility:hidden} }
