/* IVM Consulting v2 — "Wappen"
   Layout: symmetric hero around the coat of arms (heraldry is symmetric), then a left-aligned
   editorial body; one full-bleed heraldic-red band (Ablauf) as the anchor. */
:root {
  --paper: #FFFFFF;
  --paper-2: #FAF6F7;
  --ink: #211B1D;
  --ink-2: #685C60;
  --ink-faint: #CCBDC1;
  --line: rgba(33, 27, 29, .12);
  --rot: #C8102E;          /* Austrian-flag-inspired preview palette */
  --rot-dk: #A60D26;
  --band: #C8102E;
  --band-ink: #FFFFFF;
  --band-ink-2: rgba(255, 255, 255, .78);
  --ok: #2F7D5B;
  --err: #B4232A;

  --f-display: "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.84rem, .8rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.25rem, 1.1rem + .5vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.4vw, 3.8rem);
  --step-4: clamp(2.7rem, 1.7rem + 4.4vw, 6rem);

  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--rot); color: #fff; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 64px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.04; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: var(--step-3); }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; font-family: var(--f-display); font-weight: 400; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: transform .5s var(--ease), background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__adler { width: 34px; height: 39px; fill: var(--rot); flex: none; }
.brand span { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink-2); position: relative; padding-block: 6px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--rot); transition: left .45s var(--ease), right .45s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { left: 0; right: 0; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- Buttons: square, formal ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--rot); color: #fff; font: 600 .97rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--rot-dk); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--paper-2); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 112px 72px; overflow: hidden; text-align: center; }
.hero__rays {
  position: absolute; left: 50%; top: 300px; width: 1600px; height: 1600px; margin: -800px 0 0 -800px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rot) 7%, transparent) 0 1.2deg, transparent 1.2deg 7.5deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 18%, transparent 52%); mask: radial-gradient(circle, #000 0, #000 18%, transparent 52%);
}
.hero__inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.crest { margin: 0; width: clamp(190px, 24vw, 300px); }
.adler { display: block; width: 100%; height: auto; overflow: visible; }
.adler__fill { fill: var(--rot); }
.adler__sheen { mix-blend-mode: soft-light; pointer-events: none; }
.adler__lines path { fill: none; stroke: var(--rot); stroke-width: 1.4; opacity: 0; }
.hero__copy { display: grid; justify-items: center; gap: 26px; max-width: 760px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 14px; color: var(--rot); font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; }
.hero__kicker .rule { width: 36px; height: 1px; background: currentColor; }
.hero h1 { font-size: var(--step-4); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; }
.hero .lede { max-width: 40ch; }

