/* Inter Regular */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "InterDisplay";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/InterDisplay-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/Inter-ExtraLight.woff2") format("woff2");
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.6;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.flow > * + * {
  margin-top: var(--flow-space, 1em);
}

:is(h1, h2, h3) {
  --flow-space: 1.5em;
}

:is(h1, h2, h3) + * {
  --flow-space: 1em;
}

:root {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "liga" 1, "calt" 1;
  --color-dark: rgba(0, 0, 0, 0.8);
  --color-light: #ffffff;
  --color-primary: #000000;
  --color-primary-shade: #111111;
  --color-accent: #ff5c00;
  --color-grey: #666666;
  --active-link-color: #ff5c00;
  --color-contrast: #ff5c00;
  --transition-effect: 0.5s ease-in-out;
  --size-step-0: clamp(1rem, calc(0.96rem + 0.22vw), 1.13rem);
  --size-step-1: clamp(1.25rem, calc(1.16rem + 0.43vw), 1.5rem);
  --size-step-2: clamp(1.56rem, calc(1.41rem + 0.76vw), 2rem);
  --size-step-3: clamp(1.95rem, calc(1.71rem + 1.24vw), 2.66rem);
  --size-step-4: clamp(2.44rem, calc(2.05rem + 1.93vw), 3.55rem);
  --size-step-5: clamp(3.05rem, calc(2.49rem + 2.8vw), 4.73rem);
  --size-step-6: clamp(3.81rem, calc(2.98rem + 4.16vw), 6.31rem);
  --space-xs: clamp(0.4375rem, 0.42rem + 0.1vw, 0.5rem);
  --space-s: clamp(0.875rem, 0.83rem + 0.2vw, 1rem);
  --space-m: clamp(1.3125rem, 1.25rem + 0.29vw, 1.5rem);
  --space-m-l: clamp(1.3125rem, 0.93rem + 1.86vw, 2.5rem);
  --space-l: clamp(2.1875rem, 2.09rem + 0.49vw, 2.5rem);
  --space-xl: clamp(3.0625rem, 2.92rem + 0.69vw, 3.5rem);
  --space-2xl: clamp(3.5rem, 3.34rem + 0.78vw, 4rem);
  --space-3xl: clamp(4.375rem, 4.17rem + 0.98vw, 5rem);
  --space-4xl: clamp(6.5625rem, 6.26rem + 1.47vw, 7.5rem);
  --gutter: var(--space-m-l);
  --font-base: Inter, sans-serif;
  --font-regular: 400;
  --font-light: 200;
  --font-bold: 700;
  --border-radius: 15px;
  --grid-compound: [a1] 4fr [a2] 1fr [a3] 3fr [a4] 2fr [a5] 2fr [a6] 3fr [a7] 1fr [a8] 4fr [a9];
  --grid-cols-12: repeat(12, 1fr);
  --grid-cols-2: repeat(2, 1fr);
  --grid-cols-3: repeat(3, 1fr);
  --grid-cols-4: repeat(4, 1fr);
  --grid-column-gap: clamp(1rem, calc(0.89rem + 0.54vw), 1.31rem);
  --grid-row-gap: clamp(1rem, calc(0.89rem + 0.54vw), 1.31rem);
  --site-head-h: 86px;
  --footer-h2-offset: calc(var(--size-step-1) * 1.6);
  --padding-inline: clamp(1rem, 4vw, 2rem);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  font-size: var(--size-step-0);
  font-weight: 400;
}

.skiplink {
  position: absolute;
  transform: translateX(-100%);
  background-color: var(--color-light);
  color: var(--color-dark);
  z-index: 3;
  left: 0;
  top: 0;
  padding: 20px;
  font-size: 1.25rem;
}

.skiplink:focus {
  transform: translateX(0);
}

h1,
h2,
h3 {
  font-family: "InterDisplay", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: var(--size-step-5);
  text-align: center;
  text-transform: lowercase;
  padding: var(--space-2xl) 0 var(--space-l) 0;
}

h2 {
  font-size: var(--size-step-2);
  padding: var(--space-l) 0 var(--space-m) 0;
}

