/* Hallmark: custom / VEA Swiss / gezielter Feinschliff der freigegebenen Angebotsseiten. */
/* Kritik: Farbvererbung auf hellen Flächen korrigiert, Ablauf als bedienbare Auswahl verfeinert. */
:root {
  --rf-paper: #f7f4ea;
  --rf-paper-raised: #fffdf7;
  --rf-ink: #021f1d;
  --rf-petrol: #032f2d;
  --rf-muted-light: #3f5e53;
  --rf-muted-dark: #c6d8ce;
  --rf-accent-light: #21644b;
  --rf-mint: #56f0be;
  --rf-line-light: #becdc3;
  --rf-line-dark: #55766a;
  --rf-soft: #e7eee2;
  --rf-dark-surface: #103b32;
  --rf-transparent: transparent;
  --rf-radius: 16px;
  --rf-ease: cubic-bezier(.16, 1, .3, 1);
}

/* Das Layout hat feste helle und dunkle Abschnitte. Die Betriebssystemfarbe
   darf nur die Browseroberfläche beeinflussen, nicht einzelne Farbvariablen. */
body.at-sub.vea-angebot {
  --va-bg: var(--rf-paper);
  --va-card: var(--rf-paper-raised);
  --va-soft: var(--rf-soft);
  --va-ink: var(--rf-ink);
  --va-muted: var(--rf-muted-light);
  --va-line: var(--rf-line-light);
  --va-accent: var(--rf-accent-light);
}
body.at-sub.vea-wakeparks {
  --wp-bg: var(--rf-paper);
  --wp-surface: var(--rf-paper-raised);
  --wp-soft: var(--rf-soft);
  --wp-ink: var(--rf-ink);
  --wp-muted: var(--rf-muted-light);
  --wp-border: var(--rf-line-light);
  --wp-accent-text: var(--rf-accent-light);
}
body.at-sub {
  --rf-surface: var(--rf-paper);
  --rf-text: var(--rf-ink);
  --rf-secondary: var(--rf-muted-light);
  --rf-accent: var(--rf-accent-light);
  --rf-rule: var(--rf-line-light);
  --rf-selected: var(--rf-ink);
  --rf-selected-text: var(--rf-paper);
  --rf-focus: var(--rf-accent-light);
  --rf-panel: var(--rf-soft);
  overflow-x: clip;
}
.at-sub :is(.va-dark, .wp-dark, .sub-hero, .gw-hero, .gw-contact-section, .gw-content-section, .at-header, .at-footer, .gw-package-signature) {
  --rf-surface: var(--rf-ink);
  --rf-text: var(--rf-paper);
  --rf-secondary: var(--rf-muted-dark);
  --rf-accent: var(--rf-mint);
  --rf-rule: var(--rf-line-dark);
  --rf-selected: var(--rf-mint);
  --rf-selected-text: var(--rf-ink);
  --rf-focus: var(--rf-mint);
  --rf-panel: var(--rf-dark-surface);
}
.at-sub :is(.va-dark, .wp-dark) {
  --va-muted: var(--rf-muted-dark);
  --va-line: var(--rf-line-dark);
  --va-accent: var(--rf-mint);
  --wp-muted: var(--rf-muted-dark);
  --wp-border: var(--rf-line-dark);
  --wp-accent-text: var(--rf-mint);
}
.at-sub :is(.va-kicker, .wp-kicker, .gw-kicker) { color: var(--rf-accent); }
.at-sub :is(.va-intro, .wp-intro) > p:last-child,
.at-sub .va-result-copy > p:not(.va-kicker),
.at-sub :is(.va-note-light, .va-motif p, .va-plan-item p, .va-file p, .va-bundle small, .va-card > p, .wp-muted, .wp-benefit p, .wp-offer-text, .wp-offer-note, .wp-fit, .wp-personal-copy p, .wp-result-item p, .wp-faq p, .gw-benefits p, .gw-demo-copy > p:not(.gw-kicker), .gw-package-note, .gw-caption, .gw-number, .gw-faq details p) {
  color: var(--rf-secondary);
}
.at-sub :is(.va-faq, .wp-faq) > p { color: var(--rf-secondary); }
.at-sub .va-chips li {
  color: var(--rf-petrol);
  background: var(--rf-soft);
  border: 1px solid var(--rf-line-light);
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 13px;
  line-height: 1.5;
}
.at-sub :is(.va-motif, .va-motifs, .va-plan-item, .va-file, .va-bundle-header, .va-faq, .wp-faq) {
  border-color: var(--rf-rule);
}
.at-sub :is(.va-motif > span, .va-icon, .wp-icon, .wp-result-item > span) { color: var(--rf-accent); }
.at-sub :is(.va-bundle, .va-preparation, .wp-guide) {
  color: var(--rf-ink);
  --rf-secondary: var(--rf-muted-light);
  --rf-accent: var(--rf-accent-light);
  --rf-rule: var(--rf-line-light);
}
.at-sub .va-bundle-header > span { color: var(--rf-accent-light); }
.at-sub .gw-package-tag { color: var(--rf-mint); }
.at-sub .gw-package-signature :is(.gw-package-intro, .gw-package-top, li) { color: var(--rf-muted-dark); }
.at-sub :is(.gw-content-copy, .gw-contact-copy) > p:not(.gw-kicker),
.at-sub .gw-contact-copy .gw-caption { color: var(--rf-muted-dark); }
.at-sub :is(.va-form, .wp-form, .gw-form) { --rf-focus: var(--rf-mint); }
.at-sub :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--rf-focus);
  outline-offset: 5px;
}
.at-sub :is(h1, h2, h3) { min-width: 0; overflow-wrap: break-word; }
.at-sub :is(.vea-photo-frame, .sub-photo > img, .sub-photo > picture img, .va-image-frame, .wp-video-shell, .wp-guide, .gw-demo-preview, .gw-hero-stage) {
  border-radius: var(--rf-radius);
}
.at-sub :is(.vea-photo-frame, .va-image-frame, .wp-video-shell) { overflow: clip; }
.at-sub .vea-photo-grid { align-items: start; }
.at-sub .vea-photo-frame img { transition: transform 420ms var(--rf-ease); }
.at-sub .va-motif { transition: transform 260ms var(--rf-ease); }
.at-sub :is(.va-service, .wp-offer) { transition: transform 260ms var(--rf-ease); }

