/* AVISURA theme styles. Section classes (av-*) are set in setup/content/*.html and patterns/. */
:root {
  --av-ink: #0a0202;
  --av-text: #332222;
  --av-muted: #373737;
  --av-line: #ccc;
  --av-light: #e9e9e9;
  --av-surface: #f7f7f7;
  --av-circle: #f6f6f6;
  --av-wrap: 1152px;
  --av-gutter: 24px;
  --av-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 207.2 207.2'%3E%3Cpath d='m103.6 207.2c-4.087 0-7.4-3.313-7.4-7.4v-192.4c0-4.087 3.313-7.4 7.4-7.4s7.4 3.313 7.4 7.4v192.4c0 4.087-3.313 7.4-7.4 7.4z'/%3E%3Cpath d='m199.8 111h-192.4c-4.087 0-7.4-3.313-7.4-7.4s3.313-7.4 7.4-7.4h192.4c4.087 0 7.4 3.313 7.4 7.4s-3.313 7.4-7.4 7.4z'/%3E%3C/svg%3E");
  --av-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' transform='translate(6 6)'%3E%3Cpath d='m8.5 7.5v-7h-7'/%3E%3Cpath d='m8.5.5-8 8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.7 Jost, sans-serif; color: var(--av-text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.skip-link { position: absolute; top: 8px; left: -9999px; z-index: 1000; padding: 10px 16px; background: #000; color: #fff; text-decoration: none; }
.skip-link:focus { left: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- header ---------- */
.av-header { position: sticky; top: 0; z-index: 100; height: 90px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .06); }
.av-header__inner { position: relative; display: flex; align-items: center; height: 100%; padding: 0 5%; }
.av-logo { display: block; flex: none; width: 72px; height: 72px; background: #000; }
.av-logo img { display: block; width: 100%; height: 100%; }
.av-sitename { margin: 0 0 0 36px; font-size: 20px; line-height: 1; color: #0a0a0a; }
.av-nav { display: contents; }
.av-nav__list { position: absolute; top: 50%; left: 50%; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; transform: translate(-50%, -50%); }
.av-nav__list a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: #222; }
.av-nav__list a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.av-start .av-nav__list a.is-active { background: #000; color: #fff; text-decoration: none; }
.av-nav__aside { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.av-lang { display: flex; margin: 0; font-size: 15px; font-weight: 500; line-height: 18px; }
.av-lang a { padding: 0 6px; color: #000; text-decoration: none; }
.av-lang a + a { border-left: 1px solid #000; }
.av-lang a:hover, .av-lang a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }
.av-btn--dark { display: inline-block; padding: 14px 26px; border-radius: 4px; background: var(--av-ink); color: #fff; font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.av-btn--dark:hover { background: #333; }
.av-burger { display: none; }

/* ---------- sections ---------- */
.av-section { padding: 90px var(--av-gutter); }
.av-section > * { max-width: var(--av-wrap); margin-left: auto; margin-right: auto; }
.av-section :where(h1, h2, h3, p, ul, figure) { margin: 0; }
.av-section h1, .av-section h2 { font-family: "Plus Jakarta Sans", sans-serif; color: #000; line-height: 1; }
.av-section h1 { margin-top: 10px; font-size: clamp(50px, 4.2vw, 60px); font-weight: 700; letter-spacing: -.06em; }
.av-section h2 { margin-top: 10px; font-size: clamp(34px, 2.2vw + 26px, 46px); font-weight: 600; letter-spacing: -.04em; }
.av-eyebrow { font-size: 14px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; color: var(--av-text); }
.av-intro > h2 { max-width: 440px; }
.av-intro > h2 + p { margin-top: 28px; max-width: 400px; line-height: 1.4; }
.av-intro > .wp-block-buttons { margin-top: 50px; }
.av-intro > h2 + .wp-block-buttons { margin-top: 76px; }
.av-cols.wp-block-columns { display: grid; gap: 40px 48px; align-items: start; }

/* buttons with ↗ */
.av-btn .wp-block-button__link, .av-link a { display: inline-flex; align-items: center; gap: 12px; color: #000; text-decoration: none; }
.av-btn .wp-block-button__link { padding: 16px 30px; border-radius: 4px; background: var(--av-light); font-size: 14px; font-weight: 600; line-height: 1.3; }
.av-btn .wp-block-button__link:hover { background: #dcdcdc; color: #000; }
.av-btn .wp-block-button__link::after, .av-link a::after { content: ""; flex: none; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--av-arrow) center / contain no-repeat; mask: var(--av-arrow) center / contain no-repeat; transition: transform .3s cubic-bezier(.37, .08, .02, .93); }
.av-btn .wp-block-button__link:hover::after, .av-link a:hover::after { transform: translateX(4px); }
.av-link { margin-top: 24px; font-weight: 600; }
.av-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* plus lists */
.av-plus { margin-top: 30px; padding: 0; list-style: none; }
.av-plus li { position: relative; padding-left: 26px; font-weight: 500; line-height: 1.5; color: #0e0e0e; }
.av-plus li + li { margin-top: 7px; }
.av-plus li::before { content: ""; position: absolute; top: .55em; left: 0; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--av-plus) center / contain no-repeat; mask: var(--av-plus) center / contain no-repeat; }

/* hero */
.av-hero { padding-top: 140px; padding-bottom: 70px; }
.av-hero__cols.wp-block-columns { grid-template-columns: 5fr 6fr; align-items: center; }
.av-hero__text { max-width: 320px; padding-left: 16px; }
.av-hero__text p:not(.av-eyebrow) { margin-top: 24px; padding-left: 8px; line-height: 1.4; color: #000; }
.av-hero__text .av-plus { margin-top: 32px; }
.av-hero__media { justify-self: end; width: 100%; max-width: 590px; }
.av-hero__media img { display: block; width: 100%; }
.av-hero__img-mobile { display: none; }

/* "Sie Suchen …" */
.av-suchen__cols.wp-block-columns { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 56px 48px; } /* intro column is wider on the live site */
.av-feature h3 { margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--av-line); font: 400 28px/1.3 Jost, sans-serif; letter-spacing: 0; color: #0a0a0a; }
.av-feature p:not(.av-eyebrow) { margin-top: 30px; font-size: 15px; line-height: 1.5; color: var(--av-muted); }

/* team slider */
.av-team__cols.wp-block-columns { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px 56px; }
.av-team__intro p:not(.av-eyebrow) { color: #000; }
.av-team__slider { position: relative; }
.av-team__track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.av-team__track::-webkit-scrollbar { display: none; }
.av-card { position: relative; margin: 0; flex: 0 0 calc((100% - 64px) / 3); overflow: hidden; border: 1px solid #e6e7ef; border-radius: 14px; background: #fff; scroll-snap-align: start; }
.av-card__img { overflow: hidden; }
.av-card__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.av-card:hover .av-card__img img { transform: scale(1.08); }
.av-card__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* live site hides the names */
.av-card__role { padding: 22px 16px 26px; font-size: 15px; line-height: 1.65; text-align: center; color: #6c7187; }
.av-slider__nav button { position: absolute; top: 46%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .16); color: #000; cursor: pointer; }
.av-slider__nav button:first-child { left: -20px; }
.av-slider__nav button:last-child { right: -20px; }
@media (hover: hover) { .av-slider__nav button:hover { background: #f2f2f2; } }

/* process timeline + join steps share .av-step */
.av-process__cols.wp-block-columns { grid-template-columns: 1fr 1fr; gap: 48px 0; }
.av-process .av-intro > h2 + p, .av-offers .av-intro > h2 + p { margin-top: 52px; }
.av-process__list { position: relative; isolation: isolate; padding-left: 4px; }
.av-process__list::before { content: ""; position: absolute; z-index: -1; top: 56px; bottom: 56px; left: 60px; width: 1px; background: #d9d9d9; }
.av-step { position: relative; display: grid; grid-template-columns: 112px 1fr; column-gap: 30px; align-items: start; }
.av-step + .av-step { margin-top: 50px; }
.av-step::before { content: ""; grid-row: 1 / span 3; width: 112px; height: 112px; border-radius: 50%; background: var(--av-circle) var(--icon) center / 44px no-repeat; }
.av-step--1::before { --icon: url(../img/process-1.svg); }
.av-step--2::before { --icon: url(../img/process-2.svg); }
.av-step--3::before { --icon: url(../img/process-3.svg); }
.av-step--4::before { --icon: url(../img/process-4.svg); }
.av-step--5::before { --icon: url(../img/process-5.svg); }
.av-step__num { position: absolute; top: 0; left: 79px; width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; font-size: 13px; font-weight: 600; line-height: 32px; text-align: center; }
.av-step h3 { grid-column: 2; margin-top: 12px; font: 600 22px/1.2 Jost, sans-serif; letter-spacing: 0; color: #000; }
.av-step h3 + p { grid-column: 2; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--av-muted); }

/* offer */
.av-offers__cols.wp-block-columns { grid-template-columns: repeat(3, 1fr); gap: 48px 14px; }
.av-offer { max-width: 320px; padding-left: 14px; }
.av-offer h3 { display: inline-block; padding-bottom: 16px; border-bottom: 1px solid var(--av-line); font: 400 28px/1.2 Jost, sans-serif; letter-spacing: 0; color: #0a0a0a; }
.av-offer p { margin-top: 30px; font-size: 15px; line-height: 1.5; color: var(--av-muted); }
.av-offer .av-plus { margin-top: 38px; }
.av-offer .av-plus li { font-size: 15px; font-weight: 600; line-height: 1.4; }
.av-offer .av-plus li + li { margin-top: 10px; }

/* contact */
.av-contact__cols.wp-block-columns { grid-template-columns: 44fr 56fr; gap: 48px 0; }
.av-contact__lead { margin-top: 28px; max-width: 360px; font-size: 21px; line-height: 1.15; }
.av-contact__line { font-size: 28px; font-weight: 600; line-height: 1.3; color: #000; }
.av-contact__lead + .av-contact__line { margin-top: 104px; }
.av-contact__line + .av-contact__line { margin-top: 12px; }
.av-contact__line a { text-decoration: none; }
.av-contact__line a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* contact form (markup from mu-plugins/avisura-contact-form.php) */
.av-form { max-width: 575px; }
.av-form .av-form__field, .av-form__checks { min-width: 0; margin: 0 0 36px; padding: 0; border: 0; }
.av-form__label { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 700; line-height: 1.2; color: #262626; }
.av-form__required { margin-left: 4px; color: #d63638; }
.av-form__input { display: block; width: 100%; padding: 0 14px; border: 0; border-bottom: 1px solid #dedede; border-radius: 0; background: #fff; font: inherit; font-size: 16px; line-height: 30px; color: rgba(0, 0, 0, .8); }
.av-form__input:focus { outline: none; border-bottom-color: #000; box-shadow: 0 1px 0 #000; }
textarea.av-form__input { min-height: 210px; line-height: 1.5; resize: vertical; }
.av-form__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.av-form__checks legend { padding: 0; margin-bottom: 12px; }
.av-form__check { position: relative; display: block; padding-left: 29px; font-size: 16px; line-height: 1.35; color: #262626; cursor: pointer; }
.av-form__check input { position: absolute; top: 2px; left: 0; width: 17px; height: 17px; margin: 0; accent-color: #000; }
.av-form__checks:has(input[name="privacy"]) { display: block; }
.av-form__checks:has(input[name="privacy"]) legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* live site shows only the consent line */
.av-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.av-form__submit { margin-top: 40px; padding: 0 32px; height: 40px; border: 0; border-radius: 0; background: #000; color: #fff; font-size: 16px; font-weight: 500; line-height: 40px; cursor: pointer; }
.av-form__submit:hover { background: #333; }
.av-form__notice { margin: 0 0 28px; padding: 12px 16px; border-left: 3px solid #000; background: var(--av-surface); }
.av-form__notice--error { border-color: #d63638; }

/* join */
.av-join { padding-top: 110px; padding-bottom: 90px; background: var(--av-surface); }
.av-join__cols.wp-block-columns { grid-template-columns: 55fr 45fr; gap: 40px 0; }
.av-join .av-intro h2 { max-width: 420px; }
.av-join__cols p:not(.av-eyebrow) { line-height: 1.4; color: #000; }
.av-join__steps { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 16px; margin-top: 100px; }
.av-join__steps::before { content: ""; position: absolute; z-index: -1; top: 56px; right: 12.5%; left: 12.5%; height: 1px; background: #cfcfcf; }
.av-join__steps .av-step { display: flex; flex-direction: column; align-items: center; margin: 0; text-align: center; }
.av-join__steps .av-step::before { background-color: #fff; }
.av-join__steps .av-step--1::before { --icon: url(../img/process-2.svg); }
.av-join__steps .av-step--2::before { --icon: url(../img/join-2.svg); }
.av-join__steps .av-step--3::before { --icon: url(../img/join-3.svg); }
.av-join__steps .av-step--4::before { --icon: url(../img/join-4.svg); }
.av-join__steps .av-step__num { left: calc(50% + 23px); }
.av-join__steps .av-step h3 { max-width: 260px; margin-top: 44px; font-size: 20px; }

/* footer */
.av-footer { padding: 44px var(--av-gutter) 40px; text-align: center; }
.av-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; }
.av-footer__nav a, .av-footer__copy { font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: #353535; text-decoration: none; }
.av-footer__nav a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.av-footer__copy { margin: 28px 0 0; }
.av-totop { position: fixed; right: 36px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: #efefef; color: #000; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.av-totop.is-visible { opacity: 1; visibility: visible; }
.av-totop:hover { background: #e0e0e0; }

/* legal pages + 404 (templates/page*.html) */
.av-page__inner > * { max-width: 820px; }
.av-page h1 { margin: 10px auto 40px; font-size: clamp(34px, 2.2vw + 26px, 46px); line-height: 1.1; }
.av-page h2 { margin-top: 48px; font-size: 26px; line-height: 1.2; }
.av-page h3 { margin-top: 32px; font: 600 20px/1.3 Jost, sans-serif; letter-spacing: 0; color: #000; }
.av-page :is(h2, h3) + p, .av-page p + p, .av-page p + ul, .av-page ul + p { margin-top: 1em; }
.av-page p + .wp-block-buttons { margin-top: 32px; }

/* scroll-in effects, timings from the live site (Elementor fadeIn/fadeInUp, Qi Addons letter/word reveals, process steps).
   Classes are set by theme.js on the start pages only; without JS nothing is hidden. */
.av-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.av-w { display: inline-block; white-space: nowrap; }
.av-l { display: inline-block; }
.av-anim--letters .av-l { opacity: 0; transition: opacity 1s ease-out; }
.av-anim--words .av-w { opacity: 0; transform: translateX(50px); transition: opacity .25s, transform .45s cubic-bezier(.26, -.14, 0, 1.01); }
.av-anim--fade, .av-anim--up, .av-anim--cards > .av-card { opacity: 0; transition: opacity 2s, transform 2s; }
.av-anim--up { transform: translateY(100%); transition-delay: .1s; }
.av-anim--steps > .av-step { opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .35s; }
.av-join__steps.av-anim--steps > .av-step { transform: translateY(10px); }
.av-anim--steps::before { transform: scaleY(0); transform-origin: top; transition: transform .8s; }
.av-join__steps.av-anim--steps::before { transform: scaleX(0); transform-origin: left; transition-duration: 1s; }
.av-in:is(.av-anim--fade, .av-anim--up), .av-anim.av-in :is(.av-l, .av-w), .av-anim--steps > .av-step.av-in, .av-anim--cards > .av-card.av-in, .av-anim--steps.av-in::before { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .av-header { height: 56px; }
  .av-header__inner { padding: 0 20px 0 12px; }
  .av-burger { display: inline-flex; align-items: center; justify-content: center; order: -1; width: 40px; height: 40px; margin-right: 4px; padding: 0; border: 0; background: none; color: #000; cursor: pointer; }
  .av-logo { width: 44px; height: 44px; }
  .av-sitename { margin-left: auto; font-size: 18px; }
  .av-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: flex-start; gap: 24px; padding: 20px 20px 28px; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .08); }
  .av-nav.is-open { display: flex; }
  .av-nav__list { position: static; flex-direction: column; gap: 4px; transform: none; }
  .av-nav__list a { display: inline-block; font-size: 14px; }
  .av-nav__aside { flex-direction: column; align-items: flex-start; gap: 20px; margin: 0 0 0 14px; }

  .av-section { padding: 72px 20px; }
  .av-hero { padding-top: 90px; padding-bottom: 40px; }
  .av-hero__cols.wp-block-columns, .av-team__cols.wp-block-columns, .av-process__cols.wp-block-columns, .av-contact__cols.wp-block-columns, .av-join__cols.wp-block-columns { grid-template-columns: 1fr; }
  .av-hero__text { max-width: none; padding-left: 26px; }
  .av-hero__media { justify-self: stretch; max-width: none; margin-top: 56px; }
  .av-hero__img-desktop { display: none; }
  .av-hero__img-mobile { display: block; }
  .av-suchen__cols.wp-block-columns, .av-offers__cols.wp-block-columns { grid-template-columns: 1fr 1fr; }
  .av-suchen__cols > .av-intro, .av-offers__cols > .av-intro { grid-column: 1 / -1; }
  .av-intro > h2 + .wp-block-buttons { margin-top: 40px; }
  .av-card { flex-basis: calc(50% - 16px); }
  .av-contact__lead + .av-contact__line { margin-top: 56px; }
  .av-join { padding-top: 80px; }
  .av-join__steps { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .av-join__steps::before { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 599px) {
  .av-suchen__cols.wp-block-columns, .av-offers__cols.wp-block-columns, .av-join__steps { grid-template-columns: 1fr; }
  .av-feature h3 { font-size: 26px; }
  .av-offer { max-width: none; padding-left: 0; }
  .av-card { flex-basis: 84%; }
  .av-team__slider { padding-bottom: 68px; } /* room for the buttons, so adding them causes no layout shift */
  .av-slider__nav { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 16px; }
  .av-slider__nav button { position: static; width: 44px; height: 44px; margin: 0; }
  .av-step { grid-template-columns: 80px 1fr; }
  .av-step::before { width: 80px; height: 80px; background-size: 36px; }
  .av-step__num { top: -2px; left: 52px; width: 28px; height: 28px; font-size: 12px; line-height: 28px; }
  .av-step h3 { margin-top: 4px; font-size: 20px; }
  .av-process__list::before { left: 44px; }
  .av-form__checks { grid-template-columns: 1fr; }
  .av-join__steps { gap: 56px; }
  .av-join__steps .av-step::before { width: 96px; height: 96px; }
  .av-join__steps .av-step__num { left: calc(50% + 16px); }
  .av-join__steps .av-step h3 { margin-top: 28px; }
  .av-footer__nav { flex-direction: column; gap: 14px; }
  .av-totop { right: 16px; }
}