h3 {
  font-size: var(--size-step-1);
  padding: var(--space-l) 0 0 0;
  max-width: 40ch;
  line-height: 1.3;
}

.display {
  font-size: var(--size-step-5);
  text-align: center;
  text-transform: lowercase;
  padding: var(--space-4xl) 0 var(--space-2xl) 0;
}

.display a {
  text-decoration: none;
}

em,
i,
.italic {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: italic;
}

dt {
  font-weight: var(--font-medium);
}

  .inner-wrapper{ padding-inline: var(--padding-inline); }

  @media (max-width: 48em){

  .inner-wrapper .video-wrapper{
    margin-inline: calc(-1 * var(--padding-inline));
    width: auto;
  }
}

main a {
  text-decoration-color: var(--color-dark);
  text-decoration-thickness: 0.3ex;
  text-underline-offset: 0.3ex;
}

main img { width: 100%; height: auto; }

main p + img {
  margin-top: var(--space-s);
}

main img + img {
  margin-top: var(--space-xs);
}

main img + h3 {
  margin-top: var(--space-l);
}

main h3 + p {
  margin-top: 0;
}

main img + dl {
  margin-top: var(--space-l);
}

/* Spacing auch dann, wenn Bilder in <figure class="photo"> stecken */
main p + .photo {
  margin-top: var(--space-s);
}

main .photo + .photo {
  margin-top: var(--space-xs);
}

main .photo + h3 {
  margin-top: var(--space-l);
}

/* Optional: falls du mal img + .photo oder .photo + img gemischt hast */
main img + .photo,
main .photo + img {
  margin-top: var(--space-xs);
}

.flow > h3 + p {
  margin-top: 0;
}

.extern {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.extern a,
.extern a:hover,
.extern a:focus,
.extern a:focus-visible { text-decoration: none; }


footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 2em 0;
}

footer p {
  font-size: var(--size-step-0);
}

footer a {
  color: var(--color-dark);
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 
:focus {
  outline: 2px solid #252525;
  outline-offset: 0.2rem;
}*/

p,
dl {
  max-width: 70ch;
}

video {
  margin-block-end: var(--space-l);
}

article {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.wrapper {
  width: 100%;
  padding-left: clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
  margin: 0 auto;
}

.inner-wrapper {
  max-width: 92em;
  margin: 0 auto;
  margin-block-end: var(--space-l);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  background: var(--color-light);
  color: var(--color-dark);
  line-height: 1.1;
}

.site-head :focus {
  outline-color: var(--color-dark);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 0.5rem;
}

.site-head__brand,
.navigation {
  flex: 1;
}

.navigation a {
  text-transform: lowercase;
  font-size: var(--size-step-0);
}

.site-head__brand {
  display: block;
  max-width: 12em;
  text-align: center;
}

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  padding: 0;
}

.navigation li {
  margin: 0.1rem;
}

.navigation a {
  text-decoration: none;
  color: var(--color-primary);
  padding: 0.5rem 0.5rem;
  display: inline-block;
  transition: transform 0.6s ease;
  transform-origin: center center;
}

.navigation a:hover {
  transform: scale(1.05);
}

.navigation li:last-child a:hover {
  color: var(--color-primary);
  background-color: var(--color-light);
}

.navigation [aria-current="page"] {
  color: var(--color-accent);
}

.burger-menu__trigger {
  display: none;
}

.burger-menu__bar,
.burger-menu__bar::before,
.burger-menu__bar::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-dark);
  border: 1px solid var(--color-dark);
  position: absolute;
  border-radius: 3px;
  left: 50%;
  margin-left: -12px;
  transition: transform 350ms ease-in-out;
}

.burger-menu__bar {
  top: 50%;
  transform: translateY(-50%);
}

.burger-menu__bar::before,
.burger-menu__bar::after {
  content: '';
}

.burger-menu__bar::before {
  top: -8px;
}

.burger-menu__bar::after {
  bottom: -8px;
}

