/* heygregor Design-Bibliothek – Basis (für alle Designsprachen gleich)
   Nur Technik: Reset, Raster, mobiles Menü, Barrierefreiheit. Aussehen steht in stil-<name>.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
figure, blockquote, dl, dd, h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 3px; }

.hg-wrap { width: 100%; max-width: var(--wrap, 1240px); margin-inline: auto; padding-inline: var(--gutter, clamp(20px, 5vw, 56px)); }
.hg-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #000; color: #fff; }
.hg-skip:focus { top: 12px; }
.hg-demo-note { font: 500 12.5px/1.4 system-ui, sans-serif; text-align: center; padding: 8px 16px; background: #111; color: #e8e8e8; letter-spacing: .01em; }

/* Abstände der Abschnitte */
main > section { padding-block: var(--space, clamp(72px, 10vw, 140px)); }
main > section.hg-hero { padding-block: var(--space-hero, clamp(32px, 6vw, 96px)); }

/* Buttons – Grundform */
.hg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.hg-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kopfbereich & mobiles Menü (ohne JavaScript) */
.hg-header__in { display: flex; align-items: center; gap: 24px; }
.hg-logo { display: grid; text-decoration: none; margin-right: auto; }
.hg-nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.hg-nav a { text-decoration: none; }
.hg-menu { display: none; position: relative; }
.hg-menu summary { list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-content: center; gap: 6px; }
.hg-menu summary::-webkit-details-marker { display: none; }
.hg-menu summary span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s; }
.hg-menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.hg-menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.hg-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: min(300px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 16px; }
.hg-menu nav a:not(.hg-btn) { padding: 12px 8px; text-decoration: none; }
.hg-menu nav .hg-btn { margin-top: 8px; }

/* Häufige Fragen */
.hg-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hg-faq__item summary::-webkit-details-marker { display: none; }
.hg-faq__item summary::after { content: "+"; flex: none; font-size: 1.4em; line-height: 1; transition: transform .2s; }
.hg-faq__item[open] summary::after { transform: rotate(45deg); }

.hg-hours span { display: block; }
.hg-hours b { font-weight: inherit; display: inline-block; min-width: 6.5em; }

/* Vorschaubild in Leistungen – Designsprachen schalten es ein */
.hg-service { position: relative; }
.hg-service__img { display: none; }
.hg-count { font-size: .32em; vertical-align: super; margin-left: .3em; letter-spacing: 0; font-weight: 400; opacity: .55; }

/* Übergroße Wortmarke im Fuß */
.hg-footer { overflow: hidden; }
.hg-footer__mark { font-size: clamp(64px, 17vw, 300px); line-height: .8; letter-spacing: -0.04em; white-space: nowrap; padding-inline: var(--gutter, clamp(20px, 5vw, 56px)); margin-bottom: -0.12em; user-select: none; pointer-events: none; }

/* Dezentes Einblenden beim Scrollen (ohne JavaScript, nur wo der Browser es kann) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > section:not(.hg-hero) .hg-wrap > * { animation: hg-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes hg-reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }


/* ---- Zusätzliche Abschnitte: Grundgestaltung für alle Designsprachen ---- */

/* Hinweisleiste */
main > section.hg-notice { padding-block: 0; }
.hg-notice { background: var(--accent); color: var(--on-dark, #fff); font-size: 15px; }
.hg-notice__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 52px; padding-block: 10px; }
.hg-notice__label { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.hg-notice__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.hg-notice__text { opacity: .9; }
.hg-notice__link { margin-left: auto; font-weight: 600; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* Kennzahlen */
main > section.hg-stats { padding-block: clamp(40px, 6vw, 80px); }
.hg-stats__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line, rgba(0, 0, 0, .14)); }
.hg-stats__list li { padding: 24px 24px 0 0; display: grid; gap: 6px; }
.hg-stats__list li + li { padding-left: 24px; border-left: 1px solid var(--line, rgba(0, 0, 0, .14)); }
.hg-stats__list strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.hg-stats__list span { color: var(--muted); font-size: 15px; max-width: 22ch; }

/* Preisliste */
.hg-prices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.hg-prices__group h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--ink); }
.hg-prices__group li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line, rgba(0, 0, 0, .12)); }
.hg-price__name { display: grid; }
.hg-price__name small { color: var(--muted); font-size: 13.5px; }
.hg-price__dots { flex: 1; border-bottom: 1px dotted var(--muted); opacity: .5; transform: translateY(-4px); }
.hg-prices__group strong { white-space: nowrap; font-weight: 600; }
.hg-prices__note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Laufband */
main > section.hg-marquee { padding-block: clamp(18px, 2.4vw, 28px); }
.hg-marquee { overflow: hidden; border-block: 1px solid var(--line, rgba(0, 0, 0, .14)); }
.hg-marquee__track { display: flex; width: max-content; animation: hg-marquee 40s linear infinite; }
.hg-marquee__group { display: flex; flex: none; }
.hg-marquee__group span { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; padding-inline: clamp(16px, 2vw, 28px); display: inline-flex; align-items: center; gap: clamp(32px, 4vw, 56px); }
.hg-marquee__group span::after { content: "✦"; font-size: .45em; color: var(--accent); }
@keyframes hg-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hg-marquee__track { animation: none; } }

@media (max-width: 900px) {
  .hg-stats__list { grid-template-columns: 1fr 1fr; }
  .hg-stats__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hg-stats__list li { padding-bottom: 24px; }
  .hg-prices__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hg-notice__link { margin-left: 0; }
  .hg-notice__in { gap: 2px 12px; }
}

@media (max-width: 900px) {
  .hg-nav, .hg-header__cta { display: none; }
  .hg-menu { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
