/*
 * Lauterbach.tech — Navy / Paper / Steel
 * Visual basis: Lauterbach design package (black_blue, 2026-10-05):
 * navy surfaces, paper ground, steel accent lines, LT monogram,
 * square geometry, rules instead of boxed cards, no shadows.
 * Typography: Aptos with local fallbacks; no external font loading.
 */

:root {
  /* Brand palette (design-tokens.json) */
  --navy: #0c1622;
  --navy-deep: #080f18;
  --paper: #f6f6f3;
  --ink: #111d2d;
  --steel: #667f9c;
  --muted: #70777f;
  --silver: #dae0e6;
  --motif: #455f7e;

  /* Derived tones used by the design-package web template */
  --bg: var(--paper);
  --surface: #fbfbf9;
  --surface-soft: #efefeb;
  --text: var(--ink);
  --text-soft: #4b5a6d;
  --rule: #cfd8e2;
  --line: #d5dbe2;
  --on-dark: #bac6d2;
  --on-dark-label: #98afc7;
  --on-dark-strong: #f1f2ef;

  /* Existing semantic tokens retained for compatibility */
  --primary: var(--steel);
  --primary-dark: var(--motif);
  --accent: var(--steel);
  --accent-soft: #e8edf1;
  --warning: #75644e;
  --warning-soft: #f2ede4;

  --font: Aptos, Arial, Helvetica, sans-serif;
  --radius: 0;
  --content-width: 1100px;
  --gutter: 24px;
  /* Side padding that aligns full-bleed bands with the content column. */
  --bleed-pad: max(var(--gutter), calc((100% - var(--content-width)) / 2 + var(--gutter)));
  --diagonal: polygon(18% 0, 100% 0, 100% 100%, 12% 100%, 0 54%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(102, 127, 156, 0.24);
  color: var(--navy-deep);
}

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 246, 243, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--content-width);
  margin: auto;
  padding: 16px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 4px 0 6px;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a.active {
  color: var(--navy);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--steel);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.language-switch a {
  min-width: 38px;
  padding: 7px 10px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.language-switch a:hover {
  color: var(--navy);
}

.language-switch a.active {
  color: var(--paper);
  background: var(--navy);
}

/* =========================
   PAGE HEAD (content pages)
   Navy band with vertical contour motif.
========================= */

.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--silver);
}

.page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: max(-60px, calc((100% - var(--content-width)) / 2 - 60px));
  width: 450px;
  height: 700px;
  opacity: 0.75;
  pointer-events: none;
  background: url("pic/brand/contours-vertical.svg") no-repeat center / contain;
}

.page-head-inner {
  max-width: var(--content-width);
  margin: auto;
  padding: 72px var(--gutter) 64px;
}

.page-head .eyebrow {
  color: var(--on-dark-label);
}

.page-head h1 {
  max-width: 820px;
  color: var(--on-dark-strong);
}

.page-head h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 26px;
  background: var(--steel);
}

.page-head .lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--on-dark);
}

.page-head .back-link {
  color: var(--on-dark);
}

.page-head .back-link:hover {
  color: var(--on-dark-strong);
}

/* =========================
   PAGE LAYOUT
========================= */

.content-page {
  max-width: var(--content-width);
  margin: auto;
  padding: 56px var(--gutter) 24px;
}

/* =========================
   HOME (DE/EN start page)
   Full-bleed sections aligned to the content column.
========================= */

.hero-page {
  padding: 0;
}

main.hero-page > * {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--content-width) - 2 * var(--gutter)));
  margin-left: auto;
  margin-right: auto;
}

.hero-page > .hero-box {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 600px;
  width: 100%;
  padding: 80px var(--bleed-pad) 84px;
  border-bottom: 1px solid var(--line);
}

.hero-box > :not(.hero-art) {
  position: relative;
  z-index: 1;
  max-width: 54%;
}

.hero-box h1 {
  font-size: clamp(36px, 4.1vw, 54px);
}

.hero-box .lead {
  font-size: 18px;
  line-height: 1.65;
}

