@font-face {
  font-family: Montserrat;
  src: url("montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("open-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("open-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #101e2b;
  --muted: #435768;
  --navy: #071724;
  --deep: #0b2235;
  --blue: #009beb;
  --blue-text: #005b92;
  --ice: #edf7fc;
  --line: #cbdce7;
  --white: #fff;
  --max: 78rem;
  --pad: clamp(1.2rem, 4vw, 3.5rem);
  font: 100%/1.65 "Open Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
figure, p, ul { margin: 0; }
p + p { margin-top: 1rem; }
a { color: var(--blue-text); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
:target { scroll-margin-top: 1rem; }
h1, h2, h3 {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.033em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 3.25rem); }
h3 { font-size: clamp(1.23rem, 2.1vw, 1.78rem); }
h2 + p, h3 + p { margin-top: .8rem; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.measure { max-width: 48rem; }
.skip { position: absolute; z-index: 2; top: .5rem; left: var(--pad); padding: .65rem 1rem; background: #fff; transform: translateY(-180%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { background: #fff; }
.header-grid { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 3vw, 3rem); align-items: center; min-height: 5.3rem; }
.logo { width: clamp(8.5rem, 16vw, 12.25rem); height: auto; }
.brand { display: inline-block; justify-self: start; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem clamp(.8rem, 2.8vw, 2.2rem); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-weight: 700; font-size: .91rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--blue-text); text-decoration: underline; }
.button { display: inline-flex; gap: .75em; justify-content: center; align-items: center; min-height: 3rem; padding: .65em 1.15em; border: 2px solid transparent; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.4; }
.primary { background: var(--blue); color: var(--navy); }
.primary:hover { background: #50bdff; }
.nav-cta, .dark-button { background: var(--navy); color: #fff; }
.nav-cta:hover, .dark-button:hover { background: #173a56; }
.nav-cta { font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: .65em; min-height: 2.75rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.eyebrow { margin-bottom: .85rem; color: var(--blue-text); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-hero, .studio-section, .site-footer { background: var(--navy); color: #fff; }
.home-hero { padding-block: clamp(2.5rem, 6vw, 6.15rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(1.8rem, 5vw, 5rem); align-items: center; }
.hero-copy, .hero-media { min-width: 0; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.3vw, 4.25rem); }
.hero-copy h1 + p { max-width: 37rem; margin-top: 1.4rem; color: #d4e5f1; font-size: clamp(1rem, 1.35vw, 1.16rem); }
.home-hero .eyebrow, .studio-section .eyebrow { color: #a6dcff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; margin-top: 1.65rem; }
.home-hero .text-link, .studio-section .text-link { color: #fff; }
.hero-media { background: var(--deep); }
.hero-media img { width: 100%; aspect-ratio: 1.37; object-fit: cover; object-position: 47% center; }
.hero-media figcaption { display: flex; flex-wrap: wrap; gap: .2rem 1rem; justify-content: space-between; align-items: center; padding: .75rem 1rem; color: #c3dded; font-size: .8rem; }
.hero-media figcaption a { color: #fff; font-weight: 700; padding-block: .3rem; }
.section { padding-block: clamp(2.8rem, 6.8vw, 6.35rem); }
.pale { background: var(--ice); }
.section-intro { max-width: 47rem; margin-bottom: clamp(1.4rem, 3.5vw, 2.7rem); }
.section-intro > p:not(.eyebrow), .feature-list p, .panel > p, .case-content > p:not(.case-label) { color: var(--muted); }
.two-up, .three-up { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { background: #f3f7fa; padding: clamp(1.15rem, 3vw, 2rem); }
.panel h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.ticks { margin-top: 1rem; padding-left: 1.2em; }
.ticks li { margin-bottom: .38rem; }
.panel .button, .studio-grid .text-link { margin-top: 1rem; }
.feature-list { margin-block: 1.45rem 1.2rem; }
.feature-list article { padding-top: 1.25rem; border-top: 1px solid #9fbfd1; }
.case-grid { margin-bottom: 1.3rem; }
.case-card { display: flex; flex-direction: column; min-width: 0; background: #f3f7fa; }
.case-image { background: var(--ice); }
.case-image img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.case-content { display: flex; flex-direction: column; flex: 1; padding: clamp(1rem, 2.4vw, 1.55rem); }
.case-label { margin-bottom: .6rem; color: var(--blue-text); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.case-content h3 { font-size: clamp(1.23rem, 1.85vw, 1.6rem); text-wrap: initial; }
.case-content > p:not(.case-label) { padding-bottom: .65rem; }
.case-content .text-link { margin-top: auto; align-self: start; }
.studio-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(1.6rem, 6vw, 5rem); align-items: center; }
.studio-grid figure img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.studio-grid .studio-photo { aspect-ratio: auto; }
.studio-section h2 + p { color: #d4e5f1; }
.studio-grid figcaption, .case-detail figcaption { margin-top: .45rem; font-size: .8rem; color: var(--muted); }
.cta-section { background: var(--blue); padding-block: clamp(2rem, 5.2vw, 4.5rem); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.3rem 2rem; align-items: center; }
.cta-inner .eyebrow { color: var(--navy); }
.cta-inner p { max-width: 42rem; }
.site-footer { padding-block: 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 1.35rem 2rem; }
.footer-grid a { color: #e1eff8; }
.footer-grid .logo { margin-bottom: .7rem; }
.footer-grid > div:not(:first-child) > a { display: block; width: fit-content; min-height: 2rem; }
.footer-grid strong { display: block; margin-bottom: .2rem; }
.sub-hero { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 7vw, 6.2rem); }
.sub-hero .eyebrow { color: #a6dcff; }
.sub-hero h1 { max-width: 65rem; text-wrap: initial; }
.intro { max-width: 47rem; margin-top: 1rem; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: #d4e5f1; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1.5rem clamp(2rem, 6vw, 6rem); }
details { border-bottom: 1px solid #9fbfd1; }
details:first-child { border-top: 1px solid #9fbfd1; }
summary { padding: .95rem .15rem; cursor: pointer; font-weight: 700; }
details p { padding: 0 .15rem 1rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: clamp(1.4rem, 2.7vw, 1.8rem); margin-top: 1.85rem; }
@media (max-width: 58rem) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-copy h1 { font-size: clamp(2.35rem, 5vw, 3.45rem); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47rem) {
  .header-grid { grid-template-columns: 1fr auto; gap: .3rem .5rem; padding-block: .6rem .1rem; }
  nav { grid-area: 2 / 1 / 3 / -1; justify-content: start; gap: .1rem clamp(.6rem, 4vw, 1.5rem); border-top: 1px solid var(--line); }
  .nav-cta { grid-area: 1 / 2; min-height: 2.75rem; }
  .hero-grid, .studio-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2.3rem, 7.2vw, 4rem); }
  .hero-media img { aspect-ratio: 1.55; }
  .actions { gap: .4rem 1rem; }
  .actions .text-link { font-size: .9rem; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .two-up, .case-grid, .cta-inner, .footer-grid { grid-template-columns: 1fr; }
  .cta-inner .button { justify-self: start; }
}
@media (max-width: 22rem) {
  .header-grid .logo { width: 7.7rem; }
  .nav-cta { padding-inline: .55em; font-size: .8rem; }
  nav a { font-size: .85rem; }
}
/* Referenzübersicht und Projektseiten */
.case-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.case-card-link:hover .text-link { text-decoration: underline; }
.reference-heading h1 {
  font-size: clamp(1.55rem, 5.1vw, 3.7rem);
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.reference-flow { display: grid; gap: clamp(1.25rem, 3.3vw, 2.5rem); }
.reference-copy { max-width: 48rem; overflow-wrap: anywhere; }
.reference-copy h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.reference-copy small, .reference-video figcaption { color: var(--muted); }
.reference-photo, .reference-photos, .reference-gallery, .reference-video { max-width: 62rem; }
.reference-photo > a, .reference-photos > a, .reference-gallery > a { display: block; }
.reference-photo > a { width: fit-content; max-width: 100%; }
.reference-photo img { max-height: 44rem; width: auto; object-fit: contain; }
.reference-photos, .reference-gallery { display: grid; gap: clamp(.65rem, 2vw, 1.3rem); }
.reference-photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }
.reference-photos img { width: 100%; }
.reference-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.reference-gallery a { background: #f3f7fa; }
.reference-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.reference-video { width: min(100%, 45rem); }
.reference-video a { display: block; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.reference-video a:hover { text-decoration: underline; }
.reference-video img { width: 100%; max-height: 29rem; object-fit: cover; }
.reference-video a > span { display: block; padding: .8rem 1rem; }
.reference-video figcaption { padding-top: .35rem; font-size: .85rem; }
.reference-flow > .text-link { justify-self: start; }

.photo-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(72rem, calc(100% - 1rem));
  height: min(52rem, calc(100% - 1rem));
  height: min(52rem, calc(100dvh - 1rem));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--navy);
  color: #fff;
}
.photo-dialog::backdrop { background: rgb(0 0 0 / .85); }
body:has(.photo-dialog[open]) { overflow: hidden; }
.photo-dialog__toolbar, .photo-dialog__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3rem;
  padding: .35rem clamp(.35rem, 2vw, 1rem);
}
.photo-dialog__zoom { display: flex; gap: .3rem; }
.photo-dialog button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .25rem .65rem;
  border: 1px solid #a9c4d5;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
}
.photo-dialog button:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--deep); }
.photo-dialog button:focus-visible { outline-offset: -4px; }
.photo-dialog button:disabled, .photo-dialog button[aria-disabled="true"] { opacity: .55; cursor: default; }
.photo-dialog__stage {
  position: relative;
  overflow: hidden;
  background: #000;
  touch-action: none;
}
.photo-dialog__stage.is-zoomed { cursor: grab; }
.photo-dialog__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.photo-dialog__count { white-space: nowrap; font-variant-numeric: tabular-nums; }
