/* Multi-page site: navigation, sub-page components and footer (D-020).
   Uses only the palette tokens from site-v3.css. Loaded on every page after site-v3.css. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header: current page marker and the mobile menu (works without JavaScript). */
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.menu { display: none; }
.menu-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle:hover { background: rgba(255, 255, 255, .1); }
.menu-icon { display: grid; gap: 4px; }
.menu-icon span { display: block; width: 18px; height: 2px; background: currentColor; }
.menu-label-open { display: none; }
.menu[open] .menu-label-open { display: inline; }
.menu[open] .menu-label-closed { display: none; }
.menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  padding: 8px 20px 24px;
  background: var(--farbar-vinternatt);
  box-shadow: 0 18px 40px rgba(13, 27, 50, .35);
}
.menu-panel a {
  display: flex;
  min-height: 56px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}
.menu-panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.menu-panel .button { justify-content: center; margin-top: 18px; border-bottom: 0; color: var(--ink); font-size: 1rem; }
.menu-panel .menu-lang { min-height: 48px; border-bottom: 0; font-size: 1rem; font-weight: 700; }

/* Dark page header band so the absolute white site header stays readable. */
.page-hero { background: var(--farbar-vinternatt); color: var(--white); }
.page-hero-inner { padding: 150px 0 68px; }
.page-hero .eyebrow { color: var(--farbar-isbla); }
.page-hero h1 { max-width: 920px; font-size: clamp(2.3rem, 5vw, 4.1rem); }
.page-hero .lead { color: var(--farbar-sno); }
/* Motto on its own line under the method heading (D-025). */
.page-hero-motto { max-width: 920px; margin: -6px 0 22px; color: var(--farbar-isbla); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 750; line-height: 1.2; }
.page-hero .lead a { color: var(--white); }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero-facts {
  display: grid;
  max-width: 700px;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: var(--farbar-isbla);
}
.page-hero-facts p { margin: 0; }
.page-hero-facts strong, .page-hero-facts a { color: var(--white); }
.page-anchors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-anchors a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 20px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.page-anchors a:hover { background: rgba(255, 255, 255, .1); }

/* Link from a section to the page that tells more. */
.section-more { margin: 30px 0 0; font-weight: 750; }
.section-more a { color: var(--green-2); text-underline-offset: 4px; }
.band--green .section-more a { color: var(--white); }

/* Two columns: heading left, content right. */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; }

