/* ============================================================
   INFAS — section components
   ============================================================ */

/* ---------- split (text + media) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.split.media-left { direction: rtl; }
.split.media-left > * { direction: ltr; }
.split .txt { max-width: 56ch; }
.split .txt .lead { margin-top: 22px; }
.split .txt .btn, .split .txt .link-arrow { margin-top: 32px; }

.media-tall { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 16 / 10; }
.media-square { aspect-ratio: 1 / 1; }
.media-pano { aspect-ratio: 21 / 9; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.media-left { direction: ltr; }
}

/* ---------- full-bleed figure ---------- */
.bleed { position: relative; overflow: hidden; background: var(--grey-200); }
.bleed.tall-90 { min-height: 90svh; }
.bleed .imgwrap, .bleed image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.bleed .bleed-cap {
  position: relative; z-index: 2; padding: clamp(32px,6vw,90px) var(--gutter);
  min-height: inherit; display: flex; align-items: flex-end;
  color: var(--paper);
}
.bleed::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,10,.1), rgba(10,10,10,.7)); }

/* ---------- statement ---------- */
.statement { font-size: clamp(1.7rem, 4.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch; text-wrap: balance; }
.statement .muted { color: var(--grey-500); }
.dark .statement .muted { color: var(--grey-700); }

/* ---------- FOLIEN cards (INFAS details expand) ---------- */
.folien-details {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease);
}
.folien-details.open { grid-template-rows: 1fr; }
.folien-details > .inner { overflow: hidden; }

