/*
  Unterseiten im bisherigen Aufbau (Leistungen, Referenzen, cayLABs, Team, cayScan, Rechtliches)
  in der neuen Gestaltung. Ergänzt cayol.css; das Markup der Seiten ist unverändert, deshalb
  richten sich die Regeln nach den vorhandenen Klassen (ref-*, feature-*, dms-*, labs-*, profile-*).
*/
.zug-page .container, .dms-hero-content, .labs-hero-content, .dms-cta-content {
  width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--rand);
}
.zug-page > section:not(.ads-consent) { padding: var(--abstand) 0 0; }
.zug-page > section:not(.dms-cta):not(.ads-consent):has(+ footer) { padding-bottom: var(--abstand); }
.zug-page section p a, .zug-page section li a { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.zug-page section p a:hover, .zug-page section li a:hover { color: var(--indigo); }

/* Knöpfe der alten Seiten */
.zug-page .btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.zug-page .btn-primary { padding: 15px 24px 15px 20px; background: var(--indigo); color: #fff; border-radius: 10px; transition: background-color .15s ease; }
.zug-page .btn-primary::before { content: ''; flex: none; width: 10px; height: 16px; background: var(--gelb); clip-path: polygon(0 12%, 22% 0, 100% 50%, 22% 100%, 0 88%, 56% 50%); }
.zug-page .btn-primary:hover { background: var(--tinte); }
.zug-page .btn-outline { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.zug-page .btn-outline:hover { color: var(--indigo); }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }

/* Einstieg der Leistungs-, Referenz- und Produktseiten */
.zug-page section.ref-hero, .zug-page section.dms-hero, .zug-page section.labs-hero, .zug-page section.profile, .zug-page section.projects-page { padding-top: clamp(40px, 6vw, 88px); }
.ref-hero > .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; max-width: 1240px !important; }
.ref-eyebrow, .dms-hero-badge, .labs-hero-tag { display: block; color: var(--petrol); font-weight: 600; font-size: 1.04rem; margin-bottom: 14px; }
.ref-hero-text { max-width: 46em; }
.ref-hero-text > p, .dms-hero-desc, .labs-hero-desc { font-size: clamp(1.15rem, 1.55vw, 1.32rem); line-height: 1.42; max-width: 34em; margin-top: 20px; text-wrap: pretty; }
.ref-client-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; font-size: 1rem; color: var(--leise); }
.ref-client-line img { height: 38px; width: auto; }
.ref-hero-visual { margin-inline: auto; }

/* Einstieg der cayLABs-Seiten */
.dms-hero-subtitle { color: var(--tinte); font-weight: 700; font-stretch: 75%; font-size: clamp(1.4rem, 1.9vw, 1.65rem); line-height: 1.1; margin-top: 12px; }
.dms-pipeline { margin-top: 40px; }
.pipeline-track { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.pipeline-line-bg, .pipeline-line-progress, .dms-scroll-indicator { display: none; }
.pipeline-station { display: flex; align-items: center; gap: 10px; }
.pipeline-station-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grund); box-shadow: 0 0 0 1px var(--linie); }
.pipeline-station-icon svg { width: 20px; height: 20px; fill: var(--indigo); }
.pipeline-station-label { color: var(--tinte); font-weight: 600; }

/* Abschnittsköpfe */
.dms-section-header, .zug-page .section-header { margin-bottom: clamp(32px, 4vw, 52px); }
.dms-section-header p, .zug-page .section-header p { font-size: clamp(1.15rem, 1.55vw, 1.32rem); line-height: 1.42; max-width: 34em; margin-top: 18px; }

