/* Majerus Geimer Constructions — the mgx design (an animated redesign of the home page) on the rebuilt website:
   header, menu, footer, contact box, fonts, colours and buttons on every page; the other pages keep their layouts.
   Animations: scroll effects are pure CSS (animation-timeline), the rest is main.js. In the CMS editor's preview
   (<html data-cms-preview>) nothing plays by itself: no intro, no once-only effects, no autoplay unless the client
   tries the page (html.cms-try). prefers-reduced-motion: no animations at all, everything in its final place. */

/* Archivo (headings; widths 62–125 %, weights 400–800) and Public Sans (text; 400–600): SIL Open Font License,
   Latin subset (German, French …), one variable file each. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url(/assets/fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/publicsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F4F3EF; --bg-2: #ECEAE4; --paper: #FFFFFF;
  --ink: #1A1D1B; --ink-2: #3D413D; --muted: #5C605B; --line: #DAD8D1; --line-2: #C7C4BB;
  --accent: #1F3D2E; --accent-dark: #14261D; --gold: #E3B872; --on-dark: #E6E8E4; --on-dark-2: #C9CDC8;
  /* The original's colours of the four areas (sub menus, list marks, icons) */
  --c-bau: #aca300; --c-woh: #eba900; --c-pla: #7a97ab; --c-imm: #a28c9b; --area: var(--accent);
  --gx: clamp(20px, 4vw, 40px); --sy: clamp(80px, 10vw, 140px); --sy2: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.76, 0, .24, 1);
  --head: 'Archivo', 'Helvetica Neue', Arial, sans-serif; --body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --d: .2s; /* start of the hero's entrance (after the intro screen: 1.9s) */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-burger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 8h18M3 16h18'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1D1B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
}
.page_bau { --area: var(--c-bau); } .page_woh { --area: var(--c-woh); } .page_pla { --area: var(--c-pla); } .page_imm { --area: var(--c-imm); }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip; }
.menu-open body { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { vertical-align: middle; }
img { border-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
address { font-style: normal; }
small { font-size: 80%; }
button { font: inherit; }
strong, b { font-weight: 600; color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 45px; }
h2 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 56px 0 32px; }
h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.25; margin: 40px 0 20px; }
h2:first-child, h3:first-child { margin-top: 0; }
p, ul, ol { margin: 0 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gx); }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.eyebrow-line { display: flex; align-items: center; gap: 12px; }
.eyebrow-line::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; }
.lead { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* The parts of Bootstrap 4's grid the other pages use */
.list-unstyled { margin: 0; padding: 0; list-style: none; }
.img-fluid { max-width: 100%; height: auto; }
.row { display: flex; flex-wrap: wrap; margin-left: -30px; margin-right: -30px; }
.row > [class*="col"] { position: relative; width: 100%; padding-left: 30px; padding-right: 30px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width: 992px) { .col-lg-6 { flex: 0 0 50%; max-width: 50%; } .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; } }
.container-fluid, .container { position: relative; padding: 0 30px; margin-left: auto; margin-right: auto; width: 100%; }
.container-fluid { width: 1260px; max-width: calc(100% - 60px); }
@media (max-width: 991.9px) { .container-fluid { max-width: 100%; } }
.container-small, .container-img { margin: 0 auto; padding: 0 30px; position: relative; max-width: calc(100% - 60px); }
@media (max-width: 991.9px) { .container-small, .container-img { max-width: 100%; } }
@media (max-width: 575.9px) { .container-fluid, .container, .container-small, .container-img { padding: 0 var(--gx); } }
.container-small { width: 960px; }
.container-img { width: 1060px; }
@media (max-width: 991.9px) { .container-img { width: 960px; } }
.flex-container { display: flex; flex-wrap: wrap; }
.col-half { width: 50%; }
@media (max-width: 767.9px) { .col-half { width: 100%; } }

/* ---- Buttons and links ---- */
.btn, .btn-primary { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 16px 26px; font: 600 16px/1.25 var(--body); text-align: center; border: 0; border-radius: 0; cursor: pointer; transition: color .45s ease; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn-arrow::after, .btn-primary::after { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .4s ease; }
.btn-arrow:hover::after, .btn-primary:hover::after { transform: translateX(5px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light::before { background: var(--gold); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); color: #fff; }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); }
.btn-ink, .btn-primary { background: var(--ink); color: #fff; }
.btn-ink::before, .btn-primary::before { background: var(--gold); }
.btn-ink:hover, .btn-ink:focus-visible, .btn-primary:hover, .btn-primary:focus-visible { color: var(--ink); }
.btn-lg { min-height: 58px; font-size: 17px; }
.arrowlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); padding-bottom: 4px; border-bottom: 1.5px solid currentColor; }
.arrowlink::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .4s ease; }
.arrowlink:hover::after, .arrowlink:focus-visible::after { transform: translateX(6px); }
.navlink { position: relative; padding: 6px 0; }
.navlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.navlink:hover::after, .navlink:focus-visible::after, .selected > .navlink::after { transform: scaleX(1); transform-origin: 0 50%; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 24px; }
.sec-head h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; }
.sec-head .eyebrow { margin-bottom: 14px; }

