:root {
  color-scheme: light;
  --green: #153b2d;
  --green-deep: #0d2b20;
  --green-tint: #e8eee8;
  --gold: #c2a76f;
  --paper: #f5f3ed;
  --white: #fff;
  --ink: #252b27;
  --muted: #657069;
  --line: #dce2dc;
  --content: 1200px;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { min-width: 320px; margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
img, video { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .7em; color: var(--green); font-family: var(--serif); font-weight: 500; line-height: 1.18; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 5.3rem); }
h2 { font-size: clamp(1.8rem, 3.7vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.3vw, 1.65rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.4em; }
#myVideo { display: none !important; }

/* Shared responsive navigation */
.modern-header { position: sticky; z-index: 1000; top: 0; display: flex; width: 100%; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; padding: 9px max(24px, calc((100vw - var(--content)) / 2)); background: rgba(16, 48, 35, .98); color: #fff; box-shadow: 0 5px 24px rgba(13, 27, 19, .14); }
.modern-brand { display: inline-flex; min-width: max-content; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.modern-brand img { display: block; width: 146px; height: 62px; object-fit: contain; }
.modern-brand span { display: grid; line-height: 1.2; }
.modern-brand strong { font: 600 1.08rem/1.2 var(--serif); }
.modern-brand small { margin-top: 4px; color: rgba(255,255,255,.72); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.modern-navigation { display: flex; align-items: center; gap: 4px; }
.modern-navigation > a, .modern-submenu-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; border: 0; padding: 10px 13px; background: transparent; color: #fff; font: 600 .9rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.modern-navigation > a:hover, .modern-submenu-toggle:hover, .modern-nav-group.is-open > .modern-submenu-toggle { background: rgba(255,255,255,.12); color: #fff; }
.modern-navigation .modern-contact-link { margin-left: 8px; border: 1px solid rgba(255,255,255,.55); padding-inline: 18px; }
.modern-header nav span { position: static; z-index: auto; display: inline-block; width: auto; height: auto; margin: 0; padding: 0; color: inherit; font-size: inherit; line-height: 1; text-shadow: none; cursor: inherit; }
.modern-nav-group { position: relative; }
.modern-chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.modern-nav-group.is-open .modern-chevron { transform: translateY(2px) rotate(225deg); }
.modern-submenu { position: absolute; top: 100%; left: 0; display: grid; min-width: 230px; padding: 8px; background: var(--white); box-shadow: 0 16px 36px rgba(12,28,20,.2); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.modern-nav-group:hover .modern-submenu, .modern-nav-group:focus-within .modern-submenu, .modern-nav-group.is-open .modern-submenu { opacity: 1; pointer-events: auto; }
.modern-submenu a { padding: 10px 12px; color: var(--ink); text-decoration: none; }
.modern-submenu a:hover { background: var(--green-tint); color: var(--green-deep); }
.modern-menu-toggle { display: none; }
.modern-menu-open { overflow: hidden; }

/* Full-height photographic page and project banners */
.Slider { position: relative; isolation: isolate; display: grid; width: 100%; height: 100svh; min-height: 560px; overflow: hidden; align-items: end; background: var(--green-deep); color: #fff; }
.Slider > .HintergrundBanner, .Slider > .HintergrundVideo, .Slider > .Hintergrund { position: absolute; z-index: -1; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.Slider .HintergrundBanner img, .Slider .HintergrundVideo img, .Slider .Hintergrund img, .Slider > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; animation: banner-arrive .7s ease both; }
.Slider::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(8,24,16,.78), rgba(8,24,16,.35) 62%, rgba(8,24,16,.12)), linear-gradient(0deg, rgba(8,24,16,.48), transparent 72%); content: ""; pointer-events: none; }
.Slider > .Sliderinfo, .Slider > .Banner .Sliderinfo { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--content)) / 2)); bottom: clamp(42px, 8vw, 92px); left: max(24px, calc((100vw - var(--content)) / 2)); width: auto; height: auto; margin: 0; padding: 0; text-align: left; }
.Slider > .Banner { position: absolute; z-index: 2; inset: 0; display: flex; height: auto; align-items: end; padding: 0 max(24px, calc((100vw - var(--content)) / 2)) clamp(42px, 8vw, 92px); text-align: left; }
.Slider .Bannertext { position: relative; top: auto; width: min(100%, var(--content)); margin: 0 auto; text-align: left; }
.Slider .Banner .Sliderinfo { position: relative; inset: auto; width: 100%; margin: 0; }
.Slider .Sliderinfo h1, .Slider .Banner h1 { max-width: 950px; margin: 0; color: #fff; font: 500 clamp(2.5rem, 6.2vw, 5.4rem)/1.04 var(--serif); letter-spacing: -.035em; text-align: left; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.Slider .Schrift { color: #dcc99d; font: inherit; letter-spacing: inherit; }
.Slider .Sliderinfo > p, .Slider .Banner p { margin: 16px 0 0; color: rgba(255,255,255,.91); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.55; }
@keyframes banner-arrive { from { transform: scale(1.025); opacity: .82; } to { transform: scale(1); opacity: 1; } }

/* Shared section headings, copy and image-text feature rows */
.container { position: relative; z-index: 1; width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: clamp(32px, 4.2vw, 54px) 0 20px; color: var(--ink); }
.container .item { width: 100%; color: var(--ink); }
.container h2 { margin: 0 0 12px; color: var(--green); font: 500 clamp(1.95rem, 3.8vw, 3rem)/1.12 var(--serif); letter-spacing: -.025em; text-align: left; }
.container h2::after { display: block; width: 52px; height: 3px; margin-top: 14px; background: var(--gold); content: ""; }
.container h3 { margin: 0; color: var(--muted); font: 400 1.02rem/1.55 var(--sans); letter-spacing: 0; text-align: left; }
.container h3 a, .Infolink { color: var(--green); text-underline-offset: 3px; }
.container .item > a:not(.Infolink) { display: inline-flex; align-items: center; margin-top: 12px; border: 1px solid var(--green); padding: 9px 16px; color: var(--green); font-size: .9rem; font-weight: 700; text-decoration: none; }
.container .item > a:not(.Infolink):hover { background: var(--green); color: #fff; }
.Background, .Wrap { display: block; width: 100%; height: auto; background: var(--paper); }
.Background { padding: 1px 0 32px; }
.Beschreibung { color: var(--ink); font-size: 1rem; line-height: 1.75; }
.Beschreibung h2 { margin: 0 0 15px; color: var(--green); font: 500 clamp(1.45rem, 2.3vw, 2rem)/1.2 var(--serif); letter-spacing: -.01em; text-align: left; }
.Beschreibung h3 { color: var(--green); }
.Beschreibung p { margin: 0 0 1.1em; font-size: 1rem; line-height: 1.75; }
.Beschreibung p:last-child { margin-bottom: 0; }
.Leistung { display: grid; width: min(var(--content), calc(100% - 48px)); margin: 24px auto; align-items: center; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(24px,5vw,62px); border: 1px solid var(--line); padding: clamp(18px,3vw,34px); background: #fff; }
.Leistung > a, .Hover { display: block; overflow: hidden; }
.Leistung img { display: block; width: 100%; height: clamp(230px,30vw,380px); object-fit: cover; transition: transform .45s ease; }
.Leistung > a:hover img { transform: scale(1.035); }
.Leistung .Beschreibung { width: auto; padding: 0; }
.Leistung .Link, .Link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin: 6px 8px 0 0; border: 1px solid var(--green); padding: 9px 18px; background: var(--green); color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease; }
.Leistung .Link:hover, .Link:hover { background: transparent; color: var(--green); }
.Schraege { display: block; background: var(--green-tint); }
.Schraege .container { padding-block: 22px; }
.Schraege .container h2 { margin: 0 0 5px; color: var(--green); font: 500 clamp(1.2rem, 1.7vw, 1.45rem)/1.3 var(--serif); letter-spacing: -.01em; }
.Schraege .container h2::after { display: none; }
.Schraege .container h3 { color: var(--ink); font-size: .95rem; }
.Blogtext { width: min(760px, calc(100% - 40px)); margin: 24px auto 54px; color: var(--ink); font-size: 1rem; line-height: 1.75; }
.Blogtext h2, .Blogtext h3 { color: var(--green); }
.Content { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; color: var(--ink); line-height: 1.75; }
.InfoBackground { padding: 20px 0 56px; background: var(--paper); }
.Background:has(> .Info) { display: grid; width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 0 0 54px; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); align-items: stretch; gap: 18px; background: var(--paper); }
.Info { min-width: 0; }
.Info .Beschreibung { position: relative; display: flex; min-height: 0; aspect-ratio: 1; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 18px; background: var(--green-deep); color: #fff; }
.Info .Beschreibung::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,rgba(6,18,12,.9)); content: ""; }
.Info .Beschreibung img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.Info .Beschreibung h2, .Info .Beschreibung h3, .Info .Beschreibung p { position: relative; z-index: 1; margin: 0 0 5px; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.55); }
.Info .Beschreibung h2 { font-size: 1.55rem; }
.Info .Beschreibung h3 { font: 600 .9rem/1.35 var(--sans); }
.Info .Beschreibung p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: .84rem; line-height: 1.4; }

