/* Main landing pages (DE / and EN /en), aligned with the November 2026 visual
   system from /firmenevents/weihnachtsfeier: hero with three phones, compact
   proof bar, visual alternating steps, four photo-backed formats, founders +
   press block, flat FAQ and closing CTA. */

.hm { --line: rgba(0, 0, 0, .1); padding-bottom: 24px; }
/* Sections keep the 1010px reading width; the hero uses the full container (aligned with the nav). */
.hm > :not(.hm-hero) { max-width: 1010px; margin-inline: auto; }
.hm p { text-wrap: pretty; }
.hm h2, .hm-step h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hm a { color: var(--primary-dark); }
.hm [id] { scroll-margin-top: 96px; }
.nw { white-space: nowrap; }
.hm-sec { padding: clamp(44px, 6vw, 72px) 0; border-top: 1px solid var(--line); }

/* Hero */
.hm-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(36px, 6vw, 80px) 0 0; }
.hm-hero h1 { font-size: clamp(2.15rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; text-wrap: pretty; }
.hm-hero p { max-width: 39ch; margin-top: 14px; font-size: 1.08rem; color: var(--text-body); }
.hm-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hm-hero .btn { display: inline-block; text-align: center; color: var(--white); }
/* The outline button has a 1px border; a transparent one keeps the primary the same height. */
.hm-ctas .btn-primary { border: 1px solid transparent; }
.hm-hero .btn-outline { color: var(--primary-dark); box-shadow: none; border: 1px solid rgba(59, 58, 101, .12); }
.hm-hero .btn-outline:hover,
.hm-end .btn-outline:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.hm-hero .hm-note { margin-top: 14px; font-size: .88rem; color: var(--text-secondary); }
/* Three photoreal phones: one pre-rendered image with transparent background
   (built by scripts/hero-phones/composite.py). */
.hm-phones { display: flex; justify-content: center; }
.hm-phones picture { display: block; width: 100%; }
.hm-phones img { display: block; width: 100%; height: auto; }

/* Desktop: the text column is just wide enough for a three-line H1, the phones image takes the rest */
@media (min-width: 1001px) {
  .hm-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 3.6vw, 52px); }
  .hm-hero h1 { font-size: clamp(2.1rem, 3.3vw, 2.7rem); }
}
/* Wider screens: the phones get the larger column and may bleed into the page
   margin (more of it the wider the viewport), so they stand about as tall as
   the text block; the H1 steps down a little to stay at three lines. */
@media (min-width: 1200px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); }
  .hm-hero h1 { font-size: clamp(2.2rem, 3vw, 2.6rem); }
  .hm-phones picture { --bleed: clamp(32px, 7vw - 40px, 96px); margin-right: calc(-1 * var(--bleed)); width: calc(100% + var(--bleed)); }
}

/* Social proof: one compact block (Nick, PR #65: "too big"). Rating line, the Daimler line 6px under
   it, customer logos 14px below. Same numbers as .xm-proof in firmenevents.css and the wedding page. */
.hm-proof { display: grid; justify-items: center; padding: 28px 0 32px; text-align: center; }
.hm-proof b { font-family: var(--display); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.hm-proof > span { margin-top: 6px; font-size: .8rem; color: var(--text-secondary); }
.hm-proof .trust-logos, .hm-press .trust-logos { gap: 12px 40px; }
.hm-proof .trust-logos { margin-top: 14px; }
.hm-proof .trust-logo-img, .hm-press .trust-logo-img { height: 30px; max-width: 140px; }
/* The Netzsch wordmark is solid and wide, so it reads heavier than the others at the same height. */
.hm-proof .trust-logo-img[src$="netzsch.svg"] { height: 22px; }

/* Open definition (plain text block) */
.hm-def h2 { margin-bottom: 12px; }
.hm-def p { max-width: 68ch; font-size: 1.08rem; color: var(--text-body); }

/* Alternating pictured steps */
.hm-steps-head { margin-bottom: clamp(24px, 3.5vw, 36px); }
.hm-steps { display: grid; gap: clamp(40px, 6vw, 88px); }
.hm-step { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hm-step:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.hm-step:nth-child(even) .hm-stage { order: 2; }
.hm-step p { max-width: 40ch; margin-top: 12px; font-size: 1.1rem; color: var(--text-body); }
.hm-stage { position: relative; aspect-ratio: 4 / 3; border-radius: clamp(24px, 3.4vw, 40px); background: var(--white); overflow: hidden; }
.hm-stage.flex { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 36px); padding: 0 clamp(16px, 3vw, 40px); }
.hm-stage .phone-mock { --s: .42; flex: none; margin-bottom: -90px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .16)); }
.hm-photo, .hm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.hm-stage.hm-clip .phone-mock { --s: .5; margin: 0 0 36px; }
.hm-stage.hm-single .phone-mock { --s: .48; margin-bottom: -110px; }
/* A finished 9:16 export shown whole (logo on top, event title at the bottom), centred in the stage. */
.hm-export-img { position: absolute; top: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); left: 50%; transform: translateX(-50%); aspect-ratio: 9 / 16; border-radius: clamp(10px, 1.4vw, 16px); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.hm-export-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; width: 100%; height: 100%; }
.hm-grid picture { display: block; width: 100%; height: 100%; overflow: hidden; }
.hm-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Four event formats: clean photo-backed editorial cards in one horizontal row */
.hm-formats-head { margin-bottom: clamp(24px, 3.5vw, 36px); }
.hm-formats-head p { color: var(--text-body); max-width: 46ch; margin-top: 8px; }
.hm-formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.hm-format { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border-radius: clamp(18px, 2.2vw, 24px); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.hm-format:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 0, 0, .07); }
.hm-format:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.hm-format-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-variant); }
.hm-format-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform .35s ease; }
.hm-format:hover .hm-format-img img { transform: scale(1.03); }
.hm-format-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hm-format-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hm-format h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.015em; color: var(--text-primary); }
.hm-format-arrow { font-size: 1.15rem; color: var(--primary-dark); font-weight: 700; transition: transform .2s ease; }
.hm-format:hover .hm-format-arrow { transform: translateX(3px); }
.hm-format p { font-size: .88rem; color: var(--text-body); line-height: 1.42; }