/* Approach: the cleared road with three lanterns, one per step. */
.road { margin: 8px 0 32px; }
.road svg { display: block; width: 100%; height: auto; }
.road-edge { fill: none; stroke: var(--farbar-kvallshimmel); stroke-opacity: .3; stroke-width: 72; stroke-linecap: round; }
.road-surface { fill: none; stroke: var(--farbar-isbla); stroke-width: 62; stroke-linecap: round; }
.road-line { fill: none; stroke: var(--farbar-sno); stroke-width: 2; stroke-dasharray: 10 14; }
.lantern-glow { fill: var(--farbar-kram); }
.lantern-post { stroke: var(--farbar-kvallshimmel); stroke-width: 4; stroke-linecap: round; }
.lantern-body { fill: var(--farbar-lyktsken); stroke: var(--farbar-midnatt); stroke-width: 2; }
.lantern-cap { stroke: var(--farbar-midnatt); stroke-width: 4; stroke-linecap: round; }
.road-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.road-step { padding-top: 18px; border-top: 3px solid var(--green-2); }
.step-number { display: block; margin-bottom: 10px; color: var(--green-2); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.road-step p { color: var(--muted); }
.road-step .decision { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; }
.principles--three { grid-template-columns: repeat(3, 1fr); }

/* Services: one service per band, summary left and facts right. */
.service { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.service-title { max-width: 520px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.service-summary .offer-tag { margin-bottom: 22px; }
.service-summary .offer-outcome { margin: 22px 0 0; }
.service-facts { display: grid; border-top: 1px solid var(--line); }
.service-fact { padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-fact h3 { margin-bottom: 8px; color: var(--green-2); font-size: 1rem; }
.service-fact p, .service-fact ul { margin-bottom: 0; color: var(--muted); }
.service-fact ul { padding-left: 20px; }
.service-fact li + li { margin-top: 6px; }

/* Value check: the button stays disabled until the script has started, so no choice can
   reach the server without JavaScript. */
.diagnostic .button:disabled,
.diagnostic .button:disabled:hover { background: var(--yellow); cursor: not-allowed; opacity: .55; transform: none; }
.diagnostic-noscript { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

/* Home offers: pointer to the standalone review of AI already in use (D-024). */
.offer-note { margin-top: 24px; }

/* Examples: the questions we start with. */
.example .example-ask { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.principle a { color: var(--green-2); font-weight: 750; text-underline-offset: 4px; }

/* Cards used on the contact page. */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.card p { margin-bottom: 0; color: var(--muted); }
.note-card { padding: 24px; border-left: 4px solid var(--yellow); border-radius: 0 8px 8px 0; background: var(--farbar-kram); }
.note-card h3, .plain-card h3 { font-size: 1.1rem; }
.note-card p, .plain-card p { color: var(--muted); }
.note-card p:last-child, .plain-card p:last-child { margin-bottom: 0; }
.note-card a { color: var(--green-2); font-weight: 750; text-underline-offset: 4px; }
.plain-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.prep-list { margin: 0; padding-left: 20px; color: var(--muted); }
.prep-list li + li { margin-top: 8px; }
.next-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.next-option { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.next-option span { color: var(--muted); font-size: .92rem; }
a.next-option:hover { border-color: var(--green-2); background: var(--mint); }
.next-option--muted { border-style: dashed; }

/* About: painting, team and company facts. */
.painting { display: block; width: 100%; height: auto; aspect-ratio: 1180 / 500; margin-bottom: 48px; border-radius: 8px; object-fit: cover; object-position: 50% 60%; }
.name-text p { color: var(--muted); font-size: 1.1rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { display: grid; align-content: start; gap: 10px; padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--green-2); border-radius: 8px; background: var(--white); }
.team-card h3 { margin: 0; font-size: 1.12rem; }
.team-card p { margin: 0; color: var(--muted); }
.team-card .team-name { color: var(--green); font-weight: 800; }
.fact-rows { display: grid; border-top: 1px solid var(--line); }
.fact-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact-row h3 { margin-bottom: 6px; }
.fact-row p { margin: 0; color: var(--muted); }
.facts-list { display: grid; grid-template-columns: 170px 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts-list dt, .facts-list dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font-weight: 800; }
.facts-list dd { color: var(--muted); }
.facts-list a { color: var(--green-2); }

/* Privacy: short summary beside the full text. */
.privacy-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 80px; align-items: start; }
.privacy-summary { position: sticky; top: 24px; padding: 26px; border-radius: 8px; background: var(--paper); }
.privacy-summary ul { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.privacy-summary li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.privacy-summary li::before { content: "✓"; color: var(--green-2); font-weight: 850; }
.privacy-summary p { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.privacy-summary a { color: var(--green-2); }
.privacy-text { max-width: 760px; }
.privacy-text section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.privacy-text section:first-child { padding-top: 0; }
.privacy-text h2 { margin-bottom: 10px; font-size: 1.45rem; }
.privacy-text p { color: var(--muted); }
.privacy-text p:last-child { margin-bottom: 0; }

/* Footer: page menu and legal line. */
.footer-stack { display: grid; gap: 16px; }
.footer-legal { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .page-hero-inner { padding: 128px 0 54px; }
  .service, .split, .privacy-layout { grid-template-columns: 1fr; gap: 28px; }
  .road-steps, .card-grid, .principles--three { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-summary { position: static; }
}

@media (max-width: 700px) {
  .page-hero-inner { padding: 112px 0 46px; }
  .page-hero-actions { display: grid; }
  .page-hero-actions .button { width: 100%; }
  .team-grid, .next-options { grid-template-columns: 1fr; }
  .facts-list { grid-template-columns: 1fr; }
  .facts-list dt { padding-bottom: 0; border-bottom: 0; }
  .facts-list dd { padding-top: 4px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav a { padding: 8px 0; }
}