/* Editorial blog, project cards and consistent square image galleries */
.Blog { display: grid; width: min(var(--content), calc(100% - 48px)); margin: 26px auto; align-items: stretch; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(20px,3vw,36px); padding: 16px; overflow: hidden; background: #fff; }
.BlogBilder { display: grid; width: 100%; height: clamp(280px,31vw,420px); min-height: 0; max-height: 420px; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(140px,1fr)); gap: 8px; overflow: hidden; padding: 8px; }
.BlogBilder img { display: block; width: 100%; height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; padding: 0; object-fit: cover; cursor: zoom-in; transition: filter .3s ease, transform .4s ease; }
.BlogBilder img:first-child { grid-row: span 2; }
.BlogBilder img:first-child:nth-last-child(1) { grid-row: auto; grid-column: 1 / -1; }
.BlogBilder:has(> img:only-child) { display: block; height: auto; min-height: 0; max-height: none; }
.BlogBilder:has(> img:only-child) img { width: 100%; height: auto; max-height: 420px; aspect-ratio: 16 / 9; object-fit: cover; }
.BlogBilder img:hover { filter: brightness(1.06); transform: scale(1.02); }
.Blog .Beschreibung { align-self: center; min-width: 0; padding: clamp(22px,4vw,48px); }
.Blog .Beschreibung h2 { font-size: clamp(1.55rem,2.5vw,2.2rem); }
.Blog .Beschreibung > p:first-of-type b { color: var(--green); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; }
.Galerie { display: grid; width: min(var(--content), calc(100% - 48px)); height: auto; margin: 0 auto; padding: 12px 0 48px; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 18px; background: transparent; }
.Galerie > .BilderSpalte { display: grid; min-width: 0; width: 100%; align-content: start; gap: 14px; margin: 0; }
.Galerie img, .Bilder { display: block; width: 100%; height: clamp(220px,24vw,340px); margin: 0; border: 0; border-radius: 0; padding: 0; object-fit: cover; }
.Bildinfo { min-width: 0; margin: 0; overflow: hidden; padding: 0; background: #fff; }
.Bildinfo img { height: clamp(220px,24vw,340px); }
.Bildinfo p { margin: 0; padding: 12px 14px; color: var(--ink); font-size: .94rem; line-height: 1.55; text-align: left; }
.Bildbeschreibung { max-width: 72ch; }
.ProjektGalerie { display: grid; width: min(var(--content), calc(100% - 48px)); margin: 0 auto 68px; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); align-items: start; gap: 20px; }
.ProjektGalerie .Werke, .ProjektGalerie .Projekt { position: relative; display: block; width: auto; min-width: 0; height: auto; min-height: 0; aspect-ratio: 1; overflow: hidden; border: 0; border-radius: 0; background: var(--green-deep); color: #fff; text-decoration: none; isolation: isolate; }
.ProjektGalerie .Werke::after, .ProjektGalerie .Projekt::after { position: absolute; z-index: 0; inset: 35% 0 0; background: linear-gradient(transparent,rgba(6,18,12,.88)); content: ""; }
.ProjektGalerie .Werke img, .ProjektGalerie .Projekt img { position: absolute; z-index: -1; inset: 0; display: block; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; padding: 0; object-fit: cover; transition: transform .5s ease, filter .4s ease; }
.ProjektGalerie .Werke:hover img, .ProjektGalerie .Projekt:hover img { transform: scale(1.045); filter: saturate(1.08); }
.Werkstext, .ProjektText { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; top: auto; display: grid; align-content: end; width: 100%; min-height: 48%; height: auto; padding: 22px; background: transparent; color: #fff; opacity: 1; text-align: left; text-shadow: none; }
.Werkstext h3, .ProjektText h3 { margin: 0 0 8px; color: #fff; font: 500 1.4rem/1.18 var(--serif); }
.Werkstext p, .ProjektText p { margin: 0; color: rgba(255,255,255,.86); font-size: .9rem; line-height: 1.5; }
.ProjektGalerie .Projekt > a { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(0deg,rgba(6,18,12,.88),rgba(6,18,12,.12) 68%,transparent); color: #fff; text-decoration: none; }
.ProjektGalerie .Projekt > a h3 { margin: 0 0 8px; color: #fff; font: 500 1.4rem/1.18 var(--serif); }
.ProjektGalerie .Projekt > a p { margin: 0; color: rgba(255,255,255,.86); font-size: .9rem; line-height: 1.5; }
.ProjektGalerie .Projekt > a:hover { background: linear-gradient(0deg,rgba(6,18,12,.92),rgba(6,18,12,.08) 74%,transparent); }

.project-image-note { position: absolute; z-index: 2; right: max(24px,calc((100vw - var(--content)) / 2)); bottom: 20px; margin: 0; padding: 7px 10px; background: rgba(13,43,32,.82); color: rgba(255,255,255,.9); font-size: .76rem; line-height: 1.35; }
.project-facts { display: grid; width: min(var(--content),calc(100% - 48px)); margin: 0 auto; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project-facts > div { display: grid; gap: 5px; padding: 16px 18px; background: #fff; }
.project-facts span { color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.project-facts strong { color: var(--green); font: 500 1.05rem/1.3 var(--serif); }
.project-summary { width: min(var(--content),calc(100% - 48px)); margin: 18px auto 26px; color: var(--ink); font-size: 1rem; line-height: 1.75; }
.project-summary p { margin: 0; }
@media (max-width: 680px) { .project-summary { width: calc(100% - 32px); margin: 14px auto 20px; } }
.project-photo-grid { display: grid; width: min(var(--content),calc(100% - 48px)); margin: 26px auto 56px; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 16px; }
.project-photo-grid figure { min-width: 0; margin: 0; background: #fff; }
.project-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.project-photo-grid figcaption { padding: 10px 12px 12px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.Disposition .disposition-couplers { grid-column: auto; }
@media (max-width: 680px) { .project-photo-grid { width: calc(100% - 32px); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .project-photo-grid figcaption { padding: 8px; font-size: .76rem; } }
.project-work-scope { width: min(var(--content),calc(100% - 48px)); margin: 30px auto 54px; }
.project-work-scope > h2 { margin: 0 0 18px; color: var(--green); font: 500 clamp(1.55rem,2.4vw,2.1rem)/1.2 var(--serif); }
.project-work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.project-work-grid article { padding: clamp(18px,2.5vw,28px); background: #fff; }
.project-work-grid h3 { margin: 0 0 10px; color: var(--green); font: 600 1rem/1.35 var(--sans); }
.project-work-grid p { margin: 0 0 .85em; color: var(--ink); font-size: .94rem; line-height: 1.7; }
.project-work-grid p:last-child { margin-bottom: 0; }
.project-source { width: min(var(--content),calc(100% - 48px)); margin: 16px auto 0; color: var(--muted); font-size: .8rem; }
.project-source a { color: var(--green); }
/* Dispositions, searchable works register and forms */
.project-disposition { width: min(var(--content),calc(100% - 48px)); margin: 24px auto 34px; border-top: 3px solid var(--gold); padding: clamp(20px,3.5vw,38px); background: #fff; }
.project-disposition > h2 { margin: 0 0 20px; color: var(--green); font: 500 clamp(1.55rem,2.4vw,2.1rem)/1.2 var(--serif); }
.project-disposition-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(220px,.65fr); align-items: start; gap: clamp(18px,3vw,32px); }
.project-disposition-layout:not(:has(.project-disposition-photo)) { display: block; }
.Disposition { display: grid; width: 100%; margin: 0; align-items: start; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px; overflow: visible; border: 0; background: transparent; font-size: .9rem; }
.Disposition table { width: 100%; min-width: 0; margin: 0; border: 1px solid var(--line); border-collapse: collapse; background: #fff; }
.Disposition caption { padding: 10px 12px; background: var(--green); color: #fff; font-size: .88rem; font-weight: 700; letter-spacing: .02em; text-align: left; }
.Disposition td, .Disposition th { border-bottom: 1px solid var(--line); padding: 7px 10px; color: var(--ink); font-size: .9rem; line-height: 1.4; text-align: left; }
.Disposition .Register { width: 68%; font-weight: 400; }
.Disposition .Register::first-letter { color: #9b7935; font-weight: 800; }
.Disposition table:has(td:nth-child(3)) { table-layout: fixed; }
.Disposition table:has(td:nth-child(3)) .Register { width: 30%; }
.Disposition table:has(td:nth-child(3)) td:nth-child(2) { width: 25%; }
.Disposition table:has(td:nth-child(3)) td { min-width: 0; overflow-wrap: anywhere; }
.disposition-note { grid-column: 1 / -1; margin: 0; padding-top: 5px; color: var(--muted); font-size: .76rem; }
.Disposition tr:nth-child(even) { background: #f4f6f3; }
.project-disposition-photo { min-width: 0; margin: 0; }
.project-disposition-photo img { display: block; width: 100%; max-height: 440px; aspect-ratio: 4 / 5; object-fit: cover; }
.project-disposition-photo figcaption { padding: 9px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.works-toolbar { display: flex; width: min(var(--content),calc(100% - 48px)); align-items: end; justify-content: space-between; gap: 16px; margin: 0 auto 18px; }
.works-search-label { display: grid; width: min(100%,420px); gap: 6px; color: var(--green); font-size: .88rem; font-weight: 700; }
.works-search-label input, input[type="text"], input[type="email"], input[type="search"], textarea, select { min-height: 46px; border: 1px solid rgba(21,59,45,.25); padding: 10px 13px; background: #fff; color: var(--ink); font: inherit; }
.works-result-count { color: var(--muted); font-size: .9rem; }
#referenztabelle, .modern-table { display: table; width: min(var(--content),calc(100% - 48px)) !important; margin: 0 auto 68px; table-layout: fixed; border-collapse: collapse; background: #fff; }
#referenztabelle th { background: var(--green); color: #fff; font-size: .85rem; font-weight: 700; text-align: left; }
#referenztabelle th:nth-child(1) { width: 5%; }
#referenztabelle th:nth-child(2) { width: 11%; }
#referenztabelle th:nth-child(3) { width: 16%; }
#referenztabelle th:nth-child(4) { width: 7%; }
#referenztabelle th:nth-child(5) { width: 16%; }
#referenztabelle th:nth-child(6) { width: 14%; }
#referenztabelle th:nth-child(7) { width: 8%; }
#referenztabelle th:nth-child(8) { width: 14%; }
#referenztabelle th:nth-child(9) { width: 9%; }
#referenztabelle th[tabindex] { cursor: pointer; }
#referenztabelle th[aria-sort="ascending"]::after, #referenztabelle th[aria-sort="descending"]::after { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); content: ""; }
#referenztabelle th[aria-sort="ascending"]::after { transform: rotate(225deg); }
#referenztabelle th[aria-sort="descending"]::after { transform: rotate(45deg); }
#referenztabelle th, #referenztabelle td { border: 0; border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; overflow-wrap: anywhere; }
#referenztabelle tbody tr:nth-child(even) { background: #f4f6f3; }
#referenztabelle tbody tr:hover { background: var(--green-tint); }
#referenztabelle td { color: var(--ink); }
#referenztabelle td[data-label="Beschreibung"] { color: var(--muted); font-size: .88rem; }
#referenztabelle tr[hidden] { display: none !important; }
input[type="text"], input[type="email"], input[type="search"], textarea, select { max-width: 100%; }
.Rechner { width: min(900px,calc(100% - 40px)); margin: 32px auto; border: 1px solid var(--line); padding: clamp(20px,4vw,40px); background: #fff; color: var(--ink); }
.Rechner h1, .Rechner h2 { color: var(--green); }
.Rechner input, .Rechner select, .Rechner button { font: inherit; }
.Rechner .luftfeuchte-result { margin-top: 26px; }
.Rechner #Aufgabe { margin: 0 0 18px; border-left: 5px solid transparent; border-radius: 3px; padding: 16px 20px; font-size: clamp(1.35rem,3vw,1.8rem); line-height: 1.2; }
.Rechner #Aufgabe:empty { display: none; }
.Rechner #Aufgabe.is-ventilate { border-left-color: #21834a; background: #eaf5ed; color: #176436; }
.Rechner #Aufgabe.is-no-ventilate { border-left-color: #c43c3c; background: #fff0f0; color: #a32323; }
.Rechner #Aufgabe.is-error { border-left-color: #bd7b18; background: #fff7e7; color: #754c0b; }
.Rechner .luftfeuchte-guidance { margin: -8px 0 16px; color: var(--ink); line-height: 1.55; }
.Rechner .luftfeuchte-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 24px; }
.Rechner .luftfeuchte-values p { margin: 0; border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; background: #f7f8f5; line-height: 1.5; }
.Rechner .luftfeuchte-values p:last-child { grid-column: 1 / -1; }
.Rechner form > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) { .Rechner .luftfeuchte-values { grid-template-columns: 1fr; gap: 8px; } }

/* Compact footer, image film and lightbox */
.Imagefilm { display: block; width: min(100%,1050px); height: auto; aspect-ratio: auto; margin: 0 auto; border: 0; padding: 0; object-fit: contain; }
.Background:has(> .Imagefilm) { display: block; padding: 14px 24px 32px; }
.modern-footer { position: relative; margin-top: 0; padding: 30px max(24px,calc((100vw - var(--content)) / 2)) 14px; background: var(--green-deep); color: rgba(255,255,255,.84); font-size: .8rem; line-height: 1.55; }
.modern-footer-inner { display: grid; width: min(100%,var(--content)); grid-template-columns: .9fr 1fr 1.2fr; align-items: start; gap: clamp(22px,4vw,54px); margin: 0 auto; }
.modern-footer-inner > * { min-width: 0; }
.modern-footer-brand { min-width: 0; }
.modern-footer h2 { margin: 0 0 12px; color: rgba(255,255,255,.72); font: 700 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.modern-footer a { color: #fff; text-underline-offset: 3px; }
.modern-footer a:hover { color: #e3cf9c; }
.modern-footer .Schriftzug { position: static; display: block; width: 150px; height: 56px; margin: 0 0 15px; background: url(/assets/images/home/Orgelbau.png) left center/contain no-repeat; }
.modern-footer-partners { display: grid; max-width: 290px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.modern-footer-partners a { display: grid; min-height: 56px; place-items: center; padding: 5px 8px; background: #fff; }
.modern-footer .BDO, .modern-footer .GDO, .modern-footer .Orgelstrasse, .modern-footer .Manufakturenstrasse { display: block; width: 100%; height: 48px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.modern-footer .BDO { background-image: url(/assets/images/partners/Bund-deutscher-Orgelbaumeister.png); }
.modern-footer .GDO { background-image: url(/assets/images/partners/GDO.svg); }
.modern-footer .Orgelstrasse { background-image: url(/assets/images/partners/DeutscheOrgelstrasse.png); }
.modern-footer .Manufakturenstrasse { background-image: url(/assets/images/partners/deutsche-manufakturenstrasse.jpg); }
.modern-footer-social { display: flex; gap: 9px; margin-top: 13px; }
.modern-footer .Facebook, .modern-footer .Youtube, .modern-footer .Instagram { display: block; width: 29px; height: 29px; margin: 0; background-position: center; background-repeat: no-repeat; background-size: cover; }
.modern-footer-contact address { margin: 0 0 12px; font-style: normal; }
.modern-footer-contact address strong { color: #fff; font-weight: 700; }
.modern-footer-contact > a { display: block; width: fit-content; margin: 5px 0; }
.modern-footer-phone { font-weight: 700; }
.modern-footer-legal { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 13px; }
.modern-footer-audio p { margin: 0 0 10px; color: inherit; text-align: left; }
.modern-footer-audio nav { display: grid; gap: 5px; }
.modern-footer-credit { width: min(100%,var(--content)); margin: 18px auto 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; color: rgba(255,255,255,.6); font-size: .7rem; text-align: center; }
.modern-footer .Pfeil { appearance: none; position: fixed; z-index: 1200; top: auto; right: 24px; bottom: 24px; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; padding: 0; background: var(--green); box-shadow: 0 8px 22px rgba(0,0,0,.2); color: #fff; font-size: 0; cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none; text-decoration: none; transform: translateY(8px); transition: opacity .22s ease,transform .22s ease,visibility .22s ease; }
.modern-footer .Pfeil::before { width: 11px; height: 11px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; content: ""; transform: translateY(3px) rotate(45deg); }
.modern-footer .Pfeil.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.photo-viewer { width: min(94vw,1300px); max-width: none; max-height: 92vh; border: 0; padding: 0; background: transparent; color: #fff; }
.photo-viewer::backdrop { background: rgba(4,10,7,.86); backdrop-filter: blur(5px); }
.photo-viewer img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.photo-viewer figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 2px 0; color: rgba(255,255,255,.85); }
.photo-viewer button { border: 1px solid rgba(255,255,255,.45); padding: 8px 15px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.Schwarz { background: var(--green-deep); color: #fff; }
.Schwarz h1, .Schwarz h2, .Schwarz h3, .Schwarz p { color: #fff; }
.Fusszahl { color: var(--muted); font-size: .8rem; }
.Picture { display: block; max-width: 100%; height: auto; object-fit: cover; }
.LeistungBlog { width: min(var(--content),calc(100% - 48px)); margin: 24px auto; padding: clamp(18px,3vw,34px); background: #fff; }
.LeistungBlog img { display: block; width: 100%; max-height: 430px; object-fit: cover; }
.LeistungBlogtext { max-width: 72ch; margin: 0 auto; padding: 24px; line-height: 1.75; }
.Bannerbild, .HintergrundBild { display: block; }
.Bannerlink { color: inherit; text-underline-offset: 3px; }
.section { max-width: var(--content); margin: 0 auto; padding-inline: 24px; }
.Bildbeschreibung { color: var(--muted); }
.InfoBackground { color: var(--ink); }

@media (max-width: 980px) {
  .modern-header { min-height: 72px; }
  .modern-menu-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.38); padding: 9px 13px; background: transparent; color: #fff; font: 700 .88rem var(--sans); cursor: pointer; }
  .modern-menu-icon { display: grid; gap: 4px; width: 19px; }
  .modern-menu-icon i { display: block; width: 19px; height: 2px; background: currentColor; transition: transform .2s ease,opacity .2s ease; }
  .modern-menu-toggle[aria-expanded="true"] .modern-menu-icon i:first-child { transform: translateY(6px) rotate(45deg); }
  .modern-menu-toggle[aria-expanded="true"] .modern-menu-icon i:nth-child(2) { opacity: 0; }
  .modern-menu-toggle[aria-expanded="true"] .modern-menu-icon i:last-child { transform: translateY(-6px) rotate(-45deg); }
  .modern-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 72px); overflow-y: auto; align-items: stretch; gap: 3px; padding: 14px 22px 22px; background: var(--green-deep); box-shadow: 0 18px 28px rgba(0,0,0,.18); }
  .modern-navigation.is-open { display: grid; }
  .modern-navigation > a, .modern-submenu-toggle { width: 100%; justify-content: space-between; padding: 13px 14px; text-align: left; }
  .modern-navigation .modern-contact-link { margin: 7px 0 0; justify-content: center; }
  .modern-submenu { position: static; display: none; min-width: 0; margin: 2px 0 8px; padding: 6px; background: rgba(255,255,255,.08); box-shadow: none; opacity: 1; pointer-events: auto; }
  .modern-nav-group:hover .modern-submenu { display: none; }
  .modern-nav-group.is-open .modern-submenu { display: grid; }
  .modern-submenu a { color: #fff; }
  .modern-submenu a:hover { background: rgba(255,255,255,.12); color: #fff; }
  .Leistung { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .modern-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #referenztabelle { display: block; width: min(calc(100% - 40px),var(--content)) !important; min-width: 870px; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 680px) {
  .project-image-note { right: 14px; left: 14px; bottom: 12px; width: fit-content; max-width: calc(100% - 28px); font-size: .7rem; }
  .project-facts { width: calc(100% - 32px); grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-work-scope { width: calc(100% - 32px); margin-block: 24px 38px; }
  .project-work-grid { grid-template-columns: 1fr; gap: 10px; }
  .project-source { width: calc(100% - 36px); }
  .project-disposition { width: calc(100% - 32px); margin: 18px auto 26px; padding: 18px 14px; }
  .project-disposition-layout { grid-template-columns: 1fr; }
  .project-disposition-photo { order: 2; }
  body { font-size: 16px; }
  .modern-header { padding-inline: 18px; }
  .modern-brand img { width: 112px; height: 50px; }
  .modern-brand strong { font-size: .97rem; }
  .modern-brand small { font-size: .61rem; }
  .modern-menu-label { display: none; }
  .modern-menu-toggle { width: 46px; height: 46px; justify-content: center; padding: 10px; }
  .Slider { height: clamp(420px,72svh,650px); min-height: 420px; }
  .Slider > .Sliderinfo { right: 20px; bottom: 42px; left: 20px; }
  .Slider > .Banner { padding: 0 20px 42px; }
  .Slider .Sliderinfo h1, .Slider .Banner h1 { font-size: clamp(2.35rem,11vw,3.8rem); }
  .container { width: calc(100% - 40px); padding-top: 36px; }
  .Background { padding-bottom: 28px; }
  .Leistung { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 18px; margin: 17px auto; padding: 14px; }
  .Leistung img { height: 245px; }
  .Leistung .Beschreibung { padding: 4px 3px 8px; }
  .Background:has(> .Info) { width: calc(100% - 32px); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .Info .Beschreibung { padding: 13px; }
  .Info .Beschreibung h2 { font-size: 1.2rem; }
  .Info .Beschreibung h3 { font-size: .78rem; }
  .Info .Beschreibung p { font-size: .74rem; }
  .Blog { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 10px; margin: 18px auto; padding: 10px; }
  .BlogBilder { height: clamp(240px,62vw,350px); min-height: 0; grid-template-rows: repeat(2,minmax(110px,1fr)); gap: 6px; padding: 6px; }
  .Blog .Beschreibung { padding: 22px; }
  .ProjektGalerie { width: calc(100% - 32px); grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px; margin-bottom: 44px; }
  .ProjektGalerie .Werke, .ProjektGalerie .Projekt { aspect-ratio: 1; }
  .Galerie { width: calc(100% - 32px); grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; }
  .Disposition { width: 100%; grid-template-columns: 1fr; gap: 8px; }
  .works-toolbar { width: calc(100% - 32px); display: grid; align-items: start; }
  #referenztabelle { display: block; width: calc(100% - 32px) !important; min-width: 0; margin: 0 auto 44px; overflow: visible; white-space: normal; }
  #referenztabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #referenztabelle tbody { display: grid; gap: 10px; }
  #referenztabelle tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); background: #fff; }
  #referenztabelle tbody td { display: grid; min-width: 0; grid-template-columns: 76px minmax(0,1fr); gap: 8px; border-bottom: 1px solid var(--line); padding: 9px; white-space: normal; font-size: .9rem; line-height: 1.4; }
  #referenztabelle tbody td::before { color: var(--green); content: attr(data-label); font-size: .74rem; font-weight: 700; line-height: 1.35; }
  #referenztabelle tbody td:nth-child(2), #referenztabelle tbody td:nth-child(3), #referenztabelle tbody td:nth-child(5), #referenztabelle tbody td:nth-child(6), #referenztabelle tbody td:nth-child(8) { grid-column: 1 / -1; }
  .modern-footer { padding: 24px 20px 12px; }
  .modern-footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .modern-footer .Pfeil { right: 18px; bottom: 18px; }
  .LeistungBlog { width: calc(100% - 32px); }
  .LeistungBlogtext { padding: 18px 4px; }
  .Blogtext, .Content { width: calc(100% - 36px); }
  .InfoBackground { padding-bottom: 38px; }
}

/* Career page */
.career-hero { height: min(82svh,780px); min-height: 540px; }
.career-hero .Sliderinfo { max-width: var(--content); }
.career-hero .career-eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .83rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.career-hero .Sliderinfo h1 { max-width: 1000px; }
.career-hero .Sliderinfo > p:not(.career-eyebrow) { max-width: 680px; }
.career-hero .career-hero-link { margin-top: 22px; border-color: #fff; background: #fff; color: var(--green-deep); }
.career-hero .career-hero-link:hover { border-color: rgba(255,255,255,.8); background: transparent; color: #fff; }
.career-page { padding: 1px 0 70px; background: var(--paper); }
.career-intro, .career-roles, .career-profile, .career-benefits, .career-application { width: min(var(--content),calc(100% - 48px)); margin-inline: auto; }
.career-intro { display: grid; align-items: center; grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); gap: clamp(30px,6vw,82px); padding-block: clamp(60px,8vw,112px); }
.career-intro-copy { max-width: 680px; }
.career-eyebrow { margin: 0 0 12px; color: #8a7042; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.career-intro h2, .career-section-heading h2, .career-profile h2, .career-application h2 { margin: 0 0 18px; font: 500 clamp(2rem,4vw,3.35rem)/1.1 var(--serif); letter-spacing: -.03em; }
.career-lead { margin-bottom: 18px; color: var(--green); font: 500 clamp(1.15rem,2vw,1.45rem)/1.55 var(--serif); }
.career-intro-copy > p:last-child { max-width: 64ch; color: var(--muted); }
.career-workshop-photo { position: relative; margin: 0; }
.career-workshop-photo img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.career-workshop-photo figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; }
.career-roles { padding-block: 0 clamp(64px,8vw,110px); }
.career-section-heading { max-width: 750px; margin: 0 auto clamp(28px,4vw,48px); text-align: center; }
.career-role-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.career-role-card { position: relative; min-height: 265px; overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: clamp(24px,3.5vw,42px); background: #fff; }
.career-role-number { display: block; margin-bottom: 28px; color: #a58a55; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.career-role-card h3 { margin-bottom: 12px; font: 500 clamp(1.35rem,2.2vw,1.8rem)/1.2 var(--serif); }
.career-role-card p { max-width: 58ch; margin: 0; color: var(--muted); }
.career-profile { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(30px,6vw,90px); padding: clamp(34px,5vw,60px); background: var(--green-deep); color: #fff; }
.career-profile-heading .career-eyebrow { color: var(--gold); }
.career-profile h2 { margin-bottom: 0; color: #fff; }
.career-profile-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.career-profile-list li { position: relative; border-bottom: 1px solid rgba(255,255,255,.18); padding: 0 0 14px 28px; color: rgba(255,255,255,.9); }
.career-profile-list li:last-child { border: 0; padding-bottom: 0; }
.career-profile-list li::before { position: absolute; top: .58em; left: 1px; width: 9px; height: 9px; border: 2px solid var(--gold); border-radius: 50%; content: ""; }
.career-benefits { padding-block: clamp(66px,8vw,110px); }
.career-benefit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.career-benefit { min-height: 195px; border: 1px solid var(--line); padding: 22px; background: #fff; }
.career-benefit > span { display: block; margin-bottom: 20px; color: #a58a55; font-size: .76rem; font-weight: 700; letter-spacing: .12em; }
.career-benefit h3 { margin-bottom: 8px; font: 500 1.2rem/1.18 var(--serif); }
.career-benefit p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.career-application { display: grid; align-items: center; grid-template-columns: minmax(0,1.2fr) minmax(250px,.8fr); gap: 36px; padding: clamp(30px,5vw,58px); background: var(--green-tint); }
.career-application > div:first-child > p:last-child { max-width: 62ch; margin: 0; color: var(--muted); }
.career-application h2 { margin-bottom: 14px; }
.career-application-actions { display: grid; justify-items: start; gap: 12px; }
.career-application-actions .Link { margin: 0; }
.career-phone-link { color: var(--green); font-weight: 700; text-decoration-thickness: 1px; }
@media (max-width: 900px) {
  .career-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .career-intro { gap: 28px; }
}
@media (max-width: 680px) {
  .career-hero { height: 50svh; min-height: 0; }
  .career-hero .Sliderinfo h1 { font-size: clamp(2rem,9vw,3.1rem); }
  .career-hero .Sliderinfo > p:not(.career-eyebrow) { font-size: .95rem; }
  .career-intro, .career-roles, .career-profile, .career-benefits, .career-application { width: calc(100% - 32px); }
  .career-intro { grid-template-columns: 1fr; padding-block: 42px 54px; }
  .career-workshop-photo img { aspect-ratio: 1.25; }
  .career-role-grid, .career-profile, .career-application { grid-template-columns: 1fr; }
  .career-roles { padding-bottom: 54px; }
  .career-role-card { min-height: 0; padding: 24px; }
  .career-role-number { margin-bottom: 18px; }
  .career-profile { gap: 22px; padding: 25px 22px; }
  .career-benefits { padding-block: 54px; }
  .career-benefit-grid { gap: 9px; }
  .career-benefit { min-height: 0; padding: 17px 15px; }
  .career-benefit > span { margin-bottom: 14px; }
  .career-benefit h3 { font-size: 1.05rem; }
  .career-benefit p { font-size: .83rem; }
  .career-benefit:last-child { grid-column: 1 / -1; }
  .career-application { gap: 22px; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Focused refinements: readable project copy, instrument typography and visible controls */
.modern-navigation .modern-chevron { flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid #e4d2a5; border-bottom: 2px solid #e4d2a5; }
.Blog { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
.BlogBilder { height: clamp(240px,26vw,350px); max-height: 350px; }
.Blog .Beschreibung { align-self: start; padding: clamp(16px,2.5vw,30px); }
.Blog .Beschreibung h3 { margin: 1.5em 0 .55em; color: var(--green); font-size: clamp(1.1rem,1.7vw,1.4rem); }
.Blog .Beschreibung > p { max-width: 68ch; }
.Disposition, .Disposition table, .Disposition caption, .Disposition td, .Disposition th { font-family: var(--serif); }
.Disposition .Register { font-weight: 400; }
.Disposition .Register::first-letter { color: #9b7935; font-weight: 700; }
.Werkstext p, .ProjektText p { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px); transition: max-height .25s ease, opacity .2s ease, transform .2s ease; }
.ProjektGalerie .Werke:hover .Werkstext p, .ProjektGalerie .Werke:focus-visible .Werkstext p,
.ProjektGalerie .Projekt:hover .ProjektText p, .ProjektGalerie .Projekt:focus-visible .ProjektText p { max-height: 8rem; opacity: 1; transform: translateY(0); }
.modern-footer-social a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); }
.modern-footer-social svg { display: block; width: 18px; height: 18px; overflow: visible; }
.modern-footer-social .social-facebook { fill: #fff; }
.modern-footer-social .social-youtube { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modern-footer-social .social-instagram { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.photo-viewer { position: relative; }
.photo-viewer figure { position: relative; margin: 0; }
.photo-viewer .viewer-control { position: absolute; z-index: 2; top: 40%; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; padding: 0; background: rgba(13,43,32,.78); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.photo-viewer .viewer-prev { left: 12px; }
.photo-viewer .viewer-next { right: 12px; }
.photo-viewer .viewer-close { margin-left: auto; }
@media (max-width: 680px) {
  .Blog { grid-template-columns: 1fr; }
  .Werkstext p, .ProjektText p,
  .ProjektGalerie .Werke:hover .Werkstext p, .ProjektGalerie .Werke:focus-visible .Werkstext p,
  .ProjektGalerie .Projekt:hover .ProjektText p, .ProjektGalerie .Projekt:focus-visible .ProjektText p { max-height: 8rem; opacity: 1; transform: none; }
  .photo-viewer .viewer-control { width: 40px; height: 40px; }
}
/* Readable customer testimonial banners */
.testimonial-slider { width: min(760px,100%); margin-top: clamp(22px,4vh,42px); padding: clamp(16px,2vw,24px); border-left: 3px solid var(--gold); background: rgba(7,22,15,.78); color: #fff; text-align: left; backdrop-filter: blur(3px); }
.testimonial-slide { margin: 0; }
.testimonial-slide[hidden] { display: none; }
.testimonial-slide blockquote, .banner-testimonial p, .customer-quote { margin: 0; color: #fff; font: italic 500 clamp(1.15rem,2vw,1.65rem)/1.4 var(--serif); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.testimonial-slide figcaption, .banner-testimonial cite { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 12px; color: rgba(255,255,255,.92); font: 500 .78rem/1.5 var(--sans); }
.testimonial-slide figcaption a { color: #f0dfb7; text-underline-offset: 3px; }
.testimonial-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testimonial-controls > button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; padding: 0; background: transparent; color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.testimonial-controls > button:hover { background: rgba(255,255,255,.14); }
.testimonial-dots { display: flex; align-items: center; gap: 7px; }
.testimonial-dot { width: 8px; height: 8px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.65); cursor: pointer; }
.testimonial-dot[aria-current="true"] { background: #f0dfb7; box-shadow: 0 0 0 3px rgba(240,223,183,.2); }
.banner-testimonial { max-width: 690px; margin: 22px 0 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: rgba(7,22,15,.78); backdrop-filter: blur(3px); }
.banner-testimonial p { font-size: clamp(1.05rem,1.65vw,1.45rem); }
@media (max-width: 680px) { .testimonial-slider { width: 100%; margin-top: 18px; padding: 14px; } .testimonial-slide blockquote { font-size: 1.05rem; } .testimonial-slide figcaption, .banner-testimonial cite { font-size: .72rem; } }
.testimonial-list p > i { font-family: var(--serif); font-size: 1.04em; font-style: italic; line-height: 1.75; }
.testimonial-list > p { margin-bottom: 1.7em; }

.modern-footer-brand > .Schriftzug { align-self: center; margin-inline: auto; }
.modern-footer-social { width: 100%; justify-content: center; }

.modern-footer-partners .partner-logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 48px; object-fit: contain; }

/* Put project photos in the reading flow instead of isolated image columns */
.Blog { display: flow-root; }
.BlogBilder { float: left; width: min(42%,470px); height: clamp(250px,27vw,340px); max-height: 340px; margin: 8px 28px 18px 0; padding: 6px; }
.Blog .Beschreibung { display: block; align-self: auto; padding: 10px 8px 16px 0; }
.Blog::after, .Leistung::after { display: table; clear: both; content: ""; }
.Leistung { display: flow-root; align-items: initial; }
.Leistung > img, .Leistung > a.Hover, .Leistung > a:has(> img) { float: left; width: min(42%,470px); margin: 4px 28px 18px 0; }
.Leistung > img { height: auto; max-height: 340px; aspect-ratio: 4 / 3; object-fit: cover; }
.Leistung > a.Hover img, .Leistung > a:has(> img) img { width: 100%; height: auto; max-height: 340px; aspect-ratio: 4 / 3; object-fit: cover; }
.Leistung .Beschreibung { display: block; overflow: visible; padding: 8px 4px; }
.Leistung .Beschreibung h2 { margin-top: 0; }
.Blog .Beschreibung > .Bildinfo, .Leistung .Beschreibung > .Bildinfo { float: right; width: min(38%,280px); margin: 5px 0 18px 22px; padding: 0; background: #fff; }
.Blog .Beschreibung > .Bildinfo img, .Leistung .Beschreibung > .Bildinfo img { display: block; width: 100%; height: auto; max-height: 235px; object-fit: cover; }
.Blog .Beschreibung > .Bildinfo p, .Leistung .Beschreibung > .Bildinfo p { margin: 0; padding: 7px 9px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
@media (max-width: 680px) {
  .Slider { height: clamp(420px,72svh,650px); min-height: 420px; }
  .BlogBilder { float: none; width: 100%; height: clamp(230px,60vw,320px); margin: 0 0 14px; }
  .Blog .Beschreibung { padding: 12px 8px 14px; }
  .Leistung > img, .Leistung > a.Hover, .Leistung > a:has(> img) { float: none; width: 100%; max-height: 280px; margin: 0 0 16px; }
  .Leistung > img, .Leistung > a.Hover img, .Leistung > a:has(> img) img { height: auto; max-height: 280px; aspect-ratio: 16 / 10; }
  .Blog .Beschreibung > .Bildinfo, .Leistung .Beschreibung > .Bildinfo { width: min(48%,220px); margin: 4px 0 14px 14px; }
}.Beschreibung > .project-inline-photo { float: right; width: min(38%,280px); margin: 5px 0 18px 22px; padding: 0; background: #fff; }
.Beschreibung > .project-inline-photo img { display: block; width: 100%; height: auto; max-height: 235px; object-fit: cover; }
.Beschreibung > .project-inline-photo p { margin: 0; padding: 7px 9px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
@media (max-width: 680px) {
  .Beschreibung > .project-inline-photo { width: min(48%,220px); margin: 4px 0 14px 14px; }
}
/* Keep project photo cards clear of the main text flow. */
.Beschreibung > .project-inline-photo { float: none; display: inline-grid; vertical-align: top; width: min(31%,280px); margin: 16px 1.2% 14px 0; padding: 0; background: #fff; }
.Beschreibung > .project-inline-photo img { display: block; width: 100%; height: auto; max-height: 210px; object-fit: cover; }
.Beschreibung > .project-inline-photo p { margin: 0; padding: 7px 9px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.modern-footer-inner { align-items: center; }
.modern-footer-contact { font-size: .92rem; }
.modern-footer-contact address { margin: 0 0 14px; line-height: 1.7; }
.modern-footer-contact address strong { display: inline-block; margin-bottom: 2px; font-size: 1rem; }
.modern-footer-contact > a { margin: 9px 0; font-size: .94rem; font-weight: 700; }
.modern-footer-contact .modern-footer-phone { color: #e3cf9c; font-size: 1rem; }
@media (max-width: 680px) {
  .Beschreibung > .project-inline-photo { width: min(47%,240px); margin: 12px 2% 12px 0; }
  .modern-footer-inner { align-items: start; }
}.photo-viewer { position: fixed; inset: 0; display: grid; width: min(94vw,1300px); height: fit-content; max-height: 92vh; margin: auto; place-items: center; }
.photo-viewer figure { width: 100%; max-height: 92vh; }
.photo-viewer img { width: auto; height: auto; max-width: 100%; max-height: 78vh; }
/* Shared project layout: one large image with copy flowing around it. */
.Blog { display: flow-root; width: min(var(--content),calc(100% - 48px)); margin: 26px auto; padding: 20px; overflow: hidden; background: #fff; }
.BlogBilder { float: left; width: min(42%,470px); height: clamp(250px,27vw,360px); max-height: 360px; margin: 4px 28px 18px 0; padding: 0; }
.Blog .Beschreibung { display: block; min-width: 0; padding: 4px 0 12px; }
.Leistung { display: flow-root; width: min(var(--content),calc(100% - 48px)); margin: 26px auto; padding: 20px; overflow: hidden; background: #fff; }
.Leistung > img, .Leistung > a.Hover, .Leistung > a:has(> img) { float: left; width: min(42%,470px); margin: 4px 28px 18px 0; }
.Leistung > img, .Leistung > a.Hover img, .Leistung > a:has(> img) img { display: block; width: 100%; height: auto; max-height: 360px; aspect-ratio: 4 / 3; object-fit: cover; }
.Leistung .Beschreibung { display: block; min-width: 0; padding: 4px 0 12px; overflow: visible; }
.Leistung .Beschreibung h2, .Blog .Beschreibung h2 { margin-top: 0; }
.Blog .Beschreibung h3, .Leistung .Beschreibung h3 { margin: 1.25em 0 .45em; color: var(--green); font-size: 1.15rem; }
/* Keep secondary project photos in the lightbox, but remove the small cards from the page. */
.Beschreibung > .project-inline-photo { display: none !important; }
.photo-viewer { position: fixed; inset: 0; display: grid; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 20px; place-items: center; overflow: hidden; background: rgba(4,10,7,.96); color: #fff; }
.photo-viewer::backdrop { background: rgba(4,10,7,.96); }
.photo-viewer figure { display: flex; width: min(100%,1400px); height: 100%; max-height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; }
.photo-viewer .viewer-stage { display: grid; width: 100%; min-height: 0; flex: 1 1 auto; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; gap: 12px; }
.photo-viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 132px); margin: 0 auto; object-fit: contain; }
.photo-viewer .viewer-control { position: static; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; padding: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.photo-viewer .viewer-prev, .photo-viewer .viewer-next { justify-self: center; }
.photo-viewer figcaption { display: flex; width: min(100%,900px); min-height: 48px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; padding: 0; color: rgba(255,255,255,.9); }
.photo-viewer .viewer-close { border: 1px solid rgba(255,255,255,.7); border-radius: 2px; padding: 10px 16px; background: #153b2d; color: #fff; font: inherit; cursor: pointer; }
@media (max-width: 680px) {
  .Blog, .Leistung { width: calc(100% - 32px); margin: 18px auto; padding: 14px; }
  .BlogBilder { float: none; width: 100%; height: clamp(230px,60vw,320px); margin: 0 0 14px; }
  .Leistung > img, .Leistung > a.Hover, .Leistung > a:has(> img) { float: none; width: 100%; max-height: 280px; margin: 0 0 16px; }
  .Leistung > img, .Leistung > a.Hover img, .Leistung > a:has(> img) img { max-height: 280px; aspect-ratio: 16 / 10; }
  .Blog .Beschreibung, .Leistung .Beschreibung { padding: 8px 0; }
  .photo-viewer { padding: 12px; }
  .photo-viewer .viewer-stage { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 6px; }
  .photo-viewer .viewer-control { width: 38px; height: 38px; }
  .photo-viewer img { max-width: calc(100vw - 112px); max-height: calc(100dvh - 118px); }
}
.photo-viewer .viewer-control[hidden] { display: none !important; }
.photo-viewer[open] { display: grid; }

.photo-viewer:not([open]) { display: none !important; }
.photo-viewer[open] { display: grid; }

/* Keep the large project photo beside readable copy, with the copy flowing around it. */
.Blog, .Leistung { display: flow-root; }
.BlogBilder { float: left; width: min(42%,470px); max-width: 470px; margin: 4px 28px 18px 0; }
.Blog .Beschreibung, .Leistung .Beschreibung { display: block; float: none; width: 100%; max-width: none; min-width: 0; }
.Blog .Beschreibung > p, .Leistung .Beschreibung > p { width: auto; max-width: none; }
.Blog .Beschreibung h2, .Leistung .Beschreibung h2 { display: block; margin: 0 0 14px; color: var(--green); font: 500 clamp(1.45rem,2.3vw,2rem)/1.2 var(--serif); }
@media (max-width: 680px) {
  .BlogBilder { float: none; width: 100%; max-width: none; margin: 0 0 16px; }
  .Blog .Beschreibung, .Leistung .Beschreibung { width: 100%; }
}
.photo-viewer img.viewer-image-enter { animation: viewer-image-enter .34s cubic-bezier(.2,.7,.25,1) both; }
@keyframes viewer-image-enter { from { opacity: 0; transform: translateX(14px) scale(.99); } to { opacity: 1; transform: translateX(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .photo-viewer img.viewer-image-enter { animation-duration: .01ms; } }
/* Keep primary project images compact and to the left on desktop. */
@media (min-width: 681px) {
  .Leistung > img { float: left; width: min(42%,470px); max-width: 470px; height: auto; max-height: 360px; aspect-ratio: 4 / 3; margin: 4px 28px 18px 0; object-fit: cover; }
  .Leistung > a.Hover, .Leistung > a:has(> img) { float: left; width: min(42%,470px); max-width: 470px; margin: 4px 28px 18px 0; }
  .Leistung > a.Hover img, .Leistung > a:has(> img) img { display: block; width: 100%; height: auto; max-height: 360px; aspect-ratio: 4 / 3; object-fit: cover; }
}
/* Mammendorf: clear two-column disposition and compact project summary. */
.detailed-disposition { grid-template-columns: repeat(2,minmax(0,1fr)); }
.Leistung .Blogtext { width: 100%; max-width: none; margin: 0; padding: 0; }
@media (max-width: 680px) { .detailed-disposition { grid-template-columns: 1fr; } }
.Beschreibung .project-inline-photo { display: none !important; }

.detailed-disposition table { table-layout: fixed; }
.detailed-disposition td:nth-child(1) { width: 30%; }
.detailed-disposition td:nth-child(2) { width: 12%; white-space: nowrap; }
.detailed-disposition td:nth-child(3) { width: 58%; }
.detailed-disposition .Register-detail { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.mammendorf-credits { display: grid; max-width: 900px; margin: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); }
.mammendorf-credits > div { padding: 12px 14px; background: #f7f8f5; }
.mammendorf-credits dt { color: var(--green); font-weight: 700; }
.mammendorf-credits dd { margin: 3px 0 0; color: var(--ink); }
@media (max-width: 680px) { .mammendorf-credits { grid-template-columns: 1fr; } }.project-work-grid article { display: flow-root; }
.project-work-grid .project-text-photo { float: left; width: min(42%,250px); margin: 2px 18px 12px 0; }
.project-work-grid .project-text-photo img { display: block; width: 100%; height: auto; max-height: 230px; aspect-ratio: 4 / 3; object-fit: cover; cursor: default; }
.project-work-grid .project-text-photo figcaption { margin-top: 6px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
@media (max-width: 680px) { .project-work-grid .project-text-photo { width: min(48%,230px); margin-right: 14px; } }
/* Homepage photo carousel */
.home-image-slider .home-slider-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s ease; }
.home-image-slider { background: var(--green-deep); }
.home-image-slider.has-video-fallback { background: var(--green-deep) url("../images/home/Orgelbau-Werkstatt-Maschinenraum.jpeg") center 48% / cover no-repeat; }
.home-image-slider .home-slider-slide.is-active { opacity: 1; visibility: visible; }
.home-image-slider .home-slider-slide img { animation: home-slide-drift 7s ease both; }
@keyframes home-slide-drift { from { transform: scale(1.025); } to { transform: scale(1); } }
.home-slider-controls { position: absolute; z-index: 3; left: 50%; bottom: clamp(18px,3vw,32px); display: flex; align-items: center; transform: translateX(-50%); }
.home-slider-dots { display: flex; align-items: center; gap: 7px; }
.home-slider-dot { width: 9px; height: 9px; border: 1px solid #fff; border-radius: 50%; padding: 0; background: transparent; cursor: pointer; transition: transform .2s ease,background .2s ease; }
.home-slider-dot[aria-current="true"] { transform: scale(1.25); background: var(--gold); }
@media (max-width: 680px) { .home-slider-controls { bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .home-image-slider .home-slider-slide, .home-image-slider .home-slider-slide img, .home-slider-dot { animation: none; transition: none; } }

/* Keep the Einhausungen list in a clean column beside its photo. */
.Leistung.einhausungen-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: clamp(22px,4vw,44px); }
.Leistung.einhausungen-layout > img { float: none; width: 100%; max-width: none; height: auto; max-height: 420px; aspect-ratio: 4 / 3; margin: 4px 0 0; object-fit: cover; }
.Leistung.einhausungen-layout .Beschreibung { width: auto; min-width: 0; padding: 0; }
.einhausungen-list { display: grid; gap: 6px; margin: 0; padding-left: 1.2rem; line-height: 1.5; }
.einhausungen-list li { padding-left: 2px; }
@media (max-width: 680px) { .Leistung.einhausungen-layout { grid-template-columns: 1fr; gap: 18px; } .Leistung.einhausungen-layout > img { max-height: 300px; aspect-ratio: 16 / 10; } }

/* Chest organ cards reveal details on hover/focus, like the works overview. */
.chest-organ-gallery .Projekt > a p { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px); transition: max-height .28s ease,opacity .22s ease,transform .22s ease; }
.chest-organ-gallery .Projekt:hover > a p, .chest-organ-gallery .Projekt:focus-within > a p { max-height: 5rem; opacity: 1; transform: translateY(0); }
.chest-organ-gallery .Projekt > a h3 { transition: transform .22s ease; }
.chest-organ-gallery .Projekt:hover > a h3, .chest-organ-gallery .Projekt:focus-within > a h3 { transform: translateY(-2px); }
@media (max-width: 680px) { .chest-organ-gallery .Projekt > a p { max-height: 5rem; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chest-organ-gallery .Projekt > a p, .chest-organ-gallery .Projekt > a h3 { transition: none; } }

/* Footer refresh */
.modern-footer { border-top: 3px solid var(--gold); padding: clamp(34px,5vw,58px) max(24px,calc((100vw - var(--content)) / 2)) 18px; background: linear-gradient(140deg,#102b20,#0b241a 72%); color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.6; }
.modern-footer-inner { grid-template-columns: minmax(220px,.95fr) minmax(250px,1.05fr) minmax(280px,1.2fr); align-items: stretch; gap: clamp(18px,2.4vw,32px); }
.modern-footer-brand, .modern-footer-contact, .modern-footer-audio { min-width: 0; }
.modern-footer-brand { display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.modern-footer .Schriftzug { width: 178px; height: 66px; margin-bottom: 22px; }
.modern-footer-partners { max-width: 320px; gap: 8px; }
.modern-footer-partners a { min-height: 62px; border-radius: 3px; transition: transform .2s ease,box-shadow .2s ease; }
.modern-footer-partners a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.modern-footer-social { gap: 10px; margin-top: 18px; }
.modern-footer-social a { width: 40px; height: 40px; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.modern-footer-contact, .modern-footer-audio { border: 1px solid rgba(255,255,255,.16); border-radius: 4px; padding: clamp(18px,2.4vw,28px); background: rgba(255,255,255,.045); }
.modern-footer h2 { margin-bottom: 16px; color: #e3cf9c; font-size: .76rem; letter-spacing: .16em; }
.modern-footer-contact address { margin-bottom: 16px; line-height: 1.8; }
.modern-footer-contact > a { margin: 8px 0; font-size: 1rem; }
.modern-footer-contact .modern-footer-phone, .modern-footer-contact > a[href^="mailto:"] { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; padding: 10px 12px; background: rgba(255,255,255,.055); text-decoration: none; }
.modern-footer-contact .modern-footer-phone { color: #f0dfb7; font-size: 1.05rem; }
.modern-footer-contact > a[href^="mailto:"] { font-weight: 700; }
.modern-footer-legal { gap: 8px 16px; margin-top: 20px; }
.modern-footer-audio > p { margin-bottom: 16px; line-height: 1.7; }
.modern-footer-audio nav { gap: 7px; }
.modern-footer-audio nav a { border-left: 2px solid rgba(205,177,121,.72); padding: 6px 10px; background: rgba(255,255,255,.045); text-decoration: none; transition: background .18s ease,padding .18s ease; }
.modern-footer-audio nav a:hover { padding-left: 14px; background: rgba(255,255,255,.1); }
.modern-footer-credit { margin-top: 26px; padding-top: 14px; font-size: .76rem; }
@media (max-width: 860px) { .modern-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); } .modern-footer-brand { grid-column: 1 / -1; align-items: center; padding: 4px 0 10px; } .modern-footer .Schriftzug { margin-inline: auto; } }
@media (max-width: 600px) { .modern-footer { padding: 34px 18px 16px; } .modern-footer-inner { grid-template-columns: 1fr; gap: 14px; } .modern-footer-brand { grid-column: auto; } .modern-footer-contact, .modern-footer-audio { padding: 20px; } .modern-footer-contact > a { width: 100%; } .modern-footer-credit { margin-top: 18px; } }

/* Keep testimonial height stable while quotes crossfade. */
.testimonial-slides { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; }
.testimonial-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(7px); pointer-events: none; transition: opacity .35s ease,transform .35s ease,visibility .35s ease; }
.testimonial-slide.is-active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.testimonial-slide[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .testimonial-slide { transition: none; transform: none; } }
.team-gallery .Info .Beschreibung h3, .team-gallery .Info .Beschreibung p { max-height: 0; margin-bottom: 0; overflow: hidden; opacity: 0; transform: translateY(8px); transition: max-height .28s ease,opacity .22s ease,transform .22s ease,margin .22s ease; }
.team-gallery .Info:hover .Beschreibung h3, .team-gallery .Info:hover .Beschreibung p, .team-gallery .Info:focus-within .Beschreibung h3, .team-gallery .Info:focus-within .Beschreibung p { max-height: 5rem; margin-bottom: 5px; opacity: 1; transform: translateY(0); }
.team-gallery .Info { outline: none; }
.team-gallery .Info:focus-visible .Beschreibung { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 680px) { .team-gallery .Info .Beschreibung h3, .team-gallery .Info .Beschreibung p { max-height: 5rem; margin-bottom: 5px; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .team-gallery .Info .Beschreibung h3, .team-gallery .Info .Beschreibung p { transition: none; } }

/* Keep the header and navigation controls the same size while scrolling. */
:root { --header-full-height: 82px; }
.modern-header { min-height: 82px; padding-top: 9px; padding-bottom: 9px; transition: box-shadow .2s ease; }
.modern-brand { gap: 0; transition: gap .24s ease; }
.modern-brand img { width: 146px; height: 62px; transition: none; }
.modern-brand span { max-width: 0; overflow: hidden; opacity: 0; transform: translateX(-8px); white-space: nowrap; transition: max-width .24s ease,opacity .2s ease,transform .24s ease; }
.modern-navigation > a, .modern-submenu-toggle { min-height: 48px; padding: 11px 15px; transition: min-height .24s ease,padding .24s ease,background .2s ease,color .2s ease; }
.modern-header.is-scrolled { min-height: 82px; padding-top: 9px; padding-bottom: 9px; box-shadow: 0 4px 18px rgba(13,27,19,.2); }
.modern-header.is-scrolled .modern-brand { gap: 13px; }
.modern-header.is-scrolled .modern-brand img { width: 146px; height: 62px; }
.modern-header.is-scrolled .modern-brand span { max-width: 240px; opacity: 1; transform: translateX(0); }
.Slider { height: calc(100svh - var(--header-full-height)); min-height: 0; }
.home-image-slider .home-slider-slide video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
@media (max-width: 980px) {
  :root { --header-full-height: 72px; }
  .modern-header { min-height: 72px; padding-top: 6px; padding-bottom: 6px; }
  .modern-brand img { width: 128px; height: 56px; }
  .modern-header.is-scrolled { min-height: 72px; padding-top: 6px; padding-bottom: 6px; }
  .modern-header.is-scrolled .modern-brand img { width: 128px; height: 56px; }
  .modern-header.is-scrolled .modern-brand span { max-width: 210px; }
  .Slider { height: calc(100svh - var(--header-full-height)); min-height: 0; }
}
@supports not (height: 100svh) { .Slider { height: calc(100vh - var(--header-full-height)); } }

/* Keep the navigation in a steady right aligned dock, with a clear contact action. */
@media (min-width: 981px) {
  .modern-header { justify-content: space-between; gap: clamp(20px,3vw,44px); border-bottom: 0; }
  .modern-navigation { flex: 0 1 auto; justify-content: flex-end; gap: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 4px; background: rgba(255,255,255,.045); }
  .modern-navigation > a, .modern-submenu-toggle { min-height: 42px; border-radius: 2px; padding: 9px clamp(10px,.85vw,15px); font-size: .86rem; letter-spacing: .01em; }
  .modern-navigation > a:hover, .modern-submenu-toggle:hover, .modern-nav-group.is-open > .modern-submenu-toggle { background: rgba(255,255,255,.1); }
  .modern-navigation .modern-contact-link { margin-left: 8px; border: 0; border-radius: 2px; padding-inline: 18px; background: var(--gold); color: var(--green-deep); }
  .modern-navigation .modern-contact-link:hover, .modern-navigation .modern-contact-link:focus-visible { background: #d9c18e; color: var(--green-deep); }
}

.modern-footer { border-top: 0 !important; }
.news-archive-cta { display: flex; width: min(var(--content),calc(100% - 48px)); align-items: center; justify-content: space-between; gap: 24px; margin: 12px auto 30px; border-top: 1px solid var(--line); padding: 24px 0 0; }
.news-archive-cta h2 { margin: 0 0 4px; font: 500 clamp(1.25rem,2vw,1.6rem)/1.2 var(--serif); }
.news-archive-cta p { margin: 0; color: var(--muted); font-size: .92rem; }
.news-archive-link { display: inline-flex; min-height: 46px; align-items: center; gap: 12px; border: 1px solid var(--green); border-radius: 2px; padding: 10px 17px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s ease,color .2s ease,gap .2s ease; }
.news-archive-link::after { content: "→"; transition: transform .2s ease; }
.news-archive-link:hover, .news-archive-link:focus-visible { background: transparent; color: var(--green); }
.news-archive-link:hover::after { transform: translateX(4px); }
@media (max-width: 680px) { .news-archive-cta { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 8px; } }

.pneumatic-systems { display: grid; width: min(var(--content),calc(100% - 48px)); grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,2vw,24px); margin: 0 auto 40px; }
.pneumatic-system { min-width: 0; border: 1px solid var(--line); padding: clamp(16px,2vw,24px); background: #fff; }
.pneumatic-system h2 { min-height: 2.45em; margin: 0 0 15px; color: var(--green); font: 500 clamp(1.2rem,1.8vw,1.55rem)/1.2 var(--serif); }
.pneumatic-system-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pneumatic-system-gallery img { display: block; width: 100%; height: clamp(150px,16vw,230px); border: 1px solid var(--line); padding: 0; background: var(--paper); object-fit: cover; cursor: zoom-in; }
.pneumatic-system-gallery img.diagram { padding: 8px; background: #fff; object-fit: contain; }
.pneumatic-system > .Link { margin-top: 14px; }
.pneumatic-system:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
@media (max-width: 760px) { .pneumatic-systems { width: calc(100% - 32px); grid-template-columns: 1fr; } .pneumatic-system:last-child:nth-child(odd) { grid-column: auto; width: auto; } .pneumatic-system-gallery img { height: clamp(170px,38vw,250px); } }

/* Clear ventilation decision and seasonal guidance on the church climate page. */
.ventilation-guide { display: grid; gap: clamp(20px,3vw,30px); }
.ventilation-guide-header { max-width: 76ch; }
.ventilation-kicker { margin: 0 0 7px; color: #66756c; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ventilation-guide-header > h2 { margin: 0 0 10px; color: var(--green); font: 500 clamp(1.65rem,2.8vw,2.35rem)/1.15 var(--serif); }
.ventilation-guide-header > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.ventilation-decision { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); border: 1px solid var(--line); background: #fff; }
.ventilation-measure { padding: clamp(18px,2.5vw,26px); background: #f6f7f3; }
.ventilation-measure h3, .ventilation-note h3 { margin: 0 0 9px; color: var(--green); font: 600 1.15rem/1.25 var(--serif); }
.ventilation-measure p, .ventilation-note p { margin: 0; color: var(--ink); line-height: 1.6; }
.ventilation-calculator-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 15px; color: var(--green); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ventilation-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: clamp(14px,2vw,20px); }
.ventilation-action { align-content: start; padding: 16px; border: 1px solid; border-radius: 3px; }
.ventilation-action h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.ventilation-action h3 span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: currentColor; font-size: .9rem; }
.ventilation-action p { margin: 0; font-size: .91rem; line-height: 1.55; }
.ventilation-action-open { border-color: #b8d9c1; background: #edf7ef; color: #176235; }
.ventilation-action-open h3 span { color: #fff; background: #176235; }
.ventilation-action-closed { border-color: #e7c0bd; background: #fcf0ef; color: #9d302b; }
.ventilation-action-closed h3 span { color: #fff; background: #9d302b; }
.ventilation-seasons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ventilation-season { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 17px 18px; background: #fff; }
.ventilation-season-label { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ventilation-season h3 { margin: 5px 0 6px; color: var(--green); font: 500 1.25rem/1.2 var(--serif); }
.ventilation-season p { margin: 0; color: var(--ink); font-size: .91rem; line-height: 1.55; }
.ventilation-note { border-left: 4px solid var(--gold); padding: 16px 19px; background: #f6f4ed; }
@media (max-width: 760px) { .ventilation-decision { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ventilation-actions, .ventilation-seasons { grid-template-columns: 1fr; } .ventilation-action, .ventilation-season { padding: 15px; } }

/* Consistent archive cards, with a clean image and copy column. */
.archive-posts .Blog { display: grid; width: min(var(--content),calc(100% - 48px)); grid-template-columns: minmax(260px,.78fr) minmax(0,1.22fr); align-items: start; gap: clamp(24px,4vw,48px); margin: 26px auto; padding: clamp(18px,3vw,30px); }
.archive-posts .Blog > img { display: block; align-self: start; width: 100%; height: auto !important; max-height: none; margin: 0; object-fit: contain; }
.archive-posts .BlogBilder { display: grid; float: none; width: 100%; height: clamp(280px,28vw,360px); max-height: none; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; }
.archive-posts .Blog .Beschreibung { min-width: 0; padding: 0; }
.archive-posts .Blog .Beschreibung > .Link { display: inline-flex; margin: 8px 8px 0 0; vertical-align: top; }
@media (max-width: 680px) {
  .archive-posts .Blog { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 16px; margin: 18px auto; padding: 14px; }
  .archive-posts .BlogBilder { height: clamp(230px,60vw,320px); }
}

/* Selected new builds and restorations: location first, details on hover or focus. */
.ProjektGalerie .Projekt > a p { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px); transition: max-height .28s ease,opacity .22s ease,transform .22s ease; }
.ProjektGalerie .Projekt:hover > a p, .ProjektGalerie .Projekt:focus-within > a p { max-height: 8rem; opacity: 1; transform: translateY(0); }
@media (max-width: 680px) { .ProjektGalerie .Projekt > a p { max-height: 8rem; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ProjektGalerie .Projekt > a p { transition: none; } }

/* New editorial navigation: light paper header, free links, no boxed menu. */
:root { --header-full-height: 78px; }
.modern-header { min-height: 78px; padding: 9px max(28px,calc((100vw - var(--content)) / 2)); background: rgba(245,243,237,.98); color: var(--green-deep); box-shadow: 0 3px 16px rgba(13,43,32,.08); }
.modern-brand { gap: 14px; color: var(--green-deep); }
.modern-brand img { width: 48px; height: 48px; border-radius: 3px; background: var(--green-deep); object-fit: contain; }
.modern-brand span { width: 220px; max-width: 220px; overflow: visible; opacity: 0; transform: translateY(4px); transition: opacity .2s ease,transform .2s ease; visibility: hidden; }
.modern-header.is-scrolled .modern-brand span { max-width: 220px; opacity: 1; transform: translateY(0); visibility: visible; }
.modern-brand strong { color: var(--green-deep); font-size: 1.02rem; }
.modern-brand small { color: var(--muted); font-size: .64rem; letter-spacing: .16em; }
.modern-navigation { flex: 0 1 auto; justify-content: flex-end; gap: clamp(8px,1.25vw,20px); border: 0; padding: 0; background: transparent; }
.modern-navigation > a, .modern-submenu-toggle { position: relative; min-height: 42px; border-radius: 0; padding: 8px 2px; color: var(--green-deep); font-size: .89rem; font-weight: 600; white-space: nowrap; }
.modern-navigation > a::after, .modern-submenu-toggle::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: var(--gold); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.modern-navigation > a:hover::after, .modern-navigation > a:focus-visible::after, .modern-submenu-toggle:hover::after, .modern-nav-group.is-open > .modern-submenu-toggle::after { transform: scaleX(1); }
.modern-navigation > a:hover, .modern-submenu-toggle:hover, .modern-nav-group.is-open > .modern-submenu-toggle { background: transparent; color: var(--green-deep); }
.modern-navigation .modern-contact-link { min-height: 40px; margin-left: 8px; border: 1px solid var(--green-deep); border-radius: 2px; padding: 8px 15px; background: var(--green-deep); color: #fff; }
.modern-navigation .modern-contact-link::after { display: none; }
.modern-navigation .modern-contact-link:hover, .modern-navigation .modern-contact-link:focus-visible { background: transparent; color: var(--green-deep); }
.modern-chevron { border-color: var(--gold); }
.modern-submenu { top: calc(100% + 8px); border-top: 2px solid var(--gold); padding: 8px; background: #fff; box-shadow: 0 14px 32px rgba(13,43,32,.14); }
.modern-submenu a { padding: 10px 13px; color: var(--green-deep); }
.modern-submenu a:hover { background: var(--green-tint); }
.modern-menu-toggle { border: 1px solid rgba(13,43,32,.3); border-radius: 2px; color: var(--green-deep); }
.modern-menu-icon i { background: currentColor; }
@media (min-width: 981px) {
  .modern-header { gap: clamp(16px,2.2vw,32px); }
  .modern-navigation > a, .modern-submenu-toggle { min-height: 42px; padding: 8px 2px; }
}
@media (max-width: 980px) {
  :root { --header-full-height: 70px; }
  .modern-header { min-height: 70px; padding: 8px 20px; }
  .modern-brand img { width: 46px; height: 46px; }
  .modern-brand span { width: 0; max-width: 0; }
  .modern-header.is-scrolled .modern-brand span { width: 0; max-width: 0; visibility: hidden; }
  .modern-navigation { top: 100%; gap: 0; border-top: 1px solid var(--line); padding: 10px 20px 18px; background: rgba(245,243,237,.99); box-shadow: 0 14px 24px rgba(13,43,32,.12); }
  .modern-navigation > a, .modern-submenu-toggle { min-height: 48px; border-bottom: 1px solid var(--line); padding: 12px 4px; color: var(--green-deep); }
  .modern-navigation > a::after, .modern-submenu-toggle::after { display: none; }
  .modern-navigation .modern-contact-link { justify-content: center; margin: 12px 0 0; border: 1px solid var(--green-deep); padding: 12px 15px; }
  .modern-submenu { margin: 0; border-top: 0; padding: 0 0 4px 12px; background: transparent; box-shadow: none; }
  .modern-submenu a { border-left: 2px solid var(--line); padding: 8px 12px; }
}
@media (max-width: 680px) {
  :root { --header-full-height: 70px; }
  .modern-header { min-height: 70px; }
  .Slider { height: clamp(340px,78svh,680px); min-height: 0; }
}

/* Restore the previous dark navigation, keeping its dimensions steady on scroll. */
:root { --header-full-height: 82px; }
.modern-header { min-height: 82px; padding: 9px max(24px,calc((100vw - var(--content)) / 2)); background: rgba(16,48,35,.98); color: #fff; box-shadow: 0 5px 24px rgba(13,27,19,.14); }
.modern-brand { gap: 0; color: #fff; }
.modern-brand img { width: 146px; height: 62px; border-radius: 0; background: transparent; object-fit: contain; }
.modern-brand span { width: 0; max-width: 0; overflow: hidden; opacity: 0; transform: translateX(-8px); transition: max-width .24s ease,opacity .2s ease,transform .24s ease; visibility: hidden; }
.modern-header.is-scrolled .modern-brand { gap: 13px; }
.modern-header.is-scrolled .modern-brand span { width: auto; max-width: 240px; opacity: 1; transform: translateX(0); visibility: visible; }
.modern-brand strong { color: #fff; font-size: 1.08rem; }
.modern-brand small { color: rgba(255,255,255,.72); font-size: .68rem; letter-spacing: .12em; }
.modern-navigation { flex: 0 1 auto; justify-content: flex-end; gap: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 4px; background: rgba(255,255,255,.045); }
.modern-navigation > a, .modern-submenu-toggle { min-height: 42px; border-radius: 2px; padding: 9px clamp(10px,.85vw,15px); color: #fff; font-size: .86rem; letter-spacing: .01em; }
.modern-navigation > a:hover, .modern-submenu-toggle:hover, .modern-nav-group.is-open > .modern-submenu-toggle { background: rgba(255,255,255,.1); color: #fff; }
.modern-navigation .modern-contact-link { min-height: 42px; margin-left: 8px; border: 0; border-radius: 2px; padding: 9px 18px; background: var(--gold); color: var(--green-deep); }
.modern-navigation .modern-contact-link:hover, .modern-navigation .modern-contact-link:focus-visible { background: #d9c18e; color: var(--green-deep); }
.modern-navigation > a::after, .modern-submenu-toggle::after { display: none; }
.modern-chevron { border-color: #e4d2a5; }
.modern-submenu { top: 100%; border-top: 0; padding: 8px; background: var(--white); box-shadow: 0 16px 36px rgba(12,28,20,.2); }
.modern-submenu a { padding: 10px 12px; color: var(--ink); }
.modern-menu-toggle { border: 1px solid rgba(255,255,255,.38); border-radius: 0; color: #fff; }
@media (min-width: 981px) {
  .modern-header { justify-content: space-between; gap: clamp(20px,3vw,44px); }
  .modern-navigation > a, .modern-submenu-toggle { min-height: 42px; padding: 9px clamp(10px,.85vw,15px); }
}
@media (max-width: 980px) {
  :root { --header-full-height: 72px; }
  .modern-header { position: sticky; z-index: 1000; min-height: 72px; overflow: visible; padding: 6px 18px; }
  .modern-brand img { width: 128px; height: 56px; }
  .modern-brand span, .modern-header.is-scrolled .modern-brand span { width: 0; max-width: 0; visibility: hidden; }
  .modern-menu-toggle { position: relative; z-index: 1002; flex: 0 0 46px; min-width: 46px; min-height: 46px; touch-action: manipulation; }
  .modern-navigation { z-index: 1001; top: 100%; right: 0; left: 0; display: none; max-height: calc(100vh - 72px); overflow-y: auto; gap: 3px; border: 0; border-radius: 0; padding: 14px 22px 22px; background: var(--green-deep); box-shadow: 0 18px 28px rgba(0,0,0,.18); }
  .modern-navigation.is-open { display: grid; }
  .modern-navigation > a, .modern-submenu-toggle { min-height: 48px; border: 0; padding: 13px 14px; color: #fff; font-size: .9rem; }
  .modern-navigation > a:hover, .modern-submenu-toggle:hover, .modern-nav-group.is-open > .modern-submenu-toggle { background: rgba(255,255,255,.12); color: #fff; }
  .modern-navigation .modern-contact-link { justify-content: center; margin: 7px 0 0; border: 1px solid rgba(255,255,255,.55); padding: 13px 14px; background: transparent; color: #fff; }
  .modern-navigation .modern-contact-link:hover { background: rgba(255,255,255,.12); color: #fff; }
  .modern-submenu { margin: 2px 0 8px; padding: 6px; background: rgba(255,255,255,.08); box-shadow: none; }
  .modern-submenu a { border: 0; padding: 10px 12px; color: #fff; }
  .modern-submenu a:hover { background: rgba(255,255,255,.12); color: #fff; }
}
@media (max-width: 680px) { :root { --header-full-height: 72px; } }

/* The image viewer has no caption; its close control is a simple X. */
.photo-viewer .viewer-close { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; width: 42px; height: 42px; place-items: center; margin: 0; border: 0; border-radius: 50%; padding: 0; background: rgba(13,43,32,.7); color: #fff; font: 400 1.8rem/1 Arial,sans-serif; cursor: pointer; }
.photo-viewer .viewer-close:hover, .photo-viewer .viewer-close:focus-visible { background: rgba(13,43,32,.95); }
img { cursor: default !important; }
.photo-viewer .viewer-control, .photo-viewer .viewer-close { transition: transform .18s ease,background-color .18s ease,border-color .18s ease; }
.photo-viewer, .photo-viewer img, .photo-viewer button { touch-action: manipulation; }
.photo-viewer .viewer-prev:hover, .photo-viewer .viewer-prev:focus-visible { transform: translateX(-3px) scale(1.08); }
.photo-viewer .viewer-next:hover, .photo-viewer .viewer-next:focus-visible { transform: translateX(3px) scale(1.08); }
.photo-viewer .viewer-close:hover, .photo-viewer .viewer-close:focus-visible { transform: rotate(90deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .photo-viewer .viewer-control, .photo-viewer .viewer-close { transition: none; } }

/* Keep the brand visible and remove the frame around the desktop navigation. */
.modern-brand { gap: 0; }
.modern-brand img { width: 146px; height: 62px; border-radius: 0; background: transparent; }
.modern-navigation { border: 0; border-radius: 0; padding: 0; background: transparent; }
@media (max-width: 980px) {
  .modern-brand img { width: 128px; height: 56px; }
}

/* Keep the expanded mobile menu opaque above the page content. */
@media (max-width: 980px) {
  .modern-navigation,
  .modern-navigation.is-open { background: #0d2b20; }
}

@media (max-width: 980px) {
  .modern-navigation {
    position: fixed;
    inset: 72px 0 0;
    display: none;
    width: 100%;
    height: calc(100vh - 72px);
    max-height: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow-y: auto;
    padding: 22px 20px max(24px, env(safe-area-inset-bottom));
    background: #0d2b20;
  }
  .modern-navigation.is-open { display: flex; }
  .modern-navigation > a, .modern-submenu-toggle { width: min(100%,420px); min-height: 48px; justify-content: center; text-align: center; }
  .modern-nav-group { width: min(100%,420px); }
  .modern-nav-group .modern-submenu { width: 100%; margin: 0; padding: 0 0 4px; }
  .modern-submenu a { justify-content: center; text-align: center; }
  .modern-navigation .modern-contact-link { width: min(100%,420px); margin: 10px auto 0; }
}
@supports (height: 100dvh) {
  @media (max-width: 980px) { .modern-navigation { height: calc(100dvh - 72px); } }
}
@media (max-height: 560px) and (max-width: 980px) {
  .modern-navigation { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .home-image-slider .home-slider-slide video { transform: scale(1.14); }
  #referenztabelle { display: block; width: calc(100% - 24px) !important; margin: 0 auto 36px; overflow: visible; white-space: normal; }
  #referenztabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #referenztabelle tbody { display: grid; gap: 12px; }
  #referenztabelle tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 3px 10px rgba(13,43,32,.05); }
  #referenztabelle tbody td { display: grid; min-width: 0; grid-template-columns: 66px minmax(0,1fr); align-items: start; gap: 8px; border: 0; border-bottom: 1px solid var(--line); padding: 10px; white-space: normal; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.45; }
  #referenztabelle tbody td:nth-child(1) { grid-column: 1; color: var(--muted); }
  #referenztabelle tbody td:nth-child(2) { grid-column: 2; font-weight: 700; }
  #referenztabelle tbody td:nth-child(3), #referenztabelle tbody td:nth-child(8) { grid-column: 1 / -1; }
  #referenztabelle tbody td:nth-child(4), #referenztabelle tbody td:nth-child(7), #referenztabelle tbody td:nth-child(9) { grid-column: 1; }
  #referenztabelle tbody td:nth-child(5), #referenztabelle tbody td:nth-child(6) { grid-column: 2; }
  #referenztabelle tbody td:last-child { border-bottom: 0; }
  #referenztabelle tbody td::before { color: var(--green); font-size: .74rem; font-weight: 700; line-height: 1.35; }
}

/* Clear, comfortable reading layout for legal pages. */
.legal-background { padding: 1px 0 54px; }
.legal-panel { width: min(920px,calc(100% - 48px)) !important; margin: 36px auto; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 3px; padding: clamp(24px,4vw,48px); background: #fff; box-shadow: 0 12px 32px rgba(13,43,32,.07); }
.LeistungBlog.legal-panel { display: block; }
.LeistungBlog.legal-panel > .Leistung { display: block; width: 100% !important; margin: 0; border: 0; padding: 0; background: transparent; }
.legal-content { width: min(100%,74ch); margin: 0 auto; color: var(--ink); font-size: .98rem; line-height: 1.8; }
.legal-content > h2 { display: flex; align-items: center; gap: 11px; margin: 2rem 0 .65rem; border-top: 1px solid var(--line); padding-top: 1.15rem; color: var(--green); font: 700 1.06rem/1.4 var(--sans); letter-spacing: .005em; }
.legal-content > h2::before { flex: 0 0 3px; width: 3px; height: 21px; background: var(--gold); content: ""; }
.legal-content > h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; font: 500 1.55rem/1.25 var(--serif); }
.legal-content > h2:first-of-type::before { display: none; }
.legal-content > p { margin: 0 0 1rem; color: #39443e; font-size: .96rem; line-height: 1.8; overflow-wrap: anywhere; }
.legal-content > p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--green); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content a:hover { color: #80652f; }
@media (max-width: 680px) {
  .legal-background { padding-bottom: 28px; }
  .legal-panel { width: calc(100% - 28px) !important; margin: 20px auto; border-top-width: 3px; padding: 22px 18px; }
  .legal-content { font-size: .94rem; line-height: 1.75; }
  .legal-content > h2 { gap: 9px; margin-top: 1.65rem; padding-top: .95rem; font-size: 1rem; }
  .legal-content > h2:first-of-type { font-size: 1.4rem; }
  .legal-content > p { font-size: .93rem; line-height: 1.75; }
}
.email-reveal { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.email-reveal:hover { color: #80652f; }
.email-revealed { overflow-wrap: anywhere; }
.modern-footer-contact > .email-reveal { display: block; width: 100%; margin: 8px 0; border: 1px solid rgba(255,255,255,.22); border-radius: 3px; padding: 10px 12px; background: rgba(255,255,255,.055); color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; }
.modern-footer-contact > .email-reveal:hover, .modern-footer-contact > .email-reveal:focus-visible { background: rgba(255,255,255,.12); color: #e3cf9c; }
@media (max-width: 680px) {
  .works-search-label input { width: 100%; }
  #referenztabelle { width: calc(100% - 28px) !important; margin-bottom: 40px; }
  #referenztabelle tbody { gap: 14px; }
  #referenztabelle tbody tr {
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    grid-template-areas:
      "number location"
      "church church"
      "register built"
      "system system"
      "builder year"
      "description description";
    border: 1px solid #d3dbd4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(13,43,32,.07);
  }
  #referenztabelle tbody td {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    overflow-wrap: anywhere;
    font-size: .95rem;
    line-height: 1.45;
  }
  #referenztabelle tbody td::before {
    display: block;
    width: auto;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .045em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
  #referenztabelle tbody td:nth-child(1) { grid-area: number; border-right: 1px solid var(--line); background: #f4f6f3; color: var(--ink); }
  #referenztabelle tbody td:nth-child(2) { grid-area: location; background: #f4f6f3; font-weight: 700; }
  #referenztabelle tbody td:nth-child(3) { grid-area: church; }
  #referenztabelle tbody td:nth-child(4) { grid-area: register; border-right: 1px solid var(--line); }
  #referenztabelle tbody td:nth-child(5) { grid-area: system; }
  #referenztabelle tbody td:nth-child(6) { grid-area: builder; border-right: 1px solid var(--line); }
  #referenztabelle tbody td:nth-child(7) { grid-area: built; }
  #referenztabelle tbody td:nth-child(8) { grid-area: description; }
  #referenztabelle tbody td:nth-child(9) { grid-area: year; }
  #referenztabelle tbody td:nth-child(1), #referenztabelle tbody td:nth-child(2) { border-bottom-color: #cbd5cc; }
  #referenztabelle tbody td:last-child { border-bottom: 0; }
  #referenztabelle tbody td a { overflow-wrap: anywhere; }
}
.modern-brand img, .modern-header.is-scrolled .modern-brand img { width: 166px; height: 62px; object-fit: contain; }
@media (max-width: 980px) {
  .modern-brand img, .modern-header.is-scrolled .modern-brand img { width: 144px; height: 56px; }
}
.BlogBilder.blog-gallery-four { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.BlogBilder.blog-gallery-four > img:first-child { grid-row: auto; }
.BlogBilder.blog-gallery-four > img:last-child { object-position: center 62%; }

/* Straußdorf project gallery mosaic and photo viewer affordance */
.project-photo-grid { grid-template-columns: repeat(12,minmax(0,1fr)); grid-auto-rows: clamp(150px,17vw,210px); gap: 16px; }
.project-photo-grid figure { position: relative; display: grid; height: 100%; grid-column: span 3; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(21,59,45,.12); box-shadow: 0 8px 24px rgba(16,43,32,.09); }
.project-photo-grid figure:first-child { grid-column: span 6; grid-row: span 2; }
.project-photo-grid img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; cursor: zoom-in; transition: transform .35s ease,filter .35s ease; }
.project-photo-grid figure:hover img { transform: scale(1.035); filter: saturate(1.06) brightness(1.03); }
.project-photo-grid figcaption { border-left: 3px solid var(--gold); padding: 11px 13px; background: #fff; color: var(--ink); }
.project-photo-grid figure::after { position: absolute; top: 12px; right: 12px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(13,43,32,.78); color: #fff; content: "⤢"; font-size: 1.1rem; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .2s ease,transform .2s ease; }
.project-photo-grid figure:hover::after, .project-photo-grid figure:focus-within::after { opacity: 1; transform: none; }
.project-photo-grid img:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }
@media (max-width: 900px) {
  .project-photo-grid { grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: clamp(150px,24vw,205px); }
  .project-photo-grid figure { grid-column: span 3; }
  .project-photo-grid figure:first-child { grid-column: span 3; grid-row: span 2; }
}
@media (max-width: 680px) {
  .project-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: clamp(140px,38vw,190px); gap: 10px; }
  .project-photo-grid figure, .project-photo-grid figure:first-child { grid-column: span 1; grid-row: auto; }
  .project-photo-grid figure:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .project-photo-grid figcaption { padding: 8px 9px; font-size: .76rem; }
  .project-photo-grid figure::after { top: 8px; right: 8px; width: 30px; height: 30px; opacity: .9; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .project-photo-grid img, .project-photo-grid figure::after { transition: none; } }

@media (max-width: 680px) {
  .Slider { height: 50vh; height: 50svh; min-height: 0; }
  .ProjektGalerie { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ProjektGalerie .Werke, .ProjektGalerie .Projekt { aspect-ratio: 1; }
  .ProjektGalerie .Werke { padding: 0; }
  .Werkstext, .ProjektText, .ProjektGalerie .Projekt > a { padding: 12px; }
  .Werkstext h3, .ProjektText h3, .ProjektGalerie .Projekt > a h3 { font-size: 1rem; }
  .Werkstext p, .ProjektText p, .ProjektGalerie .Projekt > a p { font-size: .72rem; line-height: 1.35; }
}
