@font-face {
  font-family: 'Latin Modern Roman';
  src: url('schriften/lmroman17-regular.otf') format('opentype');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: 'Latin Modern Roman';
  src: url('schriften/lmroman12-italic.otf') format('opentype');
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --chalk: #f2f0e9;
  --ink: #24353b;
  --muted: #536166;
  --blue: #205b80;
  --deep: #254954;
  --line: #d7d9d2;
  --ease: cubic-bezier(.22,.68,.24,1);
  --sample: #ebe7d9;
  --gutter: clamp(1.25rem, 5.1vw, 6rem);
  --serif: 'Latin Modern Roman', Baskerville, Georgia, serif;
  --sans: 'Instrument Sans', Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #32729a; outline-offset: 4px; }
::selection { color: #193c4c; background: #cee0e5; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
h1, h2, .service-title { font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -.05em; }
em { font-weight: 400; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 96rem); margin-inline: auto; }
.skip { position: absolute; left: .6rem; top: .5rem; z-index: 20; background: white; padding: .6rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.js-only { display: none; }

.header { position: relative; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.55rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; width: clamp(16rem, 24vw, 21.25rem); max-width: 100%; }
.wordmark img { width: 100%; height: auto; }
#navigation { display: flex; gap: clamp(1.2rem, 2.4vw, 2.8rem); align-items: center; font-size: .94rem; }
#navigation a:not(.nav-cta) { padding-block: .65rem; text-underline-offset: .32rem; }
#navigation a:not(.nav-cta):hover, .impressum:hover { color: var(--blue); text-decoration: underline; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: .58rem; min-height: 2.85rem; padding: .78rem 1.3rem; border-radius: 2px; font-size: .93rem; line-height: 1.25; font-weight: 600; }
.nav-cta { border: 1px solid #62808a; color: var(--deep); }
.nav-cta:hover { background: #e9efed; border-color: var(--deep); }
.icon { width: 1.04rem; height: 1.04rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hero { background: var(--chalk); background: color-mix(in srgb, var(--paper) 83%, var(--sample)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); max-width: 126rem; margin-inline: auto; }
.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(2.8rem, 4.7vw, 6rem) clamp(1.45rem, 3.1vw, 4.3rem) clamp(3rem, 4.8vw, 6rem) max(var(--gutter), calc((100vw - 96rem) / 2));
}
.eyebrow { display: flex; align-items: center; gap: .72rem; color: var(--blue); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.eyebrow > span { width: 2rem; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4.35rem, 6.85vw, 8.2rem); line-height: .92; margin: 1.4rem 0 1.55rem; }
h1 em, h2 em { color: var(--blue); }
.hero-intro { font-size: clamp(1.025rem, 1.25vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 24rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.85rem; }
.primary { background: var(--deep); color: #fff; border: 1px solid var(--deep); min-height: 3rem; }
.primary:hover { background: #173844; }
.text-link { display: inline-block; width: fit-content; padding-block: .2rem; color: var(--blue); font-weight: 500; font-size: .94rem; text-decoration: underline; text-underline-offset: .38rem; text-decoration-color: #7e9eaa; }
.text-link:hover { text-decoration-color: currentColor; }
.hero-view { position: relative; isolation: isolate; min-height: clamp(29rem, 36vw, 42rem); overflow: hidden; background: #e5e3d7; }
.scene-frame { position: relative; overflow: hidden; isolation: isolate; }
.hero-view .scene-frame { position: absolute; inset: 0; }
.scene-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 55%; }
.hero-view img:is([data-tone=bordeaux], [data-tone=salbei], [data-tone=sandstein]) { object-position: 76% 55%; }
.has-room-view .view-room { display: inline-flex; }
.view-room {
  position: absolute; right: clamp(1rem, 2vw, 2.2rem); bottom: clamp(1rem, 1.8vw, 2rem);
  align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .8rem;
  border: 1px solid #fff9; border-radius: 2px; background: #fbfaf6f5; color: var(--deep); font-size: .87rem;
}
.view-room:hover, .lightbox-close:hover { background: #e9efed; }
.hero h1 em { position: relative; display: inline-block; }
.hero h1 em::after {
  content: ''; position: absolute; left: 19%; right: -1%; bottom: -.1em; height: .11em; pointer-events: none;
  background-color: #a3a998; background-color: color-mix(in srgb, var(--sample) 68%, var(--deep));
  mask: url('pinselspur.svg') center / 100% 100% no-repeat;
}
.hero-view figcaption { position: absolute; min-height: 44px; left: clamp(1rem, 2vw, 2.2rem); bottom: clamp(1rem, 1.8vw, 2rem); display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: #fbfaf6; color: var(--ink); border: 1px solid #ffffff9c; border-radius: 1px; }
.colour-chip { width: 1.12rem; height: 1.12rem; background: var(--sample); border: 1px solid #24353b30; }
.caption-type { font-size: .79rem; color: var(--muted); padding-right: .65rem; border-right: 1px solid #c5cbc7; }
.hero-view figcaption strong { font-size: .9rem; font-weight: 500; }

.enhanced .colour-bar { display: block; }
.colour-bar { background: var(--paper); border-block: 1px solid var(--line); }
.palette { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 4.5vw, 6rem); padding-block: 1.25rem; }
.palette-status:empty { display: none; }
.palette-status { flex-basis: 100%; font-size: .9rem; color: var(--deep); }
.palette h2 { font-size: clamp(1.3rem, 1.7vw, 1.85rem); letter-spacing: -.03em; }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); flex: 1; gap: clamp(.5rem, 1.25vw, 1.3rem); }
.swatch { display: flex; align-items: center; justify-content: flex-start; gap: .55rem; min-height: 44px; padding: .15rem; border: 0; background: none; text-align: left; font-size: .88rem; }
.swatch i { position: relative; display: block; width: clamp(1.6rem, 2.5vw, 2.8rem); height: 1.65rem; flex-shrink: 0; background: var(--sample); border: 1px solid #24353b28; }
.swatch:hover span { color: var(--blue); text-decoration: underline; text-underline-offset: .22rem; }
.swatch[aria-pressed=true] i { outline: 1px solid var(--deep); outline-offset: 2px; }
.swatch[aria-pressed=true] span { font-weight: 600; }
[data-farbe=kalkweiss] { --sample: #ebe7d9; }
[data-farbe=leinen] { --sample: #d8cbb7; }
[data-farbe=nebelblau] { --sample: #c2d1d6; }
[data-farbe=sandstein] { --sample: #bc9975; }
[data-farbe=salbei] { --sample: #838b71; }
[data-farbe=bordeaux] { --sample: #794347; }

.section { padding-block: clamp(3.5rem, 5.5vw, 6.5rem) clamp(4rem, 6vw, 7rem); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; margin-bottom: clamp(1.7rem, 2.6vw, 3rem); }
h2 { font-size: clamp(3.15rem, 4.65vw, 5.4rem); line-height: 1.04; }
.section-heading h2, .betrieb h2, .kontakt h2 { margin-top: .85rem; }
.section-heading > p { max-width: 22rem; line-height: 1.6; color: var(--muted); padding-bottom: .18rem; text-wrap: pretty; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2vw, 2.2rem); align-items: start; }
.service summary { list-style: none; display: block; cursor: pointer; }
.service summary::-webkit-details-marker { display: none; }
.service-image { display: block; overflow: hidden; }
.service-image img { width: 100%; aspect-ratio: 1.7; height: auto; object-fit: cover; }
.service summary:is(:hover, :focus-visible) .plus, .service[open] .plus { background: var(--deep); border-color: var(--deep); color: white; }
.service-title { display: flex; align-items: center; justify-content: space-between; gap: .45rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.6rem, 2.15vw, 2.6rem); letter-spacing: -.04em; line-height: 1.15; }
.plus { display: grid; place-items: center; flex-shrink: 0; width: 1.8rem; height: 1.8rem; color: var(--blue); border: 1px solid #b5c1c0; border-radius: 50%; }
.plus::before, .plus::after { content: ''; grid-area: 1/1; width: .65rem; height: 1px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.service[open] .plus::after { transform: none; }
.service-body { padding-top: 1rem; }
.service-body p, .betrieb-copy p:not(.eyebrow), .kontakt-copy p, .legal p { line-height: 1.68; font-size: 1.04rem; color: var(--muted); }
.service-body a { margin-top: .7rem; }
.betrieb { background: #edf1ed; }
.betrieb-inner, .kontakt-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.3rem, 7.5vw, 9rem); padding-block: clamp(3.4rem, 5.5vw, 6.5rem); }
.atelier img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.betrieb-copy { max-width: 30rem; }
.betrieb-copy h2 { margin-bottom: 1.25rem; }
.betrieb-copy p:not(.eyebrow) { margin-bottom: .75rem; }
.betrieb-copy .text-link { margin-top: .4rem; }
.kontakt { color: #fcfbf5; background: #254852; }
.kontakt h2 { line-height: .95; font-size: clamp(4rem, 6vw, 7rem); }
.kontakt h2 em, .kontakt .eyebrow, .contact-line .icon { color: #c4e3e8; }
.kontakt-copy { max-width: 30rem; }
.kontakt-copy p { margin-bottom: 1rem; color: #f4f8f6; }
.contact-line { display: flex; align-items: center; gap: .75rem; width: fit-content; max-width: 100%; padding: .38rem 0; font-size: clamp(1.1rem, 1.4vw, 1.5rem); overflow-wrap: anywhere; }
.contact-line:hover { text-decoration: underline; text-underline-offset: .22em; }
address { font-style: normal; }
.kontakt address { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #ffffff45; color: #d9e5e6; }
.footer { min-height: 6rem; padding-block: .85rem; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.wordmark-footer { width: 15.5rem; }
.footer-location { border-left: 1px solid var(--line); padding-left: 1.45rem; }
.impressum { margin-left: auto; }
.legal { padding-block: clamp(3rem, 6vw, 7rem); max-width: 52rem; }
.legal h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.04; margin: 1rem 0 2rem; }
.legal h2 { font-size: 2rem; margin: 2.35rem 0 .6rem; }
.legal address { line-height: 1.7; }
.legal p, .legal address { max-width: 44rem; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }

/* The modal uses the full photograph, including the wide historical room studies. */
.lightbox:not([open]) { display: none; }
.lightbox {
  padding: 0; border: 1px solid #d7d9d2; border-radius: 3px;
  width: min(85rem, calc(100% - 3rem)); max-width: none; max-height: calc(100% - 2rem);
  background: var(--paper); color: var(--ink); box-shadow: 0 1.6rem 6rem #12282f33;
}
.lightbox::backdrop { background: #15282ee0; }
.room-open { overflow: hidden; }
.lightbox-header, .lightbox-header > div { display: flex; align-items: center; gap: .9rem; }
.lightbox-header { justify-content: space-between; padding: .7rem 1.25rem; }
.lightbox-header .caption-type { color: var(--blue); letter-spacing: .1em; text-transform: uppercase; padding-right: .85rem; }
.lightbox-header h2 { font-size: clamp(1.6rem, 2.2vw, 2.25rem); }
.lightbox-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.lightbox-close .icon { width: 1.15rem; height: 1.15rem; }
.lightbox-photo { height: min(66vh, 54vw); height: min(66dvh, 54vw); background: #e8e8df; }
.lightbox-photo img { object-fit: contain; object-position: center; }
.lightbox-swatches { padding: .75rem 1.3rem; }
.lightbox-status:not(:empty) { padding: 0 1.3rem .8rem; }

@media (min-width: 126rem) {
  .hero-copy { padding-left: 15rem; }
}
@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
  .palette { gap: 1.6rem; }
  .swatch { flex-direction: column; justify-content: center; align-items: flex-start; gap: .35rem; }
  .swatch i { width: 100%; height: 1.25rem; }
  .section-heading > p { max-width: 19rem; }
}
@media (max-width: 800px) {
  :root { --gutter: clamp(1.2rem, 4.7vw, 2.55rem); }
  .header-inner { min-height: 4.8rem; flex-wrap: wrap; gap: .5rem; }
  .header .wordmark { width: min(69%, 19rem); }
  #navigation { flex: 1 0 100%; flex-wrap: wrap; gap: .3rem 1rem; padding-block: .1rem 1rem; }
  .enhanced #navigation { display: none; }
  .enhanced #navigation.is-open { position: absolute; inset: 100% 0 auto; padding: .4rem var(--gutter) 1rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); display: flex; box-shadow: 0 10px 14px #142b3314; }
  .enhanced #navigation a:not(.nav-cta) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .enhanced #navigation .nav-cta { margin-top: .75rem; align-self: flex-start; }
  .enhanced .menu-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 44px; min-height: 44px; background: none; border: 0; padding: .2rem; color: var(--deep); }
  .menu-button i { position: relative; width: 1.25rem; height: .68rem; border-block: 1.5px solid; }
  .menu-button[aria-expanded=true] i { border: 0; }
  .menu-button[aria-expanded=true] i::before, .menu-button[aria-expanded=true] i::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
  .menu-button[aria-expanded=true] i::after { transform: rotate(-45deg); }
  .hero-copy { padding-right: var(--gutter); }
  .hero h1 { font-size: clamp(3.8rem, 7.8vw, 5rem); }
  .hero-actions { gap: .85rem; }
  .palette { flex-wrap: wrap; gap: .8rem; }
  .palette h2 { flex-basis: 100%; }
  .service-title { font-size: 1.55rem; }
}
@media (max-width: 650px) {
  .hero-grid { grid-template-columns: 100%; }
  .hero-copy { padding: 2.15rem var(--gutter) 2.25rem; }
  .hero h1 { font-size: clamp(3.95rem, 13vw, 5.6rem); margin: .95rem 0 1.05rem; }
  .hero-intro { max-width: 29rem; }
  .hero-actions { margin-top: 1.35rem; gap: 1.1rem; }
  .hero-view { min-height: 0; aspect-ratio: 1.59; }
  .hero-view figcaption { left: var(--gutter); bottom: .9rem; padding: .4rem .65rem; }
  .view-room { right: var(--gutter); bottom: .9rem; }
  .hero-view .caption-type { display: none; }
  .palette { padding-block: 1rem; }
  .swatches { grid-template-columns: repeat(3, minmax(0,1fr)); flex-basis: 100%; gap: .35rem .9rem; }
  .swatch { flex-direction: row; align-items: center; justify-content: flex-start; }
  .swatch i { width: 1.45rem; height: 1.35rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .9rem; max-width: 33rem; }
  h2 { font-size: clamp(2.75rem, 9vw, 3.8rem); }
  .service-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .service-image img { aspect-ratio: 1.9; }
  .service-title { font-size: 2rem; padding: .9rem 0; }
  .betrieb-inner, .kontakt-inner { grid-template-columns: 1fr; gap: 1.7rem; }
  .betrieb-copy { max-width: none; }
  .kontakt h2 br { display: none; }
  .footer { gap: .6rem 1.1rem; padding-block: 1.3rem; }
  .footer-location { border: 0; padding: 0; }
  .impressum { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 370px) {
  .menu-button span { display: none; }
  .swatches { gap: .28rem .4rem; }
  .swatch { font-size: .8rem; }
  .hero-actions { gap: .6rem 1rem; }
}
@media (max-width: 650px) {
  .lightbox { width: calc(100% - 1.25rem); }
  .lightbox-header { padding: .45rem .85rem; }
  .lightbox-swatches { padding: .5rem .85rem; gap: .1rem .6rem; }
  .lightbox-photo { height: min(61vw, 55vh); height: min(61vw, 55dvh); }
}
@media (max-height: 450px) and (orientation: landscape) {
  .lightbox-photo { height: max(7rem, calc(100dvh - 10.6rem)); }
  .lightbox-header, .lightbox-swatches { padding-block: .2rem; }
}

@keyframes arrive {
  from { opacity: .72; transform: translateY(.55rem); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.025); }
  to { transform: none; }
}
@keyframes paint {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes open-room {
  from { opacity: .3; transform: translateY(.4rem) scale(.992); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: arrive 520ms var(--ease) backwards; }
  .hero-copy h1 { animation-delay: 55ms; }
  .hero-copy .hero-intro { animation-delay: 95ms; }
  .hero-copy .hero-actions { animation-delay: 130ms; }
  .hero h1 em::after { animation: paint 620ms var(--ease) 200ms backwards; transition: background-color 440ms ease; }
  .hero-view img[fetchpriority=high] { animation: settle 900ms var(--ease); }
  .hero, .colour-chip { transition: background-color 440ms ease; }
  .in-view { animation: arrive 490ms var(--ease) backwards; }
  .service.in-view:nth-child(2) { animation-delay: 45ms; }
  .service.in-view:nth-child(3) { animation-delay: 90ms; }
  .lightbox[open], .enhanced #navigation.is-open { animation: open-room 200ms var(--ease); }
  .nav-cta, .primary, .view-room, .plus, .lightbox-close { transition: color 150ms ease, background-color 180ms ease, border-color 180ms ease; }
  .plus::after, .swatch i, .view-room .icon { transition: transform 200ms var(--ease); }
  .service-image img { transition: transform 450ms var(--ease); }
  .service[open] .service-body { animation: arrive 230ms var(--ease); }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .service { interpolate-size: allow-keywords; }
    .service::details-content { height: 0; overflow: clip; transition: height 260ms var(--ease), content-visibility 260ms allow-discrete; }
    .service[open]::details-content { height: auto; }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service summary:hover .service-image img { transform: scale(1.025); }
  .swatch:hover i { transform: translateY(-2px); }
  .view-room:hover .icon { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