.burger-menu[enabled='true'] .burger-menu__trigger {
  display: block;
  width: 2rem;
  height: 2rem; /* Nice big tap target */
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-menu[enabled='true'] .burger-menu__panel {
  position: fixed;
  inset: 0;
  padding: 5rem 1.5rem 2rem 1.5rem;
  width: auto;
  height: auto;
  visibility: hidden;
  opacity: 0;
  background: var(--color-light);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2000;
}

.burger-menu[enabled='true'] .navigation ul {
  display: block;
}

.burger-menu[enabled='true'] .navigation ul > * + * {
  margin-top: 2rem;
}

.burger-menu[enabled='true'] .navigation li {
  font-size: var(--size-step-3);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__panel {
  visibility: visible;
  opacity: 1;
  transition: opacity 400ms ease;
}

.burger-menu[enabled='true'][status='closed'] .burger-menu__panel > * {
  opacity: 0;
  transform: translateY(5rem);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__panel > * {
  transform: translateY(0);
  opacity: 1;
  transition: transform 500ms cubic-bezier(0.17, 0.67, 0, 0.87) 700ms, opacity 500ms ease 800ms;
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar {
  background: transparent;
  border-color: transparent;
  transform: rotate(180deg);
}
/* Trigger IMMER über dem Panel, sonst ist das X „weg“ */
.burger-menu[enabled='true'] .burger-menu__trigger {
  position: fixed;      
  top: 0.25rem;
  right: 1rem;
  z-index: 2100;       
  width: 2.75rem;        
  height: 2.75rem;      
  color: var(--color-dark);
}

/* Bars folgen der Trigger-Farbe (damit auf hell sichtbar) */
.burger-menu__bar,
.burger-menu__bar::before,
.burger-menu__bar::after {
  background: currentColor;
  border-color: currentColor;
}


ul li::marker {
  color: var(--color-primary);
}

.video-wrapper {
  width: 70%;
  margin: 0 auto;
  padding-top: var(--space-4xl);
  aspect-ratio: 8 / 5;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px){
  .video-wrapper { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .video-wrapper {
    display: none;
  }
}

.measure-video{
  width: 70%;
  max-width: none; 
  margin-inline: auto; 
}

@media (max-width: 700px){
  .measure-video{ width: 100%; }
}

.inner-wrapper > .full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.video-bg {
  position: absolute;
  inset: 0; 
  z-index: -1;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.footer{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--grid-column-gap) var(--grid-column-gap);
  align-self:start;
  justify-self:start;
  align-items:stretch;
}

.footer__col--legal .footer__content{
  display:flex;
  flex-direction:column;
  gap:.25rem;
}
.footer__col--legal .footer__content > p:last-of-type{
  margin-top:auto;
  padding-top:.75rem;
}

.footer h2{
  margin:0;
  padding: 0;
  font-size: var(--size-step-1);
  line-height: 1.1;
}

@media (min-width: 48em){
  .footer{
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-column-gap) var(--grid-column-gap);
  }

  .footer > :nth-child(1){ grid-column:1 / -1; grid-row:1; align-self:center; }
  .footer > :nth-child(2){ grid-column:1 / 2;  grid-row:2; }
  .footer > :nth-child(3){ grid-column:2 / -1; grid-row:2; }
  .footer > :nth-child(4){ grid-column:1 / 2;  grid-row:3; }
  .footer > :nth-child(5){ grid-column:2 / -1; grid-row:3; }

  .footer > div{ padding-block-start: var(--space-m); }

  #kontakt p{
    font-size: var(--size-step-3);
    line-height: 1.2;
  }

  .footer__col{
    display:grid;
    grid-template-rows: auto auto;  
    row-gap: 0.5em;           
  }
  .footer__col > h2{ align-self:end; } 
  .footer__col > .footer__content{ grid-row: 2; }
  .footer__content > *:first-child{ margin-top: 0; }
  
}

@media (min-width: 64em){
  .footer{
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-column-gap) var(--grid-column-gap);
  }

  .footer > :nth-child(1){ grid-column:1 / -1; grid-row:1; align-self:center; }
  .footer > :nth-child(2){ grid-column:1 / 2;  grid-row:2; }
  .footer > :nth-child(3){ grid-column:2 / 3;  grid-row:2; }
  .footer > :nth-child(4){ grid-column:3 / 4;  grid-row:2; }
  .footer > :nth-child(5){ grid-column:4 / -1; grid-row:2; }
}

/* Über uns */

.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-row-gap) var(--grid-column-gap);
  margin: 0 0 var(--space-l) 0;
}