/* ---- Header (transparent over the dark top picture, solid after scrolling) ---- */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0); z-index: 3; background: var(--gold); pointer-events: none; }
.hdr { position: absolute; top: 0; left: 0; right: 0; z-index: 100; color: #fff; transition: color .4s ease; }
.js .hdr { position: fixed; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(244,243,239,.94); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .4s ease; }
.hdr-bar { max-width: 1400px; margin: 0 auto; padding: 26px var(--gx); display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; transition: padding .4s ease; }
.is-scrolled .hdr, body:not(.has-hero) .hdr { color: var(--ink); }
.is-scrolled .hdr::before, body:not(.has-hero) .hdr::before { opacity: 1; }
.is-scrolled .hdr-bar { padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand-logo { display: block; width: 58px; height: auto; transition: filter .4s ease; }
.is-scrolled .hdr .brand-logo, body:not(.has-hero) .hdr .brand-logo { filter: invert(1) brightness(.1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 19px; font-stretch: 112%; }
.brand-slogan { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.navdesk ul { display: flex; align-items: center; gap: 8px 30px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.hdr-tools { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 10px; font-size: 13px; }
.langs a { opacity: .85; padding: 6px 0; }
.langs a[aria-current="page"] { font-weight: 700; opacity: 1; }
.langs a:hover { opacity: 1; }
.hdr-cta { min-height: 46px; padding: 12px 20px; font-size: 15px; }
.is-scrolled .hdr-cta, body:not(.has-hero) .hdr-cta { background: var(--ink); color: #fff; }
.is-scrolled .hdr-cta:hover, .is-scrolled .hdr-cta:focus-visible { color: var(--ink); }
.burger { display: none; width: 48px; height: 48px; margin-right: -10px; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.burger::before { content: ""; width: 28px; height: 28px; background: currentColor; -webkit-mask: var(--i-burger) center / contain no-repeat; mask: var(--i-burger) center / contain no-repeat; }
@media (max-width: 1100px) {
  .js .navdesk { display: none; }
  .js .burger { display: flex; }
  html:not(.js) .hdr-bar { flex-wrap: wrap; }
  html:not(.js) .navdesk ul { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .hdr-cta { display: none; }
  .hdr-bar { padding-top: 18px; padding-bottom: 18px; gap: 16px; }
  .brand { gap: 10px; }
  .brand-logo { width: 48px; }
  .brand-name { font-size: 17px; }
  .brand-slogan { font-size: 10px; letter-spacing: .14em; }
}

/* Full-screen menu */
.menu { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 24px clamp(20px, 5vw, 40px) 40px; overflow-y: auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-logo { width: 58px; height: auto; }
.menu-close { width: 48px; height: 48px; margin-right: -10px; border: 0; padding: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.menu-close::before { content: ""; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
.menu-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 48px; font-family: var(--head); font-weight: 800; font-size: clamp(32px, 8vw, 56px); line-height: 1.15; letter-spacing: -0.02em; }
.menu-main a { display: block; transition: color .3s ease; }
.menu-main a:hover, .menu-main a:focus-visible { color: var(--gold); }
.menu-more { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; color: var(--on-dark-2); }
.menu-more a { padding: 4px 0; }
.menu-more a:hover, .menu-more a:focus-visible { color: #fff; }

/* Intro screen (home page, once per visit; html.intro-on comes from the home page's head script) */
.pre { display: none; }
.intro-on .pre { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; animation: preOut .9s var(--ease-io) 1.5s forwards; }
.intro-on.intro-done .pre { display: none; }
.pre-logo { width: 120px; height: auto; animation: preMark 1s var(--ease) both; }
.pre-slogan { color: #D9D7D0; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; animation: fadeUp .8s ease .45s both; }
.intro-on .hero { --d: 1.9s; }

/* ---- Home: hero with crossfading pictures ---- */
.hero { position: relative; min-height: clamp(640px, 60vw, 900px); background: var(--ink); color: #fff; display: flex; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
/* Shade for the header (top), the texts (left) and the picture buttons (bottom) */
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,19,17,.42) 0%, rgba(16,19,17,0) 65%), linear-gradient(180deg, rgba(16,19,17,.55) 0%, rgba(16,19,17,0) 28%, rgba(16,19,17,.15) 55%, rgba(16,19,17,.78) 100%); }
@media (max-width: 600px) { .hero-slides::after { background: linear-gradient(180deg, rgba(16,19,17,.6) 0%, rgba(16,19,17,.3) 30%, rgba(16,19,17,.45) 60%, rgba(16,19,17,.85) 100%); } }
.slides-more { display: contents; }
html:not(.js) .slides-more { display: none; }
.slide { position: absolute; inset: 0; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide .slide-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.js .slide { opacity: 0; transition: opacity 1.4s ease; }
.js .slide.is-on { opacity: 1; }
.hero-inner { position: relative; padding-top: 140px; padding-bottom: 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 980px; }
.hero .eyebrow { color: var(--gold); }
.hero-title { margin: 0; color: #fff; font-size: clamp(36px, 6.4vw, 96px); line-height: .98; letter-spacing: -0.035em; hyphens: auto; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }
.hero-lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 36em; color: var(--on-dark); }
.hero-buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-nav { display: flex; flex-wrap: wrap; gap: 16px; flex: 1 1 300px; max-width: 560px; }
.hero-nav:empty { visibility: hidden; }
.hero-step { flex: 1 1 90px; max-width: 160px; min-height: 44px; padding: 14px 0 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.bar { position: relative; display: block; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.bar i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.hero-step.is-on .bar i { transform: none; }
.hero-step .slide-cap { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; opacity: .6; transition: opacity .4s ease; }
.hero-step.is-on .slide-cap, .hero-step:hover .slide-cap { opacity: 1; }
.scroll-hint { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark); }
.scrollcue { position: relative; width: 1.5px; height: 56px; background: rgba(255,255,255,.3); overflow: hidden; }
.scrollcue::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: #fff; }
@media (max-width: 600px) { .scroll-hint { display: none; } .hero-inner { gap: 32px; } }

/* ---- Home: marquee ---- */
.marquee-band { padding: 36px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0 var(--gx); list-style: none; font-family: var(--head); font-weight: 800; font-size: clamp(36px, 5vw, 72px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.mq-item { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; }
.mq-item::after { content: ""; width: 14px; height: 14px; flex: none; background: var(--accent); }
@supports (-webkit-text-stroke: 1px black) { .mq-item:nth-child(even) .mq-word { color: transparent; -webkit-text-stroke: 1.5px var(--ink); } }
/* Standing still (reduced motion, no JavaScript): a calmer cloud of words */
.marquee:not(.is-running) .marquee-track { gap: 4px 0; font-size: clamp(26px, 4.4vw, 56px); }
.marquee:not(.is-running) .mq-item { gap: 20px; padding: 0 10px; }
.marquee.is-running .marquee-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; animation: mq var(--mq-time, 40s) linear infinite; }
.marquee.is-running:hover .marquee-track { animation-play-state: paused; }
html[data-cms-preview]:not(.cms-try) .marquee-track { animation-play-state: paused; }

/* ---- Home: intro ---- */
.intro-sec, section.intro { padding: var(--sy) 0 var(--sy2); }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 48px 80px; align-items: start; }
.intro-title { margin: 0; font-size: clamp(36px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-stretch: 104%; text-wrap: balance; }
.intro-body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 10px; }
.facts { align-self: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.fact { background: var(--bg); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.fact-title { font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--accent); }
.fact-text { font-size: 14px; color: var(--ink-2); }

/* ---- Home: the four areas (cards open on hover; the first one is open) ---- */
.pillars-sec { padding: 0 0 var(--sy); }
.pillars-sec .sec-head { margin-bottom: 40px; }
.pillars { display: flex; gap: 12px; height: 600px; counter-reset: pillar; }
.pillar { position: relative; flex: 1; min-width: 0; overflow: hidden; counter-increment: pillar; transition: flex .8s var(--ease); }
.pillar-link { position: absolute; inset: 0; display: block; color: #fff; }
.pillar-link:focus-visible { outline-offset: -4px; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pillar-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,21,0) 35%, rgba(20,24,21,.82) 100%); }
.pillar-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.pillar-body::before { content: counter(pillar, decimal-leading-zero); font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--gold); }
.pillar-title { margin: 0; color: #fff; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.pillar .more { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 30em; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s ease, opacity .5s ease; }
.pillar-text { font-size: 17px; color: var(--on-dark); }
.pillars:not(.is-picked) .pillar:first-child, .pillar.is-open, .pillar:hover, .pillar:focus-within { flex: 2.6; }
.pillars:not(.is-picked) .pillar:first-child .more, .pillar.is-open .more, .pillar:hover .more, .pillar:focus-within .more { max-height: 220px; opacity: 1; }
.pillars:hover .pillar:not(:hover) { flex: 1; }
.pillars:hover .pillar:not(:hover) .more { max-height: 0; opacity: 0; }
.pillar:hover img { transform: scale(1.05); }
/* Phones: all cards open, one below the other (!important: the open / hover rules above are more specific, and
   their flex: 2.6 would squeeze a card in a column to nothing) */
@media (max-width: 860px) {
  .pillars { flex-direction: column; height: auto; }
  .pillars > .pillar { flex: none !important; height: 380px; }
  .pillars > .pillar .more { max-height: 260px !important; opacity: 1 !important; }
  .pillar-link::after { background: linear-gradient(180deg, rgba(20,24,21,.05) 15%, rgba(20,24,21,.88) 100%); }
  .pillar-title { white-space: normal; }
}
@media (max-width: 600px) { .pillar-title { font-size: 26px; } .pillar-body { padding: 24px; } }

/* ---- Home: building methods (tabs) ---- */
.methods { background: var(--accent); color: #fff; }
.methods-grid { padding-top: var(--sy2); padding-bottom: var(--sy2); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 56px 80px; align-items: center; }
.methods-media { position: relative; min-height: 560px; overflow: hidden; background: var(--accent-dark); }
html:not(.js) .methods-media, .methods-media:empty { display: none; }
.methods-body { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.methods .eyebrow, .steps .eyebrow, .cta .eyebrow { color: var(--gold); }
.methods h2, .steps h2 { margin: 0; color: #fff; font-size: clamp(34px, 3.8vw, 56px); line-height: 1.03; letter-spacing: -0.03em; font-stretch: 104%; text-wrap: balance; }
.tabs { align-self: stretch; display: flex; flex-wrap: wrap; gap: 8px 32px; border-bottom: 1px solid rgba(255,255,255,.22); }
.tab { min-height: 48px; padding: 12px 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; font-family: var(--head); font-weight: 700; font-size: 20px; opacity: .55; box-shadow: inset 0 -3px 0 transparent; transition: opacity .3s ease, box-shadow .3s ease; }
.tab[aria-selected="true"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--gold); }
.tab:hover { opacity: 1; }
.methods-list { align-self: stretch; display: grid; gap: 40px; counter-reset: method; }
.method { counter-increment: method; display: flex; flex-direction: column; gap: 16px; }
.method-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.method-name { font-family: var(--head); font-weight: 700; font-size: 24px; }
.method-kicker { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.method-kicker::before { content: counter(method, decimal-leading-zero) " · "; }
.method-text { margin: 0; font-size: 20px; line-height: 1.55; color: #E8EEEA; max-width: 30em; }
.methods-note { margin: 0; font-size: 16px; color: #C8D4CC; max-width: 34em; }
.methods-body > p:last-child { margin: 0; }
/* Pictures moved into the picture column, one shown at a time (methods and steps) */
.methods-media img, .steps-media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.4s var(--ease); }
.methods-media img.is-on, .steps-media img.is-on { opacity: 1; transform: none; }
/* Panes stacked in one grid cell, one shown at a time (methods and steps) */
.is-tabs .methods-list > .method, .is-steps .steps-list > .step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); visibility: hidden; pointer-events: none; transition: opacity .6s ease, transform .6s var(--ease), visibility 0s .6s; }
.is-tabs .methods-list > .method.is-on, .is-steps .steps-list > .step.is-on { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .6s ease .15s, transform .6s var(--ease) .15s, visibility 0s; }

/* ---- Home: steps ---- */
.steps { background: var(--ink); color: #fff; }
.steps > .wrap { padding-top: var(--sy2); padding-bottom: var(--sy2); display: flex; flex-direction: column; gap: 56px; }
.steps h2 { max-width: 760px; }
.steps-ctrl { display: flex; align-items: center; gap: 12px; }
.steps-count { margin-right: 8px; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.dot { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.dot::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.dot-prev::before { transform: scaleX(-1); }
.dot:hover, .dot:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.steps-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px 72px; align-items: center; }
html:not(.js) .steps-body { grid-template-columns: 1fr; }
.steps-media { position: relative; min-height: 460px; overflow: hidden; background: #2C3530; }
html:not(.js) .steps-media, .steps-media:empty { display: none; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 56px; }
.step { counter-increment: step; display: flex; flex-direction: column; gap: 20px; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--head); font-weight: 800; font-size: clamp(80px, 9vw, 140px); line-height: .85; letter-spacing: -0.05em; color: var(--gold); }
@supports (-webkit-text-stroke: 1px black) { .step::before { color: transparent; -webkit-text-stroke: 1.5px var(--gold); } }
.step-img { order: -1; display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 9 / 7; object-fit: cover; }
.step-title { margin: 0; color: #fff; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.02em; }
.step-text { margin: 0; font-size: 19px; line-height: 1.6; color: var(--on-dark-2); max-width: 30em; }
.steps-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 16px; }
.steps-nav:empty { display: none; }
.step-btn { min-height: 44px; padding: 14px 0 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.step-btn .bar { background: rgba(255,255,255,.22); transition: background .5s ease; }
.step-btn.is-done .bar { background: var(--gold); }
.step-btn-text { font-size: 14px; font-weight: 600; opacity: .5; transition: opacity .4s ease; }
.step-btn.is-on .step-btn-text, .step-btn:hover .step-btn-text { opacity: 1; }
@media (max-width: 600px) { .steps-media { min-height: 320px; } .methods-media { min-height: 320px; } }

/* ---- Home: showroom (picture with parallax) ---- */
.showroom { position: relative; min-height: 680px; overflow: hidden; color: #fff; display: flex; align-items: center; }
.showroom::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(16,19,17,.38); }
.showroom-img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; max-width: none; object-fit: cover; }
.showroom > .wrap { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 100px; }
.showroom-card { background: var(--bg); color: var(--ink); padding: clamp(32px, 4vw, 56px); max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.showroom-card h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.showroom-card p { margin: 0; }

/* ---- Home: services A–Z with search ---- */
section.services { padding: var(--sy) 0 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px 80px; align-items: start; }
.services-intro { display: flex; flex-direction: column; gap: 22px; }
.services-intro h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; font-stretch: 104%; text-wrap: balance; }
.services-intro > p { margin: 0; max-width: 26em; }
.search-box { max-width: 420px; }
.search-box label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.search { width: 100%; min-height: 52px; padding: 12px 40px 12px 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent var(--i-search) no-repeat right 4px center / 20px; font: inherit; font-size: 18px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus { border-bottom-color: var(--gold); }
.search-count { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.services-list { min-height: 260px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip { min-height: 44px; display: flex; align-items: center; padding: 10px 16px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink); transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.chip:hover, .chip:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.services-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
.services-empty p { margin: 0; font-size: 17px; color: var(--ink); }

/* ---- Home: quote (fills with ink while scrolling) ---- */
section.quote { padding: var(--sy) 0 0; }
.quote-box { margin: 0; border-top: 1px solid var(--ink); padding-top: 64px; display: grid; gap: 40px; }
.quote blockquote { margin: 0; max-width: 1100px; font-family: var(--head); font-weight: 700; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.quote-by { display: grid; grid-template-columns: 40px auto; column-gap: 16px; align-items: center; justify-content: start; line-height: 1.3; }
.quote-by::before { content: ""; grid-row: span 2; height: 2px; background: var(--accent); }
.quote-name { font-weight: 600; color: var(--ink); }
.quote-role { font-size: 14px; color: var(--muted); }

/* ---- Home: news ---- */
section.news { padding: var(--sy) 0 0; }
.news .sec-head { margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.card-img { display: block; overflow: hidden; }
.card-img img { display: block; width: 100%; height: 280px; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-title { margin: 0; font-size: 24px; line-height: 1.25; transition: color .3s ease; }
.card:hover .card-title, .card:focus-visible .card-title { color: var(--accent); }
.card-text { margin: 0; font-size: 16px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards-empty { margin: 0; }

/* ---- Contact box (every page except the contact and legal pages) ---- */
.cta-band { padding: var(--sy) 0; }
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(28px, 6vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 64px; align-items: end; }
.cta::before { content: ""; position: absolute; right: -40px; top: -30px; width: 380px; height: 239px; background: url(/assets/img/mgx/logo.png) no-repeat center / contain; opacity: .06; pointer-events: none; }
.cta-text { position: relative; display: flex; flex-direction: column; gap: 20px; }
.cta h2 { margin: 0; color: #fff; font-size: clamp(36px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.035em; font-stretch: 104%; text-wrap: balance; }
.cta-lead { margin: 0; font-size: 18px; color: var(--on-dark-2); max-width: 30em; }
.cta-actions { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta-contact { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; color: #DADDD8; }
.cta-contact a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s ease; }
.cta-contact a::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
.cta-contact .i-mail::before { -webkit-mask-image: var(--i-mail); mask-image: var(--i-mail); }
.cta-contact a:hover, .cta-contact a:focus-visible { color: var(--gold); }
.cta-address { margin: 0; font-size: 15px; color: #A9AEA8; }

/* ---- Footer ---- */
.ftr { border-top: 1px solid var(--line); color: var(--ink); }
.ftr > .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.ftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.ftr-brand { display: flex; flex-direction: column; gap: 14px; }
.ftr .brand { margin: 0; gap: 12px; }
.ftr .brand-logo { width: 51px; filter: invert(1) brightness(.1); }
.ftr .brand-name { font-size: 20px; }
.ftr-address { margin: 0; font-size: 15px; color: var(--ink-2); }
.ftr-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ftr-head { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.ftr-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ftr-social { margin: 8px 0 0; display: flex; gap: 8px; }
.social { width: 44px; height: 44px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s ease, color .3s ease; }
.social:hover, .social:focus-visible { background: var(--ink); color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ftr-legal { display: flex; gap: 20px; }

/* ==== The other pages (layouts of the original, in the mgx look) ==== */

/* Stage: the page title over a big picture */
.stage { position: relative; z-index: 0; margin: 0; overflow: hidden; color: #fff; background-color: var(--ink); padding: clamp(200px, 26vw, 360px) var(--gx) clamp(56px, 7vw, 96px); display: flex; align-items: flex-end; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,19,17,.55) 0%, rgba(16,19,17,0) 30%, rgba(16,19,17,.05) 55%, rgba(16,19,17,.6) 100%); }
.stage-bg { position: absolute; inset: 0; z-index: -2; background-position: center; background-repeat: no-repeat; background-size: cover; }
.stage h1 { width: 100%; max-width: calc(1400px - 2 * var(--gx)); margin: 0 auto; color: #fff; text-align: left; font-size: clamp(36px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; hyphens: auto; }
.stage h1 span { display: block; }
.stage .container, .stage .container-small { width: 100%; max-width: calc(1400px - 2 * var(--gx)); padding: 0; }
.stage-entry .stage-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.stage-entry h1 { font-size: clamp(32px, 4.4vw, 64px); }

/* Sub menu */
.subnav { background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 var(--gx); }
.subnav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.subnav a { position: relative; display: block; padding: 18px 0; color: var(--ink); font-size: 15px; font-weight: 500; }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--area); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.subnav a:hover::after, .subnav a:focus-visible::after, .subnav .selected a::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (max-width: 767.9px) {
  .subnav { padding: 0; }
  .subnav ul { display: block; }
  .subnav a { padding: 14px var(--gx); border-bottom: 1px solid var(--line); }
  .subnav a::after { display: none; }
  .subnav .selected a { box-shadow: inset 4px 0 0 var(--area); font-weight: 600; }
}

/* Page intro */
.pageintro { padding: var(--sy2) 0; }
.pageintro p { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.55; margin: 0; color: var(--ink); }
.pageintro p + p { margin-top: 20px; }
.pageintro a { text-decoration: underline; text-decoration-color: var(--area); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page_imm .pageintro p { padding-left: 180px; position: relative; }
@media (max-width: 575.9px) { .page_imm .pageintro p { padding-left: 0; padding-top: 100px; } }
.page_imm .pageintro .text { position: relative; }
.page_imm .pageintro .text::before { content: ""; background: url(/assets/img/icon-immobilien.svg) no-repeat center; background-size: 67px 70px; width: 110px; height: 110px; border: 1px solid var(--c-imm); border-radius: 50%; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.9px) { .page_imm .pageintro .text::before { width: 70px; height: 70px; top: 0; transform: none; background-size: 38px 40px; } }
.pageintro-landing .text { position: relative; }
.pageintro-landing p { padding-left: 180px; position: relative; }
@media (max-width: 575.9px) { .pageintro-landing p { padding-left: 0; padding-top: 100px; } }
.pageintro-landing .text::before { content: ""; background: url(/assets/img/icon-bauen.svg) no-repeat center; width: 110px; height: 110px; background-size: 54px 70px; position: absolute; left: 0; top: 50%; transform: translateY(-50%); border: 1px solid var(--c-bau); border-radius: 50%; }
@media (max-width: 575.9px) { .pageintro-landing .text::before { width: 70px; height: 70px; background-size: 31px 40px; top: 0; transform: none; } }
.page_woh .pageintro-landing .text::before { background-image: url(/assets/img/icon-wohnen.svg); background-size: 39px 70px; border-color: var(--c-woh); }
@media (max-width: 575.9px) { .page_woh .pageintro-landing .text::before { background-size: 22px 40px; } }
.page_pla .pageintro-landing .text::before { background-image: url(/assets/img/icon-planen.svg); background-size: 75px 70px; border-color: var(--c-pla); }
@media (max-width: 575.9px) { .page_pla .pageintro-landing .text::before { background-size: 43px 40px; } }

/* Headings with a mark in the area's colour */
h2.indent, .entry-detail h2, .about h2 { padding-left: 32px; position: relative; }
h2.indent::before, .entry-detail h2::before, .about h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 4px; background-color: var(--area); }

/* Picture gallery (images-list) and lightbox */
.images-list { margin: 50px -10px 0 -10px; }
.images-list .images-item { margin-bottom: 20px; padding: 0 10px !important; }
.images-list .images-item .lightbox { display: block; position: relative; overflow: hidden; cursor: zoom-in; }
.images-list .images-item .lightbox::before { content: ""; position: absolute; inset: 0; z-index: 1; background-color: var(--ink); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.images-list .images-item .lightbox:hover::before { opacity: .25; }
.images-list .images-item img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: cover; transition: transform 1s var(--ease); }
.images-list .images-item .lightbox:hover img { transform: scale(1.04); }
.news-detail .images-list .images-item img { aspect-ratio: 3 / 2; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(26,29,27,.94); display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-overlay button { position: absolute; width: 50px; height: 50px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 50px; cursor: pointer; transition: background .3s ease; }
.lightbox-overlay button:hover, .lightbox-overlay button:focus-visible { background: rgba(255,255,255,.25); }
.lightbox-overlay .lb-close { top: 10px; right: 10px; }
.lightbox-overlay .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-overlay .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* News / jobs lists and entries */
.news-list, .news-detail { padding: var(--sy2) 0; }
.news-list .item { display: block; margin-bottom: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); font-size: 0; color: var(--ink); }
.news-list .item:last-of-type { border: none; margin-bottom: 0; padding-bottom: 0; }
.news-list .col-left, .news-list .col-right { display: inline-block; vertical-align: middle; }
.news-list .col-left { width: 40%; padding-right: 25px; }
.news-list .col-left .image { overflow: hidden; }
.news-list .col-left .image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease); }
.news-list .item:hover .image img { transform: scale(1.06); }
@media (max-width: 575.9px) { .news-list .col-left { width: 100%; margin-bottom: 20px; padding-right: 0; } }
.news-list .col-right { width: 60%; padding-left: 25px; }
@media (max-width: 575.9px) { .news-list .col-right { width: 100%; padding-left: 0; } }
.news-list .col-right h2 { margin: 0 0 16px; font-size: clamp(21px, 2.2vw, 28px); transition: color .3s ease; }
.news-list .item:hover h2, .news-list .item:focus-visible h2 { color: var(--accent); }
.news-list .col-right .summary { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.news-list .empty { font-size: 18px; }
.news-detail .summary { color: var(--ink); font-size: 20px; font-weight: 500; margin-bottom: 30px; }
@media (max-width: 767.9px) { .news-detail .summary { font-size: 18px; } }
.news-detail img { max-width: 100%; height: auto; }
.news-detail .video { margin: 40px 0; }
.documents-list { margin: 40px 0 0 0; }
.documents-list .documents-item { display: block; position: relative; min-height: 38px; margin-bottom: 20px; padding: 8px 0 8px 60px; font-weight: 600; color: var(--ink); font-size: 16px; }
.documents-list .documents-item::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: var(--ink) url(/assets/img/arrow-fff.svg) no-repeat center / 26%; transition: background-color .3s ease; }
.documents-list .documents-item:hover::before, .documents-list .documents-item:focus-visible::before { background-color: var(--accent); }

/* Landing pages: list of sub pages */
.entry-list .entry-item { background-color: var(--bg-2); padding: var(--sy2) 0; }
.entry-list .entry-item:nth-child(even) { background-color: var(--bg); }
.entry-list .entry-item .flex-container { display: flex; align-items: center; flex-wrap: nowrap; }
@media (max-width: 767.9px) { .entry-list .entry-item .flex-container { flex-direction: column; } }
.entry-list .entry-item .col-text { padding-left: 50px; color: var(--ink-2); line-height: 1.8; }
@media (max-width: 767.9px) { .entry-list .entry-item .col-text { padding-left: 0; } }
.entry-list .entry-item .col-text .rawtext { margin-bottom: 40px; }
.entry-list .entry-item .col-text h2 { margin: 0 0 40px; }
.entry-list .entry-item .col-image { padding-right: 50px; }
.entry-list .entry-item .col-image img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: cover; }
@media (max-width: 767.9px) { .entry-list .entry-item .col-image { padding-right: 0; margin-bottom: 40px; } }
.entry-list .entry-item:nth-child(even) .flex-container { flex-direction: row-reverse; }
@media (max-width: 767.9px) { .entry-list .entry-item:nth-child(even) .flex-container { flex-direction: column; } }
.entry-list .entry-item:nth-child(even) .col-text { padding-left: 0; padding-right: 50px; }
@media (max-width: 767.9px) { .entry-list .entry-item:nth-child(even) .col-text { padding-right: 0; } }
.entry-list .entry-item:nth-child(even) .col-image { padding-right: 0; padding-left: 50px; }
@media (max-width: 767.9px) { .entry-list .entry-item:nth-child(even) .col-image { padding-left: 0; } }

/* Detail pages */
.entry-detail a:not(.btn):not(.btn-primary):not(.documents-item), .about a:not(.btn):not(.btn-primary), .news-detail a:not(.btn):not(.btn-primary):not(.documents-item) { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--area); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-detail a:not(.btn):not(.btn-primary):not(.documents-item):hover, .about a:not(.btn):not(.btn-primary):hover, .news-detail a:not(.btn):not(.btn-primary):not(.documents-item):hover { color: var(--accent); }
.entry-detail img { max-width: 100%; height: auto; }
.entry-detail .detail-main .flex-container { display: flex; align-items: center; flex-wrap: nowrap; padding-bottom: var(--sy2); }
@media (max-width: 767.9px) { .entry-detail .detail-main .flex-container { flex-direction: column; } }
.entry-detail .detail-main .col-image { padding-right: 50px; }
.entry-detail .detail-main .col-image img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 768px) and (max-width: 991.9px) { .entry-detail .detail-main .col-image { padding-right: 30px; } }
@media (max-width: 767.9px) { .entry-detail .detail-main .col-image { padding-right: 0; } }
.entry-detail .detail-main .col-text { padding-left: 50px; line-height: 1.8; }
@media (min-width: 768px) and (max-width: 991.9px) { .entry-detail .detail-main .col-text { padding-left: 30px; } }
@media (max-width: 767.9px) { .entry-detail .detail-main .col-text { padding-left: 0; margin-top: 50px; } }
.entry-detail .detail-main .col-text > :last-child { margin-bottom: 0; }
.entry-detail .detail-main .col-text ul { margin: 0 0 30px; padding: 0; list-style: none; }
.entry-detail .detail-main .col-text ul li { position: relative; padding-left: 20px; margin-bottom: 10px; color: var(--ink); font-size: 16px; }
.entry-detail .detail-main .col-text ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; background-color: var(--area); }
.entry-detail .section-content { background-color: var(--bg-2); color: var(--ink-2); padding: 0; }
.entry-detail .section-content .container-small { padding-top: var(--sy2); padding-bottom: var(--sy2); }
.entry-detail .section-content .prose:empty + .images-list { margin-top: 0; }
.entry-detail .section-content ul { margin: 0 0 30px; padding: 0; list-style: none; counter-reset: li; }
.entry-detail .section-content ul li { position: relative; padding-left: 30px; counter-increment: li; margin-bottom: 10px; color: var(--ink); font-size: 16px; }
.entry-detail .section-content ul li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--area); }

/* About / history / services / showroom (about-items) */
.about { padding-bottom: var(--sy2); }
.about .about-item > h2 { margin: 0 auto 50px auto; padding: 0 30px 0 62px; position: relative; max-width: calc(100% - 60px); width: 960px; }
.about .about-item > h2::before { left: 30px; }
@media (max-width: 991.9px) { .about .about-item > h2 { max-width: 100%; margin: 0 auto 30px auto; } }
.about .about-item:not(:first-child) > h2 { margin-top: 90px; }
@media (max-width: 991.9px) { .about .about-item:not(:first-child) > h2 { margin-top: 60px; } }
.about .container-small > :last-child { margin-bottom: 0; }
.about .img-fullw { margin-top: 60px; }
.about .img-wrapper { position: relative; overflow: hidden; }
.about .img-wrapper img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.carousel { position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-cell { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-button { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background-color: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .3s ease; }
.carousel-button:hover, .carousel-button:focus-visible { background-color: var(--accent); }
.carousel-button::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.carousel-button.prev { left: 0; margin-left: -26px; }
.carousel-button.prev::before { transform: scaleX(-1); }
.carousel-button.next { right: 0; margin-right: -26px; }
.carousel-button[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 991.9px) { .carousel-button.prev { margin-left: 10px; } .carousel-button.next { margin-right: 10px; } }

/* Contact persons */
.directory_categorylist { margin: 0 auto; padding: var(--sy2) 30px; position: relative; max-width: calc(100% - 60px); width: 960px; }
@media (max-width: 991.9px) { .directory_categorylist { max-width: 100%; padding: var(--sy2) var(--gx); } }
.directory_categorylist .separator { display: block; height: 0; margin: 20px 0 0; }
.directory_categorylist .separator:first-child { height: 0; margin: 0; }
.directory_entrylist { padding: 0; list-style: none; display: flex; flex-wrap: wrap; margin: 0 -10px; }
.directory_entrylist > li { padding: 0 10px; width: 50%; margin-bottom: 20px; }
@media (max-width: 767.9px) { .directory_entrylist > li { width: 100%; } }
.directory_entrylist .texts { border-top: 4px solid var(--accent); background-color: var(--paper); padding: 30px; display: flex; flex-direction: column; height: 100%; }
.directory_entrylist .texts h3 { font-size: 21px; margin: 0 0 12px; }
.directory_entrylist .texts small { display: block; margin-bottom: 15px; font-size: 15px; color: var(--muted); }
.directory_entrylist .texts small:empty { display: none; }
.directory_entrylist .texts .contact { margin: 0; padding: 0; list-style: none; }
.directory_entrylist .texts .contact li { display: block; }
.directory_entrylist .texts .contact a { padding-left: 26px; position: relative; color: var(--ink); display: block; }
.directory_entrylist .texts .contact li:first-child a { margin-bottom: 5px; }
.directory_entrylist .texts .contact a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
.directory_entrylist .texts .contact .emaillink::before { -webkit-mask-image: var(--i-mail); mask-image: var(--i-mail); }
.directory_entrylist .texts .contact a:hover, .directory_entrylist .texts .contact a:focus-visible { color: var(--accent); }

/* Contact page */
.section-contact { padding: 0; display: flex; align-items: center; background: var(--paper); }
.section-contact > div { width: 50%; }
@media (max-width: 767.9px) { .section-contact { display: block; } .section-contact > div { width: 100%; } }
.section-contact .contact-text { padding: 0 clamp(30px, 7vw, 100px); font-size: 16px; }
@media (max-width: 767.9px) { .section-contact .contact-text { padding: 60px var(--gx); } }
.section-contact .contact-text .legalname { display: block; font-family: var(--head); font-size: 22px; font-weight: 800; color: var(--ink); }
.section-contact .contact-text a:not(.btn):not(.btn-primary) { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; color: var(--ink); }
.section-contact .contact-text .contact-links a { display: table; }
.section-contact .buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.section-contact .buttons p { margin: 0; }
.map-container { width: 100%; background: var(--bg-2); position: relative; }
.map-container .map { --cms-map-height: 600px; min-height: 600px; }
@media (max-width: 767.9px) { .map-container .map { --cms-map-height: 400px; min-height: 400px; } }
.map-container .routelink { position: absolute; top: 40px; left: 40px; z-index: 2; color: var(--ink); border-bottom: 1.5px solid currentColor; font-size: 14px; font-weight: 600; }
.map-container .cms-map-placeholder { min-height: 600px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 100px 30px 30px; font-size: 16px; }
@media (max-width: 767.9px) { .map-container .cms-map-placeholder { min-height: 400px; } }
.map-container .cms-map-load { min-height: 48px; padding: 14px 24px; border: 0; border-radius: 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.map-container .cms-map-load:hover { background: var(--accent); }

/* Forms (contact form module) */
.section-mailform { padding: var(--sy2) 30px; }
@media (max-width: 575.9px) { .section-mailform { padding-left: var(--gx); padding-right: var(--gx); } }
.section-mailform .intro { margin-bottom: 40px; }
.section-mailform .intro p { margin-bottom: 20px; }
.section-mailform .hint { margin-bottom: 40px; padding: 16px 20px; font-size: 16px; background-color: var(--bg-2); border-left: 4px solid var(--gold); }
.section-mailform .hint p, .section-mailform .hint ul { margin-bottom: 10px; }
.section-mailform .hint > :last-child { margin-bottom: 0; }
.section-mailform a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact-form .cms-contact-form { max-width: none; gap: 24px; }
.contact-form label { color: var(--ink); font-size: 15px; font-weight: 600; display: inline-block; margin-bottom: 8px; }
.contact-form .cms-contact-field { margin: 0; }
.contact-form .cms-contact-field input:not([type=checkbox]):not([type=radio]), .contact-form .cms-contact-field textarea, .contact-form .cms-contact-field select { display: block; width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 0; resize: vertical; }
.contact-form .cms-contact-field input:not([type=checkbox]):not([type=radio]):focus, .contact-form .cms-contact-field textarea:focus, .contact-form .cms-contact-field select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
.contact-form .cms-contact-required { color: #b3261e; }
.contact-form legend { color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.contact-form .cms-contact-choice { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--ink-2); font-weight: 400; }
.contact-form .cms-contact-choice input { margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.contact-form .cms-contact-help { font-size: 14px; color: var(--muted); margin-top: 6px; }
.contact-form .cms-contact-heading { font-size: 22px; margin: 16px 0 0; }
.contact-form .cms-contact-consent { margin: 0; padding: 16px 20px; font-size: 15px; color: var(--ink-2); background-color: var(--bg-2); }
.contact-form .cms-contact-consent label { font-weight: 400; margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.contact-form .cms-contact-consent a { color: var(--ink); font-weight: 600; }
.contact-form .cms-contact-actions { text-align: right; margin: 0; }
.contact-form .cms-contact-submit { min-height: 52px; padding: 16px 28px; border: 0; border-radius: 0; background: var(--ink); color: #fff; font: 600 16px/1.25 var(--body); cursor: pointer; transition: background .3s ease, color .3s ease; }
.contact-form .cms-contact-submit:hover { background: var(--gold); color: var(--ink); }
.contact-form .cms-contact-submit:disabled { opacity: .6; cursor: default; }
.contact-form .cms-contact-status { padding: 16px 20px; font-size: 16px; }
.contact-form .cms-contact-ok { color: #2f6b2a; border: 1px solid rgba(47,107,42,.4); background: rgba(47,107,42,.08); }
.contact-form .cms-contact-fail { color: #b3261e; border: 1px solid rgba(179,38,30,.4); background: rgba(179,38,30,.06); }

/* Legal page */
.legalinfo { padding: var(--sy2) 30px; width: 960px; max-width: calc(100% - 60px); margin: 0 auto; }
@media (max-width: 991.9px) { .legalinfo { padding: var(--sy2) var(--gx); max-width: 100%; } }
.legalinfo .prose h2:not(:first-child) { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--line); }
.legalinfo .prose a { text-decoration: underline; }
.legalinfo .prose { overflow-wrap: anywhere; }
.alert-info { margin-top: 20px; padding: 16px 20px; color: var(--ink); border-left: 4px solid var(--gold); background: var(--bg-2); }
#privacy { scroll-margin-top: 100px; }

/* 404 */
.notfound { padding: var(--sy2) 0; text-align: center; }
.notfound .btn, .notfound .btn-primary { margin-top: 10px; }

/* ==== Animations ==== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes preOut { to { transform: translateY(-100%); } }
@keyframes preMark { from { clip-path: inset(0 100% 0 0); transform: scale(.9); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes mq { to { transform: translateX(var(--mq-shift, -50%)); } }
@keyframes rv { from { opacity: 0; transform: translateY(48px); } }
@keyframes clip { from { clip-path: inset(18% 0 18% 0); transform: scale(1.06); } }
@keyframes px { from { transform: translateY(-9%); } to { transform: translateY(9%); } }
@keyframes ink { to { background-size: 100% 100%; } }

@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menuIn .6s var(--ease-io) both; }
  .menu:not([hidden]) .menu-main a { animation: fadeUp .6s ease both; }
  .menu-main a:nth-child(1) { animation-delay: .15s; } .menu-main a:nth-child(2) { animation-delay: .2s; } .menu-main a:nth-child(3) { animation-delay: .25s; }
  .menu-main a:nth-child(4) { animation-delay: .3s; } .menu-main a:nth-child(5) { animation-delay: .35s; } .menu-main a:nth-child(6) { animation-delay: .4s; }
  .scrollcue::after { animation: cue 2s ease-in-out infinite; }
  .chip-item .chip { animation: fadeUp .4s ease both; }

  /* Once when the page opens — not in the editor's preview, which renders the page again after every change */
  html:not([data-cms-preview]) .hero .line > span { animation: lineUp 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + .1s); }
  html:not([data-cms-preview]) .hero .line-2 > span { animation-delay: calc(var(--d) + .22s); }
  html:not([data-cms-preview]) .hero-fade { animation: fadeUp 1s ease both; animation-delay: var(--d); }
  html:not([data-cms-preview]) .hero-lead { animation-delay: calc(var(--d) + .45s); }
  html:not([data-cms-preview]) .hero-buttons { animation-delay: calc(var(--d) + .6s); }
  html:not([data-cms-preview]) .hero-foot { animation-delay: calc(var(--d) + .8s); }
  html:not([data-cms-preview]) .stage h1 { animation: fadeUp 1s var(--ease) .15s both; }
  /* Slow zoom of the shown hero picture and the slide's progress bar: only where the pictures change by themselves */
  :is(html.js:not([data-cms-preview]), html.js.cms-try) .slide img { transform: scale(1.12); transition: transform 7s linear; }
  :is(html.js:not([data-cms-preview]), html.js.cms-try) .slide.is-on img { transform: none; }
  :is(html:not([data-cms-preview]), html.cms-try) .hero-step.is-on .bar i { animation: fill 6s linear both; }

  /* Scroll effects (CSS only; where not supported everything simply stands still) */
  @supports (animation-timeline: view()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    .rv, .pageintro .text, .entry-list .col-text, .news-list .item, .directory_entrylist > li, .about .about-item > h2 { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .rv-img, .entry-list .col-image img, .entry-detail .detail-main .col-image img, .about .img-wrapper img { animation: clip linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .px { animation: px linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .ink { background: linear-gradient(90deg, var(--ink) 0 0) 0 0 / 0% 100% no-repeat, #B9B6AD; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ink linear both; animation-timeline: view(); animation-range: cover 15% cover 55%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro-on .pre { display: none; }
}
