/* =============================================================================
   Project:   Data & Privacy – dataandprivacy.de
   Location:  /assets/css/app.css
   File:      app.css
   Function:  Public theme on top of Bootstrap 5.3: brand tokens, self-hosted
              fonts, typography, header, heroes, cards, answer boxes, tables,
              FAQ, forms, footer, app bar (PWA), focus styles (WCAG 2.2),
              reveal animations (animate.css) with reduced-motion support.
   Version:   1.0.0
   Build:     2026.10.21.2240
   Changelog:
     1.0.0  2026-10-21  Initial version
   ============================================================================= */

/* --- Fonts (self-hosted; run bin/vendor.sh). Fallback: system UI fonts --- */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* --- Tokens ------------------------------------------------------------------ */
:root {
  --dp-navy: #0E2433;
  --dp-teal: #1F6E85;          /* 5.9:1 on white */
  --dp-teal-dark: #0E4F61;     /* 9.0:1 on white */
  --dp-teal-soft: #E3F1F5;
  --dp-accent: #7CC3D6;        /* on navy: 7.6:1 */
  --dp-muted: #4A5B68;         /* 7.1:1 on white */
  --dp-line: #DCE3E8;
  --dp-soft: #F2F6F8;
  --dp-radius: 14px;
  --dp-font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dp-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bs-primary: var(--dp-teal);
  --bs-primary-rgb: 31, 110, 133;
  --bs-link-color: var(--dp-teal);
  --bs-link-color-rgb: 31, 110, 133;
  --bs-link-hover-color: var(--dp-teal-dark);
  --bs-link-hover-color-rgb: 14, 79, 97;
  --bs-body-color: var(--dp-navy);
  --bs-body-color-rgb: 14, 36, 51;
  --bs-secondary-color: var(--dp-muted);
  --bs-border-color: var(--dp-line);
  --bs-body-font-family: var(--dp-font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
  --bs-border-radius: 10px;
  --bs-focus-ring-color: rgba(31, 110, 133, .45);
}

html { scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--dp-font-head); font-weight: 700; letter-spacing: -0.01em; color: var(--dp-navy); }
a { text-underline-offset: .18em; }
::selection { background: var(--dp-teal-soft); }

/* --- Focus (WCAG 2.4.7 / 2.4.11 / 2.4.13) --- */
:focus-visible { outline: 3px solid var(--dp-teal); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; border-radius: 4px; }
.band-dark :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--dp-navy); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--dp-navy); color: #fff; padding: .75rem 1.25rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; color: #fff; }
main:focus { outline: none; }

/* --- Buttons (target size ≥ 44px) --- */
.btn { --bs-btn-font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.btn-lg { min-height: 52px; padding-inline: 1.5rem; }
.btn-primary { --bs-btn-bg: var(--dp-teal); --bs-btn-border-color: var(--dp-teal); --bs-btn-hover-bg: var(--dp-teal-dark); --bs-btn-hover-border-color: var(--dp-teal-dark); --bs-btn-active-bg: var(--dp-navy); --bs-btn-active-border-color: var(--dp-navy); --bs-btn-disabled-bg: var(--dp-teal); }
.btn-outline-primary { --bs-btn-color: var(--dp-teal); --bs-btn-border-color: var(--dp-teal); --bs-btn-hover-bg: var(--dp-teal); --bs-btn-hover-border-color: var(--dp-teal); --bs-btn-active-bg: var(--dp-teal-dark); border-width: 1.5px; }
.btn-light { --bs-btn-color: var(--dp-navy); }

/* --- Header --- */
.site-header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--dp-line); padding-top: env(safe-area-inset-top); }
.site-header .navbar { --bs-navbar-padding-y: .6rem; }
.site-header .logo { display: block; height: 46px; width: auto; }
.site-header .nav-link { font-weight: 600; color: var(--dp-navy); padding: .6rem .75rem !important; border-radius: 8px; min-height: 44px; display: flex; align-items: center; }
.site-header .nav-link:hover { color: var(--dp-teal); background: var(--dp-soft); }
.site-header .nav-link.active { color: var(--dp-teal); }
.site-header .dropdown-menu { border-color: var(--dp-line); border-radius: 12px; padding: .5rem; }
.site-header .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 500; }
.site-header .dropdown-item.active, .site-header .dropdown-item:active { background: var(--dp-teal); }
@media (max-width: 575.98px) { .site-header .logo { height: 38px; } }