.hm-link { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.hm-link:hover { text-decoration: underline; }

/* Founders & Press */
.hm-founders { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.hm-avatars { display: flex; flex: none; }
.hm-avatars picture { display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--background); background: var(--surface-variant); }
.hm-avatars picture + picture { margin-left: -18px; }
.hm-avatars img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-founders-copy h2 { font-size: clamp(1.35rem, 2.1vw, 1.65rem); }
.hm-founders-copy p { margin-top: 10px; max-width: 58ch; color: var(--text-body); }
/* Press and backers: as compact as the proof block, same logo heights; the press wordmarks
   (SZ, DasDing) at the press-line sizes. */
.hm .hm-press { display: grid; justify-items: center; gap: 14px; padding: 28px 0 32px; text-align: center; }
.hm-press-label { font-family: var(--display); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.hm-press .trust-logos { margin-top: 0; }
.hm-press .trust-logo-img.wide { max-width: 220px; height: 18px; }
.hm-press .trust-logo-img[src$="Dasding_Logo_2022.svg"] { height: 22px; }
footer .footer-cred img.wide { max-width: 195px; height: 22px; }

/* Flat FAQ */
.hm-faq details, .hm-more { border-bottom: 1px dashed var(--line); }
.hm-faq h2 { margin-bottom: 18px; }
.hm-faq summary, .hm-more { position: relative; display: block; padding: 17px 40px 17px 4px; font-weight: 600; cursor: pointer; list-style: none; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 400; color: var(--text-secondary); }
.hm-faq details[open] summary::after { content: "–"; }
.hm-faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.hm-faq details p { max-width: 70ch; padding: 0 4px 18px; color: var(--text-body); }
.hm .hm-more { border-bottom: 0; color: var(--text-primary); text-decoration: none; }
.hm-more span { position: absolute; right: 8px; color: var(--text-secondary); }

/* Closing CTA & subtle app row */
.hm-end { display: grid; justify-items: center; gap: 22px; text-align: center; }
.hm-end p { max-width: 46ch; color: var(--text-body); margin-top: -8px; }
.hm-end .hm-ctas { margin-top: 0; justify-content: center; }
.hm-end .btn-primary { color: var(--white); }
.hm-end .btn-outline { color: var(--primary-dark); box-shadow: none; border: 1px solid rgba(59, 58, 101, .12); }
.hm-end .hm-end-more { margin-top: -6px; font-size: .92rem; color: var(--text-secondary); }
.hm-end-more a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-end-more a:hover { text-decoration: underline; }

.hm-app { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hm-app h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.015em; }
.hm-app p { margin-top: 4px; font-size: .95rem; color: var(--text-body); max-width: 52ch; }
.hm-app .store-buttons { margin: 0; align-items: center; }

/* Responsive */
@media (max-width: 1000px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-hero h1 { text-wrap: balance; }
  .hm-hero p { max-width: 52ch; }
  /* Single column with the phones under the text: the whole hero is centred, like the proof block
     under it. The text-only hero on /events stays left-aligned with the sections that follow it. */
  .hm-hero:not(.hm-hero-solo) { text-align: center; }
  .hm-hero:not(.hm-hero-solo) p { margin-inline: auto; }
  /* CTA pairs stay side by side: two equal buttons sharing the row, at most 520px wide so they
     don't grow huge on tablets. Same rules as .xm-ctas in firmenevents.css. */
  .hm-ctas { flex-wrap: nowrap; width: 100%; max-width: 520px; margin-inline: auto; gap: 10px; }
  .hm-hero-solo .hm-ctas { margin-inline: 0; }
  .hm-ctas .btn { flex: 1 1 0; min-width: 0; max-width: none; padding: 15px 12px; font-size: 1rem; white-space: nowrap; text-align: center; }
  .hm-phones picture { max-width: 460px; }
  .hm-stage.flex, .hm-stage.hm-export { aspect-ratio: 1; gap: 14px; }
  .hm-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-hero h1 { font-size: clamp(1.8rem, 7.7vw, 2.6rem); }
  .hm-hero p { max-width: none; }
  .hm-phones picture { max-width: 360px; }
  .hm-step, .hm-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hm-step:nth-child(even) .hm-stage { order: 0; }
  .hm-stage .phone-mock { --s: .4; margin-bottom: -70px; }
  .hm-stage.hm-clip .phone-mock { --s: .4; margin: 0 0 28px; }
  .hm-stage.hm-single .phone-mock { --s: .42; margin-bottom: -90px; }
  .hm-founders { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hm-app { flex-direction: column; align-items: flex-start; }
  .hm-app .store-buttons { flex-direction: row; justify-content: flex-start; }
}
@media (max-width: 540px) {
  .hm-formats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hm-proof, .hm .hm-press { padding: 24px 0 28px; }
  .hm-proof b { font-size: .78rem; }
  .hm-proof > span { font-size: .75rem; }
  .hm-proof .trust-logos, .hm-press .trust-logos { gap: 10px 24px; }
  .hm-proof .trust-logo-img, .hm-press .trust-logo-img { height: 22px; max-width: 110px; }
  .hm-proof .trust-logo-img[src$="netzsch.svg"] { height: 16px; }
  .hm-press .trust-logo-img.wide { height: 15px; }
  .hm-press .trust-logo-img[src$="Dasding_Logo_2022.svg"] { height: 18px; }
}
@media (max-width: 400px) {
  .hm-ctas { gap: 8px; }
  .hm-ctas .btn { padding: 14px 8px; font-size: .94rem; }
}
@media (max-width: 340px) {
  .hm-ctas .btn { padding-inline: 6px; font-size: .88rem; }
}

/* Formats overview (/events, /en/events): text-only hero at reading width and a
   compact comparison table that turns into one card per format on phones. */
.hm-hero.hm-hero-solo { grid-template-columns: minmax(0, 1fr); max-width: 1010px; margin-inline: auto; }
.hm-hero-solo { padding-bottom: clamp(36px, 5vw, 56px); }
.hm-hero-solo p { max-width: 56ch; }
.hm-hero-solo + .hm-sec { padding-top: 0; border-top: 0; }
.hm-fit-head p { color: var(--text-body); max-width: 52ch; margin-top: 8px; }
.hm-fit { width: 100%; margin-top: clamp(20px, 3vw, 28px); border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: clamp(18px, 2.2vw, 24px); overflow: hidden; font-size: .95rem; line-height: 1.42; }
.hm-fit th, .hm-fit td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hm-fit thead th { padding-block: 13px; font-family: var(--display); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.hm-fit tbody tr:last-child > * { border-bottom: 0; }
.hm-fit tbody th { font-weight: 800; white-space: nowrap; }
.hm .hm-fit tbody th a { color: var(--text-primary); text-decoration: none; }
.hm-fit tbody th a:hover { text-decoration: underline; }
.hm-fit td { color: var(--text-body); }
.hm-fit td a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-fit td a:hover { text-decoration: underline; }
.hm-fit td small { display: block; font-size: .84rem; color: var(--text-secondary); }
.hm-fit + .hm-link { margin-top: 16px; }
@media (max-width: 800px) {
  .hm-fit, .hm-fit tbody, .hm-fit tr, .hm-fit th, .hm-fit td { display: block; }
  .hm-fit { background: none; border-radius: 0; overflow: visible; }
  .hm-fit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hm-fit tbody { display: grid; gap: 12px; }
  .hm-fit tr { padding: 14px 16px 10px; background: var(--white); border-radius: 18px; }
  .hm-fit th, .hm-fit td { padding: 0; border: 0; }
  .hm-fit tbody th { margin-bottom: 6px; font-size: 1.08rem; }
  .hm-fit td { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 1px 12px; align-items: baseline; padding: 7px 0; border-top: 1px dashed var(--line); }
  .hm-fit td small { grid-column: 2; }
  .hm-fit td::before { content: attr(data-label); font-size: .84rem; color: var(--text-secondary); }
}