.team-card {
  background: var(--color-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.team-card__text {
  padding: 0.75rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.team-card__text .name,
.team-card__text .duty {
  font-weight: 700;
  font-family: "InterDisplay", "Inter", sans-serif;
  color: var(--color-primary);
}

.team-card__text .role {
  font-style: normal; 
  color: var(--color-grey);
  font-weight: 00;
}

.team-card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
}
.team-card__cta {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 1.5rem;
}
.team-card__cta p {
  font-weight: 800;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  line-height: 1.1;
}

.team-card--about {
  display: flex;
}
.team-card__about {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1rem, 1.5vw, 1.5rem);
  min-height: 100%;
  justify-content: center;
}

.team-card__about h2 {
  font-size: var(--size-step-3);
}

@media (min-width: 48em) {
  .team {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .team > :nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
  }
  .team > :nth-child(2) {
    grid-column: 5 / 9;
    grid-row: 1 / 2;
  }
  .team > :nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
  }
  .team > :nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
  }
  .team > :nth-child(5) {
    grid-column: 4 / 7;
    grid-row: 3 / 4;
  }
  .team > :nth-child(6) {
    grid-column: 7 /-1;
    grid-row: 3 / 4;
  }
  .team > :nth-child(7) {
    grid-column: 1 / 4;
    grid-row: 4 / 5;
  }
  .team > :nth-child(8) {
    grid-column: 4 / 7;
    grid-row: 4 / 5;
  }
  .team > :nth-child(9) {
    grid-column: 7 / -1;
    grid-row: 4 / 5;
  }
  .team > :nth-child(10) {
    grid-column: 1 / 4;
    grid-row: 5 / 6;
  }
  .team > :nth-child(11) {
    grid-column: 4 / 7;
    grid-row: 5 / 6;
  }
}

@media (min-width: 64em) {
  .team {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .team > :nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .team > :nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
  }
  .team > :nth-child(3) {
    grid-column: 6 / -1;
    grid-row: 1 / 2;
    align-self: center;
  }
  .team > :nth-child(4) {
    grid-column: 5 / 7;
    grid-row: 2 / 3;
  }
  .team > :nth-child(5) {
    grid-column: 7 / 9;
    grid-row: 2 / 3;
  }
  .team > :nth-child(6) {
    grid-column: 9 / -1;
    grid-row: 2 / 3;
  }
  .team > :nth-child(7) {
    grid-column: 4 / 6;
    grid-row: 3 / 4;
  }
  .team > :nth-child(8) {
    grid-column: 6 / 8;
    grid-row: 3 / 4;
  }
  .team > :nth-child(9) {
    grid-column: 8 / 10;
    grid-row: 3 / 4;
  }
  .team > :nth-child(10) {
    grid-column: 2 / 4;
    grid-row: 4 / 5;
  }
  .team > :nth-child(11) {
    grid-column: 4 / 6;
    grid-row: 4 / 5;
  }
}

.team-card__text p {
  margin: 0;
}

.mosaic {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 1fr;
  gap: var(--grid-row-gap) var(--grid-column-gap);
  align-items: start;
  padding: 0;
}

@media (min-width: 48em) {
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mosaic__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--color-light);
}

.mosaic__item > img {
  display: block;
  width: 100%;
  height: auto; 
}

.mosaic__item--text {
  padding: var(--space-m);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-self: stretch; 
}

@media (min-width: 48em) {
  .mosaic__item[data-span="2"] {
    grid-column: span 2;
  }
}

.mosaic__item.ratio-1x1 {
  aspect-ratio: 1 / 1;
}
.mosaic__item.ratio-16x9 {
  aspect-ratio: 16 / 9;
}
.mosaic__item.ratio-9x16 {
  aspect-ratio: 9 / 16;
}
.mosaic__item.ratio-8x5 {
  aspect-ratio: 8 / 5;
}
.mosaic__item.ratio-5x8 {
  aspect-ratio: 5 / 8;
}
.mosaic__item[class*="ratio"] > img {
  height: 100%;
  object-fit: cover;
}

