/* Hallmark: VEA Swiss custom refinement, 18. November 2026. Bestehende Marke und Seitengliederung. */
/* Kritik umgesetzt: gleiche Bildgrössen, gemeinsame Textlinien, sichtbare Bedienung und ruhige Übergänge. */
/* Nutzerwunsch: freigegebene Nummerierung und Bildauswahl bleiben; das Raster wird bewusst gleichmässig. */
:root {
  --rf-radius: 18px;
  --rf-ink: #021f1d;
  --rf-paper: #f7f4ea;
  --rf-mint: #56f0be;
  --rf-secondary: #3f5e53;
  --rf-secondary-dark: #c6d8ce;
  --rf-surface-dark: #0a3932;
  --rf-rule-dark: #42675b;
  --rf-rule-light: #b7c7bb;
  --rf-surface-light: #e5ede0;
  --rf-ease: cubic-bezier(.16,1,.3,1);
  --rf-duration: 340ms;
}
html, body { overflow-x: clip; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; }
.at-home .work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 3.2vw, 48px);
}
.at-home .work-item {
  min-width: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  padding: 0 0 56px;
}
.at-home .work-item:nth-child(n) { padding-top: 0; }
.at-home .work-cover {
  min-height: 0;
  align-self: start;
  aspect-ratio: 16 / 10;
  border-radius: var(--rf-radius);
  overflow: clip;
  isolation: isolate;
}
.at-home .work-cover img { object-fit: cover; transition: transform 600ms var(--rf-ease); }
.at-home .work-cover .media-action {
  border-radius: 8px;
  min-height: 44px;
  transition: transform var(--rf-duration) var(--rf-ease);
}
.at-home .work-cover .tag { border-radius: 6px; }
.at-home .work-meta { padding-top: 20px; align-items: baseline; }
.at-home .work-item h3 { margin-top: 11px; font-size: clamp(26px, 2.35vw, 35px); letter-spacing: -.04em; }
.at-home .work-item > p { max-width: 62ch; margin-top: 14px; color: var(--rf-secondary); }
.at-home .work-demo { border: 0; }
.at-home .browser-drawing { position: absolute; left: 50%; top: 50%; width: 73%; max-width: 410px; transform: translate(-50%, -50%) rotate(-4deg) scale(.88); }
.at-home .browser-content { padding: 20px; }
.at-home .browser-content strong { font-size: clamp(28px, 3.4vw, 47px); margin: 20px 0; }
.at-home .browser-lines { margin-top: 14px; }
.at-home .browser-lines i { height: 22px; }
.at-home .browser-top { padding: 9px 12px; }
.at-home .work-filters button { border-radius: 8px; }
.at-home .work-cover:focus-visible { outline: 3px solid var(--rf-ink); outline-offset: 5px; }
.at-home .work-dialog, .at-home .dialog-image, .at-home .dialog-body video { border-radius: var(--rf-radius); }
.at-home .dialog-close, .at-home .gallery-thumbs button { border-radius: 8px; }
.at-home .hero-image, .at-home .hero-image img { border-radius: var(--rf-radius); }

/* Das Branchenbild erhält Raum; die Auswahl bleibt eine echte Schaltfläche. */
.sector-list.rf-sectors { border-top: 0; display: grid; gap: 12px; }
.rf-sector { position: relative; min-width: 0; border: 1px solid var(--rf-rule-dark); border-radius: var(--rf-radius); overflow: clip; isolation: isolate; }
.rf-sector::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--rf-surface-dark); opacity: 0; transform: scale(.985,.82); transition: transform var(--rf-duration) var(--rf-ease), opacity var(--rf-duration) var(--rf-ease); }
.rf-sector.is-active::before { opacity: 1; transform: none; }
.rf-sector h3 { margin: 0; font: inherit; }
.rf-sector-toggle {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(180px, 29%) 24px;
  gap: clamp(16px, 2.2vw, 34px);
  align-items: center;
  width: 100%; min-height: 206px; padding: 24px 26px;
  border: 0; border-radius: 0; background: transparent; color: var(--rf-paper); text-align: left;
}
.rf-sector-number { font: 13px/1.4 var(--body); color: var(--rf-mint); align-self: start; padding-top: 10px; }
.rf-sector-copy { min-width: 0; }
.rf-sector-title { display: block; font: 500 clamp(26px, 2.6vw, 40px)/1.13 var(--head); letter-spacing: -.04em; }
.rf-sector-summary { display: block; max-width: 60ch; margin-top: 14px; font: 14px/1.75 var(--body); color: var(--rf-secondary-dark); }
.rf-sector-photo { display: block; aspect-ratio: 16/9; overflow: clip; border-radius: 14px; transform: scale(.67); transform-origin: right center; transition: transform 450ms var(--rf-ease); }
.rf-sector-photo img { width: 100%; height: 100%; object-fit: cover; }
.rf-sector-symbol { display: block; width: 24px; height: 24px; position: relative; color: var(--rf-paper); }
.rf-sector-symbol::before,.rf-sector-symbol::after { content: ''; position: absolute; width: 18px; height: 2px; background: currentColor; inset: 11px 3px auto; }
.rf-sector-symbol::after { transform: rotate(90deg); transition: transform var(--rf-duration) var(--rf-ease); }
.rf-sector.is-active .rf-sector-photo { transform: none; }
.rf-sector.is-active .rf-sector-title { color: var(--rf-mint); }
.rf-sector.is-active .rf-sector-symbol::after { transform: rotate(0); }
.rf-sector-details { padding: 0 26px 26px 96px; }
.rf-sector-details a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--rf-secondary-dark); border-radius: 8px; color: var(--rf-paper); font: 500 13px/1.5 var(--body); }
.rf-sector-details a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rf-sector-details a:hover { background: var(--rf-paper); color: var(--rf-ink); }
.rf-sector-toggle:focus-visible { outline: 3px solid var(--rf-mint); outline-offset: -6px; }
.rf-sector-details a:focus-visible { outline: 3px solid var(--rf-mint); outline-offset: 4px; }
.sector-row img { border-radius: 14px; }