/* Diagonal navy brand surface, start page only. */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 70px 9%;
  overflow: hidden;
  clip-path: var(--diagonal);
  background:
    url("pic/brand/waves-horizontal.svg") no-repeat left -40px bottom -26px / 135% auto,
    linear-gradient(135deg, var(--navy), var(--navy-deep));
}

.hero-mark {
  display: block;
  width: 112px;
  height: auto;
}

/* Service themes as navy band, like the design-package services section. */
.hero-page > .home-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 76px var(--bleed-pad) 84px;
  gap: 44px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--navy);
}

.hero-page > .home-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -80px;
  width: 450px;
  height: 700px;
  opacity: 0.4;
  pointer-events: none;
  background: url("pic/brand/contours-vertical.svg") no-repeat center / contain;
}

.home-grid > .card {
  margin: 0;
  padding: 22px 0 0;
  background: none;
  border: 0;
  border-top: 2px solid var(--steel);
}

.home-grid > .card::before {
  content: none;
}

.home-grid > .card h2 {
  margin-bottom: 14px;
  color: var(--on-dark-strong);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.home-grid > .card p {
  max-width: none;
  color: var(--on-dark);
  font-size: 15.5px;
}

.hero-page > .hero-box + .card,
.hero-page > .home-grid + .card {
  border-top: 0;
}

.hero-page > .hero-box + .card::before,
.hero-page > .home-grid + .card::before {
  top: 0;
}

/* =========================
   TYPOGRAPHY
========================= */

.eyebrow {
  display: block;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--font);
  /* Long German compounds must wrap instead of being clipped on narrow screens. */
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.03em;
}

h2 {
  margin-top: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
}

h3 {
  font-weight: 600;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.6;
}

.service-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}

.service-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(218, 224, 230, 0.32);
  color: var(--silver);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.service-shortcuts a:hover {
  border-color: var(--steel);
  background: rgba(102, 127, 156, 0.14);
  color: var(--on-dark-strong);
}

/* =========================
   GRID
========================= */

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.home-grid > .card {
  min-width: 0;
}

/* =========================
   CARDS
   Rule-separated sections with a short steel accent line.
========================= */

.card,
.detail-section {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 44px 0 46px;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
}

.card::before,
.detail-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--steel);
}

.content-page > .card:first-child,
.content-page > .detail-section:first-child {
  padding-top: 8px;
  border-top: 0;
}

.content-page > .card:first-child::before,
.content-page > .detail-section:first-child::before {
  content: none;
}

#first-mandates {
  scroll-margin-top: 96px;
}

.card h2,
.card h3,
.card p,
.check-list li {
  overflow-wrap: anywhere;
}

.card h2,
.detail-section h2 {
  margin-bottom: 18px;
}

.card h2:not(:first-child),
.detail-section h2:not(:first-child) {
  margin-top: 36px;
}

.card h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.card p,
.detail-section p {
  max-width: 78ch;
  color: var(--text-soft);
}

/* Inline text links only; buttons keep their own colours. */
.card a:not(.button),
.detail-section a:not(.button) {
  color: var(--motif);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(69, 95, 126, 0.35);
  text-underline-offset: 3px;
}

.card a:not(.button):hover,
.detail-section a:not(.button):hover {
  color: var(--navy);
  text-decoration-color: currentColor;
}

.statement-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 60px 56px 64px;
  color: var(--silver);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border: 0;
}

.statement-card::before {
  content: none;
}

.statement-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px;
  bottom: -60px;
  width: 640px;
  height: 280px;
  opacity: 0.8;
  pointer-events: none;
  background: url("pic/brand/waves-horizontal.svg") no-repeat center / contain;
}

.statement-card h2 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--on-dark-strong);
  font-size: 30px;
  font-weight: 500;
}

.statement-card h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 22px;
  background: var(--steel);
}

.statement-card p {
  max-width: 760px;
  color: var(--on-dark);
  font-size: 17.5px;
  line-height: 1.72;
}

