@font-face {
  font-family: 'Open Sans';
  src: url('assets/open-sans-regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('assets/open-sans-extra-bold.woff') format('woff');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans Condensed';
  src: url('assets/open-sans-condensed-bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f2e9;
  --ink: #1c231e;
  --sage: #b9c4a3;
  --muted: #464740;
  --muted-light: #c2c4b7;
  --light-rule: #acafa1;
  --dark-rule: #45483e;
  --wide: 87rem;
  --sans: 'Open Sans', Arial, sans-serif;
  --display: 'Open Sans Condensed', 'Arial Narrow', 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 700 clamp(3rem, 7.7vw, 7.3rem)/.89 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
h3, strong { font-weight: 800; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible { outline: .17rem solid currentColor; outline-offset: .26rem; }
.shell { width: min(var(--wide), calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.section-space { padding-block: clamp(3.4rem, 8.5vw, 8rem); }
.skip-link { position: fixed; z-index: 5; background: var(--sage); color: var(--ink); padding: .65rem 1rem; inset: .5rem auto auto .5rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.homepage, .site-header, .site-footer, .services { background: var(--ink); color: var(--paper); }
.site-header { border-bottom: 1px solid var(--dark-rule); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 5.1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; white-space: nowrap; font-size: 1.42rem; font-weight: 800; letter-spacing: -.075em; }
.brand-heroine { width: 1.625rem; height: 1.375rem; object-fit: contain; flex: none; }
.brand-mark { color: var(--sage); font: 1.65rem/1 Arial, sans-serif; }
.brand-design { margin-left: .14em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem clamp(1rem, 3vw, 2.5rem); }
nav a { font-size: .86rem; font-weight: 800; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem; padding: .7rem 1rem; border: 1px solid transparent; font-size: .86rem; font-weight: 800; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.button span, .text-link span { font: 1.18rem/1 Arial, sans-serif; }
.button-outline { border-color: var(--paper); }
.button-outline:hover { border-color: var(--sage); background: var(--sage); color: var(--ink); }
.button-green { background: var(--sage); color: var(--ink); }
.button-green:hover { background: var(--paper); }
.button-green:focus-visible { outline-color: var(--sage); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--paper); color: var(--ink); }
.button-dark:focus-visible { outline-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 800; }
.text-link:hover { text-decoration-thickness: .15em; }
.kicker { display: flex; align-items: center; gap: .6rem; font-size: .74rem; line-height: 1.3; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kicker span { width: .48rem; height: .48rem; border-radius: 50%; background: var(--sage); }

/* Startbühne und Projektstrecke */
.hero {
  padding-top: clamp(2.4rem, 5vw, 5rem);
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
}

.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(23rem, 42vw, 43rem);
}

.hero h1 {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin-left: -.035em;
  line-height: .81;
  pointer-events: none;
}

.hero h1 span { display: block; }
.hero h1 span:first-child { color: var(--sage); text-shadow: 0 .025em .13em #17201bd0; font-size: clamp(4.25rem, 15.6vw, 15rem); }
.hero h1 span:last-child { font-size: clamp(2.45rem, 7.4vw, 7.2rem); }
.hero-collage {
  position: absolute;
  top: 50%;
  right: 0;
  width: 52%;
  aspect-ratio: 1.43;
  transform: translateY(-50%);
}

.cover {
  position: absolute;
  width: 72%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #d9dfcb7a;
  border-radius: .2rem;
  box-shadow: 0 1.25rem 2.6rem #0b100c8f;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.cover-alber { top: 2%; right: 1%; transform: rotate(9deg); }
.cover-cafe { bottom: 3%; right: 0; transform: rotate(-6deg); }
.cover-dogs { top: 13%; right: 14%; transform: rotate(-13deg); }
.hero-collage:hover .cover-alber { transform: translate(3%, -5%) rotate(13deg); }
.hero-collage:hover .cover-cafe { transform: translate(4%, 6%) rotate(-2deg); }
.hero-collage:hover .cover-dogs { transform: translate(-4%, -1%) rotate(-17deg); }

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  border-top: 1px solid var(--dark-rule);
  padding-top: 1.25rem;
}

.hero-footer p { color: var(--muted-light); max-width: 52ch; }
.hero-jump { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; white-space: nowrap; text-decoration: none; }
.hero-jump span { display: grid; place-items: center; width: 2.85rem; height: 2.85rem; border-radius: 50%; background: var(--sage); color: var(--ink); font: 1.45rem/1 Arial, sans-serif; }
.hero-jump:hover { text-decoration: underline; }

.work { background: var(--paper); color: var(--ink); }
.work-index { position: sticky; top: .5rem; z-index: 3; width: fit-content; max-width: 100%; gap: .35rem .6rem; margin: 1.3rem 0 0 auto; padding: .48rem; border: 1px solid #aeb4a6; background: var(--paper); border-radius: .9rem; }
.work-index a { padding: .42rem .75rem; border: 1px solid #7d8879; border-radius: 2rem; }
.work-index a[aria-current="location"] { background: var(--ink); color: var(--paper); }
.projects-grid { display: grid; gap: clamp(1.4rem, 3.6vw, 3.5rem); margin-top: clamp(1.7rem, 4vw, 3.8rem); }
.showcase {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  padding: clamp(1.25rem, 4.4vw, 4.15rem);
  scroll-margin-top: 7rem;
}

.showcase-dogs { background: #c7cfb4; }
.showcase-alber { background: #d3ddd9; }
.showcase-cafe { background: #e3d5bf; }
.showcase-post { background: #e3daca; }
.showcase-roessle { background: #d1d9c5; }
.showcase:target { outline: 2px solid #58684f; outline-offset: .45rem; }
.showcase-copy > p:first-child { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.showcase-copy h3 { margin: .65rem 0 .85rem; font: 700 clamp(2.95rem, 6vw, 6.6rem)/.88 var(--display); letter-spacing: -.018em; text-transform: uppercase; }
.showcase-copy > p { max-width: 35ch; }
.showcase-copy .text-link { margin-top: 1.05rem; }
.showcase-image { display: block; overflow: hidden; background: #fff; box-shadow: 0 1rem 2.1rem #1c231e33; }
.showcase-image img { width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: top; }
.showcase-post .showcase-image img, .showcase-roessle .showcase-image img { aspect-ratio: 3 / 2; }
.showcase-image:hover img { filter: contrast(1.07); }
.services h3 { font-size: clamp(1.3rem, 2.55vw, 2rem); line-height: 1.15; letter-spacing: -.055em; }

.services h2 { color: var(--sage); }
.services-grid { margin-top: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--dark-rule); }
.services article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: baseline; column-gap: 2rem; padding-block: clamp(1.25rem, 3vw, 2.15rem); border-bottom: 1px solid var(--dark-rule); }
.services article p { max-width: 61ch; color: var(--muted-light); }

.about { background: #0d0e0d; color: var(--paper); }
.about .text-link { color: var(--sage); }
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.about img {
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 3%, #000 93%, transparent);
  mask-composite: intersect;
}
.about p, .contact p { max-width: 50ch; margin-top: 1rem; }
.about .text-link, .contact .button { margin-top: 1.45rem; }
.contact { background: var(--sage); color: var(--ink); }
.contact address { justify-self: center; border-left: 1px solid var(--ink); padding-left: clamp(1rem, 3vw, 2.2rem); font-style: normal; }
.contact address a, .contact address small { display: block; margin-top: .32rem; overflow-wrap: anywhere; }
.contact address a:first-of-type, .contact address small { margin-top: .9rem; }
.footer-inner { min-height: 6rem; }

.legal { min-height: 66vh; }
.legal article { max-width: 49rem; }
.legal h1 { font-size: clamp(2.45rem, 6.5vw, 5rem); overflow-wrap: anywhere; margin: 1.65rem 0 2rem; }
.legal h2 { margin: 1.55rem 0 .4rem; font: 800 1.35rem/1.25 var(--sans); letter-spacing: -.04em; text-transform: none; }
.legal p + p { margin-top: .7rem; }
.legal address { font-style: normal; }
.legal-objection { margin-top: 1.65rem; padding: .9rem 1rem; border-left: .22rem solid #657752; background: #e6ebdf; }
.legal-objection h2 { margin-top: 0; }

@media (max-width: 42rem) {
  .hero-stage { display: block; min-height: 0; margin-block: 1.6rem 1.2rem; }
  .hero h1 span:first-child { font-size: clamp(3.65rem, 17.8vw, 7rem); }
  .hero h1 span:last-child { font-size: clamp(2.05rem, 9.4vw, 4.2rem); }
  .hero-collage { display: block; position: relative; top: auto; width: 83%; margin: .45rem 0 0 auto; transform: none; }
  .hero-footer { align-items: start; flex-direction: column; }
  .work-index { margin-left: 0; flex-wrap: nowrap; overflow-x: auto; }
  .work-index a { white-space: nowrap; }
  .showcase, .about-grid, .contact-grid, .services article { grid-template-columns: 1fr; }
  .showcase-image img { aspect-ratio: 4 / 3; }
  .services article { row-gap: .55rem; }
  .about img { max-width: 27rem; }
  .contact address { justify-self: start; }
}

@media (max-width: 36rem) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .8rem; padding-block: .68rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; }
  .header-inner .button { padding: .42rem .68rem; }
  .footer-inner { justify-content: flex-start; flex-wrap: wrap; gap: .65rem 1.35rem; padding-block: 1rem; }
  .footer-inner .brand { flex-basis: 100%; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .showcase-image img {
      animation: project-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
}

@keyframes project-in {
  from { transform: scale(1.13); }
  to { transform: scale(1); }
}

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