.mosaic__item,
.mosaic__item--text > * {
  opacity: 1;
  transform: none;
}

.mosaic__item > video {
  display: block;
  width: 100%;
  height: auto;
}

.mosaic__item[class*="ratio"] > img,
.mosaic__item[class*="ratio"] > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@supports (animation-timeline: view()) {
  @keyframes mosaic-reveal {
    from {
      opacity: 0;
      transform: translate3d(var(--rx, 0), var(--ry, 24px), 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .mosaic__item {
    --rx: 0;
    --ry: 24px;
    opacity: 0;
    transform: translate3d(var(--rx), var(--ry), 0);
    animation: mosaic-reveal 0.7s ease both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%; 
    will-change: transform, opacity;
  }

.mosaic__item--text {
  --rx: 0;
  --ry: 12px;
  opacity: 0;
  transform: translate3d(var(--rx), var(--ry), 0);
  animation: mosaic-reveal 0.5s ease both;
  animation-timeline: view();
  animation-range: entry 15% cover 35%;
  will-change: transform, opacity;
}

.mosaic__item--text > * {
  opacity: 1;
  transform: none;
  animation: none;
}

}

@media (prefers-reduced-motion: reduce) {
  .mosaic__item,
  .mosaic__item--text > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.mosaic.mosaic--masonry {
  display: block; 
  column-count: 1; 
  column-gap: var(--grid-column-gap);
}

@media (min-width: 48em) {
  .mosaic.mosaic--masonry {
    column-count: 2;
  } 
}

.mosaic--masonry .mosaic__item {
  display: inline-block; 
  width: 100%;
  margin: 0 0 var(--grid-row-gap); 
  break-inside: avoid; 
  border-radius: var(--border-radius);
  background: var(--color-light);
}

.mosaic--masonry .mosaic__item[class*="ratio"] > img {
  height: 100%;
  object-fit: cover;
}

@supports (column-span: all) {
  .mosaic--masonry .mosaic__item[data-span="2"] {
    column-span: all;
    display: block;
    width: 100%;
  }
}

.mosaic__item--text.is-center {
  justify-content: center; 
}

.mosaic__item--text.is-bottom {
  justify-content: flex-end; 
}

.region {
  padding-block: var(--region-space, var(--space-m));
  position: relative;
}

.region-space-2xl-4xl {
  --region-space: clamp(3.5rem, 2.21rem + 6.27vw, 7.5rem);
}

.flow-space-3xl {
  --flow-space: clamp(4.375rem, 4.17rem + 0.98vw, 5rem);
}

.rolodex {
  --flow-space: var(--space-l);
  margin-top: var(--space-4xl);
}

.rolodex ol {
  margin: 0;
  padding: 0;
}

.rolodex li {
  text-align: center;
  font-weight: var(--font-black);
  font-size: var(--size-step-4);
  font-family: "InterDisplay", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.rolodex__item a{
  text-decoration: none;
}

@media (min-width: 940px) {
  .rolodex__list {
    --sticky-offset: 86px;
  }

  .rolodex__list li {
    position: sticky;
    top: var(--sticky-offset);
  }

  .rolodex__list:has(.rolodex__item:focus-visible) li {
    position: relative;
  }

.rolodex__item a{
  position: relative;
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  text-decoration: none;
}

.rolodex__item a::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}

.rolodex__label{
  position: absolute;
  left: .75rem;
  top: .6rem;
  z-index: 1;
  padding: .35rem .55rem;
  color: #fff;
  border-radius: .35rem;
  line-height: 1;
  font-family: "InterDisplay","Inter",sans-serif;
  font-weight: 700;
  font-size: var(--size-step-4);
  pointer-events: none;
}

.rolodex__item a {
  position: relative;
}

.rolodex img{
  aspect-ratio: 192/120;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
  width: 100%;
  height: auto;
}
}

@media (max-width: 700px){ .rolodex__label{ font-size: var(--size-step-1); } }

.instagram-icon {
  height: 2em;
  width: 2em;
  color: var(--color-primary);
  fill: var(--color-primary);
  line-height: 1;
  max-width: initial;
}

.filters {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 0.5rem;
  padding-bottom: var(--space-m);
}

.filters input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filters label {
  display: inline-block;
  cursor: pointer;
  padding: 0.5rem 0.35rem;
  transition: background-color 0.3s ease;
}

.filters label:hover,
.filters input[type="radio"]:focus + span,
.filters input[type="radio"]:hover + span {
  color: var(--color-accent);
}

.filters input[type="radio"]:checked + span {
  font-weight: bold;
  font-family: "InterDisplay", "Inter", sans-serif;
}

.filters label span {
  display: inline-block;
  vertical-align: middle;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .filters {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

input:checked + span {
  text-decoration: none;
  color: var(--color-accent);
}

.filters:has(input[value="all"]:checked) + .cards li {
  display: flex;
}

.filters:has(input[value="ausstellung-museum"]:checked)
  + .cards
  li:not([data-tags*="ausstellung-museum"]),
.filters:has(input[value="gastronomie-hotel"]:checked)
  + .cards
  li:not([data-tags*="gastronomie-hotel"]),
.filters:has(input[value="grafik-kommunikationsdesign"]:checked)
  + .cards
  li:not([data-tags*="grafik-kommunikationsdesign"]),
.filters:has(input[value="kita-schule"]:checked)
  + .cards
  li:not([data-tags*="kita-schule"]),
.filters:has(input[value="wohnen"]:checked)
  + .cards
  li:not([data-tags*="wohnen"]),
.filters:has(input[value="kor"]:checked) + .cards li:not([data-tags*="kor"]),
.filters:has(input[value="bv"]:checked)
  + .cards
  li:not([data-tags*="bv"]) {
  display: none;
}

.cards > ul {
  list-style: none;
}

.card + .card {
  margin-top: 1.5rem;
}

@supports (display: grid) {
.cards > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-column-gap: 1.5rem;
  grid-row-gap: 1.5rem;
}

.card + .card {
  margin-top: 0;
}
}

@media (min-width: 48em) {
  .cards > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 1s;
}

.card .text {
  padding: 1rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.card dl {
  line-height: 1.35;
}

.card .img {
  position: relative;
  overflow: hidden;
  height: auto;
  border-radius: var(--border-radius);
}

.card .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: var(--border-radius);
}

.card a {
  text-decoration: none;
}

.card a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.card a:focus {
  outline: none;
  text-decoration: underline;
}

.card:focus-within a:focus {
  text-decoration: none;
}

.card .text > * + * {
  margin-top: 0.75rem;
}

.card:hover .img img,
.card:focus-within .img img {
  transform: scale(1.05);
}

.cards > ul > li.card[data-theme="orange"] .text {
  justify-content: center;
  align-items: center;
  font-family: "InterDisplay", "Inter", sans-serif;
  font-size: var(--size-step-4);
  font-weight: var(--font-bold);
}

.cards > ul > li.card:has(a[href$="awards.html"]) {
  position: relative;
}

.cards > ul > li.card:has(a[href$="awards.html"])::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius);
  border: 0.5px solid var(--color-primary);
  transition: transform 0.3s ease;
}

.cards > ul > li.card:has(a[href$="awards.html"]) .text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 1;
}

.cards > ul > li.card:has(a[href$="awards.html"]) .text > * {
  margin: 0;
}

.cards > ul > li.card:has(a[href$="awards.html"]) .text a {
  color: var(--color-primary);
  font-size: var(--size-step-3);
  font-weight: var(--font-bold);
  text-decoration: none;
}

.cards > ul > li.card:has(a[href$="projekte.html"]) {
  position: relative;
}

.cards > ul > li.card:has(a[href$="projekte.html"])::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--border-radius);
  border: 0.5px solid var(--color-primary);
  transition: transform 0.3s ease;
}

