/* Relaunch 2026 – bewusst ohne Webfonts, Frameworks, Tracker oder externe Stylesheets */
:root {
  --ink: #18211d;
  --ink-soft: #4f5c55;
  --paper: #f6f3ed;
  --paper-2: #ece8df;
  --white: #ffffff;
  --forest: #183c2d;
  --forest-2: #24513d;
  --moss: #8da08f;
  --brass: #a5834a;
  --line: rgba(24, 33, 29, .14);
  --shadow: 0 18px 55px rgba(15, 32, 24, .12);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 40px));
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.relaunch-page { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
body.relaunch-page img { max-width: 100%; }
body.relaunch-page a { color: inherit; }
body.relaunch-page h1,
body.relaunch-page h2,
body.relaunch-page h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; margin-top: 0; }
body.relaunch-page h1 { font-size: clamp(3.6rem, 8vw, 7.8rem); }
body.relaunch-page h2 { font-size: clamp(2.35rem, 4.6vw, 4.7rem); }
body.relaunch-page h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
body.relaunch-page p { margin-top: 0; }

.page-shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding: clamp(78px, 10vw, 150px) 0; }
.eyebrow { margin: 0 0 18px; color: var(--forest-2); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.72); }
.prose-large { color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--white); color: var(--forest); }
.button-primary:hover { background: #ecece7; }
.button-ghost { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.04); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.button-secondary { background: var(--forest); color: var(--white); }
.button-light { background: var(--white); color: var(--forest); }
.button-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--forest); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(24,60,45,.28); padding-bottom: 3px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Header */
.site-header { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 12px max(24px, calc((100vw - 1180px)/2)); color: #fff; transition: background .25s ease, color .25s ease, box-shadow .25s ease, min-height .25s ease; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.15); }
.site-header.is-scrolled,
body:not(.relaunch-page) .site-header { background: rgba(248,246,241,.97); color: var(--ink); box-shadow: 0 8px 30px rgba(20,30,25,.08); min-height: 70px; }
.site-header.is-scrolled::after,
body:not(.relaunch-page) .site-header::after { background: var(--line); }
.site-brand { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.site-brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 1.45rem; }
.site-brand-text { display: grid; gap: 1px; line-height: 1.15; }
.site-brand-text strong { font-family: var(--serif); font-size: 1.03rem; font-weight: 600; }
.site-brand-text small { font-size: .68rem; opacity: .72; letter-spacing: .06em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a,
.site-nav-parent { border: 0; background: none; color: inherit; font: 700 .79rem/1 var(--sans); letter-spacing: .035em; text-decoration: none; padding: 12px 11px; cursor: pointer; }
.site-nav > a:hover,
.site-nav-parent:hover,
.site-nav > a[aria-current="page"] { opacity: .65; }
.site-nav-contact { border: 1px solid currentColor !important; border-radius: 999px; padding-inline: 17px !important; margin-left: 4px; }
.site-nav-group { position: relative; }
.site-nav-parent::after { content: '⌄'; display: inline-block; margin-left: 5px; font-size: .8em; }
.site-submenu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 245px; padding: 10px; background: var(--white); color: var(--ink); border-radius: 13px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-5px); transition: .18s ease; }
.site-submenu a { display: block; padding: 10px 12px; border-radius: 8px; color: inherit; font-size: .88rem; text-decoration: none; }
.site-submenu a:hover { background: var(--paper); }
.site-nav-group:hover .site-submenu,
.site-nav-group:focus-within .site-submenu,
.site-nav-group.submenu-open .site-submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-menu-toggle { display: none; position: relative; z-index: 4; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; padding: 12px; cursor: pointer; }
.site-menu-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 4px 0; background: currentColor; }

/* New homepage */
.home-hero { position: relative; min-height: min(900px, 100svh); display: grid; align-items: end; overflow: hidden; background: #102319; color: white; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,23,16,.82) 0%, rgba(8,23,16,.45) 47%, rgba(8,23,16,.15) 100%), linear-gradient(0deg, rgba(8,23,16,.55) 0%, transparent 45%); }
.home-hero-content { position: relative; z-index: 2; padding-top: 160px; padding-bottom: clamp(52px, 8vw, 92px); }
.home-hero h1 { max-width: 900px; margin-bottom: 24px; color: #fff; }
.home-hero-lead { max-width: 730px; margin-bottom: 32px; color: rgba(255,255,255,.86); font-size: clamp(1.1rem, 1.8vw, 1.38rem); line-height: 1.55; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; gap: 0; margin: clamp(54px, 8vw, 90px) 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.3); }
.home-facts div { padding-right: 20px; }
.home-facts dt { color: rgba(255,255,255,.58); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.home-facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.75rem); }

.home-intro { background: var(--paper); }
.split-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.split-intro h2 { max-width: 720px; margin-bottom: 0; }

.services { background: #ede9e0; }
.section-heading { max-width: 760px; margin-bottom: clamp(36px, 5vw, 62px); }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading-row h2 { margin-bottom: 0; }
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 330px; gap: 16px; }
.service-card { position: relative; grid-column: span 4; overflow: hidden; border-radius: var(--radius); color: white !important; text-decoration: none; isolation: isolate; }
.service-card-large { grid-column: span 8; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover img { transform: scale(1.035); }
.service-card-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(9,26,18,.88), rgba(9,26,18,.06) 70%); }
.service-card-content { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; display: grid; }
.service-card-content small { margin-bottom: 6px; opacity: .7; font-size: .72rem; letter-spacing: .12em; }
.service-card-content strong { font: 500 clamp(1.55rem, 2.7vw, 2.55rem)/1.05 var(--serif); }
.service-card-content > span { max-width: 520px; margin-top: 8px; color: rgba(255,255,255,.76); font-size: .88rem; }

