/* ============================================================
   HRX Messe-Onepager — styles.css
   Marken-Palette aus Folienmaster-Theme "HRX_2026".
   Flow: Hero → Payroll → n8n-Live → Susi → Bots → Evolution → Kontakt
   ============================================================ */

/* ---------- Self-hosted Fonts (woff2, kein CDN) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --hrx-green: #76A51D; --hrx-green-dark: #5F8315; --hrx-green-bright: #8BBE34;
  --ink: #1F2A20; --ink-2: #16201A;
  --paper: #F4F7EA; --paper-2: #FBFCF6; --card: #FFFFFF;
  --muted: #595E54; --gold: #D9A341; --teal: #499E9A;
  --text-on-light: #1F2A20; --text-on-dark: #F4F7EA; --muted-on-dark: #AEBAA4;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.05rem, 4vw, 2.5rem);
  --radius: 16px; --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(22,32,26,.08);
  --shadow-md: 0 16px 40px rgba(22,32,26,.16);
  --shadow-glow: 0 14px 40px rgba(118,165,29,.30);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 64px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  line-height: 1.6; color: var(--text-on-light); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--hrx-green-bright); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 50%; translate: -50% -130%; background: var(--ink); color: var(--text-on-dark); padding: .6rem 1rem; border-radius: 0 0 10px 10px; z-index: 300; transition: translate .2s var(--ease); }
.skip-link:focus { translate: -50% 0; }

.eyebrow { font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hrx-green-dark); margin-bottom: .9rem; overflow-wrap: break-word; }
.eyebrow--light { color: var(--hrx-green-bright); }

/* ---------- Reveal (Scroll) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .85rem 1.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease); }
.btn--primary { background: var(--hrx-green); color: #fff; }
.btn--primary:hover { background: var(--hrx-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn--ghost { border-color: currentColor; }
.section--dark .btn--ghost { color: var(--text-on-dark); }
.section--dark .btn--ghost:hover { background: rgba(244,247,234,.12); transform: translateY(-2px); }
.section--light .btn--ghost { color: var(--ink); }
.section--light .btn--ghost:hover { background: rgba(31,42,32,.07); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--ink) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(244,247,234,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.header__logo img { width: 60px; height: auto; }
.primary-nav ul { display: flex; gap: clamp(.9rem, 2.6vw, 2rem); align-items: center; }
.primary-nav a { font-family: var(--font-display); font-weight: 500; font-size: .96rem; color: var(--text-on-dark); padding: .5rem .15rem; position: relative; }
.primary-nav a:not(.primary-nav__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--hrx-green-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.primary-nav a:not(.primary-nav__cta):hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav__cta { border: 1.5px solid var(--hrx-green-bright); border-radius: 999px; padding: .5rem 1.05rem; min-height: 40px; display: inline-flex; align-items: center; }
.primary-nav__cta:hover { background: var(--hrx-green); border-color: var(--hrx-green); color: #fff; }
.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { content: ''; position: absolute; left: 12px; width: 24px; height: 2px; background: var(--text-on-dark); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle__bar { top: 23px; } .nav-toggle__bar::before { top: -7px; } .nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid rgba(244,247,234,.08); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; padding-inline: var(--gutter); }
  .primary-nav[data-open="true"] { grid-template-rows: 1fr; }
  .primary-nav li { border-top: 1px solid rgba(244,247,234,.08); }
  .primary-nav li:first-child { border-top: 0; }
  .primary-nav a { display: block; padding: 1rem 0; }
  .primary-nav__cta { border: 0; border-radius: 0; padding: 1rem 0; }
  .primary-nav__cta:hover { background: none; color: var(--hrx-green-bright); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.2rem, 7vw, 6.5rem); }
.section--light { background: var(--paper); color: var(--text-on-light); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark .eyebrow { color: var(--hrx-green-bright); }
.section__head { max-width: 820px; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.section__title { font-size: clamp(1.6rem, 1.15rem + 2.3vw, 2.85rem); }
.section__lead { margin-top: 1.1rem; font-size: clamp(1.02rem, .98rem + .4vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section--dark .section__lead { color: var(--muted-on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--text-on-dark); min-height: 520px; min-height: clamp(520px, 86svh, 860px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(2.5rem, 9vh, 7rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 78% 18%, rgba(118,165,29,.34), transparent 60%), radial-gradient(ellipse 60% 50% at 8% 96%, rgba(73,158,154,.20), transparent 55%), linear-gradient(160deg, var(--ink-2), var(--ink) 55%, #20301f); }
.hero__bg::after { content: ''; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(244,247,234,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(244,247,234,.045) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 80%); }
.hero__inner { max-width: 880px; min-width: 0; }
.hero__title { font-size: clamp(2rem, 1rem + 5vw, 4.4rem); }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.08rem, 1rem + .5vw, 1.38rem); color: var(--muted-on-dark); max-width: 56ch; }
.hero__accent { color: var(--hrx-green-bright); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.9rem; }
.chips li { font-family: var(--font-display); font-size: .82rem; font-weight: 500; padding: .42rem .9rem; border-radius: 999px; border: 1px solid rgba(139,190,52,.4); color: var(--hrx-green-bright); background: rgba(118,165,29,.08); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }

/* ---------- KPIs (Payroll, hell) ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.7rem, 2vw, 1.3rem); margin-bottom: clamp(2rem, 5vw, 3rem); }
.kpi { padding: clamp(0.9rem, 2.5vw, 1.6rem); border-radius: var(--radius); background: var(--card); border: 1px solid rgba(31,42,32,.08); box-shadow: var(--shadow-sm); }
.kpi__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.05rem + 1.8vw, 2.4rem); color: var(--hrx-green-dark); line-height: 1; }
.kpi__label { display: block; margin-top: .55rem; color: var(--muted); font-size: .92rem; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Phases (Payroll, hell) ---------- */
.phases { display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); }
.phase { padding: clamp(1.2rem, 2.5vw, 1.7rem); background: var(--card); border-top: 3px solid var(--hrx-green); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-sm); }
.phase__num { font-family: var(--font-display); font-weight: 600; color: var(--hrx-green-dark); font-size: 1rem; letter-spacing: .1em; }
.phase__title { font-size: 1.18rem; margin: .35rem 0 .55rem; }
.phase p { color: var(--muted); font-size: .96rem; }
@media (min-width: 880px) { .phases { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Demo Video (Live, dunkel) ---------- */
.demo { margin: 0 auto; max-width: 760px; }
.demo__player { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #000; aspect-ratio: 1 / 1; border: 1px solid rgba(139,190,52,.22); }
.demo__player video { width: 100%; height: 100%; object-fit: cover; }
.demo__caption { margin-top: 1rem; text-align: center; color: var(--muted-on-dark); font-size: .95rem; }
.demo__meta { display: inline-block; margin-left: .4rem; color: var(--hrx-green-bright); font-family: var(--font-display); font-weight: 600; }

/* ---------- Susi (hell) ---------- */
.susi { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
.feature-list { display: grid; gap: .8rem; margin-top: 1.6rem; }
.feature-list li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 1rem; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--hrx-green); }
.feature-list strong { color: var(--text-on-light); font-weight: 600; }
.susi__shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 1376 / 960; background: var(--ink); cursor: pointer; }
.susi__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity .4s var(--ease); }
.susi__img--b { opacity: 0; }
.susi__shot:hover .susi__img--a, .susi__shot:focus-visible .susi__img--a, .susi__shot[data-swapped] .susi__img--a { opacity: 0; }
.susi__shot:hover .susi__img--b, .susi__shot:focus-visible .susi__img--b, .susi__shot[data-swapped] .susi__img--b { opacity: 1; }
.susi__hint { position: absolute; bottom: 0; left: 0; right: 0; padding: .5rem; text-align: center; font-size: .78rem; color: var(--text-on-dark); background: linear-gradient(transparent, rgba(22,32,26,.7)); }
@media (min-width: 860px) { .susi { grid-template-columns: 1fr 1fr; } }