/* Gleiche Detailhöhe für alle Schritte, damit beim Wechsel nichts springt. */
.rf-main-process .process-panels { display: grid; align-items: stretch; }
.rf-main-process .process-panel { grid-area: 1 / 1; padding-top: 0; visibility: hidden; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 200ms ease-out, transform var(--rf-duration) var(--rf-ease); }
.rf-main-process .process-panel.is-active { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.rf-main-process .process-nav button { padding: 22px 14px; border-radius: 8px; transition: transform var(--rf-duration) var(--rf-ease); }
.rf-main-process .process-nav button[aria-pressed=true] { background: var(--rf-surface-light); transform: translateX(6px); }
.rf-main-process .process-nav button:focus-visible { outline: 3px solid var(--rf-ink); outline-offset: 3px; }
.rf-main-process .process-panel p { color: var(--rf-secondary); }
.rf-main-process .process-panel .deliverable { color: var(--rf-ink); }
.rf-main-process .process-panel > span { color: var(--rf-secondary); }

@supports not (grid-template-rows: subgrid) {
  .at-home .work-item { display: block; grid-row: auto; }
  .at-home .work-item h3 { min-height: 2.2em; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .at-home .work-cover:hover img { transform: scale(1.045); }
  .at-home .work-cover:hover .media-action { transform: translateY(-3px); }
}
@media (max-width: 1000px) {
  .rf-sector-toggle { grid-template-columns: 28px minmax(0,1fr) minmax(145px,26%) 20px; gap: 18px; padding: 22px; min-height: 190px; }
  .rf-sector-title { font-size: 29px; }
  .rf-sector-details { padding-left: 68px; }
  .rf-sector-summary { font-size: 13px; }
}
@media (max-width: 700px) {
  .at-home .work-grid { grid-template-columns: minmax(0,1fr); }
  .at-home .work-item { padding-bottom: 40px; }
  .at-home .work-cover { aspect-ratio: 16/11; }
  .at-home .work-item h3 { font-size: 29px; min-height: 0; }
  .at-home .work-meta { font-size: 11px; }
  .at-home .work-cover .media-action { font-size: 11px; padding: 10px 13px; }
  .at-home .browser-drawing { width: 72%; max-width: 340px; }
  .at-home .browser-content strong { font-size: clamp(29px, 7vw, 40px); }
  .rf-sector-toggle { grid-template-columns: 24px minmax(0,1fr) 22px; gap: 12px; padding: 20px; min-height: 120px; }
  .rf-sector-number { font-size: 11px; padding-top: 7px; }
  .rf-sector-title { font-size: clamp(23px,5.6vw,30px); }
  .rf-sector-summary { margin-top: 12px; font-size: 13px; }
  .rf-sector-symbol { align-self: start; grid-column: 3; grid-row: 1; }
  .rf-sector-photo { display: none; grid-column: 1 / -1; grid-row: 2; width: 100%; aspect-ratio: 16/10; transform: none; margin-top: 6px; }
  .rf-sector.is-active .rf-sector-photo { display: block; }
  .rf-sector-details { padding: 0 20px 20px; }
  .rf-sector-details a { display: flex; width: 100%; min-height: 48px; }
  .rf-main-process .process-nav button { padding-inline: 8px; }
  .rf-main-process .process-nav button[aria-pressed=true] { transform: none; }
  .rf-main-process .process-panels { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-sector *, .rf-sector::before, .rf-main-process *, .at-home .work-cover * { transition: none !important; animation: none !important; }
  .at-home .work-cover:hover img, .at-home .work-cover:hover .media-action { transform: none; }
}
html[data-motion=reduced] .rf-sector *, html[data-motion=reduced] .rf-sector::before, html[data-motion=reduced] .rf-main-process * { transition: none !important; animation: none !important; }
html[data-motion=reduced] .at-home .work-cover:hover img, html[data-motion=reduced] .at-home .work-cover:hover .media-action { transform: none; }
@media print {
  .rf-main-process .process-panels { display: block; }
  .rf-main-process .process-panel { visibility: visible; opacity: 1; transform: none; }
  .rf-sector-details[hidden] { display: block !important; }
}