/* Bedienbarer Ablauf: Die unveränderte Originalliste bleibt ohne JavaScript
   sichtbar. Alle Detailpanels teilen eine Rasterzelle, damit kein Textwechsel
   die folgenden Seitenbereiche verschiebt. */
.at-sub .rf-flow { margin-top: 8px; color: var(--rf-text); }
.at-sub .rf-flow-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.at-sub .rf-flow-button {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  min-height: 135px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  color: var(--rf-text);
  background: var(--rf-transparent);
  border: 1px solid var(--rf-rule);
  border-radius: 12px;
  font-family: var(--head);
  font-size: clamp(17px, 1.65vw, 23px);
  font-weight: 500;
  line-height: 1.25;
  transition: transform 260ms var(--rf-ease);
}
.at-sub .rf-flow-button > span:first-child {
  font: 500 13px/1.3 var(--body);
  color: var(--rf-secondary);
}
.at-sub .rf-flow-button[aria-pressed="true"] {
  background: var(--rf-selected);
  border-color: var(--rf-selected);
  color: var(--rf-selected-text);
}
.at-sub .rf-flow-button[aria-pressed="true"] > span:first-child { color: var(--rf-selected-text); }
.at-sub .rf-flow-panels { display: grid; min-width: 0; }
.at-sub .rf-flow-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(78px, .24fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 4vw, 65px);
  min-width: 0;
  padding: clamp(26px, 3.4vw, 48px);
  border-radius: var(--rf-radius);
  background: var(--rf-panel);
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 230ms var(--rf-ease), transform 320ms var(--rf-ease);
}
.at-sub .rf-flow-panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.at-sub .rf-flow-number {
  display: block;
  align-self: start;
  font: 500 clamp(66px, 7vw, 106px)/1 var(--head);
  color: var(--rf-accent);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.at-sub .rf-flow-content { min-width: 0; max-width: 760px; }
.at-sub .rf-flow-panel h3 {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--rf-text);
}
.at-sub .rf-flow-panel p {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.8;
  color: var(--rf-secondary);
  margin: 0;
}
.at-sub .rf-flow-panel p + p { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .at-sub .rf-flow-button:hover { transform: translateY(-4px); }
  .at-sub .vea-photo-frame:hover img { transform: scale(1.025); }
  .at-sub .va-motif:hover { transform: translateX(5px); }
}
@media (max-width: 850px) {
  .at-sub .rf-flow-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .at-sub .rf-flow-button { min-height: 112px; padding: 18px; font-size: 20px; gap: 15px; }
}
@media (max-width: 600px) {
  .at-sub .rf-flow-button { min-height: 106px; padding: 15px; font-size: 17px; }
  .at-sub .rf-flow-panel { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 20px; padding: 25px 22px; }
  .at-sub .rf-flow-number { font-size: 55px; }
  .at-sub .rf-flow-panel h3 { font-size: 26px; margin-bottom: 13px; }
  .at-sub .rf-flow-panel p { font-size: 15px; line-height: 1.75; }
}
@media (prefers-reduced-motion: reduce) {
  .at-sub :is(.rf-flow-button, .rf-flow-panel, .vea-photo-frame img, .va-motif, .va-service, .wp-offer, .btn),
  .at-sub :is(.rf-flow-button, .va-motif, .va-service, .wp-offer, .btn):hover,
  .at-sub .vea-photo-frame:hover img { transition: none; transform: none; }
}
html[data-motion="reduced"] .at-sub :is(.rf-flow-button, .rf-flow-panel, .vea-photo-frame img, .va-motif, .va-service, .wp-offer, .btn),
html[data-motion="reduced"] .at-sub :is(.rf-flow-button, .va-motif, .va-service, .wp-offer, .btn):hover,
html[data-motion="reduced"] .at-sub .vea-photo-frame:hover img { transition: none; transform: none; }
@media print {
  .at-sub .rf-flow { display: none; }
  .at-sub [data-rf-process-source][hidden] { display: grid !important; }
}
