/* Hallmark · shape: Showcase (Long Document) · genre: editorial · theme: Broadside dealt, ZACK 0.4 light palette override · job: try · draw: c60a82
 * hero: split 7/5, claim left on paper, real photo right in a silver passepartout with a gold hairline · nav: glass · footer: index columns · imagery: real photos from the seven group sites, two typographic cards where a site has no photo · signature: the passepartout frame that every photo on the page wears
 * axes: paper/grotesk/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · weakest: V, Bordeaux and Gold together must stay under a tenth of the page */
/* waive 47b: family face Inter · waive 38iii: the one Bordeaux word in the claim is the signature · waive 1: footer heads are labels in the body face */
@import url("./tokens.css");
@import url("./base.css");
@import url("./components.css");

/* deliberate extra tokens: frame padding; brand accent colours sit with the showcase below */
:root {
    --frame-pad: 14px;
}

h1, h2, h3 { color: var(--color-ink); }
h2 { position: relative; padding-top: var(--space-md); }
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 1px; background: var(--color-gold); }
.hero h1::before { display: none; }

/* photo frame: silver passepartout, gold hairline inside */
.frame { position: relative; margin: 0; background: var(--color-paper); border: 1px solid var(--color-silver); padding: var(--frame-pad); border-radius: 6px; }
.frame::after { content: ""; position: absolute; inset: calc(var(--frame-pad) - 5px); border: 1px solid var(--color-gold-pale); border-radius: 3px; pointer-events: none; }
.frame > img, .frame > .typo { position: absolute; top: var(--frame-pad); left: var(--frame-pad); width: calc(100% - 2 * var(--frame-pad)); height: calc(100% - 2 * var(--frame-pad)); max-width: none; object-fit: cover; border-radius: 2px; }
.frame > img { filter: saturate(0.9); }
.frame figcaption { position: absolute; left: var(--frame-pad); bottom: calc(var(--frame-pad) * -1 - 1.6em); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-2) 100%); }
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.hero h1 { font-size: var(--text-display); max-width: 12ch; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--color-bordeaux); }
.hero .lead { margin: var(--space-lg) 0 var(--space-xl); color: var(--color-muted); }
.hero .actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero .anchor { margin-top: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.hero .anchor strong { color: var(--color-ink); font-weight: 600; }
.hero .frame { aspect-ratio: 3 / 4; max-width: 520px; justify-self: end; width: 100%; }
.js .hero .frame { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--spring) 120ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- strip: seven domains ---------- */
.strip { padding-block: var(--space-lg); border-block: 1px solid var(--color-rule); background: var(--color-paper); }
.strip .container { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.strip p { font-size: var(--text-sm); color: var(--color-muted); margin: 0; flex: 0 1 auto; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-xs) var(--space-lg); flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.strip li a { font-weight: 600; text-decoration: none; color: var(--color-ink); font-size: var(--text-sm); display: inline-flex; align-items: center; gap: var(--space-xs); }
.strip li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-gold); }
.strip li a:hover { color: var(--color-bordeaux); }