.statement-card .button.primary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}

.statement-card .button.primary:hover {
  background: var(--silver);
  border-color: var(--silver);
}

/* =========================
   WORKSHOP PORTFOLIO / FLYERS
   (component set retained; flat, square styling)
========================= */

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 32px;
}

.intro-panel,
.principles-panel {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.principles-panel {
  min-width: 0;
  background: var(--surface-soft);
}

.principles-list,
.compact-list {
  margin: 0;
  padding-left: 20px;
}

.principles-list li,
.compact-list li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 42px;
}

.portfolio-link {
  display: block;
  min-height: 145px;
  padding: 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--steel);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.portfolio-link:hover {
  background: #ffffff;
  border-color: var(--steel);
}

.portfolio-link span {
  display: block;
  margin-bottom: 10px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portfolio-link strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.portfolio-link small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.flyer-stack {
  display: grid;
  gap: 34px;
}

.flyer {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.flyer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 34px;
  background: var(--navy);
  color: var(--silver);
}

.flyer-kicker {
  margin: 0 0 12px;
  color: var(--on-dark-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flyer h2 {
  margin: 0;
  color: var(--on-dark-strong);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.flyer-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--on-dark);
  font-size: 18px;
  line-height: 1.58;
}

.flyer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid rgba(218, 224, 230, 0.32);
  color: var(--silver);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.flyer-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 28px;
  padding: 34px;
}

.flyer-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.flyer-section p {
  color: var(--text-soft);
}

.flyer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flyer-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 22px;
  color: var(--text);
}

.flyer-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--steel);
}

.flyer-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.side-box {
  padding: 22px;
  background: var(--surface-soft);
  border-top: 2px solid var(--steel);
}

.side-box.warning {
  background: var(--warning-soft);
  border-top-color: var(--warning);
}

.side-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.side-box p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.flyer-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 34px;
  color: var(--muted);
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.flyer-footer a {
  color: var(--motif);
  font-weight: 600;
  text-decoration: none;
}

.flyer-footer a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--motif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.back-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.detail-grid h3 {
  margin-top: 0;
}

/* =========================
   LISTS
========================= */

.check-list {
  max-width: 80ch;
  padding-left: 20px;
  color: var(--text-soft);
  list-style: square;
}

.check-list li {
  margin: 9px 0;
  padding-left: 4px;
  color: var(--text-soft);
}

.check-list li::marker {
  color: var(--steel);
}

.check-list strong {
  color: var(--text);
}

/* =========================
   BUTTONS
========================= */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.button.primary {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

/* Arrow icon from the design package, drawn in the current text colour. */
.button.primary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("pic/brand/arrow.svg") no-repeat center / contain;
  mask: url("pic/brand/arrow.svg") no-repeat center / contain;
}

.button.primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.button.secondary {
  background: transparent;
  color: var(--navy);
  border-color: rgba(17, 29, 45, 0.32);
}

.button.secondary:hover {
  color: var(--navy-deep);
  border-color: var(--navy);
  background: rgba(218, 224, 230, 0.35);
}

.button:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.language-switch a:focus-visible,
.service-shortcuts a:focus-visible,
.portfolio-link:focus-visible,
.footer-content a:focus-visible,
.back-link:focus-visible,
.card a:focus-visible,
.detail-section a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

/* =========================
   LANGUAGE ENTRY (engineering/index.html)
========================= */

.language-entry {
  min-height: calc(100vh - 90px);
  display: grid;
  align-content: center;
  justify-items: start;
}

.language-entry-mark {
  display: block;
  width: 84px;
  height: auto;
  margin-bottom: 34px;
}

.language-entry-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 72px;
  padding: 0 var(--gutter) 34px;
  color: var(--muted);
}

