/* =========================================================================
   HF-Verlag — stylesheet
   Rebuild of the look of the previous WIX site (hfverlag.at):
   centred header lines, a rule-framed nav bar, a flat 4-column product grid,
   Raleway for product/nav typography, Arial for running text, gold accent.
   Measured from the live site, Oktober 2026.
   ========================================================================= */

/* ---- Font (self-hosted variable Raleway — no external CDN) -------------- */
@font-face {
  font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/raleway-var-latin.woff2") format("woff2");
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --font-ui: Arial, Helvetica, sans-serif;          /* running text, headlines, buttons */
  --font-brand: "Raleway", Arial, Helvetica, sans-serif; /* nav, product names, prices */

  --ink: #303030;          /* main text */
  --soft: #595959;         /* welcome line, section labels */
  --muted: #999999;        /* current page in nav, hints */
  --gold: #c48b21;         /* accent: buttons, links */
  --gold-dark: #a97618;
  --line: #e3e3e3;         /* rules around nav, footer */
  --line-strong: #a8a8a8;  /* product card border */
  --field: #f0f0f0;        /* form fields (contact) */
  --err: #9d2828;
  --ok: #2e6b48;

  --maxw: 940px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 400; color: var(--ink); margin: 0 0 0.6em; }
.muted { color: var(--muted); }
.site-main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 40px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Header: centred welcome lines -------------------------------------- */
.site-header { padding-top: 30px; }
.site-header__welcome { font-size: 23px; line-height: 1.3; color: var(--soft); text-align: center; margin: 0; }
.site-header__sub { font-size: 18px; line-height: 1.3; color: var(--ink); text-align: center; margin: 22px 0 0; }
.site-header__sub a { color: var(--ink); }
.site-header__sub a:hover { color: var(--gold); }

/* ---- Nav bar between two rules ------------------------------------------ */
.site-nav { margin-top: 36px; }
.site-nav__inner { display: flex; align-items: center; min-height: 52px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-nav ul { list-style: none; display: flex; margin: 0; padding: 0; flex: 1; }
.site-nav li { flex: 0 1 230px; }
.site-nav a {
  display: block; text-align: center; font-family: var(--font-brand); font-size: 15px;
  letter-spacing: 0.02em; color: #4a4a4a; padding: 0.5rem 0.25rem; text-decoration: none;
}
.site-nav a:hover { color: var(--gold); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--muted); }
.site-nav__cart { margin-left: auto; padding-left: 20px; border-left: 1px solid var(--line); }
.site-nav__cart a {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink);
  font-family: var(--font-brand); font-size: 15px; letter-spacing: 0.02em; padding: 0.4rem 0;
}
.site-nav__cart a:hover { color: var(--gold); text-decoration: none; }
.site-nav__cart svg { flex: none; }
/* Großbuchstaben über CSS statt im Text — Vorleseprogramme sprechen so weiterhin
   "Warenkorb" und nicht einzelne Buchstaben. */
.site-nav__cart-label { white-space: nowrap; text-transform: uppercase; }
/* Article count as a filled badge — readable at a glance. */
.cart-badge {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--gold); color: #fff;
  font-family: var(--font-ui); font-size: 14px; font-weight: bold; line-height: 1;
}
.nav-toggle { display: none; }

/* ---- Product grid (start page) ------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 16px; margin: 36px 0 24px; }
.card { display: flex; flex-direction: column; border: 1px solid transparent; }
.card__media { aspect-ratio: 222 / 167; background: #fff; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 6px 0; text-align: center; }
.card__title { font-family: var(--font-brand); font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--gold); text-decoration: none; }
.card__price { font-size: 12px; line-height: 1.3; color: var(--ink); margin: 10px 0 0; }
.card__more { font-family: var(--font-brand); font-size: 13px; color: var(--gold); margin: 8px 0 0; opacity: 0; transition: opacity 0.15s; }
.card:hover .card__more, .card:focus-within .card__more { opacity: 1; }

/* ---- Section label (Info, Kontakt, legal pages) -------------------------- */
.page { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0 30px; padding-block: 50px; }
.page__label {
  font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--soft);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 14px; margin: 0; align-self: start;
}
.page__body { max-width: 640px; }
.page__body h2 { font-size: 18px; margin-top: 2em; }
.page__body h2:first-child { margin-top: 0; }
.page__body li { margin-bottom: 0.5em; }
.page--wide .page__body { max-width: none; }

/* Info page: text + portrait */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 40px; align-items: start; }
.about__portrait { width: 196px; }
.about__portrait img { width: 196px; height: 295px; object-fit: cover; }