/* ---------- Capture form ---------- */
.capture { display: grid; gap: 12px; width: 100%; max-width: 580px; text-align: left; }
.capture__field { display: flex; align-items: stretch; gap: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-faint); border-radius: 2px; transition: box-shadow .3s; }
.capture__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--rot); }
.capture input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.05rem var(--f-body); padding: 0 18px; min-height: 54px; outline: none; }
.capture input::placeholder { color: var(--ink-faint); }
.capture .btn { min-height: 54px; border-radius: 0 2px 2px 0; }
.capture__meter { height: 1px; background: var(--line); overflow: hidden; }
.capture__meter span { display: block; height: 100%; background: var(--rot); transform: scaleX(0); transform-origin: center; transition: transform .6s var(--ease); }
.capture.is-valid .capture__meter span { transform: scaleX(1); }
.capture__hint { font-size: var(--step--1); color: var(--ink-2); }
.hero .capture__hint, .hero .capture__msg { text-align: center; }
.capture__hint a { color: var(--ink); }
.capture__msg { font-size: var(--step--1); min-height: 1.4em; color: var(--err); }
.capture__done { display: none; gap: 10px; padding: 22px 24px; background: var(--paper-2); border-top: 2px solid var(--rot); }
.capture__done strong { font-family: var(--f-display); font-size: var(--step-1); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.capture__done strong svg { width: 26px; height: 26px; color: var(--rot); flex: none; }
.capture__done p { color: var(--ink-2); font-size: .98rem; }
.capture__done .demo { font-size: var(--step--1); padding: 10px 12px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.capture.is-done .capture__field, .capture.is-done .capture__meter, .capture.is-done .capture__hint, .capture.is-done .capture__msg { display: none; }
.capture.is-done .capture__done { display: grid; }
@media (max-width: 520px) {
  .capture__field { flex-direction: column; }
  .capture .btn { border-radius: 0 0 2px 2px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 20px; user-select: none; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__item { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: var(--step-2); white-space: nowrap; }
.marquee__sep { width: 12px; height: 12px; color: var(--rot); flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(84px, 11vw, 150px); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head p { color: var(--ink-2); max-width: 46ch; justify-self: end; }
@media (max-width: 820px) { .section__head { grid-template-columns: 1fr; } .section__head p { justify-self: start; } }

/* Leistungen */
.svc-list { border-top: 1px solid var(--ink); }
.svc { border-bottom: 1px solid var(--line); }
.svc__head { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 20px; align-items: center; padding: 30px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.svc__head::before { content: ""; width: 10px; height: 10px; background: var(--rot); transform: rotate(45deg) scale(0); transition: transform .5s var(--ease); justify-self: center; }
.svc__title { font-family: var(--f-display); font-weight: 500; font-size: var(--step-2); line-height: 1.1; transition: transform .5s var(--ease), color .3s; }
.svc__tag { color: var(--ink-2); font-size: .97rem; }
.svc__icon { width: 40px; height: 40px; position: relative; justify-self: end; }
.svc__icon::before, .svc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; margin: -.75px 0 0 -9px; background: var(--ink); transition: transform .5s var(--ease), background .3s; }
.svc__icon::after { transform: rotate(90deg); }
.svc__head:hover::before, .svc[data-open="true"] .svc__head::before { transform: rotate(45deg) scale(1); }
.svc__head:hover .svc__title { color: var(--rot); }
.svc[data-open="true"] .svc__icon::after { transform: rotate(0deg); }
.svc[data-open="true"] .svc__icon::before, .svc[data-open="true"] .svc__icon::after { background: var(--rot); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc[data-open="true"] .svc__panel { grid-template-rows: 1fr; }
.svc__panel > div { overflow: hidden; }
.svc__body { display: grid; grid-template-columns: 22px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 20px; padding: 0 0 34px; }
.svc__body > :first-child { grid-column: 2; }
.svc__body p { color: var(--ink-2); max-width: 44ch; }
.svc__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc__body li { padding-left: 20px; position: relative; font-family: var(--f-display); font-style: italic; font-size: 1.08rem; }
.svc__body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--rot); transform: rotate(45deg); }
@media (max-width: 720px) {
  .svc__head { grid-template-columns: minmax(0, 1fr) 40px; padding: 24px 0; }
  .svc__head::before, .svc__tag { display: none; }
  .svc__body { grid-template-columns: 1fr; }
  .svc__body > :first-child { grid-column: auto; }
}

/* Ablauf — heraldic red band */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band h2 { color: var(--band-ink); }
.band .section__head p { color: var(--band-ink-2); }
.band__crest { position: absolute; right: -8%; top: 50%; width: min(720px, 70vw); height: auto; transform: translateY(-50%); fill: rgba(255, 255, 255, .06); pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .35); position: relative; }
.step { min-width: 0; display: grid; gap: 14px; align-content: start; padding: 28px 22px 0 0; border-right: 1px solid rgba(255, 255, 255, .18); }
.step + .step { padding-left: 22px; }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); line-height: 1; display: block; }
.step h3 { font-size: var(--step-1); line-height: 1.2; color: #fff; margin-bottom: 8px; }
.step p { color: var(--band-ink-2); font-size: .97rem; }
.step:not(.step--you) .step__n { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .75); }
.band__note { margin-top: 44px; color: var(--band-ink-2); font-size: var(--step--1); position: relative; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { grid-template-columns: 72px minmax(0, 1fr); padding: 22px 0; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .step__n { font-size: var(--step-2); }
}

/* Statement */
.statement p { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: var(--step-3); line-height: 1.15; max-width: 24ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.statement .word { display: inline-block; }

/* Über uns */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__text { display: grid; gap: 20px; color: var(--ink-2); max-width: 54ch; }
.about__text h2 { color: var(--ink); margin-bottom: 8px; }
.about__text p:nth-of-type(1) { color: var(--ink); font-family: var(--f-display); font-size: var(--step-1); line-height: 1.45; }
.tenets { margin: 0; display: grid; gap: 0; }
.tenets > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.tenets > div:first-child { border-top: 2px solid var(--rot); }
.tenets dt { font-family: var(--f-display); font-size: var(--step-1); font-weight: 500; line-height: 1.2; }
.tenets dd { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .tenets > div { grid-template-columns: 1fr; gap: 6px; } }

/* Final CTA */
.cta { position: relative; overflow: hidden; background: var(--paper-2); }
.cta__inner { position: relative; display: grid; gap: 26px; justify-items: start; max-width: 720px; }
.cta h2 { font-size: var(--step-4); }
.cta__crest { position: absolute; right: -4%; top: 50%; width: min(520px, 50vw); height: auto; transform: translateY(-50%); pointer-events: none; overflow: visible; }
.cta__lines path { fill: none; stroke: var(--rot); stroke-width: 1.2; opacity: .45; }
@media (max-width: 820px) { .cta__crest { opacity: .3; right: -30%; width: 90vw; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--ink-2); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand svg { width: 20px; height: 23px; fill: var(--rot); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
