/* localtel.ch – Die Rangliste der Schweiz */
:root { --ink: #0f0f10; --muted: #6b6b70; --line: #ececee; --bg: #ffffff; --soft: #f6f6f7; --red: #e11d2e; --red2: #b3121f; --gold: #f5b301; --green: #16a34a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--red); }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.08; }
.muted { color: var(--muted); } .tiny { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.center { text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); max-width: 1180px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--red); font-weight: 800; }
.logo .cross { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--red); color: #fff; font-weight: 900; font-size: 22px; line-height: 1; }
.nav nav { display: flex; align-items: center; gap: 16px; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 15px/1 'Inter', sans-serif; color: #fff; background: var(--red); padding: 14px 20px; border-radius: 12px; text-decoration: none; white-space: nowrap; transition: transform .12s, background .12s; box-shadow: 0 6px 16px -8px rgba(225, 29, 46, .7); }
.btn:hover { background: var(--red2); transform: translateY(-1px); }
.btn.big { font-size: 17px; padding: 17px 26px; }
.btn.small { font-size: 13px; padding: 9px 14px; border-radius: 10px; }
.btn.full { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.light { background: #fff; color: var(--red); box-shadow: none; }
.btn.wa { background: #25d366; box-shadow: 0 6px 16px -8px rgba(37, 211, 102, .8); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* home */
.hero { max-width: 900px; margin: 0 auto; padding: clamp(30px, 7vw, 80px) 18px 30px; text-align: center; }
.pill { display: inline-block; margin: 0 0 18px; padding: 7px 14px; border-radius: 99px; background: #fff1f2; color: var(--red2); font-weight: 700; font-size: 13px; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); margin: 0 0 18px; font-weight: 900; letter-spacing: -.05em; }
.hl { color: var(--red); position: relative; white-space: nowrap; }
.hl::after { content: '👑'; position: absolute; font-size: .42em; top: -.55em; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.hero .sub { font-size: clamp(16px, 2vw, 20px); color: #4b4b50; margin: 0 auto 28px; max-width: 36em; }
.search { display: flex; gap: 8px; max-width: 680px; margin: 0 auto; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1.5px var(--line), 0 20px 40px -24px rgba(0, 0, 0, .25); }
.search select, .search input { flex: 1; min-width: 0; font: 500 16px 'Inter', sans-serif; border: 0; background: var(--soft); border-radius: 12px; padding: 13px 14px; color: var(--ink); }
.search select:focus, .search input:focus { outline: 2px solid var(--red); }
.stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 60px); margin-top: 34px; }
.stats b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.stats span { color: var(--muted); font-size: 14px; font-weight: 600; }
section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 0 0 22px; }
.cats, .newbies { max-width: 1180px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: var(--soft); color: var(--ink); text-decoration: none; transition: transform .15s, background .15s; }
.cat:hover { transform: translateY(-3px); background: #fff1f2; }
.cat .ic { font-size: 30px; }
.cat b { font-size: 17px; }
.cat .lead { font-size: 13px; color: #4b4b50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat .lead.free { color: var(--red); font-weight: 600; }
.cat em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border-radius: 99px; padding: 3px 9px; }
.new-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.new-card { flex: none; width: 160px; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.new-card img { width: 100%; height: 90px; object-fit: contain; border-radius: 10px; background: var(--soft); margin-bottom: 6px; }
.new-card b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-card span { font-size: 12px; color: var(--muted); }
.how { max-width: 1180px; margin: 20px auto 0; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.how-col { padding: 28px; border-radius: 24px; background: var(--soft); }
.how-col h3 { font-size: 22px; margin: 0 0 12px; }
.how-col ol, .how-col ul { margin: 0 0 6px; padding-left: 20px; }
.how-col li { margin: 6px 0; font-weight: 500; }
.biz-col { background: var(--red); color: #fff; }
.biz-col ul { list-style: none; padding: 0; margin-bottom: 20px; }
.biz-col li::before { content: '✓  '; font-weight: 800; }

/* footer */
.foot { max-width: 1180px; margin: 50px auto 0; padding: 24px clamp(16px, 4vw, 40px) 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .fair { background: var(--soft); border-radius: 14px; padding: 14px 16px; color: #3f3f45; margin: 0 0 18px; font-size: 14px; }
.foot div { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }

/* ranking */
.rank-page, .biz { max-width: 900px; margin: 0 auto; padding: 6px clamp(16px, 4vw, 30px) 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.rank-page h1 { font-size: clamp(30px, 5.5vw, 50px); font-weight: 900; margin: 0 0 6px; }
.rank-page .em { font-size: .85em; }
.rank-page .sub { color: var(--muted); margin: 0 0 20px; font-weight: 500; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select, .filters input { font: 500 15px 'Inter', sans-serif; padding: 11px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); flex: 1 1 160px; min-width: 0; }
.city-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.city-chips a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--soft); padding: 6px 11px; border-radius: 99px; }
.city-chips a.on { background: var(--ink); color: #fff; }
.city-chips em { font-style: normal; color: var(--muted); font-weight: 500; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; }
.board li.p1 { border-color: var(--gold); background: linear-gradient(90deg, #fff8e1, #fff 60%); box-shadow: 0 10px 24px -16px rgba(245, 179, 1, .9); }
.board li.p2 { border-color: #cfd3da; background: linear-gradient(90deg, #f3f4f6, #fff 60%); }
.board li.p3 { border-color: #e7b98f; background: linear-gradient(90deg, #fdf0e6, #fff 60%); }
.pos { font-size: 22px; font-weight: 900; text-align: center; color: var(--muted); }
.board li.p1 .pos, .board li.p2 .pos, .board li.p3 .pos { font-size: 30px; }
.who { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.who img { width: 50px; height: 50px; object-fit: contain; border-radius: 12px; background: var(--soft); flex: none; }
.who div { min-width: 0; }
.who b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 13px; color: var(--muted); }
.vt { text-align: right; }
.vt b { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.vt small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cta-line { text-align: center; margin: 22px 0; font-weight: 600; }
.empty { text-align: center; padding: 50px 20px; background: var(--soft); border-radius: 24px; }
.empty h2 { margin: 0 0 6px; font-size: 28px; }
.big-emoji { font-size: 58px; margin: 0; }

/* business page */
.biz-head { border-radius: 26px; overflow: hidden; background: var(--soft); }
.cover { height: clamp(150px, 30vw, 260px); background: #ddd center/cover; }
.biz-id { display: flex; gap: 18px; align-items: center; padding: 22px; }
.logo-box { flex: none; width: 96px; height: 96px; border-radius: 22px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); }
.cover + .biz-id .logo-box { margin-top: -60px; }
.logo-box img { width: 86%; height: 86%; object-fit: contain; }
.biz-id h1 { margin: 2px 0 4px; font-size: clamp(26px, 5vw, 40px); font-weight: 900; overflow-wrap: anywhere; }
.biz-id .muted { margin: 0; }
.kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.rk { padding: 14px 10px; border-radius: 18px; border: 1.5px solid var(--line); text-align: center; color: var(--ink); text-decoration: none; }
.rk b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.rk span { font-size: 12px; color: var(--muted); font-weight: 600; }
.rk.top { border-color: var(--gold); background: #fff8e1; }
.rk.votes { background: var(--ink); color: #fff; border-color: var(--ink); }
.rk.votes span { color: #bdbdc2; }
.biz-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
.vote-card { padding: 24px; border-radius: 24px; background: #fff1f2; }
.vote-card h2 { font-size: 24px; margin: 0 0 6px; overflow-wrap: anywhere; }
.vote-card .muted { font-size: 14px; margin: 0 0 14px; }
.vote-card form { display: grid; gap: 10px; }
.vote-card input[type=email] { font: 500 17px 'Inter', sans-serif; padding: 15px 16px; border-radius: 13px; border: 1.5px solid #f6c9cd; background: #fff; }
.vote-card input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 29, 46, .12); }
.vote-ok { background: #fff; border-radius: 16px; padding: 16px; }
.vote-ok p { margin: 6px 0 0; font-size: 14px; }
.err { color: var(--red2); font-weight: 600; margin: 0; font-size: 14px; }
.info-card { padding: 20px; border-radius: 24px; border: 1.5px solid var(--line); }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.lk { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 13px; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.lk:hover { background: #fff1f2; }
.about { margin: 16px 0 0; color: #3f3f45; overflow-wrap: anywhere; }
.owner { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; }
.owner p { margin: 4px 0 10px; color: var(--muted); }
.linkbox { display: flex; gap: 8px; margin: 10px 0; }
.linkbox input { flex: 1; min-width: 0; font: 500 14px 'Inter', sans-serif; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }

/* signup */
.signup { max-width: 720px; margin: 0 auto; padding: 10px 18px 20px; }
.su-intro h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 900; margin: 6px 0 10px; }
.su-intro .sub { font-size: 18px; color: #4b4b50; margin: 0 0 24px; }
.note { background: #fff8e1; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.su-form { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f > span { font-weight: 700; font-size: 14px; }
.f input, .f select, .f textarea { width: 100%; font: 400 16px 'Inter', sans-serif; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 29, 46, .1); }
.f small { color: var(--muted); font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px dashed #cfcfd4; border-radius: 12px; cursor: pointer; background: #fff; min-height: 70px; }
.drop.has { border-style: solid; border-color: var(--green); }
.drop .th { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--soft) center/contain no-repeat; }
.drop em { font-style: normal; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.pay-icons { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }

/* confirm / thank you */
.narrow { max-width: 620px; margin: 0 auto; padding: 30px 18px; }
.confirm h1 { font-size: clamp(26px, 5vw, 36px); margin: 10px 0 14px; }
.mini-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; margin: 20px 0; }
.mini-card img { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: var(--soft); }
.mini-card div { flex: 1; min-width: 0; }
.mini-card b { display: block; }
.mini-card span { font-size: 13px; color: var(--muted); }
.mini-card .mc-r { flex: none; text-align: right; }
.mini-card .mc-r b { font-size: 24px; }
.row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.tips { text-align: left; background: var(--soft); border-radius: 18px; padding: 16px 18px; margin: 20px 0; }
.tips ul { margin: 8px 0 0; padding-left: 20px; }
.spinner { width: 44px; height: 44px; margin: 30px auto 10px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal h1 { font-size: 34px; } .legal h2 { font-size: 20px; margin: 28px 0 8px; } .legal p, .legal li { color: #3f3f45; }

/* tablets & phones */
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .how, .biz-grid { grid-template-columns: 1fr; }
  .ranks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav nav a:not(.btn) { display: none; }
  .search { flex-direction: column; }
  .stats b { font-size: 24px; }
  .board li { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px; }
  .board .vote-btn { grid-column: 1 / -1; width: 100%; }
  .who img { width: 42px; height: 42px; }
  .two { grid-template-columns: 1fr; }
  .biz-id { flex-direction: column; text-align: center; }
  .cover + .biz-id .logo-box { margin-top: -64px; }
  .linkbox { flex-direction: column; }
}