.footer-content {
  max-width: calc(var(--content-width) - 2 * var(--gutter));
  margin: auto;
  padding-top: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-content p {
  margin: 0;
  color: #596b80;
}

.footer-content a {
  color: #596b80;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-content a:hover {
  color: var(--navy);
}

/* =========================
   CONSENT BANNER / ANALYTICS
   Rendered by js/consent.js; both choices carry equal visual weight.
========================= */

.footer-consent {
  padding: 0;
  border: 0;
  background: none;
  color: #596b80;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.18s ease;
}

.footer-consent:hover {
  color: var(--navy);
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
  color: var(--on-dark);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-top: 2px solid var(--steel);
}

.consent-inner {
  max-width: var(--content-width);
  margin: auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.consent-text {
  flex: 1;
  min-width: 0;
  max-width: 78ch;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.consent-text a {
  color: var(--on-dark-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(218, 224, 230, 0.45);
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex: none;
  gap: 10px;
}

.consent-button {
  min-width: 132px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark-strong);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.consent-button:hover {
  background: var(--paper);
  color: var(--navy);
}

.footer-consent:focus-visible,
.consent-button:focus-visible,
.consent-text a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
  }

  .nav-links {
    gap: 8px 18px;
  }

  .language-switch {
    margin-top: 2px;
  }

  .page-head::after {
    right: -190px;
    opacity: 0.28;
  }

  .page-head-inner {
    padding: 52px 20px 46px;
  }

  .content-page {
    padding: 44px 20px 16px;
  }

  .hero-page > .hero-box {
    min-height: 0;
    padding: 52px 20px 0;
    border-bottom: 0;
  }

  .hero-box > :not(.hero-art) {
    max-width: none;
  }

  .hero-art {
    position: relative;
    order: 99;
    width: calc(100% + 40px);
    height: 240px;
    margin: 44px -20px 0;
    padding: 0 0 46px;
    clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
    background-position: left 30% bottom -40px, 0 0;
    background-size: 110% auto, auto;
  }

  .hero-mark {
    width: 76px;
  }

  .hero-page > .home-grid {
    padding: 52px 20px 58px;
    gap: 30px;
  }

  .hero-page > .home-grid::before {
    opacity: 0.22;
  }

  .home-grid,
  .portfolio-intro,
  .portfolio-grid,
  .detail-grid,
  .flyer-header,
  .flyer-body {
    grid-template-columns: 1fr;
  }

  .flyer-header,
  .flyer-body,
  .flyer-footer,
  .intro-panel,
  .principles-panel {
    padding: 24px;
  }

  .flyer-footer {
    flex-direction: column;
  }

  h1 {
    font-size: 40px;
  }

  .lead,
  .hero-box .lead {
    font-size: 18px;
  }

  .statement-card {
    padding: 44px 28px 48px;
  }

  .consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 0;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-button {
    min-width: 0;
  }
}

@media (max-width: 560px) {

  main.hero-page > * {
    width: calc(100% - 36px);
  }

  .hero-page > .home-grid,
  .hero-page > .hero-box {
    width: 100%;
  }

  .page-head-inner {
    padding: 44px 18px 40px;
  }

  .content-page {
    padding: 36px 18px 8px;
  }

  .hero-page > .hero-box {
    padding: 44px 18px 0;
  }

  .hero-art {
    width: calc(100% + 36px);
    margin: 40px -18px 0;
    height: 210px;
  }

  .hero-page > .home-grid {
    padding: 46px 18px 52px;
  }

  h1,
  .hero-box h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  .lead,
  .hero-box .lead {
    font-size: 17px;
  }

  .card,
  .detail-section {
    padding: 34px 0 36px;
  }

  .intro-panel,
  .principles-panel {
    padding: 22px;
  }

  .statement-card {
    padding: 36px 22px 40px;
  }

  .statement-card h2 {
    font-size: 25px;
  }

  .flyer h2 {
    font-size: 28px;
  }

  .flyer-subtitle {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .footer {
    padding: 0 18px 28px;
  }
}

/* Very narrow phones (< 390px): smaller H1 and hyphenation so long German
   compounds wrap instead of being clipped. */
@media (max-width: 380px) {
  h1,
  .hero-box h1 {
    font-size: 28px;
  }

  h1,
  h2,
  h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