/* Drei Zahlen */
.ref-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.ref-fact { border-top: 2px solid var(--tinte); padding: 14px 0 10px; }
.ref-fact-number { color: var(--tinte); font-weight: 700; font-stretch: 75%; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ref-fact-label { margin-top: 4px; }

/* Merkmalszeilen: Symbol oder Bildschirmfoto links, Text rechts */
.feature-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px 28px; align-items: start; padding: 32px 0; border-top: 1px solid var(--linie); }
.feature-row:has(.feature-visual img) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 56px; align-items: center; }
.feature-icon-lg { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #e6e9f7; color: var(--indigo); }
.feature-icon-lg.turquoise { background: #ddf0f2; color: var(--tuerkis); }
.feature-icon-lg.yellow { background: #fbf0cd; color: #9a7300; }
.feature-icon-lg svg { width: 28px; height: 28px; fill: currentColor; }
.feature-label { display: block; color: var(--petrol); font-weight: 600; font-size: 1.04rem; margin-bottom: 6px; }
.feature-text h3 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); font-stretch: 75%; line-height: 1.1; text-wrap: balance; }
.feature-text p { margin-top: 10px; max-width: 46em; }
.feature-tags, .ref-why-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-tags span, .ref-why-tags span { font-size: .95rem; line-height: 1.3; color: var(--leise); border: 1px solid var(--linie); border-radius: 6px; padding: 3px 9px; background: #fff; }
.feature-status { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin-top: 44px; padding: 24px 26px; border-radius: 12px; background: var(--grund); }
.feature-status-icon svg { width: 40px; height: 40px; fill: var(--tuerkis); }
.feature-status-text h3 { margin-bottom: 6px; }

/* Begründungen in zwei Spalten */
.ref-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
.ref-why-card { border-top: 2px solid var(--tinte); padding-top: 18px; }
.ref-why-illu { aspect-ratio: 16 / 8; border-radius: 10px; background: var(--grund); margin-bottom: 18px; display: grid; place-items: center; overflow: hidden; }
.ref-why-illu img { max-width: 78%; max-height: 82%; }
.ref-why-body h3 { margin-bottom: 8px; }

/* Bildschirmfotos */
.ref-shots { display: grid; gap: 48px; }
.ref-shots[style] { display: flex; gap: 32px; }
.ref-shot img { width: 100%; border-radius: 12px; background: var(--grund); box-shadow: 0 0 0 1px var(--linie), 0 18px 44px rgba(27, 33, 71, .13); }
.ref-shot-caption { margin-top: 14px; font-size: 1rem; line-height: 1.5; color: var(--leise); max-width: 60em; }

/* Verweise auf verwandte Seiten und Systeme */
.ref-systems { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.ref-systems > * { display: inline-block; padding: 8px 14px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; color: var(--tinte); text-decoration: none; }
.ref-systems > a { color: var(--indigo); font-weight: 600; }
.ref-systems > a:hover { border-color: var(--indigo); }

/* Karten mit Bild (Referenzen-Übersicht, „Passt dazu“) */
.zug-page .services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.ref-card { display: block; text-decoration: none; }
.ref-card-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--grund); box-shadow: 0 0 0 1px var(--linie); margin-bottom: 18px; }
.ref-card-thumb img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: top left; }
.ref-card-thumb img[src$=".svg"] { object-fit: contain; padding: 14px; }
.ref-card-thumb img[src*="cayscan"] { object-fit: contain; object-position: top center; padding: 14px 14px 0; }
.ref-card-body:first-child { border-top: 2px solid var(--tinte); padding-top: 16px; }
.project-meta, .labs-card-meta { display: block; color: var(--petrol); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.ref-card h4 { color: var(--tinte); font-size: 1.32rem; line-height: 1.22; margin: 0 0 8px; }
.ref-card p { color: var(--text); }
.ref-card:hover h4 { color: var(--indigo); }

/* cayLABs-Übersicht */
.labs-hero-title { max-width: none; }
.labs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.labs-card { display: block; text-decoration: none; border-top: 2px solid var(--tinte); padding: 22px 0 36px; }
.labs-card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grund); box-shadow: 0 0 0 1px var(--linie); margin-bottom: 16px; }
.labs-card-icon svg { width: 24px; height: 24px; fill: var(--indigo); }
.labs-card-title { font-size: clamp(1.4rem, 1.9vw, 1.65rem); font-stretch: 75%; line-height: 1.1; margin-bottom: 8px; }
.labs-card-desc { color: var(--text); }
.labs-card-footer { margin-top: 14px; }
.labs-card-arrow { display: none; }
.labs-card-cta { color: var(--petrol); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.labs-card:hover .labs-card-title, .labs-card:hover .labs-card-cta { color: var(--indigo); }

/* Abschluss mit Anfrage */
.zug-page section.dms-cta { margin-top: var(--abstand); padding: clamp(60px, 7.5vw, 104px) 0; background: var(--tinte); color: #d9deef; }
.dms-cta h2 { color: #fff; }
.dms-cta p { font-size: clamp(1.15rem, 1.55vw, 1.32rem); line-height: 1.42; max-width: 34em; margin-top: 18px; }
.dms-cta .btn-primary { margin-top: 28px; background: var(--gelb); color: var(--tinte); }
.dms-cta .btn-primary::before { background: var(--tinte); }
.dms-cta .btn-primary:hover { background: #fff; }
.dms-cta :focus-visible { outline-color: var(--gelb); }

/* Teamseiten */
.profile-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 36px 64px; align-items: start; }
.profile-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 10px; }
.profile-role { color: var(--petrol); font-weight: 600; margin: 10px 0 20px; }
.profile-content > p + p { margin-top: 14px; }
.profile-content > p { max-width: 44em; }

/* Impressum und Datenschutz */
.zug-page header.page-header { padding-top: clamp(40px, 6vw, 80px); }
.zug-page section.page-content { padding-top: clamp(24px, 3vw, 40px); }
.page-content .container > * { max-width: 46em; }
.page-content h2 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); margin: 40px 0 12px; max-width: none; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { margin: 28px 0 8px; }
.page-content p, .page-content ul { margin-bottom: 14px; }
.page-content ul { list-style: disc; padding-left: 22px; }
.page-content li { margin-bottom: 6px; }

@media (max-width: 1000px) {
  .ref-hero > .container, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-hero-visual { max-width: 560px; margin-inline: 0; }
  .zug-page .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .labs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row:has(.feature-visual img) { grid-template-columns: minmax(0, 1fr); }
  .profile-image { max-width: 320px; }
}
@media (max-width: 680px) {
  .ref-facts, .ref-why-grid, .labs-grid, .zug-page .services-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-facts { gap: 0; }
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ref-shots[style] { flex-direction: column !important; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .zug-page .btn-primary { transition: none; }
}
