:root {
  --ink: #162f36;
  --body: #31484b;
  --muted: #506368;
  --paper: #fcfaf6;
  --pale: #eff3ee;
  --accent: rgb(243 185 219 / 85%);
  --berry: #8d2665;
  --accent-light: #f5dfed;
  --rule: #cbd4ce;
  --gutter: clamp(1.25rem, 6vw, 6.5rem);
  --nav-h: 4.65rem;
  font-family: Poppins, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, p, ul, ol, h1, h2, h3 { margin: 0; }
body { font-size: 1rem; line-height: 1.65; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .21em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }
.hero :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--accent-light); }
.wrap { width: min(100% - var(--gutter) * 2, 78rem); margin-inline: auto; }
section[id] { scroll-margin-top: calc(var(--nav-h) + .4rem); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.skip:focus { position: fixed; top: .8rem; left: 1rem; padding: .5rem 1rem; background: white; z-index: 20; }
.site-header { position: sticky; top: 0; z-index: 6; background: #fcfaf6; border-bottom: 1px solid #1a303618; }
.nav-row { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: 9.25rem; height: auto; }
#navigation { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.5rem); }
#navigation a { font-size: .94rem; font-weight: 600; text-decoration: none; }
#navigation a:hover { color: var(--berry); }
#navigation .nav-contact, .menu-toggle { background: var(--ink); color: white; padding: .54rem 1.25rem; border: 0; border-radius: 2rem; }
#navigation .nav-contact:hover { background: #294b50; color: white; }
.menu-toggle { display: none; }
.hero { color: white; position: relative; isolation: isolate; overflow: hidden; background: #31535b; }
.hero-photo, .hero::after, #netz { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 54% 54%; z-index: -3; }
.hero::after { content: ""; z-index: -2; background: linear-gradient(90deg, rgba(10,26,34,.81), rgba(11,28,34,.52) 32%, rgba(12,29,33,.08) 71%),linear-gradient(0deg, rgba(11,27,32,.65), transparent 34%); }
#netz { z-index: -1; pointer-events: none; }
.hero-inner { position: relative; min-height: clamp(32rem, 71vh, 43rem); display: flex; flex-direction: column; justify-content: center; }
.hero::before, .portrait-bild::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgb(145 54 222 / 16%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 2; padding: 3.2rem 0 4.9rem; }
.eyebrow { display: flex; gap: .75rem; align-items: center; font-family: Montserrat,sans-serif; font-size: .84rem; font-weight: 690; text-transform: uppercase; letter-spacing: .155em; line-height: 1.3; }
.eyebrow::before { content: ""; display: block; width: 2.4rem; height: 2px; background: var(--berry); }
.hero-label { color: var(--accent-light); }
.hero-label::before, .contact .eyebrow::before { background: var(--accent); }
.hero h1 { margin: 1.25rem 0 1.85rem -.06em; line-height: .96; letter-spacing: -.062em; font-weight: 400; font-size: clamp(5.2rem, 8.25vw, 8.65rem); }
.hero h1 strong { font-weight: 600; }
.name-dot, .contact .accent { color: var(--accent); }
.hero-cta { display: inline-block; padding: .62rem 1.35rem; background: rgb(158 0 93 / 72%); color: #fff; box-shadow: inset 0 0 0 1px rgb(250 211 234 / 76%); border-radius: 3rem; text-decoration: none; font-weight: 600; font-size: .94rem; transition: background .2s, transform .2s; }
.hero-cta:hover { background: rgb(158 0 93 / 86%); transform: translateY(-2px); }
.hero-foot { position: absolute; bottom: 1.4rem; inset-inline: 0; display: flex; justify-content: flex-end; gap: 1rem; align-items: center; }
.location { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; text-shadow: 0 1px 5px #0e2228; }
.location svg, .mail-line svg { width: 1.1rem; height: 1.1rem; }
.motion-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #162f36b8; color: white; border: 1px solid #ffffff85; }
.motion-button:hover { background: var(--ink); }
.motion-button span { display: block; width: .62rem; height: .75rem; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.motion-button[aria-pressed="true"] span { width: 0; height: 0; border: solid transparent; border-width: .4rem 0 .4rem .67rem; border-left-color: currentColor; margin-left: .1rem; }
.block { padding-block: clamp(4.5rem, 7.5vw, 7.9rem); }
h2, .legal h1, .case-text h1 { font-family: Montserrat,sans-serif; font-size: clamp(2.35rem, 4.5vw, 4.7rem); font-weight: 615; line-height: 1.07; letter-spacing: -.067em; }
.accent { color: var(--berry); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, .82fr); align-items: center; column-gap: clamp(2.5rem, 9.5vw, 10.5rem); }
.profile h2, .contact h2 { margin: 1.25rem 0 1.65rem; }
.profile-copy > p:not(.eyebrow), .service-list p, .timeline p, .prose { color: var(--body); line-height: 1.75; }
.profile-copy > p:not(.eyebrow) { margin-top: .9rem; max-width: 37rem; font-size: 1.04rem; }
.socials { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; padding: 0; margin-top: 1.4rem; }
.socials a { font-size: .9rem; text-decoration-color: #a7aaa0; }
#profilfoto { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.portrait-bild { display: block; position: relative; overflow: hidden; border-radius: .2rem; }
.portrait { width: min(100%, 22.8rem); margin-inline: auto; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 404/470; object-fit: cover; border-radius: .2rem; }
.portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .5rem; border-top: 1px solid var(--rule); padding-top: .48rem; margin-top: .6rem; font-size: .83rem; }
.portrait figcaption span { color: var(--muted); }
.section-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 6vw, 6rem); }
.services, .portfolio { background: var(--pale); }
.service-list details { border-top: 1px solid #afbfba; }
.service-list details:last-child { border-bottom: 1px solid #afbfba; }
.service-list summary { display: flex; align-items: center; gap: .85rem; justify-content: space-between; cursor: pointer; padding: 1.1rem 0; font-family: Montserrat,sans-serif; font-weight: 620; font-size: clamp(1.13rem, 1.8vw, 1.65rem); line-height: 1.35; letter-spacing: -.045em; list-style: none; }
.service-list summary::-webkit-details-marker { display:none; }
.service-list summary:hover { color: var(--berry); }
.expand { width: 1.1rem; height: 1.1rem; position: relative; flex: none; }
.expand::before, .expand::after { content: ""; position: absolute; background: currentColor; top: 47%; width: 100%; height: 2px; }
.expand::after { transform: rotate(90deg); transition: transform .2s; }
details[open] .expand::after { transform: rotate(0deg); }
.service-list p { max-width: 40rem; padding: 0 1.6rem 1.4rem 0; }
.timeline { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); }
.date, .project-tags, .contact-label { font-family: Montserrat,sans-serif; font-size: .87rem; font-weight: 650; color: var(--muted); }
.date { margin-top: .18rem; color: var(--berry); }
.timeline h3, .project-info h3 { font-family: Montserrat,sans-serif; font-weight: 640; letter-spacing: -.038em; font-size: 1.23rem; line-height: 1.35; }
.timeline p { margin-top: .4rem; }
.filters { margin: 1.9rem 0 2.35rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button { border: 1px solid #9faeaa; background: transparent; border-radius: 2rem; padding: .45rem 1rem; font-size: .91rem; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.3rem 1.6rem; margin-top: 2rem; }
.project-link { display: block; text-decoration: none; }
.cover { aspect-ratio: 1; overflow: hidden; background: #dce1dc; border-radius: .25rem; }
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease-out; }
.project-link:hover img { transform: scale(1.035); }
.project-info { padding-top: .85rem; }
.project-info h3 { margin-top: .25rem; font-size: 1.32rem; }
.project-link:hover h3 { text-decoration: underline; text-underline-offset: .17em; }
.project-tags { line-height: 1.5; font-weight: 580; }
.contact {
  --accent: #e8a9ce;
  --accent-light: #ebbad6;
  color: #fff9fc;
  background: linear-gradient(110deg, rgb(158 0 93 / 46%), rgb(158 0 93 / 10%) 85%), #322636;
}
.contact .eyebrow, .contact-label { color: var(--accent-light); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.contact h2 { margin-bottom: 0; }
address { font-style: normal; }
.contact address { min-width: 0; display: grid; justify-items: start; font-size: 1.05rem; }
.contact address a {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  font-weight: 600;
  text-decoration-color: #d29ab9;
  text-underline-offset: .21em;
}
.contact-label { margin: 1.2rem 0 .12rem; }
.contact-label:first-child { margin-top: 0; }
.mail-line { max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; overflow-wrap: anywhere; }
.mail-line a { min-width: 0; }
.mail-line button { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid #c495b0; border-radius: 50%; background: transparent; color: #fff9fc; }
.mail-line button:hover { background-color: #fff9fc; color: #56233f; }
#kopierstatus { font-size: .9rem; }
.footer { background: #2b1925; color: #e4c9d8; }
.footer-row { border-top: 1px solid #614055; padding-block: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; font-size: .87rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; }
.footer a { text-decoration-color: #ae869d; }
:is(.contact, .footer) a:hover { color: #fff9fc; text-decoration-color: currentColor; text-decoration-thickness: .14em; }
.legal, .project-page { padding-block: clamp(3rem, 6vw, 6rem); }
.legal { width: min(100% - var(--gutter) * 2, 50rem); }
.access-statement { display: none; }
.access-statement:target { display: block; }
.access-statement h2 { overflow-wrap: anywhere; }
.statement-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.legal h1, .case-text h1 { overflow-wrap: anywhere; font-size: clamp(2.1rem, 4.7vw, 4.4rem); }
.backlink { display: inline-block; font-size: .94rem; color: var(--berry); font-weight: 600; margin-bottom: 1.7rem; }
.prose { max-width: 46rem; margin: 1.5rem 0; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin: 2rem 0 .6rem; font-size: 1.45rem; letter-spacing: -.035em; }
.prose p + p { margin-top: .85rem; }
.prose a { color: #772054; }
.project-spread { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.case-img { border-radius: .25rem; width: 100%; }
.case-text .project-tags, .dialog-copy .project-tags { margin-bottom: .6rem; }
dialog { width: min(64rem, 91vw); max-height: 86dvh; padding: 0; border: 0; color: var(--ink); background: var(--paper); border-radius: .6rem; }
dialog::backdrop { background: #0c2027bd; }
[data-dialog-body] { display:grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.dialog-image { width: 100%; height: auto; margin: auto; }
.dialog-copy { padding: 3.5rem 2.25rem 1.8rem; }
.dialog-copy h2 { font-size: clamp(1.85rem, 3vw, 3rem); }
.dialog-copy .prose { margin: 1rem 0; }
.dialog-close { position: absolute; top:.6rem; right:.6rem; z-index:1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); font-size: 1.8rem; line-height: 1; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 54rem) {
  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .profile-grid { gap: 2.5rem; }
  .contact-grid { gap: 2rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-dialog-body] { display: block; }
  .dialog-image { max-width: min(100%, 19rem); margin: 1.5rem auto 0; }
  .dialog-copy { padding: 1.5rem; }
}
@media (max-width: 42rem) {
  :root { --nav-h: 4rem; }
  .nav-row { flex-wrap: wrap; gap: 0; }
  .brand { min-height: var(--nav-h); }
  .brand-logo { width: 8rem; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 2.65rem; font-size: .94rem; }
  #navigation { width: 100%; padding: 0 0 .8rem; gap: .1rem .85rem; flex-wrap: wrap; }
  #navigation a { display: inline-block; padding-block: .4rem; }
  #navigation .nav-contact { background: none; color: var(--ink); padding: .4rem 0; }
  .site-header:not([data-menu-open]) { position: static; }
  .site-header[data-menu-open="false"] #navigation { display: none; }
  .hero-inner { min-height: min(37rem, max(27.5rem, 71svh)); }
  .hero-photo { object-position: 92% center; }
  .hero::after { background: linear-gradient(90deg,rgba(8,26,32,.72),rgba(8,26,32,.25) 84%), linear-gradient(0deg,#0d252b94,transparent 58%); }
  .hero h1 { font-size: clamp(4.4rem, 17.4vw, 6.5rem); }
  .hero-text { padding: 3rem 0 4.3rem; }
  .hero-foot { bottom: .9rem; }
  .profile-grid, .contact-grid, .project-spread { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 22.8rem); margin: 0; }
  .block { padding-block: 3.75rem; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
  .project-grid { gap: 1.5rem 1rem; }
  .project-tags { font-size: .82rem; }
  .project-info h3 { font-size: 1.12rem; }
  .filters { margin-block: 1.25rem 1.5rem; }
  .filters button { padding: .42rem .76rem; }
  .contact address { font-size: 1rem; }
}
@media (max-width: 32rem) {
  .project-grid { grid-template-columns: 1fr; }
  .project-info h3 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
@media (forced-colors: active) {
  .hero::before, .portrait-bild::before { content: none; }
  .hero .hero-cta { outline: 1px solid ButtonText; }
}
