/* Home page. Measurements: reference/NOTES.md and pages/desktop/01-home-*.png */

body.is-home {
  background: linear-gradient(180deg, #0030b6 70px, #fff 715px) top / 100% 720px no-repeat, #fff;
}
.home { padding-top: 0; }

/* ---------- teaser carousel ---------- */
.teaser { position: relative; height: 598px; }
.t-row { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.t-row::-webkit-scrollbar { display: none; }
.t-row > * { scroll-snap-align: start; flex: none; }
.t-top { margin-left: 476px; height: 400px; }
.t-bottom { margin-left: 476px; margin-top: 15px; height: 186px; padding: 1px 1px 3px; }

.t-big {
  position: absolute; left: 0; top: 0; width: 460px; height: 598px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 70% at 55% 78%, #2c58d8 0, #0b34a8 35%, #00217d 70%);
  color: #fff; padding: 18px 16px; text-decoration: none !important;
}
.t-big h2 { font-size: 34px; font-weight: 700; line-height: 1.15; }
.t-big p { font-size: 24px; margin-top: 4px; }
.t-big p sup { font-size: .6em; }
.t-badge {
  position: absolute; left: 27px; top: 167px; width: 200px; height: 124px; border-radius: 6px;
  background: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.t-badge span { font-size: 26px; font-weight: 400; }
.t-badge b { font-size: 60px; font-weight: 800; letter-spacing: -1px; margin-top: 6px; }
.t-scene { position: absolute; right: 4px; bottom: 6px; width: 318px; }
.t-scene svg { width: 100%; height: auto; display: block; }

.t-panel { width: 308px; height: 400px; border-radius: 26px; padding: 16px; color: #fff; text-decoration: none !important; display: block; position: relative; overflow: hidden; }
.t-panel h2 { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.t-panel > p { font-size: 17px; opacity: .9; margin-top: -10px; }
.p-orange { background: linear-gradient(180deg, #f66e03 0, #ef4e17 55%, #c82d2d 100%); }
.p-navy { background: var(--blue); }
.p-sky { background: linear-gradient(180deg, #2f6fd6 0, #8fb7f2 60%, #e8f0fc 100%); }
.p-green { background: linear-gradient(180deg, #0a6e52 0, #2b9b78 60%, #d7f0e6 100%); }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-card { background: #fff; border-radius: 10px; height: 147px; padding: 8px; display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; }
.p-card:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.p-title { font-size: 12.5px; line-height: 1.25; height: 31px; overflow: hidden; flex: none; }
.p-img { flex: 1; display: grid; place-items: center; }
.p-img .home-product { width: 100%; height: 78px; }
.p-img.photo { flex: none; height: 66px; margin: 4px 0 8px; border-radius: 6px; overflow: hidden; }
.p-img.photo svg { width: 100%; height: 100%; display: block; }
.p-pill { align-self: flex-start; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.p-pill.red { background: #c8141c; color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px #c8141c; }
.p-pill sup { font-size: .7em; margin-top: -6px; }
.p-art { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.p-art svg { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 20, 80, .18); }

.t-tile { width: 156px; height: 182px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); padding: 10px 10px 10px; display: flex; flex-direction: column; justify-content: space-between; color: var(--text); text-decoration: none !important; }
.t-tile span { font-size: 16px; line-height: 1.3; }
.t-tile .thumb { width: 100%; height: 110px; border-radius: 8px; display: block; }
img.thumb { object-fit: cover; background: #eef1f6; }

.t-arrow { position: absolute; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); display: grid; place-items: center; color: var(--text); z-index: 2; }
.t-arrow .icon { width: 18px; height: 18px; }
.t-arrow.prev { right: auto; left: -14px; }
.t-arrow[hidden] { display: none; }
.a-top { top: 184px; }
.a-bottom { top: 492px; }

/* ---------- login hint ---------- */
.login-bar { margin-top: 57px; min-height: 72px; padding: 12px 16px; display: flex; align-items: center; gap: 16px; border-radius: 8px; }
.login-bar p { flex: 1; }
.lb-link { font-size: 17px; }
.lb-btn { width: 200px; font-size: 17px; font-weight: 500; }

/* ---------- popular comparisons ---------- */
.home .section { margin-top: 48px; }
.home .section-title { display: flex; align-items: center; gap: 10px; }
.pop-grid { display: grid; grid-template-columns: repeat(9, 128px); justify-content: space-between; }
.pop { height: 128px; background: var(--tile-bg); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--text); font-size: 15px; text-align: center; text-decoration: none !important; padding: 0 6px; line-height: 1.2; }
.pop:hover { background: #ebebeb; }
.pop .pop-icon { width: 44px; height: 44px; color: #1a1a1a; --icon-bg: var(--tile-bg); }
.pop:hover { background: #ececec; }
.pop:hover .pop-icon { --icon-bg: #ececec; }
.home .more { display: inline-block; margin-top: 18px; font-size: 17px; }

/* ---------- Salty ---------- */
.salty-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.salty-main { background: var(--blue); color: #fff; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.salty-main .salty-logo { width: 74px; height: auto; margin-left: -8px; }
.salty-main p { font-size: 15px; }
.salty-main .btn { height: 50px; font-size: 16px; font-weight: 600; margin-top: 4px; }
.salty-item { padding: 16px 10px 14px; display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; border-radius: 8px; }
.salty-item h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #444; margin-left: 6px; }
.salty-item h3 .icon { color: var(--blue); }
.salty-item p { display: flex; gap: 10px; font-size: 14.5px; color: #555; margin: 14px 0 0 6px; flex: 1; }
.salty-item p .icon { color: #777; margin-top: 3px; }
.salty-item .link { color: var(--action); font-size: 15px; margin-top: 12px; }

/* ---------- Heiße Hashz ---------- */
.hashz .section-title .flame { width: 26px; height: 26px; fill: #f97316; stroke: #ea580c; }
.deal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deal { overflow: hidden; display: flex; flex-direction: column; border-radius: 8px; min-height: 240px; }
.deal-img { height: 102px; position: relative; overflow: hidden; }
.deal-art { position: absolute; inset: 0; }
.deal-art svg { width: 100%; height: 100%; display: block; }
.deal-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: right center; }
.deal-vote { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 6px 8px 8px; width: 100px; }
.deal-vote .deg { display: block; color: #e1251b; font-size: 15px; font-weight: 600; padding: 2px 6px 4px; }
.deal-vote .deg.cold { color: #1d6fd0; }
.deal-vote > div { display: flex; gap: 10px; }
.vote { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 0; }
.vote .icon { width: 18px; height: 18px; }
.vote.down { border: 1px solid #1d6fd0; color: #1d6fd0; }
.vote.up { border: 1px solid #e1251b; color: #e1251b; }
.vote.down.on { background: #1d6fd0; color: #fff; }
.vote.up.on { background: #e1251b; color: #fff; }
.deal-body { flex: 1; padding: 16px 16px 12px; display: flex; flex-direction: column; justify-content: space-between; color: var(--text); text-decoration: none !important; }
.deal-body h3 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.deal-price { text-align: right; display: flex; flex-direction: column; margin-top: 14px; }
.deal-price .small { font-size: 12px; color: var(--muted); }
.deal-price .big { font-size: 19px; color: #188038; line-height: 1.2; }
.deal-price .big s { font-size: 12px; color: #555; }
.deal-price sup { font-size: .65em; }

/* ---------- target hash lengths ---------- */
.len-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.len-tile { display: flex; border: 1px solid #9a9a9a; border-radius: 6px; overflow: hidden; min-height: 82px; color: var(--text); text-decoration: none !important; }
.len-tile:hover { border-color: var(--action); }
.len-box { width: 104px; flex: none; background: var(--orange); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 4px 10px; line-height: 1.05; }
.len-box span { font-size: 12px; }
.len-box b { font-size: 28px; font-weight: 800; text-align: center; }
.len-box b small { font-size: 13px; font-weight: 700; }
.len-box span:last-child { text-align: center; margin-top: 2px; }
.len-text { padding: 12px 8px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.len-text p:first-child { font-size: 18px; }
.len-text .muted { font-size: 14px; color: #444; }

/* ---------- overview ---------- */
.ov-tabs { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ov-tabs button { width: 140px; flex: none; height: 30px; border-radius: 15px; border: 1px solid #333; background: #fff; font-size: 13px; }
.ov-tabs button.active { border-color: var(--action); color: var(--action); }
.ov-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.ov-panel[hidden] { display: none; }
.ov-panel h3 { font-size: 18px; font-weight: 400; margin-bottom: 18px; }
.ov-panel p { font-size: 14px; line-height: 1.65; }

/* ---------- promises ---------- */
.prom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.prom-grid h3 { font-size: 18px; font-weight: 400; margin: 14px 0 18px; }
.prom-grid p { font-size: 14px; line-height: 1.6; }
.gender-note { font-size: 12px; color: var(--muted); margin-top: 48px; }

/* ---------- smaller desktops ---------- */
@media (max-width: 1279px) {
  .pop-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
}

/* ---------- mobile (390) ---------- */
@media (max-width: 767px) {
  body.is-home { background: linear-gradient(180deg, #0030b6 50px, #fff 750px) top / 100% 760px no-repeat, #fff; }
  .home .container { padding: 0 8px; }
  .teaser { height: auto; }
  .t-top, .t-bottom { margin-left: 0; margin-right: -8px; padding-right: 8px; }
  .t-top { height: 400px; }
  .t-bottom { margin-top: 8px; height: 180px; padding-left: 0; }
  .t-big { position: relative; width: 308px; height: 400px; flex: none; padding: 16px; }
  .t-big h2 { font-size: 25px; }
  .t-big p { font-size: 17.5px; }
  .t-badge { left: 18px; top: 112px; width: 134px; height: 83px; }
  .t-badge span { font-size: 17px; }
  .t-badge b { font-size: 40px; }
  .t-scene { width: 196px; right: 0; bottom: 4px; }
  .t-tile { width: 150px; height: 176px; }
  .t-arrow { display: none; }
  .login-bar { flex-direction: column; align-items: stretch; margin: 36px 2px 0; padding: 14px 16px; gap: 12px; }
  .login-bar p { font-size: 16px; }
  .lb-btn { width: 100%; order: 2; }
  .lb-link { order: 3; font-size: 16px; }
  .home .section { margin-top: 28px; }
  .home .section-title { font-size: 20px; margin-bottom: 12px; }
  .pop-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pop { height: 93px; gap: 8px; font-size: 15px; }
  .pop .pop-icon { width: 36px; height: 36px; }
  .home .more { margin-top: 12px; font-size: 15px; }
  .salty-row, .deal-row { display: flex; overflow-x: auto; scrollbar-width: none; margin-right: -8px; padding: 2px 8px 6px 2px; scroll-snap-type: x mandatory; }
  .salty-row::-webkit-scrollbar, .deal-row::-webkit-scrollbar { display: none; }
  .salty-row > *, .deal-row > * { flex: none; width: 300px; scroll-snap-align: start; }
  .len-grid { grid-template-columns: 1fr; gap: 10px; }
  .ov-tabs { margin-right: -8px; }
  .ov-panel { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .prom-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .prom-grid h3 { margin: 8px 0 8px; }
}
