/* YOUR OCEAN typography
 * One family, one scale, one role per component. Layout/colour stay in the
 * component sheets. Load this file last on every page, including legal pages.
 * Fluid sizes use rem + viewport units and respect the reader's font settings.
 */
:root {
  --yo-font: "inter", "inter Fallback", "Segoe UI", Arial, sans-serif;
  --yo-type-h1: clamp(2.5rem, .25rem + 5vw, 4rem);
  --yo-type-h2: clamp(2rem, .875rem + 2.5vw, 2.75rem);
  --yo-type-h3: clamp(1.375rem, 1rem + .833333vw, 1.625rem);
  --yo-type-h4: 1.25rem;
  --yo-type-lead: clamp(1.125rem, .9375rem + .390625vw, 1.25rem);
  --yo-type-body: clamp(1rem, .8125rem + .390625vw, 1.125rem);
  --yo-type-ui: .875rem;
  --yo-type-caption: .875rem;
  --yo-leading-heading: 1.16;
  --yo-leading-title: 1.3;
  --yo-leading-body: 1.7;
  --yo-leading-small: 1.5;
  --yo-measure: 65ch;
  --yo-measure-lead: 58ch;
}

body:has(.yo3), .yo3, .yo3 .check-tool {
  font-family: var(--yo-font);
  font-size: var(--yo-type-body);
  font-weight: 400;
  line-height: var(--yo-leading-body);
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.yo3 :where(button, input, textarea, select) { font-family: inherit; }
.yo3 :where(input, textarea, select) {
  font-size: max(1rem, var(--yo-type-body));
  font-weight: 400;
  line-height: var(--yo-leading-small);
}
.yo3 :where(h1, h2, h3, h4, h5, h6),
.yo3 :where(.yo3-h1, .yo3-h2, .yo3-h3) {
  font-family: var(--yo-font);
  font-weight: 500;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
  letter-spacing: -.025em;
  line-height: var(--yo-leading-heading);
}
.yo3 h1, .yo3 .yo3-h1 { font-size: var(--yo-type-h1); }
.yo3 h2, .yo3 .yo3-h2 { font-size: var(--yo-type-h2); }
.yo3 h3, .yo3 .yo3-h3 {
  font-size: var(--yo-type-h3);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: var(--yo-leading-title);
}
.yo3 :where(h4, h5, h6) {
  font-size: var(--yo-type-h4);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: var(--yo-leading-title);
}
.yo3 p { text-wrap: pretty; hyphens: auto; }

/* Reading text: the same size across introduction, services, shop and cards. */
.yo3 :where(.yo3-text, .yo3-klein, .mp-list li, .yo3-ueberuns-einordnung,
  .yo3-ueberuns-fliess, .yo3-wert p, .yo3-expertise-grid p,
  .yo3-shop-aftercare > p, .yo3-shop-care-grid p,
  .yo3-produkt div > p:not(.yo3-produkt-kategorie), .yo3-distributor p,
  .mp-story p, .mp-service p, .mp-faq p, .mp-story-copy p,
  .yo3-legal-content, .yo3-neben, .noscript-note) {
  font-size: var(--yo-type-body);
  font-weight: 400;
  line-height: var(--yo-leading-body);
  letter-spacing: normal;
}
.yo3 :where(.yo3-text, .yo3-ueberuns-fliess, .mp-story-copy p,
  .mp-service-layout p, .mp-faq details p) { max-width: var(--yo-measure); }

/* Lead = subtitle/section introduction; never an ad-hoc component size. */
.yo3 :where(.mp-lead, .mp-page-hero > div > p:not(.yo3-augenbraue-klein),
  .mp-hero-subline, .yo3-hero-text, .yo3-shop-intro,
  .yo3-vertrauen-raster > div > .yo3-text, .mp-projects > div > .yo3-text,
  .yo3-ablauf-video .yo3-kopf .yo3-text) {
  font-size: var(--yo-type-lead);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  max-width: var(--yo-measure-lead);
}
.yo3 .mp-hero-subline { margin: 0; }
.yo3 .mp-page-hero h1 { max-width: 24ch; margin-block: 1.5rem; }
.yo3 .yo3-hero-pool .yo3-h1 { max-width: 24ch; }
.yo3 .yo3-hero-pool .yo3-hero-text { max-width: var(--yo-measure-lead); }

/* Small uppercase labels are a consistent brand accent. */
.yo3 :where(.yo3-augenbraue-klein, .yo3-hero-eyebrow, .yo3-shop-eyebrow,
  .yo3-wert-nr, .yo3-produkt-kategorie, .yo3-shop-care-tag,
  .yo3-shop-feature-top > span, .yo3-partner-purelia > span,
  .yo3-zaehler-etikett, .yo3-platzhalter-marke, .yo3-schritt-etikett,
  .yo3-fuss-titel, .yo3-check-huelle-titel, .yo3-prozess-kopf) {
  font-size: var(--yo-type-ui);
  font-weight: 600;
  line-height: var(--yo-leading-small);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.yo3 .yo3-motto {
  font-size: var(--yo-type-ui);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .07em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: .4rem .75rem;
}
.yo3 .yo3-motto i { font-weight: 400; }
.yo3 .yo3-shop-feature-top { flex-wrap: wrap; }
.yo3 .yo3-shop-model strong {
  font-size: var(--yo-type-h4);
  font-weight: 600;
  line-height: var(--yo-leading-title);
  letter-spacing: -.01em;
}
.yo3 :where(.yo3-build-caption, .yo3-distributor strong,
  .yo3-shop-feature-bottom strong, .yo3-licht-titel, .mp-faq summary) {
  font-size: var(--yo-type-h4);
  font-weight: 500;
  line-height: var(--yo-leading-title);
  letter-spacing: -.01em;
}
.yo3 .yo3-build-chapter strong {
  font-size: var(--yo-type-body);
  font-weight: 600;
  line-height: var(--yo-leading-small);
}
.yo3 :where(.yo3-zaehler-zahl, .yo3-schritt-nr) {
  font-size: var(--yo-type-h2);
  font-weight: 500;
  line-height: var(--yo-leading-heading);
}

/* UI and secondary text have a 14px floor at the default browser setting. */
.yo3 :where(.yo3-knopf, .yo3-nav-punkt, .yo3-menuetaste,
  .yo3-kachel-mehr, .yo3-licht-taste, .yo3-build-play, .film-control,
  .yo3-reel-verweis, .yo3-shop-categories a, .yo3-shop-model-link,
  .yo3-shop-care-link, .yo3-expertise-links a, .yo3-distributor a,
  .yo3-produkt .yo3-link, .yo3-build-download, .yo3-aseko-hersteller,
  .mp-inline-links, .mp-jumps a, .yo3-legal-header nav > a,
  .yo3-legal-main > .yo3-link, .check-tool .button) {
  font-size: var(--yo-type-ui);
  font-weight: 600;
  line-height: var(--yo-leading-small);
  letter-spacing: .01em;
  text-transform: none;
}
.yo3 .yo3-nav-schmal .yo3-nav-punkt { font-size: var(--yo-type-body); }
.yo3 .yo3-knopf { padding-block: .75rem; text-align: center; }
.yo3 .yo3-kachel-mehr { min-height: 2.75em; }
.yo3 .yo3-shop-header { flex-shrink: 0; }
.yo3 .yo3-shop-category-nr { font-size: var(--yo-type-caption); }
.yo3 :where(.mp-caption, .mp-photo figcaption, .yo3-shop-advice,
  .yo3-shop-proof li, .yo3-shop-model > span:first-of-type,
  .yo3-shop-feature-bottom > span, .yo3-build-figure .yo3-klein,
  .yo3-build-error, .yo3-build-chapter small, .yo3-build-time,
  .yo3-stimme-datum, .yo3-beleg-stand, .yo3-fuss-copyright,
  .yo3-fuss-seo, .yo3-prozess-schema) {
  font-size: var(--yo-type-caption);
  font-weight: 400;
  line-height: var(--yo-leading-small);
  letter-spacing: normal;
}
.yo3 :where(.yo3-build-nr, .yo3-beleg-schnitt) {
  font-size: var(--yo-type-h4);
  font-weight: 500;
  line-height: var(--yo-leading-title);
  font-variant-numeric: tabular-nums;
}
.yo3 :where(.yo3-fuss-link, .yo3-fuss-zeile, .yo3-legal-footer,
  .yo3-beleg, .yo3-stimme-zitat, .yo3-reels-profil, .yo3-reel-titel) {
  font-size: var(--yo-type-body);
  font-weight: 400;
  line-height: var(--yo-leading-body);
}
.yo3 .yo3-stimme-name { font-size: var(--yo-type-body); font-weight: 600; }
.yo3 .yo3-monogramm { font-size: var(--yo-type-ui); font-weight: 500; line-height: 1; }

/* Project check: override the inherited legacy form styles, including steps
 * created by site.js after the first render. No serif fallback or tiny labels.
 */
.yo3 .check-tool :is(legend, .contact-step h3, .check-result h3) {
  font-family: var(--yo-font);
  font-size: var(--yo-type-h3);
  font-weight: 600;
  line-height: var(--yo-leading-title);
  text-transform: none;
  letter-spacing: -.015em;
}
.yo3 .check-tool .choice-surface strong {
  font-size: var(--yo-type-body);
  font-weight: 600;
  line-height: var(--yo-leading-small);
  letter-spacing: normal;
  text-transform: none;
}
.yo3 .check-tool :is(.legend-small, .field-intro, .choice-surface small,
  .field-label, .field-error, .progress-copy, .consent-row,
  .privacy-note, .check-summary > div) {
  font-family: var(--yo-font);
  font-size: var(--yo-type-ui);
  line-height: var(--yo-leading-small);
  letter-spacing: normal;
  text-transform: none;
}
.yo3 .check-tool :is(.legend-small, .field-label, .progress-copy) { font-weight: 600; }
.yo3 .check-tool :is(.field-intro, .choice-surface small, .consent-row, .privacy-note) { font-weight: 400; }
.yo3 .check-tool .privacy-note svg { flex-shrink: 0; }
.yo3 .check-tool .check-controls { flex-wrap: wrap; }
.yo3 :where(.yo3-check-huelle-zu, .yo3-kontaktfeld-zu) {
  font-size: 1.5rem;
  line-height: 1;
  min-width: 1.5em;
  min-height: 1.5em;
}

/* Allow larger type to reflow rather than clip inside fixed-height cards. */
.yo3 .yo3-stimmen .yo3-stimme { height: auto; min-height: 20rem; }
.yo3 .yo3-stimme-zitat {
  -webkit-line-clamp: 6;
  line-clamp: 6;
}
.yo3 .yo3-stimme-kopf { align-items: flex-start; }
.yo3 .yo3-stimme-kopf > div { min-width: 0; overflow-wrap: anywhere; }
.yo3 .yo3-hero-pool { height: auto; min-height: clamp(42rem, calc(100svh - 6rem), 60rem); }
.yo3 .yo3-hero-pool .yo3-hero-inhalt { padding-block: 20rem 4rem; }
.yo3 .yo3-legal-content { hyphens: auto; }
.yo3 .yo3-legal-header > div { flex-wrap: wrap; }
.yo3 .yo3-kachel-unten { gap: 1rem; }
.yo3 .mp-gallery-compact .yo3-kachel { min-height: 14.375rem; }

@media (max-width: 68rem) {
  /* Switch to the existing menu before readable navigation runs out of room. */
  .yo3 .yo3-nav-breit { display: none; }
  .yo3 .yo3-menuetaste { display: inline-flex; align-items: center; }
  .yo3 .yo3-kopfzeile-innen { gap: .75rem; }
  .yo3 .yo3-marke { margin-right: auto; }
  .yo3 .yo3-nav-schmal {
    position: absolute;
    top: var(--yo3-kopf-hoehe);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--yo3-kopf-hoehe));
    overflow-y: auto;
    background: var(--yo3-buehne);
    flex-direction: column;
    gap: .25rem;
    padding: .75rem 1.5rem 1.25rem;
  }
  .yo3 .yo3-nav-schmal[data-offen="ja"] { display: flex; }
  .yo3 .yo3-nav-schmal .yo3-nav-punkt {
    min-height: 3rem;
    display: flex;
    align-items: center;
  }
}
@media (max-width: 860px) {
  .yo3 { --yo3-kopf-hoehe: max(72px, 4.5rem); }
  .yo3 .yo3-hero-pool { min-height: 0; }
  .yo3 .yo3-hero-pool .yo3-hero-inhalt { padding-block: 1.5rem 3rem; }
  .yo3 .yo3-motto { gap: .25rem .5rem; letter-spacing: .03em; }
  .yo3 .yo3-kopfzeile-innen { min-width: 0; gap: 8px; }
  .yo3 .yo3-marke { flex-shrink: 0; }
  .yo3 .yo3-marke img { width: 84px; }
  .yo3 .yo3-shop-header {
    padding-inline: 8px;
    flex-shrink: 1;
    min-width: 0;
    white-space: normal;
  }
  .yo3 .yo3-shop-header svg, .yo3 .yo3-shop-header > span:last-child { display: none; }
  .yo3 .yo3-menuetaste { flex-shrink: 0; }
  .yo3 .yo3-stimmen .yo3-stimme { flex-basis: min(20rem, calc(100vw - 3rem)); }
  .yo3 .yo3-build-play { white-space: normal; width: max-content; max-width: calc(100% - 2rem); }
  .yo3 .yo3-build-chapter { grid-template-columns: 2rem minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .yo3 .yo3-kopfzeile-innen { gap: 6px; padding-inline: 12px; }
}