/* ---------- branches ---------- */
.branchen .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.branchen article { padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.branchen h3 { margin-bottom: var(--space-sm); }
.branchen p { color: var(--color-muted); }
.branchen ul { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.branchen li { font-size: var(--text-xs); font-weight: 600; padding: var(--space-3xs) var(--space-sm); border: 1px solid var(--color-silver); border-radius: var(--radius-pill); color: var(--color-ink); }

/* ---------- services with a real example ---------- */
.leistungen .list { display: grid; gap: var(--space-2xl); }
.leist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: center; padding-top: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.leist:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.leist:nth-child(even) .frame { order: -1; }
.leist .frame { aspect-ratio: 16 / 10; }
.leist h3 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.leist .price { font-size: var(--text-lg); font-weight: 600; color: var(--color-bordeaux); margin: var(--space-md) 0 var(--space-xs); }
.leist .price small { display: block; font-size: var(--text-xs); color: var(--color-muted); font-weight: 400; }
.leist .inc { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-xs); color: var(--color-ink-2); }
.leist .inc li { padding-left: var(--space-lg); position: relative; }
.leist .inc li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--color-gold); }
.leist .bsp { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.leist .bsp a { color: var(--color-bordeaux); font-weight: 600; display: inline-block; padding-block: var(--space-sm); margin-block: calc(var(--space-sm) * -1); }
.leist .actions { margin-top: var(--space-lg); display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ---------- showcase: seven sites as brand cards (no photos; brand colour only in the accent line) ---------- */
:root { --b-fnx: #2E90FF; --b-sport: #E3B04B; --b-ai: #F3B98A; --b-verein: #1F7A4D; --b-clean: #1B2A44; --b-stern: #F5C542; --b-rede: #C9744A; }
.arbeiten .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.work { --b: var(--color-gold); grid-column: span 4; position: relative; display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xl); background: var(--color-paper); border: 1px solid var(--color-silver); border-radius: var(--radius-card); text-decoration: none; color: var(--color-ink); transition: transform 240ms var(--spring), border-color 200ms var(--ease-out); }
.work.fnx { --b: var(--b-fnx); } .work.sport { --b: var(--b-sport); } .work.ai { --b: var(--b-ai); } .work.verein { --b: var(--b-verein); } .work.clean { --b: var(--b-clean); } .work.stern { --b: var(--b-stern); } .work.rede { --b: var(--b-rede); }
.work .accent { display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--b); }
.work .branche { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.work h3 { font-size: var(--text-xl); letter-spacing: -0.02em; margin-top: var(--space-xs); }
.work .what { color: var(--color-ink-2); margin: 0; hyphens: manual; }
.work .built { color: var(--color-muted); font-size: var(--text-sm); margin: 0; padding-top: var(--space-sm); border-top: 1px solid var(--color-gold-pale); }
.work .built b { color: var(--color-ink); font-weight: 600; }
.work .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.work .tags li { font-size: var(--text-xs); color: var(--color-ink-2); border: 1px solid var(--color-silver); border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-sm); }
.work .tags li.own { color: var(--color-muted); border-style: dashed; }
.work .go { margin-top: var(--space-xs); font-weight: 600; font-size: var(--text-sm); color: var(--color-bordeaux); }
.work .go span { display: inline-block; transition: transform 240ms var(--spring); }
.badge-ext { justify-self: start; font-size: var(--text-xs); font-weight: 600; color: var(--color-bordeaux); border: 1px solid var(--color-bordeaux); border-radius: var(--radius-pill); padding: 3px 10px; }
.work.feature { grid-column: span 12; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: start; padding: var(--space-2xl) var(--space-xl); }
.work.feature .brand, .work.feature .body { display: grid; gap: var(--space-sm); align-content: start; }
.work.feature h3 { font-size: var(--text-3xl); }
.work.feature .what { font-size: var(--text-lead); }
.work:focus-visible { outline: 2px solid var(--color-bordeaux); outline-offset: 3px; }
.arbeiten .note { margin-top: var(--space-xl); padding: var(--space-lg); border: 1px solid var(--color-silver); border-radius: var(--radius-card); background: var(--color-paper); max-width: 72ch; color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- packages ---------- */
.pakete { background: var(--color-paper-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); align-items: stretch; }
.plan { background: var(--color-paper); border: 1px solid var(--color-silver); border-radius: var(--radius-card); padding: var(--space-xl); display: grid; align-content: start; gap: var(--space-md); transition: transform 420ms var(--spring), border-color 200ms var(--ease-out); }
.plan .for { font-size: var(--text-sm); color: var(--color-muted); margin: 0; }
.plan h3 { font-size: var(--text-2xl); }
.plan .price { font-size: var(--text-3xl); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin: 0; color: var(--color-ink); }
.plan .price small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); color: var(--color-ink-2); }
.plan li { padding-left: var(--space-lg); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--color-gold); }
.plan .cap { font-size: var(--text-xs); color: var(--color-muted); margin: 0; }
.plan.hot { border-color: var(--color-bordeaux); box-shadow: 0 30px 60px -40px color-mix(in oklab, var(--color-bordeaux) 50%, transparent); }
.plan.hot .for { color: var(--color-bordeaux); font-weight: 600; }
.projects { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.project { padding-top: var(--space-md); border-top: 1px solid var(--color-gold); display: grid; gap: var(--space-2xs); }
.project strong { font-size: var(--text-lg); }
.project .p { color: var(--color-bordeaux); font-size: var(--text-md); }
.project p { color: var(--color-muted); font-size: var(--text-sm); }
.plans-hint { display: none; }
@media (min-width: 40.01rem) and (max-width: 64rem) { .plans-hint { display: block; font-size: var(--text-sm); color: var(--color-muted); margin: 0 0 var(--space-md); } }
.mwst { margin-top: var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- process ---------- */
.ablauf ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.ablauf li { counter-increment: s; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.ablauf li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--color-gold-deep); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-sm); font-variant-numeric: tabular-nums; }
.ablauf h3 { margin-bottom: var(--space-sm); }
.ablauf p { color: var(--color-muted); }

