/* Singvogel Shop — aligned with singvogel.at (Open Sans + KoHo, brand red) */
@import url("https://fonts.googleapis.com/css2?family=KoHo:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --sv-red: #e83331;
  --sv-red-dark: #c42a28;
  --sv-red-soft: rgba(232, 51, 49, 0.08);
  --sv-gold: #ffc500;
  --sv-text: #333333;
  --sv-text-muted: #666666;
  --sv-border: #e2e2e2;
  --sv-bg: #fafafa;
  --sv-surface: #ffffff;
  --sv-shadow: 0 8px 32px rgba(17, 24, 39, 0.06);
  --sv-shadow-hover: 0 14px 40px rgba(17, 24, 39, 0.1);
  --sv-radius: 12px;
  --sv-header-h: 72px;
  --sv-max: 1120px;
  --sv-font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sv-display: "KoHo", var(--sv-font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sv-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sv-text);
  background: var(--sv-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--sv-red);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--sv-red-dark);
}

a:focus-visible {
  outline: 2px solid var(--sv-red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--sv-surface);
  color: var(--sv-red);
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sv-border);
}

.site-header__bar {
  height: 4px;
  background: linear-gradient(90deg, var(--sv-red) 0%, #ec3a39 50%, var(--sv-gold) 100%);
}

.header-inner {
  max-width: var(--sv-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--sv-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: inherit;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
  opacity: 0.92;
}

/* Desktop logo from singvogel.at sidebar (100×180 portrait asset) */
.brand__logo {
  width: auto;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}

.brand__title {
  font-family: var(--sv-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--sv-text);
  line-height: 1.2;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  background: var(--sv-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sv-text);
  border-radius: 1px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-nav a {
  color: var(--sv-text);
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--sv-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--sv-font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--sv-red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232, 51, 49, 0.35);
}

.btn--primary:hover {
  background: var(--sv-red-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 51, 49, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
}

.btn--ghost:hover {
  border-color: var(--sv-red);
  color: var(--sv-red);
  background: var(--sv-red-soft);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--sv-text);
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
}

.cart-link:hover {
  background: var(--sv-red-soft);
  color: var(--sv-red);
}

.cart-link__badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  background: var(--sv-red);
  color: #fff;
  border-radius: 999px;
}

/* ——— Layout ——— */
main {
  overflow-x: hidden;
}

.section {
  max-width: var(--sv-max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section__head {
  margin-bottom: 2rem;
}

.section__eyebrow {
  font-family: var(--sv-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sv-red);
  margin: 0 0 0.5rem;
}

.section__title {
  font-family: var(--sv-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--sv-text);
}

.section__lead {
  margin: 0;
  max-width: 42rem;
  color: var(--sv-text-muted);
  font-size: 1.0625rem;
}

.section__lead code {
  font-size: 0.9em;
  background: var(--sv-red-soft);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.checkout-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--sv-red-soft);
  color: var(--sv-text);
  font-size: 0.9375rem;
  max-width: 42rem;
}

.checkout-status--error {
  background: rgba(232, 51, 49, 0.15);
  color: var(--sv-red-dark);
}

.success-downloads {
  margin-top: 2rem;
  padding: 1.5rem 1.35rem;
  max-width: 36rem;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow);
}

.success-downloads__title {
  font-family: var(--sv-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--sv-text);
}

.success-downloads__hint {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--sv-text-muted);
  line-height: 1.5;
}

.success-downloads__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.success-downloads__btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.divider {
  height: 3px;
  width: 64px;
  background: var(--sv-red);
  border-radius: 2px;
  margin: 1rem 0 0;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 3.5rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, var(--sv-red-soft) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 197, 0, 0.12) 0%, transparent 50%),
    var(--sv-surface);
  border-bottom: 1px solid var(--sv-border);
}

.hero__inner {
  max-width: var(--sv-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero__content h1 {
  font-family: var(--sv-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--sv-text);
}

.hero__content .sub {
  font-size: 1.125rem;
  color: var(--sv-text-muted);
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__panel {
  background: linear-gradient(145deg, #fff 0%, #f6f6f6 100%);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 2rem;
  box-shadow: var(--sv-shadow);
  position: relative;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero__panel-title {
  font-family: var(--sv-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--sv-border);
  font-size: 0.9375rem;
  color: var(--sv-text);
}

.hero__highlights li:last-child {
  border-bottom: none;
}

.hero__highlights svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--sv-red);
}

/* ——— Product grid ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-grid__loading,
.product-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--sv-text-muted);
  font-size: 1rem;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--sv-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(232, 51, 49, 0.25);
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f2f2f2 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sv-text-muted);
  font-size: 0.875rem;
  position: relative;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.04), transparent 40%);
  pointer-events: none;
}

.product-card__placeholder {
  font-family: var(--sv-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #bbb;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.product-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sv-red);
  margin-bottom: 0.35rem;
}

.product-card__title {
  font-family: var(--sv-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--sv-text);
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--sv-text-muted);
  margin: 0 0 1.25rem;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__price {
  font-family: var(--sv-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sv-text);
}

.product-card__price small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sv-text-muted);
}

/* ——— Trust strip ——— */
.trust {
  background: var(--sv-surface);
  border-top: 1px solid var(--sv-border);
  border-bottom: 1px solid var(--sv-border);
}

.trust__grid {
  max-width: var(--sv-max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust__item strong {
  display: block;
  font-family: var(--sv-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--sv-text);
}

.trust__item span {
  font-size: 0.875rem;
  color: var(--sv-text-muted);
}

/* ——— Footer ——— */
.site-footer {
  background: #2a2a2a;
  color: #ccc;
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #eee;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--sv-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand__title {
  font-family: var(--sv-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.footer-brand p {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #aaa;
}

.footer-col h3 {
  font-family: var(--sv-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: #bbb;
}

.footer-col a:hover {
  color: var(--sv-gold);
}

.footer-bottom {
  max-width: var(--sv-max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #444;
  font-size: 0.8125rem;
  color: #888;
  text-align: center;
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--sv-header-h) + 4px) 0 auto 0;
    background: var(--sv-surface);
    border-bottom: 1px solid var(--sv-border);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--sv-border);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .header-actions .btn--ghost {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .trust__grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .brand__title {
    font-size: 1.05rem;
    white-space: normal;
  }

  .brand__logo {
    height: 48px;
  }
}
