/* Homepage page CSS (resources/views/marketing/home.blade.php, tasteskill kit in public/assets).
   Only what sits inside a visual, the wordmark, one --p-h per card group, and the few layout rules the
   checks asked for; tokens and components come from the kit. */
/* the client's wordmark: halvic with the signal-orange i, in the display face */
.hv-word { font: var(--display-weight) 22px/1 var(--font-display); font-variation-settings: var(--display-axes); letter-spacing: -0.03em; }
.hv-word i, .close__word i { font-style: normal; color: var(--p-accent); }
.nav__lang { display: flex; align-items: center; gap: var(--s-1); }
.nav__lang a { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 var(--s-2); min-height: 44px; display: inline-flex; align-items: center; }
.nav__lang a[aria-current] { color: var(--ink); }
@media (max-width: 1279px) { .nav__lang { display: none; } }

/* the hero's window: one pull request under review, dark UI on the lit grain ground */
.hv-win { background: #17191c; color: #eceef0; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text); text-align: left; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -30px rgb(0 0 0 / .8); }
.hv-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / .07); font-size: 13px; color: #9aa0a6; }
.hv-win__bar b { color: #eceef0; font-weight: 500; } .hv-win__bar .sp { flex: 1; }
.hv-win__dots { display: flex; gap: 6px; } .hv-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e43; }
.hv-win__body { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; }
.hv-inbox { border-right: 1px solid rgb(255 255 255 / .07); padding: 10px; display: grid; align-content: start; gap: 2px; }
.hv-inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: rgb(255 255 255 / .06); display: flex; align-items: center; padding: 0 10px; color: #8d9399; font-size: 13px; }
.hv-inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.hv-inbox .t.is-on { background: rgb(255 255 255 / .07); }
.hv-inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--font-text); font-style: normal; color: #0c0d0f; }
.hv-inbox .t b { font-weight: 500; color: #eceef0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-inbox .t time { color: #8d9399; font-size: 13px; }
.hv-inbox .t span { grid-column: 2 / -1; color: #9aa0a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-chat { display: grid; gap: 8px; align-content: start; padding: 14px 18px; }
.hv-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.hv-msg--me { justify-self: end; background: #f2f2f0; color: #121314; border-bottom-right-radius: 6px; }
.hv-msg--bot { max-width: 86%; background: #22262b; color: #e9ecee; border-bottom-left-radius: 6px; }
.hv-msg small { display: inline; margin-left: 8px; font-size: 13px; opacity: .65; white-space: nowrap; }
.hv-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9aa0a6; }
.hv-tool::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.hv-acts { display: flex; gap: 8px; }
.hv-acts span { height: 30px; padding: 0 12px; border-radius: var(--r-btn, 6px); display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: var(--p-action); color: var(--p-action-ink); }
.hv-acts span + span { background: transparent; color: #e9ecee; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }
.hero__window > :is(.ui-pause, .loop-pause) { --ink: #0e0e10; }
.hv-win__body { position: relative; }
.hv-win__body > :is(.ui-pause, .loop-pause) { top: 12px; right: 12px; bottom: auto; }
.hv-chat { padding-right: 56px; }
.hero--centred .hero__lead { color: var(--ink); }
.hero__window > .loop-pause { top: 12px; bottom: auto; }
@media (max-width: 1279px) { .hv-win__body { grid-template-columns: 1fr; } .hv-inbox, .hv-tool, .hv-msg small { display: none; } }
@media (max-width: 639px) {
  .hv-win__body { grid-template-columns: 1fr; } .hv-inbox { display: none; }
  .hv-win__bar .sp ~ span { display: none; }
  .hv-chat { padding: 12px 14px; font-size: 13px; }
  .hv-msg small, .hv-tool { display: none; }
}

/* guides: one panel height for the group */
#guides .panel { --p-h: 336px; }
@media (min-width: 1024px) and (max-width: 1279px) { #guides .panel { --p-h: 260px; } }
@media (max-width: 639px) { #guides .stage { --fade-h: 40px; } }

/* anvil: the app frame (sections-library.md, app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

@media (max-width: 639px) {
  /* phone: product rows are the name and its link on one line (the description is on the larger screens) */
  #produkte .rows > li > .rows__value { max-width: none; white-space: nowrap; }
  #auftraege .rows__value { display: none; }
  #guides .panel { --p-h: 130px; }
  /* as the kit does from 1024: the second screen's card row runs down to that screen's foot */
  main > section#guides.g2 > .wrap > .grid:last-child { align-self: stretch; }
  #produkte .rows > li > p { display: none; }
  #guides .hv-sub { display: none; }
  .hero--centred .pill { width: 100%; justify-content: center; }
  #auftraege .grid.fill, #produkte .grid.fill, #faq .grid.fill { flex: none; }
  #auftraege .grid.fill > .frame--fill { flex: none; height: auto; aspect-ratio: 2 / 1; min-height: 0; }
  #produkte .grid.fill > .frame--fill { flex: none; height: auto; aspect-ratio: 2 / 1; min-height: 0; }
  #faq .hv-faq-side > .hv-checklist { flex: none; height: auto; aspect-ratio: 4 / 3; }
}
@media (min-width: 640px) and (max-width: 1023px) { #guides .grid > .card { grid-column: 1 / -1; } #guides .panel { --p-h: 180px; } }

/* products: one panel height; the stack row under the cards */
#produkte .frame__img { object-position: top center; }

/* the newsletter form in the close */
.hv-nl, .form.hv-nl { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); width: min(100%, 628px); }
.close__word { font-size: clamp(64px, 10.5vw, 152px); line-height: 1.04; }
@media (max-width: 1023px) { .close__word { font-size: clamp(56px, 9vw, 80px); } }
/* the close's head row on the page's split pair: the h2 on columns 1-5, the form from the split line */
@media (min-width: 1024px) {
  .close--word > .section-head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .close--word > .section-head--split > :first-child { grid-column: 1 / span 5; }
  .close--word > .section-head--split > .hv-nl { grid-column: 7 / -1; width: 100%; }
}
.hv-nl .hv-nl__row .field { min-width: 0; flex: 1 1 260px; }
.hv-nl .hv-nl__row { display: flex; gap: var(--s-3); align-items: end; }
.hv-nl .hv-nl__row .field { flex: 1 1 auto; }
.hv-nl .hv-check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 14px; line-height: 1.5; }
.hv-nl .hv-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: 0 0 auto; }
.hv-nl .hv-check a { text-decoration: underline; text-underline-offset: 2px; }
.hv-nl .hv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1023px) { .hv-nl .hv-nl__row { flex-direction: column; align-items: stretch; } .hv-nl, .form.hv-nl { width: 100%; } }
.footer__legal .nav__lang--foot { display: inline-flex; gap: var(--s-3); }
.footer__col button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.hv-nl .hv-check input { margin: 2px 0 0; }
.hv-faq-side { display: flex; flex-direction: column; }
.hv-faq-side > .hv-checklist { flex: 1 1 0; min-height: 0; }
.hv-checklist .frame__img { object-fit: cover; object-position: top center; }
