/* matureOS: same type, palette and controls as the Computerhilfe homepage.
   Five distinct sections; standalone stylesheet keeps the family guide intact. */
.mo-page main { background: var(--white); overflow-wrap: anywhere; }
.mo-page main h1, .mo-page main h2, .mo-page main h3 { overflow-wrap: anywhere; }
.mo-benefits li > div, .mo-security-points li > div { min-width: 0; }
.mo-page main h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.25; }
.mo-page main h3 { font-size: 1.1875rem; line-height: 1.4; letter-spacing: -.015em; margin: 0 0 6px; }
.mo-page main figure { margin: 0; }
.mo-page main figcaption { font-size: 1rem; line-height: 1.6; }
.mo-page main .btn { white-space: normal; line-height: 1.4; text-align: center; }
.mo-page main .btn:hover { background: #155e83; }
.mo-section { padding: 72px 0; }
.mo-section-heading { margin-bottom: 32px; }
.mo-section-heading h2 { margin-bottom: 0; }
.mo-text-link { display: inline-block; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 600; line-height: 1.6; }
.mo-text-link:hover { color: var(--primary); }
.mo-text-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }

/* Intro and the four retained benefits */
.mo-hero { padding: 150px 0 34px; background: var(--primary); color: #e2e8f0; }
.mo-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 48px; row-gap: 24px; align-items: center; }
.mo-hero-copy { grid-column: 1; grid-row: 1; }
.mo-brand { color: #8fd0ed; font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; margin: 0 0 16px; }
.mo-hero h1 { color: var(--white); font-size: clamp(2.25rem, 3.2vw, 2.875rem); line-height: 1.18; margin-bottom: 24px; }
.mo-lead { margin: 0; font-size: 1.125rem; line-height: 1.7; }
.mo-hero-figure { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
.mo-hero-figure figcaption { color: #cbd5e1; margin-top: 14px; }
.mo-hero-actions { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.mo-light-link { color: #e2e8f0; }
.mo-light-link:hover { color: #8fd0ed; }
.mo-light-link:focus-visible, .mo-hero .btn:focus-visible { outline-color: white; }
.mo-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; padding: 28px 8px; background: var(--white); color: var(--text); border-radius: var(--radius); }
.mo-benefits li { display: flex; align-items: flex-start; gap: 14px; padding: 0 22px; }
.mo-benefits li + li { border-left: 1px solid #dce4ec; }
.mo-benefits svg { flex: 0 0 28px; width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.mo-benefits strong { display: block; color: var(--primary); font-size: 1.0625rem; margin-bottom: 6px; }
.mo-benefits p { font-size: 1rem; line-height: 1.55; margin: 0; }

/* Video: native controls, prominent red start button */
.mo-player { position: relative; border: 1px solid #cbd5e1; border-radius: var(--radius); overflow: hidden; background: var(--secondary); }
.mo-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mo-player-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; background: rgba(15, 23, 42, .06); cursor: pointer; font: inherit; color: var(--white); }
.mo-player-start svg { width: 80px; height: 80px; padding: 24px 22px 24px 26px; border-radius: 50%; background: #D62828; box-shadow: 0 4px 18px rgba(15, 23, 42, .2); }
.mo-player-start span { padding: 7px 16px; border-radius: 50px; background: var(--primary); font-size: 1rem; font-weight: 600; }
.mo-player-start:hover svg, .mo-player-start:focus-visible svg { background: #B91C1C; }
.mo-player-start:focus-visible { outline: 4px solid #D62828; outline-offset: -5px; }
.mo-player video:focus-visible { outline: 4px solid var(--accent); outline-offset: -5px; }
.mo-player-start[hidden], .mo-player-error[hidden] { display: none; }
.mo-player-error { margin: 0; padding: 14px 18px; color: var(--primary); background: var(--white); font-size: 1rem; }

/* One visual tour; the image leads, the caption explains. */
.mo-tour { background: var(--secondary); }
.mo-tour .container { max-width: 1120px; }
.mo-tabs { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin: 0 0 24px; padding: 5px; border: 1px solid #cbd5e1; border-radius: 30px; }
.mo-tabs[hidden] { display: none; }
.mo-tabs button { min-height: 48px; padding: 10px 24px; border: 0; border-radius: 24px; background: transparent; font: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--text); cursor: pointer; }
.mo-tabs button:hover { background: #e5eef4; color: var(--primary); }
.mo-tabs button[aria-selected="true"] { background: var(--accent); color: var(--white); }
.mo-tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mo-tour-panels { max-width: 1080px; }
.mo-tour-panel[hidden] { display: none; }
.mo-tour-panel + .mo-tour-panel { margin-top: 24px; }
.mo-tour-panel[role="tabpanel"] { margin-top: 0; }
.mo-tour-panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.mo-screen-link { position: relative; display: block; border: 1px solid #cbd5e1; border-radius: var(--radius); overflow: hidden; }
.mo-screen-link img { width: 100%; height: auto; }
.mo-screen-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.mo-enlarge { position: absolute; right: 14px; top: 14px; padding: 7px 14px; color: var(--white); background: var(--primary); border-radius: 24px; font-size: .9375rem; font-weight: 600; }
.mo-tour-panel figcaption { margin: 16px 0 0; max-width: 880px; font-size: 1.125rem !important; }
.mo-tour-note { max-width: 880px; margin: 16px 0 0; }

/* Security is a distinct blue section, with two optional explanations. */
.mo-security { background: #EAF3F8; }
.mo-security-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.mo-security-figure figcaption { margin-top: 12px; }
.mo-security-points { display: grid; gap: 24px; }
.mo-security-points li { display: flex; gap: 16px; align-items: flex-start; }
.mo-security-points svg { flex: 0 0 27px; width: 27px; height: 27px; color: var(--accent); margin-top: 3px; }
.mo-security-points p { margin: 0; font-size: 1.0625rem; }
.mo-security-details { margin-top: 32px; }
.mo-details { border-top: 1px solid #bccbd6; }
.mo-details details { border-bottom: 1px solid #bccbd6; }
.mo-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; min-height: 60px; padding: 18px 0; cursor: pointer; color: var(--primary); font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
.mo-details summary::-webkit-details-marker { display: none; }
.mo-details summary::after { content: '+'; flex-shrink: 0; font-size: 1.5rem; color: var(--accent); font-weight: 500; }
.mo-details details[open] summary::after { content: '−'; }
.mo-details summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mo-details details > div { max-width: 900px; padding: 0 35px 20px 0; }
.mo-details details p:last-child { margin-bottom: 0; }

/* Personal setup, practical decisions and the alternative of self-installation. */
.mo-setup-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.mo-person img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.mo-person figcaption { margin-top: 12px; }
.mo-setup-copy h2 { max-width: 720px; }
.mo-setup-copy > p { margin: 0 0 24px; }
.mo-setup-steps { list-style: none; counter-reset: setup; margin: 0; padding: 0; display: grid; gap: 18px; }
.mo-setup-steps li { counter-increment: setup; position: relative; padding-left: 44px; }
.mo-setup-steps li::before { content: counter(setup); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #eaf3f8; color: #155e83; text-align: center; line-height: 30px; font-weight: 600; }
.mo-setup-steps strong { color: var(--primary); }
.mo-setup-steps p { margin: 3px 0 0; font-size: 1.0625rem; }
.mo-cost { margin-top: 26px; padding-top: 22px; border-top: 1px solid #dce4ec; }
.mo-cost p { margin: 0; font-size: 1.0625rem; }
.mo-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 24px; }
.mo-setup-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 42px; padding-top: 32px; border-top: 1px solid #dce4ec; }
.mo-setup-bottom p { font-size: 1.0625rem; margin: 0; }
.mo-self-setup .mo-text-link { display: table; margin-top: 12px; }
.mo-questions { background: var(--secondary); }
.mo-questions-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; }

/* Image enlargement, also available through a plain link without scripting. */
#image-dialog { width: min(1500px, 95vw); max-height: 94vh; padding: 18px; border: 0; border-radius: var(--radius); background: var(--white); overflow: auto; }
#image-dialog::backdrop { background: rgba(15, 23, 42, .88); }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; }
.dialog-toolbar p { margin: 0; font-size: 1rem; }
#dialog-image { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; }

@media (min-width: 768px) and (max-width: 1320px) { .mo-hero { padding-top: 190px; } }
@media (max-width: 1100px) {
  .mo-hero-grid { gap: 24px 32px; }
  .mo-benefits { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .mo-benefits li:nth-child(3) { border-left: 0; }
  .mo-setup-grid { gap: 36px; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .mo-security-grid { gap: 30px; }
}
@media (max-width: 900px) {
  .mo-hero-grid { grid-template-columns: 1fr; }
  .mo-hero-copy, .mo-hero-figure, .mo-hero-actions { grid-column: 1; grid-row: auto; }
  .mo-hero h1 { max-width: 720px; }
  .mo-lead { max-width: 680px; }
  .mo-security-grid { grid-template-columns: 1fr; }
  .mo-setup-grid { grid-template-columns: 1fr; }
  .mo-person { max-width: 440px; }
  .mo-setup-copy { grid-row: 1; }
  .mo-person img { aspect-ratio: 4 / 3; object-position: center 35%; }
  .mo-setup-bottom, .mo-questions-grid { gap: 32px; }
}
@media (max-width: 767px) {
  .mo-hero { padding: 120px 0 24px; }
  .mo-brand { font-size: 1.25rem; margin-bottom: 12px; }
  .mo-hero h1 { font-size: clamp(1.875rem, 7.8vw, 2.5rem); line-height: 1.22; margin-bottom: 20px; }
  .mo-lead { font-size: 1.0625rem; line-height: 1.65; }
  .mo-hero-grid { gap: 24px; }
  .mo-hero-actions { gap: 18px; }
  .mo-benefits { grid-template-columns: 1fr; padding: 4px 20px; margin-top: 28px; gap: 0; }
  .mo-benefits li { padding: 18px 0; gap: 14px; }
  .mo-benefits li + li { border-left: 0; border-top: 1px solid #dce4ec; }
  .mo-benefits strong { margin-bottom: 3px; }
  .mo-section { padding: 46px 0; }
  .mo-section-heading { margin-bottom: 24px; }
  .mo-tabs { border-radius: 16px; gap: 4px; margin-bottom: 20px; }
  .mo-tabs button { flex: 1 1 auto; padding: 10px 17px; font-size: 1rem; }
  .mo-enlarge { position: static; display: block; border-radius: 0; text-align: center; padding: 8px 12px; font-size: 1rem; }
  .mo-tour-panel figcaption { font-size: 1.0625rem !important; }
  .mo-tour-note { font-size: 1.0625rem; }
  .mo-player-start { gap: 8px; }
  .mo-player-start svg { width: 64px; height: 64px; padding: 19px 17px 19px 21px; }
  .mo-player-start span { font-size: .9375rem; padding: 5px 12px; }
  .mo-security-points { gap: 22px; }
  .mo-security-details { margin-top: 26px; }
  .mo-details summary { font-size: 1.0625rem; }
  .mo-details details > div { font-size: 1.0625rem; padding-right: 0; }
  .mo-setup-copy > p { font-size: 1.0625rem; }
  .mo-contact-actions { align-items: flex-start; flex-direction: column; }
  .mo-contact-actions .btn { max-width: 100%; }
  .mo-setup-bottom, .mo-questions-grid { grid-template-columns: 1fr; gap: 28px; }
  .mo-setup-bottom { margin-top: 28px; padding-top: 26px; }
  .dialog-toolbar { flex-wrap: wrap; gap: 12px; }
}

/* Video teilen */
.mo-share { margin-top: 16px; }
.mo-share-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px; border: 2px solid var(--accent); border-radius: 24px; background: var(--white); color: var(--primary); font: inherit; font-size: 1.0625rem; font-weight: 600; cursor: pointer; }
.mo-share-toggle svg { width: 22px; height: 22px; color: var(--accent); }
.mo-share-toggle:hover, .mo-share-toggle[aria-expanded="true"] { background: #e5eef4; }
.mo-share-toggle:focus-visible, .mo-share-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mo-share-panel { margin-top: 12px; padding: 18px; border: 1px solid #cbd5e1; border-radius: var(--radius); background: var(--white); color: var(--text); display: flex; flex-wrap: wrap; gap: 10px; }
.mo-share-panel[hidden], .mo-share-option[hidden] { display: none; }
.mo-share-option { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid #cbd5e1; border-radius: 24px; background: var(--secondary); color: var(--primary); font: inherit; font-size: 1.0625rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.mo-share-option:hover { background: #e5eef4; }
.mo-share-link { flex-basis: 100%; margin: 6px 0 0; font-size: 1rem; }
.mo-share-link span { color: #475569; }
.mo-share-link a { color: var(--accent); }
.mo-share-status { flex-basis: 100%; margin: 0; font-size: 1rem; font-weight: 600; color: #1f7a4d; }
.mo-share-status:empty { display: none; }

/* Eigene Filmseite */
.mo-filmseite { padding-bottom: 72px; }
.mo-filmseite .container { max-width: 1040px; }
.mo-filmseite h1 { color: var(--white); font-size: clamp(2rem, 3vw, 2.625rem); line-height: 1.2; margin-bottom: 16px; }
.mo-filmseite .mo-brand a { color: inherit; text-decoration: none; }
.mo-filmseite .mo-lead { margin-bottom: 28px; }
.mo-film-figure { margin: 0 0 32px; }

/* Header: Menü- und Sprach-Pille wie auf der Homepage sichtbar machen.
   Die Homepage legt rgba(15,23,42,.6) über ein Foto; auf dem dunklen matureOS-Hintergrund wäre das unsichtbar. */
@media (min-width: 768px) {
  .mo-page .site-header:not(.is-scrolled) .nav-list,
  .mo-page .site-header:not(.is-scrolled) .lang-switch { background: rgba(255, 255, 255, .1); }
  .mo-page .site-header:not(.is-scrolled) .lang-switch:hover,
  .mo-page .site-header:not(.is-scrolled) .lang-switch:focus-visible { background: var(--secondary); }
}