/* ---------- check ---------- */
.check { background: var(--color-bordeaux); color: var(--color-accent-ink); }
.check h2, .check h3 { color: var(--color-accent-ink); margin-bottom: var(--space-md); }
.check h2::before { background: var(--color-gold); }
.check .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-xl) var(--space-2xl); align-items: center; }
.check .muted { color: color-mix(in oklab, var(--color-accent-ink) 78%, var(--color-bordeaux)); }
.check .areas { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.check .areas span { font-size: var(--text-xs); font-weight: 600; padding: var(--space-3xs) var(--space-sm); border: 1px solid color-mix(in oklab, var(--color-accent-ink) 35%, transparent); border-radius: var(--radius-pill); }
.check .start { display: flex; gap: var(--space-xs); background: var(--color-paper); padding: var(--space-xs); border-radius: var(--radius-pill); border: 1px solid var(--color-gold); }
.check .start input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 var(--space-md); color: var(--color-ink); min-height: 48px; }
.check .start input:focus-visible { outline: 0; }
.check .start:focus-within { box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-gold) 40%, transparent); }
.check .start .btn { background: var(--color-ink); color: var(--color-paper); }
.check .start .btn:hover { background: var(--color-ink-2); }
.check .fine { margin-top: var(--space-sm); font-size: var(--text-xs); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--color-rule); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-lg) 0; font-weight: 600; font-size: var(--text-lg); display: flex; justify-content: space-between; gap: var(--space-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-gold-deep); transition: transform 300ms var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--space-lg); color: var(--color-muted); max-width: 70ch; }

/* ---------- hover only with a real pointer ---------- */
@media (hover: hover) and (pointer: fine) {
  .work:hover { transform: translateY(-2px); border-color: var(--color-gold); }
  .work:hover .go span { transform: translateX(4px); }
  .plan:hover { transform: translateY(-4px); border-color: var(--color-gold); }
}
.work:active, .plan:active { transform: scale(0.99); transition-duration: 100ms; }
.strip li a { min-height: 44px; }
.faq summary { min-height: 48px; }

/* ---------- sticky cta: phones with touch only, hidden while hero, check or sheet are on screen ---------- */
.sticky-cta { display: none; }
@media (max-width: 48rem) and (hover: none) {
  .sticky-cta { display: block; position: fixed; left: max(var(--space-md), env(safe-area-inset-left)); right: max(var(--space-md), env(safe-area-inset-right)); bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); z-index: var(--z-sticky); transition: opacity 240ms var(--ease-out), transform 320ms var(--spring); }
  .sticky-cta .btn { width: 100%; }
  .js .sticky-cta.off { opacity: 0; transform: translateY(12px); pointer-events: none; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---------- breakpoints ---------- */
@media (min-width: 90rem) { .hero h1 { font-size: 5.5rem; } h2 { font-size: 3.5rem; } }
@media (max-width: 64rem) {
  .hero .container, .check .container, .leist, .leist:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: var(--space-xl) var(--section-gap-s); }
  .hero .frame { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; }
  .hero .frame img { object-position: 50% 30%; }
  .leist .frame, .leist:nth-child(even) .frame { order: -1; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-column: span 6; }
  .work.feature { grid-template-columns: minmax(0, 1fr); padding: var(--space-xl); }
  /* prices: one swipe row on tablets */
  .plans { display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-xs) var(--space-xs) var(--space-md); margin-inline: calc(var(--space-xs) * -1); scrollbar-width: thin; }
  .plan { flex: 0 0 min(20rem, 82vw); scroll-snap-align: start; }
}
@media (max-width: 40rem) {
  .branchen .grid, .ablauf ol, .projects { grid-template-columns: minmax(0, 1fr); }
  .work, .work.feature { grid-column: span 12; } .work { padding: var(--space-lg); } .work.feature h3 { font-size: var(--text-2xl); }
  .hero h1 { font-size: var(--text-display-s); }
  .hero .frame { aspect-ratio: 5 / 4; }
  .hero .anchor { gap: var(--space-xs) var(--space-md); }
  .strip ul { margin-left: 0; }
  .check .start { flex-direction: column; border-radius: var(--radius-card); padding: var(--space-sm); }
  .check .start input { min-height: 52px; }
  .plans { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; padding: 0; margin: 0; }
  .plan { flex: none; }
  .leist h3 { font-size: var(--text-xl); }
  .arbeiten .note { padding: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) { .js .hero .frame { animation: none; opacity: 1; transform: none; } .work:hover, .work:active, .plan:hover, .plan:active { transform: none; } .sticky-cta { transition: none; } }