.featured-project { background: var(--forest); color: white; }
.project-feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(38px, 7vw, 90px); align-items: center; }
.project-feature-media { position: relative; min-height: 620px; overflow: hidden; border-radius: var(--radius); }
.project-feature-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.project-feature-copy p { color: rgba(255,255,255,.75); }
.project-feature-copy .eyebrow { color: rgba(255,255,255,.65); }
.project-feature-copy .text-link { color: white; border-color: rgba(255,255,255,.3); }
.check-list { margin: 30px 0 38px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid rgba(255,255,255,.16); }
.check-list li::before { content: '—'; position: absolute; left: 0; color: #b7c8bb; }

.projects-home { background: var(--paper); }
.project-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { display: grid; color: inherit !important; text-decoration: none; }
.project-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.project-card > span { display: grid; padding: 18px 4px 0; }
.project-card small { color: var(--forest-2); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-card strong { margin-top: 5px; font: 500 clamp(1.25rem, 2vw, 1.75rem)/1.2 var(--serif); }
.project-card em { margin-top: 4px; color: var(--ink-soft); font-size: .84rem; font-style: normal; }

.values-strip { padding: 0 0 clamp(80px, 10vw, 140px); background: var(--paper); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.values-grid > div { padding: 34px 24px 0 0; border-right: 1px solid var(--line); }
.values-grid > div:not(:first-child) { padding-left: 24px; }
.values-grid > div:last-child { border-right: 0; }
.values-grid span { color: var(--brass); font-size: .72rem; letter-spacing: .12em; }
.values-grid h3 { margin: 12px 0; }
.values-grid p { color: var(--ink-soft); font-size: .9rem; }

.workshop { background: #e8e2d7; }
.workshop-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.workshop-copy p:not(.eyebrow) { color: var(--ink-soft); }
.workshop-media img { display: block; width: 100%; min-height: 580px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.knowledge { background: var(--paper); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.knowledge-grid a { padding: 34px 26px 34px 0; border-right: 1px solid var(--line); text-decoration: none; }
.knowledge-grid a:not(:first-child) { padding-left: 26px; }
.knowledge-grid a:last-child { border-right: 0; }
.knowledge-grid span { color: var(--brass); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.knowledge-grid strong { display: block; margin: 10px 0 14px; font: 500 1.65rem/1.15 var(--serif); }
.knowledge-grid p { color: var(--ink-soft); font-size: .9rem; }
.knowledge-grid a:hover strong { color: var(--forest-2); }

.home-cta { padding: 90px 0; background: #102c20; color: white; }
.home-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.home-cta h2 { max-width: 800px; margin-bottom: 0; }
.home-cta-inner > div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: end; }

/* Footer */
.site-footer { position: relative; z-index: 5; margin: 0; padding: 0; background: #0d1c15; color: rgba(255,255,255,.78); font-family: var(--sans); }
.site-footer-inner { width: var(--shell); margin: auto; padding: 90px 0 28px; }
.site-footer-intro { display: grid; grid-template-columns: 1.25fr .75fr; column-gap: 60px; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.16); }
.site-footer-intro .eyebrow { grid-column: 1 / -1; color: rgba(255,255,255,.55); }
.site-footer-intro h2 { margin: 0; color: white; font: 500 clamp(2.35rem, 4.5vw, 4.7rem)/1.05 var(--serif); letter-spacing: -.03em; }
.site-footer-intro > p:not(.eyebrow) { max-width: 540px; align-self: end; margin: 0; color: rgba(255,255,255,.68); }
.site-footer-actions { grid-column: 2; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer-columns { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding: 58px 0; }
.site-footer h3 { margin: 0 0 18px; color: white; font: 500 1.25rem/1.2 var(--serif); }
.site-footer address { font-style: normal; }
.site-footer-columns a { display: block; width: fit-content; margin: 7px 0; color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer-columns a:hover { color: white; }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); font-size: .76rem; }

/* Werksverzeichnis – Vanilla-JS statt DataTables */
.works-tools { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 auto 22px; padding: 18px; max-width: 1180px; background: #f3f1eb; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.works-search-wrap { flex: 1; }
.works-tools label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
#works-search { width: 100%; min-height: 46px; border: 1px solid #b9beb9; border-radius: 8px; background: white; padding: 9px 12px; font: inherit; }
#works-count { white-space: nowrap; color: var(--ink-soft); font-size: .84rem; }
#referenztabelle thead th { cursor: pointer; }
#referenztabelle tr[hidden] { display: none !important; }

/* Legacy pages: room for the new fixed header and cleaner footer transition */
body:not(.relaunch-page) { padding-top: 70px; }
body:not(.relaunch-page) .Slider { margin-top: -70px; }
body:not(.relaunch-page) .site-footer { margin-top: 0; }

@media (max-width: 1080px) {
  .site-nav > a, .site-nav-parent { padding-inline: 8px; font-size: .73rem; }
  .site-brand-text small { display: none; }
  .service-card { grid-column: span 6; }
  .service-card-large { grid-column: span 12; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid > div:nth-child(2) { border-right: 0; }
  .values-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .site-menu-toggle { display: block; }
  .site-nav { position: fixed; z-index: 2; inset: 0; display: block; overflow-y: auto; padding: 104px 24px 40px; background: #f5f1e9; color: var(--ink); transform: translateX(100%); transition: transform .28s ease; }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav > a, .site-nav-parent { display: block; width: 100%; padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 1.1rem; }
  .site-nav-contact { margin: 14px 0 0 !important; border-radius: 0 !important; border-width: 0 0 1px !important; }
  .site-submenu { position: static; display: none; min-width: 0; padding: 4px 0 12px 16px; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .site-nav-group.submenu-open .site-submenu { display: block; }
  .site-submenu a { padding: 10px 4px; }
  html.menu-open { overflow: hidden; }
  .split-intro, .project-feature-grid, .workshop-grid, .site-footer-intro { grid-template-columns: 1fr; }
  .project-feature-media { min-height: 480px; }
  .project-card-grid, .knowledge-grid { grid-template-columns: 1fr; }
  .project-card-grid { gap: 34px; }
  .project-card img { aspect-ratio: 16 / 10; }
  .knowledge-grid a, .knowledge-grid a:not(:first-child) { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer-intro > p:not(.eyebrow) { margin-top: 20px; }
  .site-footer-actions { grid-column: auto; }
  .site-footer-columns { grid-template-columns: 1.5fr 1fr 1fr; }
  .site-footer-columns > div:last-child { grid-column: 2 / 4; }
  .home-cta-inner { grid-template-columns: 1fr; align-items: start; }
  .home-cta-inner > div { justify-content: start; }
}

@media (max-width: 650px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .section-pad { padding: 76px 0; }
  .site-header { min-height: 68px; padding-inline: 16px; }
  .site-brand-mark { width: 38px; height: 38px; }
  .site-brand-text strong { font-size: .94rem; }
  .home-hero { min-height: 820px; }
  .home-hero-content { padding-top: 130px; }
  .home-hero h1 { font-size: clamp(3.3rem, 17vw, 5.3rem); }
  .home-facts { grid-template-columns: 1fr; gap: 14px; }
  .home-facts div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.14); padding: 0 0 9px; }
  .home-facts dd { font-size: 1.15rem; }
  .service-grid { grid-template-columns: 1fr; grid-auto-rows: 380px; }
  .service-card, .service-card-large { grid-column: auto; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { margin-top: 18px; }
  .project-feature-media { min-height: 400px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid > div, .values-grid > div:not(:first-child) { padding: 25px 0; border-right: 0; border-top: 1px solid var(--line); }
  .values-grid > div:first-child { border-top: 0; }
  .workshop-media img { min-height: 420px; }
  .site-footer-inner { padding-top: 70px; }
  .site-footer-columns { grid-template-columns: 1fr 1fr; }
  .site-footer-columns > div:last-child { grid-column: auto; }
  .site-footer-bottom { flex-direction: column; }
  .works-tools { display: block; margin-inline: 12px; }
  #works-count { display: block; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Relaunch 02 — moderne Inhaltsseiten */
.inner-page { background: var(--paper); }
.page-hero { position: relative; min-height: min(760px, 82vh); display: flex; align-items: end; overflow: hidden; background: #10251b; color: white; }
.page-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,18,13,.82) 0%, rgba(7,18,13,.58) 48%, rgba(7,18,13,.22) 100%), linear-gradient(0deg, rgba(7,18,13,.45), transparent 55%); }
.page-hero-content { position: relative; z-index: 2; padding: 180px 0 72px; }
.page-hero h1 { max-width: 1050px; margin: 0 0 24px; font-size: clamp(3.2rem, 7vw, 7rem); }
.page-hero-lead { max-width: 760px; margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.42rem); line-height: 1.6; color: rgba(255,255,255,.84); }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; font-size: .76rem; letter-spacing: .04em; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs-light { color: rgba(255,255,255,.68); }
.breadcrumbs-light a:hover { color: white; }
.compact-section { padding-top: 92px; padding-bottom: 92px; }
.surface-section { background: #ebe7de; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 54px; background: var(--line); border: 1px solid var(--line); }
.process-grid.process-grid-5 { grid-template-columns: repeat(5,1fr); }
.process-grid article { min-height: 280px; padding: 30px; background: var(--paper); }
.process-grid span, .service-detail-grid article > div > span, .topic-grid article > div > span { display: block; margin-bottom: 55px; color: var(--brass); font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
.process-grid h3 { margin-bottom: 14px; font-size: 1.55rem; }
.process-grid p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.editorial-stack { display: grid; gap: clamp(80px, 10vw, 150px); }
.editorial-feature { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: clamp(44px, 7vw, 100px); align-items: center; }
.editorial-feature-reverse { grid-template-columns: minmax(320px,.9fr) minmax(0,1.1fr); }
.editorial-feature-reverse .editorial-media { order: 2; }
.editorial-feature-reverse .editorial-copy { order: 1; }
.editorial-media { min-height: 560px; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.editorial-media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; display: block; }
.editorial-copy h2 { margin-bottom: 24px; font-size: clamp(2.3rem,4vw,4.3rem); }
.editorial-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.02rem; }
.editorial-copy .check-list { margin-top: 28px; }
.quote-band { padding: 100px 0; background: #183c2d; color: white; }
.quote-band-inner { max-width: 1000px; }
.quote-band blockquote { max-width: 900px; margin: 0 0 24px; font: 500 clamp(2.2rem,4.8vw,4.8rem)/1.1 var(--serif); letter-spacing: -.025em; }
.quote-band-inner > p:last-child { margin: 0; color: rgba(255,255,255,.65); }
.project-card-grid-3 { grid-template-columns: repeat(3,1fr); }
.service-detail-grid, .topic-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.service-detail-grid article, .topic-grid article { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); min-height: 400px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.service-detail-grid article img, .topic-grid article img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.service-detail-grid article > div, .topic-grid article > div { padding: 30px; }
.service-detail-grid article > div > span, .topic-grid article > div > span { margin-bottom: 38px; }
.service-detail-grid h3, .topic-grid h3 { margin-bottom: 14px; }
.service-detail-grid p, .topic-grid p { color: var(--ink-soft); }
.info-panels { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.info-panels article { padding: clamp(30px,4vw,56px); border: 1px solid var(--line); background: #fff; }
.info-panels h3 { margin-bottom: 16px; font-size: clamp(1.8rem,3vw,2.8rem); }
.info-panels p { color: var(--ink-soft); }
.climate-callout { padding: 72px 0; background: #183c2d; color: white; }
.climate-callout-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.climate-callout h2 { margin: 0 0 12px; font-size: clamp(2.3rem,4vw,4rem); }
.climate-callout p:not(.eyebrow) { max-width: 760px; margin: 0; color: rgba(255,255,255,.72); }
.guidance-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.guidance-grid article { padding: 28px; border-right: 1px solid var(--line); }
.guidance-grid article:last-child { border-right: 0; }
.guidance-grid h3 { margin-bottom: 14px; }
.guidance-grid p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.notice-box { display: grid; grid-template-columns: 180px 1fr; gap: 30px; margin-top: 30px; padding: 28px; background: #fff; border-left: 4px solid var(--brass); box-shadow: var(--shadow); }
.notice-box p { margin: 0; color: var(--ink-soft); }
.project-tools { display: grid; grid-template-columns: minmax(250px,1fr) auto; gap: 18px 30px; align-items: end; margin-bottom: 36px; padding: 22px; background: var(--paper); border: 1px solid var(--line); }
.project-search label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: .76rem; font-weight: 700; }
.project-search input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #afb8b1; border-radius: 0; background: #fff; font: inherit; color: var(--ink); }
.project-filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.project-filters button { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 700 .8rem/1 var(--sans); }
.project-filters button:hover, .project-filters button.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
#project-count { grid-column: 1/-1; color: var(--ink-soft); font-size: .8rem; }
.project-library { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px 18px; }
.archive-card { display: block; min-width: 0; background: #fff; text-decoration: none; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.archive-card-image { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.archive-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.archive-card:hover img { transform: scale(1.025); }
.archive-card-copy { padding: 24px; }
.archive-card-copy small { color: var(--forest-2); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.archive-card-copy h3 { margin: 11px 0 10px; font-size: 1.55rem; }
.archive-card-copy p { min-height: 50px; margin: 0 0 18px; color: var(--ink-soft); font-size: .86rem; }
.archive-card-copy > span { color: var(--forest); font-size: .82rem; font-weight: 700; }
.archive-card[hidden] { display: none !important; }
.project-empty { padding: 50px 20px; text-align: center; color: var(--ink-soft); }
.site-nav > a[aria-current="page"], .site-nav-group.is-current > .site-nav-parent { opacity: 1; }
.site-nav > a[aria-current="page"]::after, .site-nav-group.is-current > .site-nav-parent::after { transform: scaleX(1); }
.site-submenu a[aria-current="page"] { color: var(--forest); font-weight: 700; }

@media (max-width: 1080px) {
  .process-grid, .process-grid.process-grid-5 { grid-template-columns: repeat(2,1fr); }
  .project-library, .project-card-grid-3 { grid-template-columns: repeat(2,1fr); }
  .guidance-grid { grid-template-columns: repeat(2,1fr); }
  .guidance-grid article:nth-child(2) { border-right: 0; }
  .guidance-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .page-hero { min-height: 700px; }
  .page-hero-content { padding-top: 150px; }
  .editorial-feature, .editorial-feature-reverse { grid-template-columns: 1fr; gap: 34px; }
  .editorial-feature-reverse .editorial-media, .editorial-feature-reverse .editorial-copy { order: initial; }
  .editorial-media, .editorial-media img { min-height: 430px; }
  .service-detail-grid, .topic-grid { grid-template-columns: 1fr; }
  .project-tools { grid-template-columns: 1fr; }
  .project-filters { justify-content: flex-start; }
  .climate-callout-inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 650px) {
  .page-hero { min-height: 680px; }
  .page-hero h1 { font-size: clamp(3rem,15vw,4.8rem); }
  .breadcrumbs { margin-bottom: 30px; }
  .process-grid, .process-grid.process-grid-5, .project-library, .project-card-grid-3, .info-panels, .guidance-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 0; }
  .process-grid span { margin-bottom: 30px; }
  .service-detail-grid article, .topic-grid article { grid-template-columns: 1fr; }
  .service-detail-grid article img, .topic-grid article img { min-height: 280px; max-height: 380px; }
  .guidance-grid article, .guidance-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .guidance-grid article:last-child { border-bottom: 0; }
  .notice-box { grid-template-columns: 1fr; gap: 10px; }
  .project-tools { padding: 16px; }
  .project-filters button { flex: 1 1 46%; }
}

/* Relaunch 03 — Kontrastkorrekturen und stärkere Kapselung gegen Legacy-CSS */
body.relaunch-page {
  --ink: #26332d;
  --ink-soft: #5e6963;
  --forest: #1d4937;
  --forest-2: #2f624c;
  --paper: #f8f6f1;
  --paper-2: #efebe3;
  --line: rgba(38, 51, 45, .16);
}

/* Buttons: Farben in jedem Kontext eindeutig festlegen. */
body.relaunch-page a.button,
body.relaunch-page .site-footer a.button {
  text-decoration: none;
}
body.relaunch-page a.button-primary,
body.relaunch-page .site-footer a.button-primary,
body.relaunch-page a.button-light,
body.relaunch-page .site-footer a.button-light {
  background: #ffffff;
  color: #17392b !important;
  border-color: #ffffff;
}
body.relaunch-page a.button-primary:hover,
body.relaunch-page .site-footer a.button-primary:hover,
body.relaunch-page a.button-light:hover,
body.relaunch-page .site-footer a.button-light:hover {
  background: #e8eee9;
  color: #102b20 !important;
  border-color: #e8eee9;
}
body.relaunch-page a.button-secondary,
body.relaunch-page .site-footer a.button-secondary {
  background: #1d4937;
  color: #ffffff !important;
  border-color: #1d4937;
}
body.relaunch-page a.button-secondary:hover,
body.relaunch-page .site-footer a.button-secondary:hover {
  background: #153728;
  color: #ffffff !important;
}
body.relaunch-page a.button-ghost,
body.relaunch-page a.button-outline-light,
body.relaunch-page .site-footer a.button-outline-light {
  background: rgba(8, 22, 16, .24);
  color: #ffffff !important;
  border-color: rgba(255,255,255,.72);
}
body.relaunch-page a.button-ghost:hover,
body.relaunch-page a.button-outline-light:hover,
body.relaunch-page .site-footer a.button-outline-light:hover {
  background: #ffffff;
  color: #17392b !important;
  border-color: #ffffff;
}

/* Helle Bereiche etwas weicher und besser lesbar. */
body.relaunch-page .surface-section { background: #f0ede6; }
body.relaunch-page .process-grid article,
body.relaunch-page .service-detail-grid article,
body.relaunch-page .topic-grid article { background: #fbfaf7; }
body.relaunch-page .editorial-copy > p:not(.eyebrow),
body.relaunch-page .process-grid p,
body.relaunch-page .service-detail-grid p,
body.relaunch-page .topic-grid p,
body.relaunch-page .info-panels p,
body.relaunch-page .guidance-grid p,
body.relaunch-page .prose-large { color: #5e6963; }

/* Dunkle Flächen: Überschriften und Texte immer hell erzwingen. */
body.relaunch-page .home-hero,
body.relaunch-page .page-hero,
body.relaunch-page .featured-project,
body.relaunch-page .quote-band,
body.relaunch-page .climate-callout,
body.relaunch-page .home-cta,
body.relaunch-page .site-footer { color: #ffffff; }
body.relaunch-page .home-hero h1,
body.relaunch-page .page-hero h1,
body.relaunch-page .featured-project h2,
body.relaunch-page .quote-band h2,
body.relaunch-page .quote-band blockquote,
body.relaunch-page .climate-callout h2,
body.relaunch-page .home-cta h2,
body.relaunch-page .site-footer h2,
body.relaunch-page .site-footer h3 { color: #ffffff !important; }
body.relaunch-page .page-hero-lead,
body.relaunch-page .featured-project p,
body.relaunch-page .climate-callout p:not(.eyebrow),
body.relaunch-page .site-footer-intro > p:not(.eyebrow) { color: rgba(255,255,255,.82); }

/* Hero-Abdunklung: Lesbarkeit ohne das Bild unnötig schwarz zu machen. */
body.relaunch-page .page-hero-shade {
  background:
    linear-gradient(90deg, rgba(8,24,17,.74) 0%, rgba(8,24,17,.47) 52%, rgba(8,24,17,.13) 100%),
    linear-gradient(0deg, rgba(8,24,17,.38), transparent 55%);
}

/* Footer gegen Regeln aus mainstylesheet.css isolieren. */
body.relaunch-page footer.site-footer { min-height: 0; display: block; background: #0d1c15; }
body.relaunch-page footer.site-footer a { color: rgba(255,255,255,.76); }
body.relaunch-page footer.site-footer .site-footer-actions a.button-light { color: #17392b !important; }
body.relaunch-page footer.site-footer .site-footer-actions a.button-outline-light { color: #ffffff !important; }

/* Fokuszustände klar sichtbar, auch bei Tastaturbedienung. */
body.relaunch-page a:focus-visible,
body.relaunch-page button:focus-visible,
body.relaunch-page input:focus-visible {
  outline: 3px solid #c7a05b;
  outline-offset: 3px;
}

/* ========================================================================== */
/* Relaunch 04 — Modernisierung der historischen Inhalts- und Projektseiten   */
/* ========================================================================== */
body.legacy-modernized {
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}
body.legacy-modernized.legacy-plain { padding-top: 88px; }
body.legacy-modernized.legacy-plain .site-header,
body.legacy-modernized.legacy-plain .site-header:not(.is-scrolled) {
  background: rgba(248,246,241,.98);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(20,30,25,.08);
  min-height: 70px;
}
body.legacy-modernized.legacy-plain .site-header::after { background: var(--line); }

/* Alte Vollbildvideos nicht mehr automatisch als feste Hintergrundebene laden/zeigen. */
body.legacy-modernized > #myVideo { display: none !important; }

/* Historische Hero-Struktur als moderner Seitenkopf */
body.legacy-modernized .Slider {
  position: relative;
  top: auto;
  width: 100%;
  height: auto;
  min-height: clamp(560px, 72svh, 780px);
  margin: 0;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: #102319;
  color: #fff;
}
body.legacy-modernized .Slider .Sliderinfo {
  position: relative;
  z-index: 6;
  top: auto;
  width: var(--shell);
  height: auto;
  margin: 0 auto;
  padding: 170px 0 clamp(58px, 8vw, 92px);
  text-align: left;
}
body.legacy-modernized .Slider h1,
body.legacy-modernized .Slider .Sliderinfo h1 {
  width: min(100%, 980px);
  margin: 0 0 18px;
  color: #fff !important;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7.5vw, 7.2rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  text-align: left;
  text-shadow: 0 3px 24px rgba(0,0,0,.25);
}
body.legacy-modernized .Slider .Schrift {
  margin: 0;
  color: #fff !important;
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
}
body.legacy-modernized .Slider p {
  width: auto;
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
}
body.legacy-modernized .Slider .HintergrundBanner,
body.legacy-modernized .Slider .HintergrundVideo,
body.legacy-modernized .Slider > .Hintergrund,
body.legacy-modernized .Slider > .Hintergrundbild {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body.legacy-modernized .Slider .HintergrundVideo { display: block; }
body.legacy-modernized .Slider img,
body.legacy-modernized .Slider .HintergrundBanner img,
body.legacy-modernized .Slider .HintergrundVideo img,
body.legacy-modernized .Slider .HintergrundBild,
body.legacy-modernized .Slider .Bannerbild {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0;
}
body.legacy-modernized .Slider .Schwarz {
  z-index: 2;
  background: linear-gradient(90deg, rgba(8,24,17,.76) 0%, rgba(8,24,17,.48) 52%, rgba(8,24,17,.14) 100%),
              linear-gradient(0deg, rgba(8,24,17,.40), transparent 58%);
}

/* Introband unter dem Hero */
body.legacy-modernized .Schraege,
body.legacy-modernized .Schraege .container,
body.legacy-modernized > .container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--forest);
  color: #fff;
  font-variant: normal;
}
body.legacy-modernized .Schraege .container .item,
body.legacy-modernized > .container .item {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(38px,5vw,64px) 0;
}
body.legacy-modernized .Schraege .container .item2 { display: none; }
body.legacy-modernized .container h2,
body.legacy-modernized .container h3 {
  margin: 0;
  color: #fff !important;
  font-family: var(--serif);
  font-variant: normal;
  letter-spacing: -.02em;
  text-align: left;
}
body.legacy-modernized .container h2 { font-size: clamp(2rem,4vw,3.8rem); }
body.legacy-modernized .container h3 { margin-top: 10px; color: rgba(255,255,255,.72) !important; font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
body.legacy-modernized .container .item a { display: inline; color: #fff; font-size: inherit; letter-spacing: 0; text-align: left; }

/* Grundflächen */
body.legacy-modernized .Wrap,
body.legacy-modernized .Background,
body.legacy-modernized .InfoBackground,
body.legacy-modernized .Galerie {
  position: relative;
  z-index: 4;
  width: 100%;
  height: auto;
  background: var(--paper);
  color: var(--ink);
}
body.legacy-modernized .Background {
  display: block;
  padding: clamp(54px,7vw,100px) 0;
}
body.legacy-modernized .Wrap > .Background { padding-top: clamp(54px,7vw,100px); }
body.legacy-modernized .LeistungBlog { width: 100%; }

/* Leistungs- und Textblöcke */
body.legacy-modernized .Leistung {
  display: grid;
  grid-template-columns: minmax(280px,.9fr) minmax(0,1.25fr);
  align-items: stretch;
  width: var(--shell) !important;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto clamp(24px,3vw,38px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(20,30,25,.04);
  overflow: hidden;
}
body.legacy-modernized .Leistung > img,
body.legacy-modernized .Leistung > a > img,
body.legacy-modernized .Leistung .Bannerbild {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 340px;
  max-height: 620px;
  object-fit: cover;
  margin: 0;
}
body.legacy-modernized .Leistung > a { display: block; min-height: 100%; }
body.legacy-modernized .Leistung .Beschreibung,
body.legacy-modernized .Beschreibung {
  width: auto;
  min-width: 0;
  padding: clamp(30px,4vw,58px);
  color: var(--ink) !important;
  text-align: left;
}
body.legacy-modernized .Beschreibung h2,
body.legacy-modernized .Beschreibung h3 {
  color: var(--ink) !important;
  font-variant: normal;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
  text-align: left;
}
body.legacy-modernized .Beschreibung h2 { margin-bottom: 18px; font-size: clamp(1.8rem,3vw,3.05rem); }
body.legacy-modernized .Beschreibung h3 { margin: 26px 0 10px; font-size: clamp(1.3rem,2vw,1.8rem); }
body.legacy-modernized .Beschreibung p,
body.legacy-modernized .Beschreibung li { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
body.legacy-modernized .Beschreibung ul,
body.legacy-modernized .Beschreibung ol { padding-left: 1.25rem; }
body.legacy-modernized .Beschreibung strong,
body.legacy-modernized .Beschreibung b { color: var(--ink); }
body.legacy-modernized .Trennstrich { width: var(--shell); max-width: 1180px; height: 1px; margin: clamp(22px,3vw,38px) auto; background: var(--line); }

/* Links und Buttons in alten Inhalten */
body.legacy-modernized .Infolink,
body.legacy-modernized .Link,
body.legacy-modernized .Beschreibung a:not(.button) {
  color: var(--forest) !important;
  text-decoration-color: rgba(29,73,55,.35);
  text-underline-offset: 3px;
  font-weight: 700;
}
body.legacy-modernized .Infolink:hover,
body.legacy-modernized .Link:hover,
body.legacy-modernized .Beschreibung a:not(.button):hover { text-decoration: none; filter: none; }
body.legacy-modernized .Slider .Bannerlink { color: #fff !important; }

/* Blog / Aktuelles / längere Restaurierungsberichte */
body.legacy-modernized .Blog {
  display: block;
  width: var(--shell);
  max-width: 1180px;
  margin: 0 auto clamp(30px,4vw,54px);
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
body.legacy-modernized .BlogBilder {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2px;
  width: 100%;
  background: var(--paper-2);
}
body.legacy-modernized .BlogBilder img,
body.legacy-modernized .Blog > img {
  width: 100%;
  height: clamp(230px,28vw,390px);
  margin: 0;
  padding: 0;
  object-fit: cover;
}
body.legacy-modernized .Blog .Beschreibung {
  width: 100%;
  padding: clamp(30px,5vw,64px);
}
body.legacy-modernized .Blog .Beschreibung p { max-width: 900px; }

/* Dispositionen und Tabellen */
body.legacy-modernized .Disposition {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 20px;
  width: 100%;
  margin: 26px 0 0;
  font-size: .95rem;
}
body.legacy-modernized .Disposition table,
body.legacy-modernized table#referenztabelle {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}
body.legacy-modernized .Disposition caption {
  margin: 0;
  padding: 13px 14px;
  background: var(--forest);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.08rem;
  text-align: left;
}
body.legacy-modernized .Disposition td,
body.legacy-modernized .Disposition th,
body.legacy-modernized table#referenztabelle td,
body.legacy-modernized table#referenztabelle th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
  text-align: left;
}
body.legacy-modernized .Disposition tr:nth-child(even),
body.legacy-modernized table#referenztabelle tbody tr:nth-child(even) { background: #f7f5f0; }
body.legacy-modernized table#referenztabelle { min-width: 850px; }
body.legacy-modernized table#referenztabelle thead th { position: sticky; top: 70px; z-index: 2; background: var(--forest); color: #fff; font-size: .78rem; letter-spacing: .03em; }
body.legacy-modernized table#referenztabelle a { color: var(--forest) !important; }
body.legacy-modernized .works-tools {
  width: var(--shell);
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
body.legacy-modernized .works-search-wrap label { display:block; margin-bottom:8px; color:var(--ink-soft); font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
body.legacy-modernized .works-search-wrap input { width:100%; min-height:50px; padding:11px 14px; border:1px solid #aeb8b1; background:#fff; color:var(--ink); font:inherit; }
body.legacy-modernized #works-count { display:block; margin-top:8px; color:var(--ink-soft); font-size:.82rem; }
body.legacy-modernized .Background:has(#referenztabelle) { overflow-x:auto; }
body.legacy-modernized #referenztabelle { width: var(--shell) !important; max-width:1180px; margin:0 auto; }

/* Galerie */
body.legacy-modernized .Galerie {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  width: var(--shell);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 clamp(60px,8vw,110px);
}
body.legacy-modernized .BilderSpalte {
  width: auto;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
body.legacy-modernized .BilderSpalte img,
body.legacy-modernized .Bilder { width:100%; margin:0; display:block; }
body.legacy-modernized .Bildinfo p,
body.legacy-modernized .Bildinfo a {
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink-soft) !important;
  text-align: left;
  line-height: 1.5;
}
body.legacy-modernized .Bildinfo a { color: var(--forest) !important; font-weight:700; }

/* Lüftungsrechner und andere Seiten ohne Hero */
body.legacy-modernized .Rechner {
  position: relative;
  top: auto;
  width: min(820px, calc(100% - 40px));
  margin: clamp(50px,8vw,100px) auto;
  padding: clamp(30px,5vw,58px);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}
body.legacy-modernized .Rechner h1 { color: var(--ink) !important; font-family:var(--serif); font-size:clamp(2.4rem,5vw,4.6rem); font-variant:normal; letter-spacing:-.03em; line-height:1.05; }
body.legacy-modernized .Rechner h2 { margin-top:32px; color:var(--forest); font-size:1.45rem; }
body.legacy-modernized .Rechner form { font-size:1rem; }
body.legacy-modernized .Rechner input[type="range"] { width:min(520px,100%); accent-color:var(--forest); }
body.legacy-modernized .Rechner input[type="button"],
body.legacy-modernized .Rechner button {
  min-height:48px;
  padding:10px 20px;
  border:0;
  border-radius:999px;
  background:var(--forest);
  color:#fff;
  font:700 .9rem var(--sans);
  cursor:pointer;
}
body.legacy-modernized #Aufgabe { color:var(--forest); font-family:var(--serif); font-variant:normal; letter-spacing:0; }

/* Sonstige alte Projektkarten */
body.legacy-modernized .Projekt,
body.legacy-modernized .Werke,
body.legacy-modernized .ProjektBilder {
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,30,25,.07);
}

/* Alte Inline-Breite nicht gegen das neue Layout arbeiten lassen */
body.legacy-modernized .Leistung[style] { width:var(--shell) !important; }

@media (max-width: 900px) {
  body.legacy-modernized .Leistung { grid-template-columns: 1fr; }
  body.legacy-modernized .Leistung > img,
  body.legacy-modernized .Leistung > a > img,
  body.legacy-modernized .Leistung .Bannerbild { min-height:300px; max-height:470px; }
  body.legacy-modernized .BlogBilder { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.legacy-modernized .Disposition { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
  body.legacy-modernized.legacy-plain { padding-top:74px; }
  body.legacy-modernized .Slider { min-height:620px; }
  body.legacy-modernized .Slider .Sliderinfo { padding-top:145px; padding-bottom:54px; }
  body.legacy-modernized .Slider h1,
  body.legacy-modernized .Slider .Sliderinfo h1 { font-size:clamp(2.8rem,14vw,4.8rem); }
  body.legacy-modernized .BlogBilder,
  body.legacy-modernized .Galerie { grid-template-columns:1fr; }
  body.legacy-modernized .BlogBilder img { height:270px; }
  body.legacy-modernized .Beschreibung,
  body.legacy-modernized .Leistung .Beschreibung,
  body.legacy-modernized .Blog .Beschreibung { padding:28px 22px; }
  body.legacy-modernized .Trennstrich { margin:22px auto; }
}

/* Truhen-/Hausorgel-Übersicht als moderne Kartenwand */
body.legacy-modernized .ProjektGalerie {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  width: var(--shell);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}
body.legacy-modernized .ProjektGalerie .Projekt {
  position: relative;
  width: auto;
  min-width: 0;
  height: clamp(350px,42vw,510px);
  margin: 0;
  overflow: hidden;
  background: #102319;
  box-shadow: none;
}
body.legacy-modernized .ProjektGalerie .Projekt img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}
body.legacy-modernized .ProjektGalerie .Projekt a,
body.legacy-modernized .ProjektGalerie .Projekt a.Infolink {
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  align-content:initial;
  gap:4px;
  width:100%;
  height:100%;
  padding:30px;
  opacity:1;
  background:linear-gradient(0deg,rgba(7,22,15,.90),rgba(7,22,15,.08) 72%);
  color:#fff !important;
  text-decoration:none;
  font-size:1rem;
}
body.legacy-modernized .ProjektGalerie .Projekt a h3,
body.legacy-modernized .ProjektGalerie .Projekt a p {
  width:auto;
  margin:0;
  color:#fff !important;
  text-align:left;
  text-shadow:none;
}
body.legacy-modernized .ProjektGalerie .Projekt a h3 { margin-bottom:8px; font-size:clamp(1.6rem,3vw,2.5rem); }
body.legacy-modernized .ProjektGalerie .Projekt a p { color:rgba(255,255,255,.78) !important; font-size:.9rem; }
body.legacy-modernized .ProjektGalerie .Projekt:hover img { transform:scale(1.035); }

/* Kleine Infoblöcke */
body.legacy-modernized .InfoBackground { padding:clamp(50px,7vw,90px) 0; }
body.legacy-modernized .Info {
  display:grid;
  grid-template-columns:180px 1fr;
  gap:28px;
  width:var(--shell);
  max-width:860px;
  margin:0 auto 20px;
  padding:28px;
  background:#fff;
  border:1px solid var(--line);
}
body.legacy-modernized .Info img { width:180px; height:180px; object-fit:cover; margin:0; }
body.legacy-modernized .Info .Beschreibung { width:auto; padding:0; text-align:left; }

@media (max-width: 720px) {
  body.legacy-modernized .ProjektGalerie { grid-template-columns:1fr; }
  body.legacy-modernized .ProjektGalerie .Projekt { height:420px; }
  body.legacy-modernized .Info { grid-template-columns:1fr; }
  body.legacy-modernized .Info img { width:100%; height:260px; }
}
.site-submenu-right { left:auto; right:0; }

/* Alte Aktionslinks wie echte, kontrastreiche Buttons darstellen. */
body.legacy-modernized a.Link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin:6px 8px 6px 0;
  padding:9px 16px;
  border:1px solid var(--forest);
  border-radius:999px;
  background:var(--forest);
  color:#fff !important;
  line-height:1.2;
  text-decoration:none;
}
body.legacy-modernized a.Link:hover { background:#153728; border-color:#153728; color:#fff !important; }
/* Kompakter 404-Kopf ohne Bilddatei. */
.page-hero-compact { min-height: 660px; background: linear-gradient(135deg,#102319,#1d4937); }
.page-hero-compact .page-hero-shade { background: radial-gradient(circle at 72% 30%,rgba(255,255,255,.08),transparent 34%); }
body.legacy-modernized .Slider a.Link { background:#fff; border-color:#fff; color:#17392b !important; }
body.legacy-modernized .Slider a.Link:hover { background:#e8eee9; border-color:#e8eee9; color:#102b20 !important; }