/* --- Hero & page hero --- */
.home-hero { background: linear-gradient(180deg, var(--dp-soft) 0%, #fff 100%); padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.page-hero { background: var(--dp-soft); padding: 1.5rem 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--dp-line); }
.page-hero-compact { padding-bottom: 1.75rem; }
.page-hero-dark { background: var(--dp-navy); color: #fff; }
.page-hero-dark .display-title, .page-hero-dark .lead-text { color: #fff; }
.display-title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 1rem; text-wrap: balance; }
.display-hero { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
.lead-text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--dp-muted); max-width: 46rem; }
.meta-line { color: var(--dp-muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: 0; }
.pill { display: inline-flex; gap: .4rem; align-items: center; background: var(--dp-teal-soft); color: var(--dp-teal-dark); font-weight: 600; font-size: .95rem; padding: .35rem .85rem; border-radius: 999px; }
.eyebrow { font-family: var(--dp-font-head); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-muted); margin-bottom: .5rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--dp-muted); font-size: .97rem; }
.trust-list i { color: var(--dp-teal); }

/* Breadcrumbs */
.breadcrumb-nav .breadcrumb { font-size: .92rem; --bs-breadcrumb-divider-color: var(--dp-muted); --bs-breadcrumb-item-active-color: var(--dp-muted); }
.breadcrumb-nav a { color: var(--dp-teal-dark); }
.breadcrumb-dark .breadcrumb { --bs-breadcrumb-divider-color: #C9D6DF; --bs-breadcrumb-item-active-color: #C9D6DF; }
.breadcrumb-dark a { color: var(--dp-accent); }

/* Answer box (AEO / GEO) */
.answer-box { background: #fff; border: 1px solid var(--dp-line); border-radius: 16px; padding: 1.5rem 1.6rem; box-shadow: 0 12px 30px -18px rgba(14, 36, 51, .35); }
.answer-box-lg { padding: 2rem; }
.answer-inline { border-left: 4px solid var(--dp-teal); padding-left: 1rem; color: var(--dp-navy); }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--dp-line); }
.facts dt { font-family: var(--dp-font-head); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.facts dd { margin: 0; color: var(--dp-muted); font-size: .9rem; }

/* --- Sections --- */
.section { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.section-soft { background: var(--dp-soft); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; text-wrap: balance; }
.section-sub { color: var(--dp-muted); font-size: 1.1rem; margin: 0; }
.container-narrow { max-width: 860px; }
.text-light-muted { color: #C9D6DF; }

/* Cards */
.service-card, .related-card { display: flex; flex-direction: column; height: 100%; padding: 1.75rem; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); background: #fff; color: var(--dp-navy); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service-card:hover, .related-card:hover { border-color: var(--dp-teal); box-shadow: 0 14px 32px -20px rgba(14, 36, 51, .45); transform: translateY(-2px); color: var(--dp-navy); }
.service-card h3 { font-size: 1.25rem; margin: .75rem 0 .5rem; }
.service-card p { color: var(--dp-muted); font-size: 1rem; }
.service-icon { font-size: 2rem; color: var(--dp-teal); }
.card-link { margin-top: auto; font-weight: 700; color: var(--dp-teal); }
.related-card strong { font-family: var(--dp-font-head); margin-bottom: .35rem; }
.related-card span { color: var(--dp-muted); font-size: .95rem; }
.feature { padding: 1.5rem; border-radius: var(--dp-radius); background: var(--dp-soft); }
.feature i { font-size: 1.75rem; color: var(--dp-teal); display: block; margin-bottom: .5rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--dp-muted); font-size: 1rem; }

/* Content body (editor HTML) */
.content-body > :last-child { margin-bottom: 0; }
.content-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; margin: 2.5rem 0 1rem; }
.content-body h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.content-body > h2:first-child, .content-sections section:first-child h2 { margin-top: 0; }
.content-sections section + section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.content-body ul:not(.check-list):not(.steps) li { margin-bottom: .35rem; }
.content-body img { max-width: 100%; height: auto; border-radius: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .75rem; }
.steps li { counter-increment: s; position: relative; padding: 1rem 1rem 1rem 3.75rem; border: 1px solid var(--dp-line); border-radius: 12px; background: #fff; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 1rem; top: .95rem; font-family: var(--dp-font-head); font-weight: 800; color: var(--dp-teal); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--dp-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/80% no-repeat; }
.columns-2 { columns: 2; column-gap: 2rem; }
@media (max-width: 575.98px) { .columns-2 { columns: 1; } }

/* Tables */
.table-compare { --bs-table-bg: #fff; border: 1px solid var(--dp-line); border-radius: 12px; overflow: hidden; font-size: 1rem; margin: 0; }
.table-compare caption { caption-side: top; color: var(--dp-muted); font-size: .9rem; }
.table-compare thead th { background: var(--dp-navy); color: #fff; font-family: var(--dp-font-head); font-weight: 700; border: 0; padding: .9rem 1rem; }
.table-compare td, .table-compare tbody th { padding: .85rem 1rem; vertical-align: top; }
.table-responsive { border-radius: 12px; }

/* Dark band */
.band-dark { background: var(--dp-navy); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.step-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.step-cards li { display: flex; gap: 1rem; align-items: center; border: 1px solid #2C4658; border-radius: 12px; padding: 1.1rem 1.25rem; }
.step-cards span { font-family: var(--dp-font-head); font-weight: 800; color: var(--dp-accent); font-size: 1.3rem; }

/* Packages */
.package-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 2rem 1.75rem; border: 1px solid var(--dp-line); border-radius: 16px; background: #fff; }
.package-card.is-highlighted { border: 2px solid var(--dp-teal); box-shadow: 0 18px 40px -26px rgba(31, 110, 133, .8); }
.package-card h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.package-sub { color: var(--dp-muted); font-size: .97rem; }
.price { margin: .5rem 0; }
.price strong { font-family: var(--dp-font-head); font-size: 2.1rem; font-weight: 800; }
.price-from, .price-unit { color: var(--dp-muted); }
.price-request { font-size: 1.5rem !important; }
.price-note { font-size: .9rem; color: var(--dp-muted); }
.badge-recommended { position: absolute; top: -.8rem; left: 1.5rem; background: var(--dp-teal); color: #fff; font-weight: 700; font-size: .82rem; padding: .25rem .8rem; border-radius: 999px; }

/* Quotes & posts */
.quote-card { height: 100%; margin: 0; padding: 1.75rem; border-radius: var(--dp-radius); background: #fff; border: 1px solid var(--dp-line); }
.quote-card blockquote p { font-size: 1.05rem; }
.stars { color: #B76E00; margin-bottom: .5rem; }
.post-card { position: relative; height: 100%; padding: 1.5rem; border-radius: var(--dp-radius); background: #fff; border: 1px solid var(--dp-line); transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: var(--dp-teal); box-shadow: 0 14px 32px -22px rgba(14, 36, 51, .45); }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--dp-navy); text-decoration: none; }
.post-card p:last-child { color: var(--dp-muted); margin: 0; }
.post-card-img { width: calc(100% + 3rem); margin: -1.5rem -1.5rem 1rem; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--dp-radius) var(--dp-radius) 0 0; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem 1rem; border-radius: 999px; border: 1.5px solid var(--dp-line); text-decoration: none; font-weight: 600; color: var(--dp-navy); }
.filter-pills a:hover { border-color: var(--dp-teal); }
.filter-pills a.active { background: var(--dp-teal); border-color: var(--dp-teal); color: #fff; }
.pagination { --bs-pagination-active-bg: var(--dp-teal); --bs-pagination-active-border-color: var(--dp-teal); --bs-pagination-color: var(--dp-teal); }
.pagination .page-link { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }

/* Article */
.article-cover { margin: 0 0 2rem; }
.article-cover img { width: 100%; height: auto; border-radius: 16px; }
.article-cover figcaption { font-size: .9rem; color: var(--dp-muted); margin-top: .5rem; }
.toc { background: var(--dp-soft); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.author-box { display: flex; gap: 1rem; align-items: center; margin-top: 3rem; padding: 1.25rem 1.5rem; border: 1px solid var(--dp-line); border-radius: 14px; }
.related-list li { padding: .9rem 0; border-bottom: 1px solid var(--dp-line); }
.related-list a { font-weight: 700; display: block; }
.related-list span { color: var(--dp-muted); font-size: .95rem; }

/* FAQ */
.faq-list { border-top: 1px solid var(--dp-line); }
.faq-item { border-bottom: 1px solid var(--dp-line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-family: var(--dp-font-head); font-weight: 700; font-size: 1.08rem; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--dp-teal); transition: transform .2s; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 1.25rem; color: var(--dp-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* CTA band, check teaser, facts */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--dp-teal); color: #fff; border-radius: 20px; padding: clamp(1.75rem, 4vw, 3rem); }
.cta-band h2 { color: #fff; }
.cta-band .btn-outline-light { border-width: 1.5px; }
.check-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 1.5rem 1.75rem; border-radius: 16px; background: var(--dp-teal-soft); border: 1px solid #C3E0E8; }
.check-teaser > i { font-size: 2.2rem; color: var(--dp-teal); }
.check-teaser > div { flex: 1 1 280px; }
.fact-box { background: var(--dp-soft); border-radius: 16px; padding: 1.75rem; }
.fact-box dt { font-weight: 700; font-size: .9rem; color: var(--dp-muted); margin-top: .75rem; }
.fact-box dd { margin: 0; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.portrait-placeholder { display: flex; align-items: center; justify-content: center; background: var(--dp-teal-soft); }
.glossary-letter { font-size: 1.6rem; margin-top: 2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--dp-teal); }
.glossary-item { padding: 1rem 0; border-bottom: 1px solid var(--dp-line); scroll-margin-top: 110px; }
.glossary-item dt { font-family: var(--dp-font-head); font-size: 1.1rem; }
.glossary-item dd { margin: .35rem 0 0; color: var(--dp-muted); }
.glossary-item:target { background: var(--dp-teal-soft); border-radius: 8px; padding-inline: .75rem; }

/* Forms */
.form-label, legend.form-label { font-weight: 600; }
.form-control, .form-select { min-height: 48px; border: 1.5px solid #8A9BA8; border-radius: 10px; }
textarea.form-control { min-height: 120px; }
.form-control:focus, .form-select:focus { border-color: var(--dp-teal); box-shadow: 0 0 0 .25rem rgba(31, 110, 133, .25); }
.form-check-input { width: 1.3em; height: 1.3em; border: 1.5px solid #8A9BA8; }
.form-check-input:checked { background-color: var(--dp-teal); border-color: var(--dp-teal); }
.form-check { min-height: 32px; padding-left: 2em; }
.form-check-input { margin-left: -2em; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem 1rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check-form .check-q { border: 1px solid var(--dp-line); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; background: #fff; }
.check-q legend { float: none; font-family: var(--dp-font-head); font-weight: 700; font-size: 1.08rem; margin-bottom: .75rem; display: flex; gap: .75rem; }
.q-num { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--dp-teal-soft); color: var(--dp-teal-dark); font-size: .95rem; }
.check-option { padding: .45rem .5rem .45rem 2.4em; border-radius: 8px; margin-bottom: .25rem; }
.check-option:hover { background: var(--dp-soft); }
.check-q.has-error { border-color: #B42318; }
.invalid-msg { color: #B42318; font-weight: 600; margin: .5rem 0 0; }
.result-box { border-radius: 16px; padding: 1.75rem; margin-bottom: 2.5rem; border: 2px solid; }
.result-danger { border-color: #B42318; background: #FDF1F0; }
.result-warning { border-color: #A35B00; background: #FDF6EA; }
.result-info { border-color: var(--dp-teal); background: var(--dp-teal-soft); }
.result-success { border-color: #2E7D46; background: #EEF8F1; }

/* --- Footer --- */
.site-footer { background: var(--dp-navy); color: #C9D6DF; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--dp-accent); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-title { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-accent); margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a, .footer-link-btn { display: inline-block; padding: .15rem 0; min-height: 24px; color: #fff; font-size: 1rem; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #2C4658; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; }
.site-footer .logo { height: 44px; width: auto; }

/* --- App bar (PWA, mobile) --- */
.app-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--dp-line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -16px rgba(14, 36, 51, .35); }
.app-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 58px; font-size: .74rem; font-weight: 600; color: var(--dp-muted); text-decoration: none; }
.app-bar a i { font-size: 1.25rem; }
.app-bar a.active, .app-bar a:hover { color: var(--dp-teal); }
@media (max-width: 991.98px) { body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } }
@media (display-mode: standalone) { .site-header { padding-top: max(env(safe-area-inset-top), .25rem); } }

/* --- Offcanvas nav --- */
@media (max-width: 991.98px) {
  .offcanvas-lg .nav-link { font-size: 1.15rem; padding: .8rem .5rem !important; border-bottom: 1px solid var(--dp-line); border-radius: 0; }
  .offcanvas-lg .dropdown-menu { border: 0; padding-left: .75rem; box-shadow: none !important; }
}

/* --- Reveal animations (animate.css), only when motion is allowed --- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-visible) { opacity: 0; }
  .reveal.is-visible { --animate-duration: .7s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Simple pages (offline, maintenance) --- */
.simple-page { min-height: 100vh; display: grid; place-items: center; background: var(--dp-soft); font-family: var(--dp-font-body); color: var(--dp-navy); padding: 1.5rem; }
.simple-card { max-width: 560px; background: #fff; border-radius: 20px; padding: 2.5rem; box-shadow: 0 20px 50px -30px rgba(14, 36, 51, .5); }
.simple-card h1 { font-family: var(--dp-font-head); font-size: 1.8rem; margin: 1.5rem 0 .75rem; }
.simple-card .btn-retry { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border-radius: 10px; background: var(--dp-teal); color: #fff; border: 0; font-weight: 700; cursor: pointer; }

/* --- Print --- */
@media print {
  .site-header, .app-bar, .site-footer, .cta-band, .skip-link { display: none !important; }
  body { padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
