/* Referenz Auvesta: Seite, Startseiten Bereich und Produktansichten. Baut auf site.css auf. */
.rf { --gold-ink: #21180a; }
.rf-main { overflow-x: clip; }
.rf .hdr[data-state="page"] { background-color: rgba(249, 249, 248, .94); background-image: none; box-shadow: 0 1px 0 var(--line); }

/* Einstieg: wer Auvesta ist */
.rf-hero { height: auto; min-height: 0; background: #2a1e0a; }
.rf-hero .hero__img { object-position: 50% 36%; }
.rf-hero::before, .rf-hero::after { display: none; }
.rf-hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(27, 19, 6, .76), rgba(27, 19, 6, .46) 58%, rgba(27, 19, 6, .16)), linear-gradient(rgba(27, 19, 6, .4), rgba(27, 19, 6, 0) 32%); }
.rf-hero__in { position: relative; z-index: 2; padding-top: calc(var(--hh) + clamp(48px, 7vw, 112px)); padding-bottom: clamp(168px, 17vw, 264px); }
.rf-hero__logo { width: clamp(196px, 21vw, 300px); height: auto; margin-bottom: clamp(24px, 3vw, 40px); }
.rf-hero h1 { max-width: 14em; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.rf-hero p { margin-top: clamp(12px, 1.4vw, 20px); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; color: rgba(255, 255, 255, .88); }

/* Auszeichnungen: weißes Feld über der Bildkante */
.rf-aw { position: relative; z-index: 3; margin-top: calc(-1 * clamp(112px, 12vw, 184px)); }
.rf-aw__card { list-style: none; margin: 0; padding: 0; display: grid; overflow: hidden; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(33, 24, 10, .06), 0 2px 4px rgba(33, 24, 10, .05), 0 32px 80px -24px rgba(33, 24, 10, .36); }
.aw { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 26px; text-align: center; }
.aw + .aw::before { content: ""; position: absolute; top: 0; left: 50%; width: 74%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(190, 188, 182, 0), #c9c7c1 50%, rgba(190, 188, 182, 0)); }
.aw__m { display: flex; align-items: center; justify-content: center; gap: 12px; }
.aw__l { flex: none; width: auto; height: clamp(92px, 7.4vw, 116px); fill: currentColor; }
.aw__l .st { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.aw__l.is-r { transform: scaleX(-1); }
.aw__m p { width: max-content; margin: 0; font-size: clamp(38px, 3.7vw, 56px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.aw__m small { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-align: center; color: #8a6a28; }
@supports (-webkit-background-clip: text) or (background-clip: text) { .aw__m small { color: transparent; background-image: linear-gradient(90deg, #7a5716, #b88a2c 50%, #7a5716); -webkit-background-clip: text; background-clip: text; } }
.aw__m strong { display: block; font-weight: 400; }
.aw h2 { max-width: 15em; margin-top: 14px; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.22; letter-spacing: -.012em; text-wrap: balance; }
.aw > span { margin-top: 8px; font-size: 14px; line-height: 1.3; color: var(--muted); }
@media (min-width: 900px) {
  .rf-aw__card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aw { padding: clamp(40px, 4.4vw, 68px) clamp(16px, 2vw, 32px) clamp(36px, 3.8vw, 56px); }
  .aw + .aw::before { top: 50%; left: 0; width: 1px; height: 70%; transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(190, 188, 182, 0), #c9c7c1 50%, rgba(190, 188, 182, 0)); }
}

.rw__k { display: block; margin-bottom: 12px; font-size: 15px; color: var(--muted); }

/* Wer Auvesta ist */
.rf-in { padding-top: clamp(88px, 10vw, 152px); }
.rf-in__k { display: block; margin-bottom: clamp(14px, 1.4vw, 20px); font-size: 15px; font-weight: 500; color: #8a6a28; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .rf-in__k { width: max-content; color: transparent; background-image: linear-gradient(90deg, #7a5716, #b88a2c 50%, #7a5716); -webkit-background-clip: text; background-clip: text; }
}
.rf-in h2 { max-width: 17em; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.rf-in__lead { max-width: 36em; margin-top: clamp(18px, 2vw, 28px); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.42; color: var(--muted); text-wrap: pretty; }
.rf-in__f { --h: clamp(23px, 2vw, 30px); list-style: none; display: grid; gap: 12px; margin: clamp(36px, 4.6vw, 64px) 0 0; padding: 0; }
.rf-in__f li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; column-gap: 10px; min-width: 0; padding: 20px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(33, 24, 10, .06), 0 2px 4px rgba(33, 24, 10, .04), 0 18px 44px -24px rgba(33, 24, 10, .3); }
.rf-in__f li > div { display: contents; }
.rf-in__i { display: block; width: calc(var(--h) * 1.2); height: calc(var(--h) * 1.2); }
.rf-in__i svg { display: block; width: 100%; height: 100%; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rf-in__f strong { display: block; font-weight: inherit; font-size: var(--h); line-height: 1.12; letter-spacing: -.022em; }
.rf-in__f li div > span { grid-column: 1 / -1; display: block; margin-top: 10px; font-size: 15px; line-height: 1.38; color: var(--muted); }
@media (min-width: 620px) { .rf-in__f { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1180px) {
  .rf-in__f { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .rf-in__f li { padding: 26px 24px 28px; }
  .rf-in__f li div > span { margin-top: 12px; font-size: 16px; }
}

/* Arbeitsweg */
.rw__head h2, .rf-det h2 { font-size: clamp(32px, 4vw, 60px); line-height: 1.08; letter-spacing: -.026em; }
.rw__head p { max-width: 32em; margin-top: 16px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.4; color: var(--muted); }
.rw__grid { margin-top: clamp(40px, 6vw, 88px); }
.rw__step + .rw__step { margin-top: 88px; }
.rw__txt h3 { font-size: clamp(27px, 2.8vw, 42px); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.rw__txt p { max-width: 27em; margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.rw__inline { margin-top: 28px; }
.rw__sticky { display: none; }
.rf-note { margin-top: 40px; font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) {
  .rw__grid { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .rw__inline { display: none; }
  .rw__step { min-height: 76vh; display: flex; align-items: center; }
  .rw__step + .rw__step { margin-top: 0; }
  .rw__sticky { display: block; position: sticky; top: calc(var(--hh) + 20px); }
  .rw__rail { display: flex; list-style: none; margin: 0 0 20px; padding: 0; gap: 8px; }
  .rw__rail li { flex: 1; padding-top: 10px; border-top: 2px solid var(--line); font-size: 15px; color: var(--soft); transition: color .3s ease, border-color .3s ease; }
  .rw__rail li.is-a { color: var(--ink); border-color: var(--ink); }
  .rw__stage { position: relative; aspect-ratio: 16 / 10; max-height: calc(100vh - var(--hh) - 96px); }
  .rw__scene { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.992); transition: opacity .42s ease, transform .42s ease; pointer-events: none; }
  .rw__scene.is-a { opacity: 1; transform: none; }
}

/* Stimme */
.rf-q__t { max-width: 22em; margin: 0; font-size: clamp(30px, 3.8vw, 58px); line-height: 1.14; letter-spacing: -.024em; text-wrap: balance; }
.rf-q__who { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 28px; font-size: 17px; }
.rf-q__who b { font-weight: 500; }
.rf-q__who span { color: var(--muted); }
[data-platzhalter] { color: var(--soft); }
blockquote[data-platzhalter] { padding: .55em .7em; border: 1px dashed #c9c7c0; border-radius: 8px; }

/* Abschluss */
.rf-cta { position: relative; overflow: hidden; border-radius: 8px; color: #fff; background: #6f5216; }
.rf-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rf-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 19, 6, .74), rgba(27, 19, 6, .32)); }
.rf-cta__in { position: relative; z-index: 1; padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 88px); }
.rf-cta h2 { max-width: 14em; margin-bottom: 32px; font-size: clamp(30px, 3.8vw, 56px); line-height: 1.1; letter-spacing: -.024em; text-wrap: balance; }

/* Startseite */
.rf-band { position: relative; display: grid; overflow: hidden; border-radius: 8px; color: #fff; background: #6f5216; isolation: isolate; }
.rf-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(27, 19, 6, .78), rgba(27, 19, 6, .42) 54%, rgba(27, 19, 6, .12)); }
.rf-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.rf-band:hover .rf-band__bg { transform: scale(1.025); }
.rf-band__txt { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 5vw, 72px); }
.rf-band__txt img { width: clamp(112px, 10vw, 148px); height: auto; margin-bottom: 24px; }
.rf-band__txt strong { max-width: 14em; margin-bottom: 28px; font-weight: inherit; font-size: clamp(27px, 3vw, 46px); line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
.rf-band__win { display: block; margin: 0 0 0 24px; }
.rf-band__win .ui { border-radius: 10px 0 0 0; box-shadow: 0 -12px 48px -16px rgba(33, 24, 10, .42); }
.rf-band__win .a5 { display: none; }
.rf-band__win .a4 { border-bottom: 0; }
@media (min-width: 1024px) {
  .rf-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; min-height: 600px; }
  .rf-band__txt { align-self: center; }
  .rf-band__win { margin: 56px 0 0; }
}

/* Produktansichten: nachgebaut, Beispieldaten */
.ui { --b: #0a7cf5; --t: #1a1d21; --m: #656b73; --l: #e4e6ea; --bg: #f8f9fa;
  container-type: inline-size; width: 100%; overflow: hidden; border-radius: 12px; color: var(--t); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(33, 24, 10, .07), 0 2px 4px rgba(33, 24, 10, .06), 0 28px 72px -20px rgba(33, 24, 10, .34); }
.rw__stage .ui { height: 100%; display: flex; flex-direction: column; }
.ui h4, .ui p { margin: 0; font-weight: inherit; }
.ui small { display: block; color: var(--m); font-size: .86em; }
.ui em { font-style: normal; color: var(--m); margin-left: auto; white-space: nowrap; }
.ui mark { color: inherit; background: none; }
.ui-i { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ui-i.is-f { color: #5aa9f2; }
.ui-i.is-b { color: var(--m); }
.ui-i.is-l { width: 2.4em; height: 2.4em; }
.ui-bar { flex: none; display: flex; align-items: center; justify-content: center; height: 34px; border-bottom: 1px solid var(--l); background: #fff; color: var(--m); font-size: 12px; }
.ui-in { flex: 1; min-height: 0; font-size: clamp(10.5px, 1.27cqw, 15px); line-height: 1.32; }
.ui-in > div { height: 100%; }

.ui-app { display: grid; grid-template-columns: 1fr; }
.ui-side { display: none; padding: 1.5em .8em; border-right: 1px solid var(--l); background: #fff; }
.ui-side > b { display: block; padding: 0 .6em 1.2em; font-size: 1.6em; font-weight: 600; letter-spacing: -.02em; }
.ui-nav { display: flex; align-items: center; gap: .75em; padding: .72em .8em; border-radius: .6em; color: var(--m); font-weight: 500; }
.ui-nav.is-a { color: var(--t); background: #dfeefd; }
.ui-main { min-width: 0; padding: 1.5em; }
.ui-search { display: flex; align-items: center; gap: .7em; padding: .8em 1em; border: 1px solid var(--l); border-radius: .6em; background: #fff; color: var(--m); white-space: nowrap; overflow: hidden; }
.ui-head { display: flex; align-items: center; gap: .9em; margin: 1.5em 0 1.1em; }
.ui-head h4, .ui-person h4 { font-size: 1.42em; font-weight: 600; letter-spacing: -.012em; }
.ui-chip { display: none; align-items: center; gap: .35em; margin-left: auto; padding: .35em .7em; border: 1px solid var(--l); border-radius: 99em; background: #fff; color: var(--m); font-size: .9em; white-space: nowrap; }
.ui-card { overflow: hidden; border: 1px solid var(--l); border-radius: .85em; background: #fff; }
.ui-r { display: flex; align-items: center; gap: .9em; padding: .82em 1.1em; border-bottom: 1px solid var(--l); }
.ui-r:last-child { border-bottom: 0; }
.ui-r > span { min-width: 0; }
.ui-r b, .ui-o { font-weight: 500; }
.ui-r em { color: var(--t); font-weight: 500; }
.ui-r.is-new { background: #f0f7ff; }

.ui-mail { display: grid; grid-template-columns: 1fr; }
.ui-list { display: none; border-right: 1px solid var(--l); background: #fff; }
.ui-m { display: block; padding: .9em 1em; border-bottom: 1px solid var(--l); }
.ui-m b, .ui-m span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-m b { font-weight: 600; }
.ui-m span { color: var(--m); }
.ui-m.is-a { background: #dfeefd; }
.ui-read { display: none; padding: 1.5em; background: #fff; }
.ui-read h4 { margin-bottom: 1em; font-size: 1.42em; font-weight: 600; }
.ui-read > p { margin-bottom: 1em; }
.ui-from { display: flex; align-items: center; gap: .7em; }
.ui-from i, .ui-person i { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: #eceef1; color: var(--m); font-style: normal; font-weight: 600; }
.ui-from b { display: block; font-weight: 600; }
.ui-att { display: inline-flex; align-items: center; gap: .5em; padding: .55em .8em; border: 1px solid var(--l); border-radius: .5em; }
.ui-pane { display: flex; flex-direction: column; gap: .75em; padding: 1.3em; background: var(--bg); }
.ui-pane__h { font-size: 1.16em; font-weight: 600; }
.ui-f { display: block; min-width: 0; }
.ui-f small { margin-bottom: .22em; }
.ui-f > span { display: flex; align-items: center; gap: .45em; min-height: 2.5em; padding: .4em .7em; border: 1px solid var(--l); border-radius: .5em; background: #fff; white-space: nowrap; overflow: hidden; }
.ui-c { display: flex; align-items: center; gap: .5em; white-space: nowrap; overflow: hidden; }
.ui-c .ui-i { padding: .18em; border-radius: .25em; background: var(--b); color: #fff; stroke-width: 3; }
.ui-btn { position: relative; display: block; margin-top: auto; padding: .78em; border-radius: .55em; background: var(--b); color: #fff; font-weight: 600; text-align: center; }
.ui-btn .l1 { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.ui-btn .l2 { display: inline-flex; align-items: center; gap: .35em; }
.ui-ai { display: flex; align-items: center; gap: .45em; padding: .6em .7em; border-radius: .5em; background: #e8f3ff; color: #075fbd; font-weight: 500; }

.ui-scan { display: grid; grid-template-columns: 1fr; }
.ui-paper { position: relative; overflow: hidden; display: none; padding: 1.5em 2em; background: #e9ebee; }
.ui-paper__in { height: 100%; padding: 2em 2.2em; background: #fff; box-shadow: 0 .2em 1em rgba(20, 24, 30, .13); }
.ui-paper__in > b { display: block; font-weight: 600; }
.ui-paper__in h4 { margin: 1.5em 0 .8em; font-size: 1.7em; font-weight: 600; }
.ui-paper__in > p { line-height: 1.75; }
.ui-paper mark { padding: .08em .28em; border-radius: .22em; background: rgba(10, 124, 245, .14); box-shadow: inset 0 0 0 1px rgba(10, 124, 245, .42); }
.ui-pos { display: flex; justify-content: space-between; padding: .36em 0; color: var(--m); }
.ui-pos:first-of-type { margin-top: 1em; padding-top: .7em; border-top: 1px solid var(--l); }
.ui-pos.is-sum { margin-top: .4em; padding-top: .7em; border-top: 1px solid var(--l); color: var(--t); }
.ui-total { display: flex; justify-content: space-between; align-items: center; margin-top: .6em; padding-top: .7em; border-top: 1px solid var(--l); font-weight: 600; }
.ui-beam { position: absolute; left: 0; right: 0; top: -12%; height: 12%; opacity: 0; background: linear-gradient(rgba(10, 124, 245, 0), rgba(10, 124, 245, .2)); border-bottom: 2px solid rgba(10, 124, 245, .8); }

.ui-person { display: flex; align-items: center; gap: .9em; margin-bottom: 1.2em; }
.ui-person i { width: 3.3em; height: 3.3em; background: #dfeefd; color: #075fbd; }
.ui-crm { display: grid; gap: .9em; }
.ui-crm__r { display: grid; gap: .9em; align-content: start; }
.ui-card--p { display: flex; flex-direction: column; gap: .62em; padding: 1.05em; }
.ui-t { font-size: 1.05em; font-weight: 600; }
.ui-o { display: flex; align-items: center; gap: .6em; padding: .34em .35em; border-radius: .4em; white-space: nowrap; overflow: hidden; }
.ui-o.is-new { background: #f0f7ff; }

@container (min-width: 640px) {
  .ui-app { grid-template-columns: 15.5em minmax(0, 1fr); }
  .ui-side { display: block; }
  .ui-chip { display: inline-flex; }
  .ui-mail { grid-template-columns: 15em minmax(0, 1fr) 20em; }
  .ui-list, .ui-read { display: block; }
  .ui-scan { grid-template-columns: minmax(0, 1fr) 22em; }
  .ui-paper { display: block; }
  .ui-crm { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}

/* Bewegung: Ohne Animation bleibt der fertige Zustand stehen */
@keyframes rf-in { from { opacity: 0; transform: translateY(.55em); } to { opacity: 1; transform: none; } }
@keyframes rf-l1 { 0%, 82% { opacity: 1; background: var(--b); } 100% { opacity: 0; background: var(--b); } }
@keyframes rf-l2 { 0%, 82% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rf-mark { 0%, 40% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rf-beam { 0% { top: -12%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes rf-rv { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .is-on .a1, .is-on .a2, .is-on .a3, .is-on .a4, .is-on .a5 { animation: rf-in .46s cubic-bezier(.2, .7, .2, 1) both; }
  .is-on .a1 { animation-delay: .12s; } .is-on .a2 { animation-delay: .24s; } .is-on .a3 { animation-delay: .36s; }
  .is-on .a4 { animation-delay: .48s; } .is-on .a5 { animation-delay: .6s; }
  .is-on .ui-btn .l1 { animation: rf-l1 1.9s ease both; }
  .is-on .ui-btn .l2 { animation: rf-l2 1.9s ease both; }
  .is-on .ui-beam { animation: rf-beam 1.5s ease-in-out .1s both; }
  .is-on .ui-paper mark { animation: rf-mark 1.3s ease both; }
  .is-on .m2 { animation-delay: .15s !important; } .is-on .m3 { animation-delay: .3s !important; } .is-on .m4 { animation-delay: .55s !important; }
  .rf-js .rv:not(.is-in) { opacity: 0; }
  .rf-js .rv.is-in { animation: rf-rv .7s cubic-bezier(.2, .7, .2, 1) both; }
}