/* ---------- Bot-Familie (dunkel) ---------- */
.botgrid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2.2vw, 1.5rem); }
@media (min-width: 720px) { .botgrid { grid-template-columns: repeat(3, 1fr); } }
.botcard { width: 100%; text-align: left; display: flex; flex-direction: column; background: var(--card); color: var(--text-on-light); border: 1px solid rgba(31,42,32,.08); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.botcard:hover, .botcard:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.botcard--dark { background: var(--ink-2); color: var(--text-on-dark); border-color: rgba(139,190,52,.28); }
.botcard__media { position: relative; aspect-ratio: 1 / 1; background: var(--paper); overflow: hidden; }
.botcard--dark .botcard__media { background: var(--ink-2); }
.botcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.botcard__body { padding: clamp(1.1rem, 2.4vw, 1.5rem); }
.botcard__role { display: block; color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.botcard--dark .botcard__role { color: var(--muted-on-dark); }
.botcard__amp { display: block; font-size: .82em; color: var(--muted); letter-spacing: .03em; font-weight: 600; }
.botcard--dark .botcard__amp { color: var(--muted-on-dark); }

/* ---------- Timeline (Evolution, hell) ---------- */
.timeline { display: grid; gap: clamp(1rem, 2.4vw, 1.4rem); }
.tl { padding: clamp(1.2rem, 2.5vw, 1.6rem); background: var(--card); border: 1px solid rgba(31,42,32,.08); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tl__num { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--hrx-green-dark); letter-spacing: .12em; }
.tl__title { font-size: 1.22rem; margin: .3rem 0 .25rem; }
.tl__stack { font-family: var(--font-display); font-size: .8rem; color: var(--teal); letter-spacing: .03em; margin-bottom: .7rem; }
.tl p:not(.tl__stack) { color: var(--muted); font-size: .94rem; }
@media (min-width: 920px) { .timeline { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contact ---------- */
.section--contact { text-align: center; }
.contact__inner { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.section--contact .section__lead { max-width: 52ch; margin-inline: auto; }
.section--contact .hero__actions { justify-content: center; }
.qr-placeholder { width: 150px; height: 150px; margin: 0 auto .8rem; display: grid; place-content: center; border: 2px dashed rgba(244,247,234,.3); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; color: var(--muted-on-dark); line-height: 1.2; }
.contact__qr-hint { color: var(--muted-on-dark); font-size: .85rem; }
@media (min-width: 820px) { .contact__inner { max-width: 760px; margin-inline: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: var(--muted-on-dark); padding-block: 2.4rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.site-footer img { width: 52px; height: auto; }
.site-footer__copy { font-size: .9rem; }
.site-footer__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer__links a { font-size: .9rem; transition: color .18s var(--ease); }
.site-footer__links a:hover { color: var(--hrx-green-bright); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; width: min(940px, 92vw); max-height: 92dvh; background: var(--paper); color: var(--text-on-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.lightbox::backdrop { background: rgba(15,19,16,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lightbox[open] { animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lightbox__fig { display: flex; flex-direction: column; max-height: 92dvh; overflow-y: auto; }
.lightbox__fig img { width: 100%; height: auto; max-height: 62dvh; object-fit: contain; background: var(--ink); }
.lightbox__cap { padding: clamp(1rem, 2.5vw, 1.5rem); }
.lightbox__cap h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.lightbox__cap p { color: var(--muted); }
.lightbox__close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(22,32,26,.6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; transition: background-color .15s var(--ease); }
.lightbox__close:hover { background: var(--hrx-green-dark); }

/* ---------- Kleine Viewports ---------- */
@media (max-width: 560px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .lightbox__fig img { max-height: 48dvh; }
}
@media (max-width: 480px) {
  .hero__title, .section__title { hyphens: auto; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .botcard:hover { transform: none; }
}