.cards > ul > li.card:has(a[href$="projekte.html"]) .text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  z-index: 1;
}

.cards > ul > li.card:has(a[href$="projekte.html"]) .text > * {
  margin: 0;
}

.cards > ul > li.card:has(a[href$="projekte.html"]) .text a {
  font-size: var(--size-step-3);
  font-weight: var(--font-bold);
  font-family: "InterDisplay", "Inter", sans-serif;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.cards > ul > li.card:has(a[href$="projekte.html"]):hover::before,
.cards > ul > li.card:has(a[href$="projekte.html"]):focus-within::before {
  transform: none;
}

.cards > ul > li.card:has(a[href$="awards.html"]) .text a,
.cards > ul > li.card:has(a[href$="projekte.html"]) .text a {
  display: inline-block;
  transform-origin: center;
  transform: translateZ(0);
  transition: transform 0.22s ease, letter-spacing 0.22s ease;
  will-change: transform;
}

.cards > ul > li.card:has(a[href$="awards.html"]):hover .text a,
.cards > ul > li.card:has(a[href$="awards.html"]):focus-within .text a,
.cards > ul > li.card:has(a[href$="projekte.html"]):hover .text a,
.cards > ul > li.card:has(a[href$="projekte.html"]):focus-within .text a {
  transform: scale(1.06);
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .cards > ul > li.card:has(a[href$="awards.html"]) .text a,
  .cards > ul > li.card:has(a[href$="projekte.html"]) .text a {
    transition: none;
    transform: none;
  }
}

/* Panel-Farben */
.card[data-theme="teal"]   { --panel-bg: #99cccc; }
.card[data-theme="violet"] { --panel-bg: #9999cc; }
.card[data-theme="grey"]   { --panel-bg: #cccccc; }
.card[data-theme="olive"]  { --panel-bg: #cccc99; }

.card .img.img--panel{
  width: 100%;
  aspect-ratio: 16 / 10;

  display: grid;
  place-items: center;

  background: var(--panel-bg, #f3f4f6);
  border-radius: var(--border-radius);

  min-height: 0;
}

.card .img.img--panel .img__label{
  margin: 0;
  padding: 1rem;

  font-family: "InterDisplay","Inter",sans-serif;
  font-weight: var(--font-bold);
  font-size: var(--size-step-3);
  line-height: 1.1;
  text-align: center;

  color: var(--color-dark);
  transition: transform 0.25s ease, letter-spacing 0.25s ease;
  transform-origin: center;
}

@media (hover: hover){
  .card:hover .img.img--panel .img__label,
  .card:focus-within .img.img--panel .img__label{
    transform: scale(1.05);
    letter-spacing: 0.01em;
  }
}

@media (prefers-reduced-motion: reduce){
  .card .img.img--panel .img__label{
    transition: none;
    transform: none;
  }
}

.text dl dt { 
  font-style: normal;
  color: var(--color-primary);
  font-weight: 200;
  margin-right: .35ch;
}

.text dl dd { 
  font-weight: 700;
  font-family: "InterDisplay", "Inter", sans-serif;
}

.page--produkte .cards > ul > li.card:first-child .text {
  font-size: var(--size-step-1);
  line-height: 1.2;
}
.page--produkte .cards > ul > li.card:first-child h2 {
  font-style: italic;
  font-size: 1em;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}
.page--produkte .cards > ul > li.card:first-child .text > p {
  font-size: 1em;
  margin: 0;
}

.page--produkte .card .text p {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}
.page--produkte .card .text p span {
  font-style: italic;
  font-weight: 400;
  margin-right: 0.35ch;
  color: var(--color-grey);
}

.page--awards {
  --award-max-h: 300px;
  --award-vpad: var(--space-m);
  --award-radius: var(--border-radius, 12px);
  --award-border: rgba(0, 0, 0, 0.25);
  --award-bg-grey: #f3f4f6;
}

.page--awards .card .img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--award-vpad);
  border-radius: var(--award-radius);
  overflow: hidden;
  background-clip: padding-box;
}

.page--awards .card .img.is-dotted {
  background: transparent;
  border: 1px dotted var(--award-border);
}
.page--awards .card .img.is-grey {
  background: var(--award-bg-grey);
  border: 1px solid transparent;
}

.page--awards .card .img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  border-radius: inherit; 
  position: relative;
}

.page--awards .card .img a::after {
  content: none;
}

.page--awards .card .img a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.page--awards .card .img img {
  width: auto;
  height: auto;
  max-height: var(--award-max-h);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: inherit;
}

article.page--awards {
  margin-block-end: var(--space-l);
}

@media (max-width: 48em) {
  .page--awards {
    --award-max-h: 160px;
  }
}

@media (min-width: 64em) {
  article.page--awards {
    margin-block-end: var(--space-3xl);
  }
}

.project_dl {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--grid-column-gap);
  align-items: baseline;
  margin-block-end: var(--space-m);
}

.project_dl dt,
.project_dl dd {
  margin: 0;
}

.project_dl dt span {
  font-style: italic;
  color: #999;
  font-weight: var(--font-regular);
}

.project_dl dd + dt {
  margin-block-start: 0;
}

.project_dl dd {
  min-width: 0;
}

@media (max-width: 767px) {
  .project_dl {
    grid-template-columns: 1fr;
  }
  .project_dl dt {
    font-weight: var(--font-bold);
  }
}

.project_dl dt.dl-gap {
  margin-top: var(--space-s); /* “Leerzeile” */
}

:is(.mosaic__item, .card)[data-credit]{
  position: relative;
}

:is(.mosaic__item, .card)[data-credit]::after{
  content: attr(data-credit);
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  font-size: .75rem;
  line-height: 1;
  padding: .25rem .5rem;
  color: #fff;
  background: rgba(0,0,0,.55);
  border-radius: .35rem;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s ease;
}

@media (hover: hover){
  :is(.mosaic__item, .card)[data-credit]::after{ opacity: 0; }
  :is(.mosaic__item, .card)[data-credit]:hover::after,
  :is(.mosaic__item, .card)[data-credit]:focus-within::after{
    opacity: 1;
  }
}

.card .img[data-credit]{
  position: relative;
}

/* Credit nur im Card-Bild */
.card .img[data-credit]{
  position: relative;
  display: block;
}

.card .img[data-credit]::after{
  content: attr(data-credit);
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  font-size: .75rem;
  line-height: 1;
  padding: .25rem .5rem;
  color: #fff;
  background: rgba(0,0,0,.55);
  border-radius: .35rem;
  z-index: 10;
  pointer-events: none;
  opacity: 0; /* <- bewusst sichtbar */
}

@media (hover: hover){
  .card:hover .img[data-credit]::after{
    opacity: 1;
  }
}

@media (hover: none) {
  .card .img[data-credit]::after {
    opacity: 1;
  }
}


.tabs [role="tablist"]{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tabs [role="tab"]{
  flex: 0 0 auto;       
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  white-space: nowrap; 
  text-align: left;  
  padding: 0.5rem 0.35rem; 
  color: var(--color-grey);
  border: none;
  background: transparent;
}

.tabs [role="tab"]:hover,
.tabs [role="tab"]:focus-visible{
  color: var(--color-accent);
}

.tabs [role="tab"][aria-selected="true"]{
  color: var(--color-accent);
  font-weight: 700;
}

.tabs [role="tab"] { font-size: var(--size-step-0); }

.tabs [role="tabpanel"][aria-hidden="true"]{ display: none; }

@media (max-width: 767px){
  .tabs [role="tablist"]{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.multi-column {
  container-type: inline-size;
  margin-inline: auto;
  column-width: 40ch;
  column-gap: var(--spacing-l);
  column-rule: 1px solid var(--color-primary); }

.multi-column h2 {
    column-span: all;}

.multi-column ul {
  margin-top:0;
  padding-top:0 }

.photo[data-credit]{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.photo > img{
  display: block;
  width: 100%;
  height: auto;
}

.photo[data-credit]::after{
  content: attr(data-credit);
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  font-size: .75rem;
  line-height: 1;
  padding: .25rem .5rem;
  color: #fff;
  background: rgba(0,0,0,.55);
  border-radius: .35rem;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s ease;
}

/* Optional: auf Desktop nur bei Hover/Fokus einblenden */
@media (hover: hover){
  .photo[data-credit]::after{ opacity: 0; }
  .photo[data-credit]:hover::after,
  .photo[data-credit]:focus-within::after{ opacity: 1; }
}