.folien-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px;
}
.folie-card {
  background: var(--paper); padding: clamp(26px,2.6vw,38px);
  display: flex; flex-direction: column; gap: 14px; min-height: 240px;
  transition: background .4s var(--ease);
}
.folie-card:hover { background: var(--grey-100); }
.folie-card .fc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.folie-card .fc-num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--grey-500); }
.folie-card h3 { font-size: 1.35rem; line-height: 1.05; }
.folie-card p { color: var(--grey-700); font-size: 0.96rem; line-height: 1.5; }
.folie-card .fc-tag { margin-top: auto; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500); padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- ACCORDION (Fenster Tuning folien detail) ---------- */
.acc { border-top: 1px solid var(--ink); margin-top: 8px; }
.acc-row { border-bottom: 1px solid var(--line); }
.acc-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px,3vw,42px);
  padding: clamp(22px,2.6vw,38px) 0; cursor: pointer; width: 100%; background: none; border: 0; text-align: left;
  color: inherit; font-family: inherit;
}
.acc-head .a-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--grey-500); }
.acc-head .a-title { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; transition: opacity .3s; }
.acc-head .a-sign { width: 24px; height: 24px; position: relative; flex: none; }
.acc-head .a-sign::before, .acc-head .a-sign::after { content: ""; position: absolute; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.acc-head .a-sign::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.acc-head .a-sign::after { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.acc-row.open .a-sign::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.acc-row:hover .a-title { opacity: 0.55; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc-row.open .acc-body { grid-template-rows: 1fr; }
.acc-body > .inner { overflow: hidden; }
.acc-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); align-items: center;
  padding-bottom: clamp(28px,3vw,52px);
}
.acc-content .ac-txt { max-width: 52ch; }
.acc-content .ac-txt p { color: var(--grey-700); font-size: 1.02rem; line-height: 1.55; }
.acc-content ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.acc-content ul li { display: flex; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.acc-content ul li::before { content: "—"; color: var(--grey-500); font-family: var(--font-mono); }
.acc-content .ac-media { aspect-ratio: 16/11; }
@media (max-width: 760px) {
  .acc-content { grid-template-columns: 1fr; gap: 24px; }
  .acc-head { grid-template-columns: auto 1fr auto; }
}

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); margin-top: 56px; }
.member .m-photo { aspect-ratio: 3/4; background: var(--grey-200); position: relative; overflow: hidden; }
.member .m-photo image-slot { width: 100%; height: 100%; }
.member h3 { font-size: 1.5rem; margin-top: 22px; }
.member .role { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--grey-600); margin-top: 8px; }
.member p { color: var(--grey-700); font-size: 0.95rem; margin-top: 12px; }
.member .m-tel { font-family: var(--font-mono); font-size: 0.82rem; margin-top: 14px; display: inline-block; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- STEPS (Unser Angebot) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.step { background: var(--paper); padding: clamp(28px,3vw,48px); display: flex; flex-direction: column; gap: 16px; }
.step .s-num { font-size: clamp(2.6rem,5vw,4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--grey-300); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--grey-700); font-size: 0.96rem; }
.dark .steps { background: var(--grey-900); border-color: var(--grey-900); }
.dark .step { background: var(--ink); }
.dark .step .s-num { color: var(--grey-800, oklch(0.36 0.004 60)); }
.dark .step p { color: var(--grey-400); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- GALLERY (Projekte) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.gallery .g-item { position: relative; overflow: hidden; background: var(--grey-200); aspect-ratio: 4/3; }
.gallery .g-item.tall { aspect-ratio: 3/4; grid-row: span 1; }
.gallery .g-item image-slot { width: 100%; height: 100%; }
.gallery .g-item .g-cap { position: absolute; left: 0; bottom: 0; right: 0; z-index: 3; padding: 14px 16px; color: var(--paper); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; transform: translateY(8px); opacity: 0; transition: .4s var(--ease); }
.gallery .g-item::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(transparent 45%, rgba(10,10,10,.72)); opacity: 0; transition: .4s var(--ease); }
.gallery .g-item:hover::after { opacity: 1; }
.gallery .g-item:hover .g-cap { transform: none; opacity: 1; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .hidden-row { display: none; }
.gallery.expanded .hidden-row { display: contents; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- MARQUEE strip ---------- */
.marquee { display: flex; overflow: hidden; border-block: 1px solid var(--line); }
.dark .marquee { border-color: var(--grey-900); }
.marquee-group { flex: none; width: max-content; min-width: 100%; display: flex; align-items: center; justify-content: space-around; gap: clamp(16px, 4vw, 48px); animation: marq 32s linear infinite; }
.marquee:hover .marquee-group { animation-play-state: paused; }
.marquee-group span { font-size: clamp(1.2rem,2.6vw,2.2rem); font-weight: 700; letter-spacing: -0.02em; padding: 15px 0; white-space: nowrap; color: var(--grey-300); }
.marquee-group span .dot { color: var(--ink); }
.dark .marquee-group span { color: var(--grey-800, oklch(0.34 0.004 60)); }
.dark .marquee-group span .dot { color: var(--paper); }
@keyframes marq { to { transform: translateX(-100%); } }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.contact-cards { display: flex; flex-direction: column; }
.contact-card { padding: 26px 0; border-bottom: 1px solid var(--grey-900); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.contact-card:first-child { border-top: 1px solid var(--grey-900); }
.contact-card .cc-name { font-size: 1.3rem; font-weight: 700; }
.contact-card .cc-role { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-500); margin-top: 6px; }
.contact-card .cc-tel { font-family: var(--font-mono); font-size: 0.92rem; color: var(--grey-300); }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.form-row label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-500); }
.form-row input, .form-row textarea, .form-row select {
  background: transparent; border: 0; border-bottom: 1px solid var(--grey-700); color: var(--paper);
  font-family: var(--font-display); font-size: 1.05rem; padding: 10px 0; transition: border-color .3s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-bottom-color: var(--paper); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row.sel { position: relative; }
.form-row.sel select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; }
.form-row.sel::after { content: "↓"; position: absolute; right: 2px; bottom: 12px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--grey-400); pointer-events: none; }
.form-row select option { color: var(--ink); background: var(--paper); }
.form-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--grey-600); margin-top: 18px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- value list (Werte) ---------- */
.values { margin-top: 56px; border-top: 1px solid var(--line); }
.value-row { display: grid; grid-template-columns: auto 1fr 1.4fr; gap: clamp(20px,4vw,60px); padding: clamp(28px,3.4vw,48px) 0; border-bottom: 1px solid var(--line); align-items: start; transition: padding-left .4s var(--ease); }
.value-row:hover { padding-left: 14px; }
.value-row .v-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--grey-500); padding-top: 8px; }
.value-row h3 { font-size: clamp(1.5rem,2.6vw,2.2rem); }
.value-row p { color: var(--grey-700); font-size: 1rem; line-height: 1.55; padding-top: 6px; }
@media (max-width: 760px) { .value-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- brand cards (Marken) ---------- */
.brand-feature { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); min-height: 70svh; display: flex; align-items: flex-end; }
.brand-feature image-slot, .brand-feature .imgwrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.5) 45%, rgba(10,10,10,.2) 100%); }
.brand-feature .bf-inner { position: relative; z-index: 2; padding: clamp(36px,6vw,90px); max-width: 640px; }
.brand-feature .bf-kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-400); }
.brand-feature h3 { font-size: clamp(2.2rem,5vw,4rem); font-weight: 800; letter-spacing: -0.04em; margin: 18px 0; }
.brand-feature p { color: var(--grey-300); max-width: 52ch; margin-bottom: 30px; }

/* ---------- VERMITTLUNG service cards ---------- */
.verm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 56px; }
.verm-card { position: relative; overflow: hidden; background: var(--grey-200); min-height: 420px; display: flex; align-items: flex-end; color: var(--paper); }
.verm-card image-slot, .verm-card .imgwrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.verm-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.2) 45%, rgba(10,10,10,.88) 100%); transition: background .5s var(--ease); }
.verm-card:hover::after { background: linear-gradient(180deg, rgba(10,10,10,.3) 0%, rgba(10,10,10,.45) 45%, rgba(10,10,10,.92) 100%); }
.verm-card .vc-inner { position: relative; z-index: 2; padding: clamp(24px,2.6vw,34px); width: 100%; }
.verm-card .vc-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--grey-300); }
.verm-card h3 { font-size: clamp(1.5rem,2.4vw,2rem); margin: 12px 0 10px; }
.verm-card p { color: var(--grey-300); font-size: 0.95rem; line-height: 1.5; max-width: 36ch; }
.verm-card .figtag { background: color-mix(in oklch, var(--ink) 55%, transparent); color: var(--grey-300); top: 14px; bottom: auto; z-index: 2; }
@media (max-width: 600px) { .verm-card { min-height: 320px; } }