/* ---- Product detail ------------------------------------------------------ */
.product { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 46px; padding-block: 50px; align-items: start; }
.product__main-img { background: #fff; overflow: hidden; }
.product__main-img img { width: 100%; aspect-ratio: 500 / 343; object-fit: cover; }
.product__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product__thumb { width: 52px; height: 40px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb[aria-current="true"] { border-color: var(--gold); }
.product__info h1 { font-family: var(--font-brand); font-size: 26px; font-weight: 400; line-height: 1.2; margin: 0 0 24px; }
.product__price { font-family: var(--font-brand); font-size: 20px; color: var(--ink); margin: 0; }
.product__tax { font-size: 12px; color: var(--gold); margin: 4px 0 24px; }
.product__qty-label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.product__qty-label .req { color: var(--gold); }
.product__desc { margin-top: 34px; font-size: 15px; }
.product__desc p { margin: 0 0 1.2em; }
.product__desc > p:first-child { font-weight: bold; font-style: italic; }
.product__details { margin-top: 26px; font-size: 14px; color: var(--soft); white-space: pre-line; }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); background: #fff; }
.qty button { width: 32px; border: 0; background: none; font-size: 16px; color: var(--soft); cursor: pointer; }
.qty button:hover { color: var(--gold); }
.qty input { width: 44px; border: 0; text-align: center; font-family: var(--font-ui); font-size: 14px; padding: 8px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 16px; line-height: 1; border: 1px solid transparent;
  padding: 12px 22px; min-height: 40px; cursor: pointer; text-decoration: none; border-radius: 0;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn--block { width: 100%; }
.btn--lg { font-size: 16px; }
.btn--sm { font-size: 13px; padding: 8px 14px; min-height: 32px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link-gold { background: none; border: 0; font-family: var(--font-ui); font-size: 15px; color: var(--gold); cursor: pointer; padding: 0; }
.link-gold:hover { color: var(--gold-dark); text-decoration: underline; }

/* ---- Cart & checkout ----------------------------------------------------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.cart__items { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line__img { width: 80px; height: 60px; overflow: hidden; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-family: var(--font-brand); font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.cart-line__title a { color: var(--ink); }
.cart-line__title a:hover { color: var(--gold); text-decoration: none; }
.cart-line__meta { font-size: 12px; color: var(--soft); margin: 0; }
.cart-line__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line__price { font-family: var(--font-brand); font-size: 15px; }
.link-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }
.link-remove:hover { color: var(--err); }

.summary { background: #fafafa; border: 1px solid var(--line); padding: 20px; }
.summary h2 { font-family: var(--font-brand); font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 14px; color: var(--ink); }
.summary__row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-family: var(--font-brand); font-size: 18px; font-weight: 700; }
.summary__row--tax { font-size: 12px; color: var(--soft); padding-top: 0; }
.summary__note { font-size: 12px; color: var(--soft); margin-top: 12px; line-height: 1.5; }
.summary address { font-style: normal; font-size: 14px; line-height: 1.7; }

/* ---- Forms --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-size: 13px; color: var(--soft); }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: var(--font-ui); font-size: 14px; color: var(--ink); background: var(--field);
  border: 1px solid transparent; border-radius: 0; padding: 10px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 86px; }
.field__hint { font-size: 12px; color: var(--muted); }
.field .choice { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.field .choice input { width: auto; padding: 0; margin: 0; background: none; accent-color: var(--gold); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
[data-billing-fields] { margin-top: 14px; }
fieldset legend { font-family: var(--font-brand); font-size: 17px; font-weight: 700; padding: 0; margin-bottom: 12px; }

/* contact form: fields without labels above, like the old site */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.contact address { font-style: normal; font-size: 16px; line-height: 1.75; }
.contact__form .field label { position: absolute; left: -9999px; }
.contact__form .field input, .contact__form .field textarea { font-size: 13px; }
.contact__form { display: flex; flex-direction: column; gap: 10px; }
.contact__send { align-self: center; margin-top: 6px; }

/* ---- Notices / states ----------------------------------------------------- */
.notice { padding: 14px 16px; border: 1px solid var(--line); background: #fafafa; margin-bottom: 20px; font-size: 14px; }
.notice--ok { border-color: var(--ok); color: var(--ok); }
.notice--err { border-color: var(--err); color: var(--err); }
.empty-state { text-align: center; padding: 60px 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(160%); background: var(--ink); color: #fff; padding: 12px 20px; z-index: 80; transition: transform 0.3s ease; max-width: calc(100vw - 2rem); font-size: 14px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.bankbox { background: #fafafa; border: 1px solid var(--line); padding: 18px 20px; margin: 20px 0; }
.bankbox dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.bankbox dt { color: var(--soft); }
.bankbox dd { margin: 0; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.prose { max-width: 640px; }
.eyebrow { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); margin: 0 0 8px; }
.withdraw-cta { background: #fafafa; border: 1px solid var(--line); padding: 18px 20px; margin: 24px 0; }
.withdraw-cta p:last-child { margin-bottom: 0; }

h1.page-title { font-family: var(--font-brand); font-size: 26px; font-weight: 400; margin: 0 0 24px; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 24px; padding-block: 24px; font-size: 12px; color: var(--soft); }
.site-footer__inner > :last-child { justify-self: center; grid-column: 2; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.site-footer__links a { color: var(--gold); }
.site-footer p { margin: 0; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .cart { grid-template-columns: 1fr; }
  .page { grid-template-columns: 1fr; gap: 18px; }
  .page__label { border-bottom: 0; padding-bottom: 0; }
  .about, .contact { grid-template-columns: 1fr; gap: 26px; }
  .about__portrait { order: -1; }
}
@media (max-width: 680px) {
  .site-header__welcome { font-size: 19px; }
  .site-header__sub { font-size: 16px; }
  .site-nav__inner { min-height: 0; }
  .site-nav ul { flex-wrap: wrap; }
  .site-nav li { flex: 1 1 auto; }
  .site-nav a { padding: 12px 10px; }
  .site-nav__cart { padding-left: 12px; }
  .site-nav__cart a { gap: 8px; font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px 1fr; }
  .cart-line__img { width: 60px; height: 46px; }
  .cart-line__end { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

[hidden] { display: none !important; }
