:root {
  --ink: #172d33;
  --muted: #52656b;
  --accent: #1f5c6b;
  --accent-dark: #164653;
  --line: #dbe4e7;
  --surface: #f2f6f7;
  --white: #fff;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { color: var(--accent-dark); }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #d2e7ec; color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(3.2rem, 6.3vw, 5.5rem); letter-spacing: -.065em; font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.045em; font-weight: 700; }
h3 { font-size: 1.3rem; letter-spacing: -.025em; }
p { color: var(--muted); }
.wrap { width: min(1160px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 1rem; left: 1rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .8rem; align-items: center; color: var(--ink); font-weight: 650; text-decoration: none; }
.monogram { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--white); background: var(--accent); font-size: .95rem; letter-spacing: -.04em; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .95rem; text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 5rem; align-items: center; padding-block: 6.2rem 5.2rem; }
.eyebrow { color: var(--accent); font-size: .9rem; font-weight: 650; letter-spacing: .035em; margin-bottom: 1.3rem; }
.hero-statement { font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--ink); line-height: 1.4; letter-spacing: -.03em; max-width: 720px; margin-block: 1.5rem 1rem; }
.hero-detail { max-width: 650px; }
.portrait { position: relative; }
.portrait img { box-shadow: 0 18px 40px rgba(16,40,48,.18); }
.portrait img { aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button { min-height: 48px; padding: .7rem 1.3rem; border: 1px solid var(--accent); border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary { color: var(--white); background: var(--accent); }
.primary:hover { color: var(--white); background: var(--accent-dark); }
.secondary { color: var(--accent); background: var(--white); }
.secondary:hover { background: var(--surface); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 2rem; border-block: 1px solid var(--line); }
.metrics > div { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding-inline: 2rem; border-left: 1px solid var(--line); }
.metrics > div:first-child { border: 0; padding-left: 0; }
.metrics > div:last-child { padding-right: 0; }
.metrics strong { font-size: 1.6rem; letter-spacing: -.035em; color: var(--accent); }
.metrics span { font-size: .9rem; color: var(--muted); }
.section { padding-block: 4.5rem; }
.section-heading { margin-bottom: 2.8rem; }
.section-heading p { margin-top: .8rem; }
.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.7rem; margin-top: 2.5rem; }
.approach h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.approach article { border-top: 3px solid var(--accent); padding-top: 1.5rem; }
#projekte { padding-top: 3rem; }
.featured-projects { display: flex; flex-direction: column; }
.project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; padding-block: 3.5rem; border-bottom: 1px solid var(--line); }
.project:first-child { padding-top: 0; }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.project:nth-child(even) .project-visual { order: 2; }
.project-copy h3 { font-size: clamp(1.5rem, 2.25vw, 1.95rem); line-height: 1.25; margin-block: .8rem 1.1rem; }
.meta { font-size: .875rem; color: var(--accent); font-weight: 600; }
.note { font-size: .875rem; border-left: 2px solid var(--line); padding-left: .8rem; margin-top: 1rem; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; list-style: none; padding: 0; margin-block: 1.3rem; }
.tags li { background: var(--surface); border: 1px solid var(--line); color: var(--muted); padding: .2rem .65rem; border-radius: 5px; font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.image-link { display: block; overflow: hidden; border-radius: 10px; background: #e9eef0; cursor: zoom-in; border: 1px solid var(--line); }
.image-link img { width: 100%; object-fit: contain; transition: opacity .2s ease; }
.image-link:hover img { opacity: .88; }
.main-image { box-shadow: 0 12px 36px -24px #172d3360; }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: .8rem; }
.gallery-thumbs .image-link { width: 88px; height: 68px; padding: 4px; background: var(--surface); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.video { margin-top: 1.2rem; }
.video video { width: 100%; border-radius: 10px; background: #172d33; }
.video figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.agent-diagram { padding: 2.2rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.agent-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.agent-row span, .review { padding: .65rem .3rem; font-size: .9rem; font-weight: 600; border: 1px solid #b2c9cf; border-radius: 7px; background: var(--white); }
.agent-connectors { height: 30px; width: 70%; margin-inline: auto; border: solid #9bb7c0; border-width: 0 1px 1px; position: relative; }
.agent-connectors::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid #9bb7c0; }
.agent-connectors::after { content: ""; position: absolute; top: 100%; height: 20px; left: 50%; border-left: 1px solid #9bb7c0; }
.memory { background: var(--accent); color: var(--white); border-radius: 10px; padding: 1.2rem .5rem; margin: 20px auto 0; width: 85%; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.memory svg { width: 32px; height: 32px; margin-bottom: .5rem; stroke: currentColor; fill: none; stroke-width: 1.5; }
.memory span { font-size: .9rem; }
.agent-line { height: 24px; width: 1px; background: #9bb7c0; margin: auto; }
.review { width: 75%; margin: auto; }
.further { border-top: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.small-project { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.small-project > .image-link { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; aspect-ratio: 16/10; padding: .8rem; background: var(--surface); display: grid; place-items: center; }
.small-project > .image-link img { width: 100%; height: 100%; min-height: 0; }
.small-project-copy { padding: 1.4rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.small-project-copy h3 { margin-bottom: .7rem; }
.small-project-copy p { margin-bottom: 1rem; }
.small-project-copy .tags { margin: 0 0 .8rem; }
.small-project-copy > :last-child { margin-top: auto; }
.private { color: var(--muted); font-size: .875rem; }
.project-list { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.project-list li { display: grid; grid-template-columns: 1fr 1.8fr 140px; gap: 1.5rem; align-items: center; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.project-list h3 { font-size: 1rem; overflow-wrap: anywhere; }
.project-list .text-link, .project-list .private { justify-self: end; }
.also { border-top: 1px solid var(--line); }
.also-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2.3rem; }
.also h3 { margin-bottom: .8rem; }
.skills { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; border-top: 1px solid var(--line); }
.skills dl { margin: 0; }
.skills dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.skills dl > div:first-child { padding-top: 0; }
.skills dt { font-weight: 650; }
.skills dd { color: var(--muted); margin: 0; }
.contact { background: var(--surface); border-block: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.contact h2 { margin-bottom: 1rem; }
.contact .eyebrow { margin-bottom: .6rem; }
.contact p { max-width: 620px; font-size: 1.1rem; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.contact-links .button { overflow-wrap: anywhere; word-break: break-word; }
.site-footer { padding-block: 1.8rem; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; color: var(--muted); font-size: .875rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.privacy { max-width: 800px; min-height: calc(100vh - 220px); padding-block: 5rem; }
.privacy h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 3rem; }
.privacy h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-block: 2rem .8rem; }
.privacy .email-slot { display: inline-block; margin-top: 1.5rem; }
.has-lightbox { overflow: hidden; }
.lightbox { width: min(1380px, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 1rem; border: 1px solid #516a72; border-radius: 14px; background: #14262c; color: #fff; }
.lightbox::backdrop { background: #08161ae8; }
.lightbox-toolbar { display: flex; gap: .6rem; padding-bottom: 1rem; }
.lightbox-toolbar button { padding: .5rem .9rem; min-height: 44px; color: #fff; border: 1px solid #69828b; border-radius: 6px; background: #223d47; }
.lightbox-toolbar button:hover { background: #31545f; }
.lightbox-toolbar button:last-child { margin-left: auto; }
.lightbox :focus-visible { outline-color: #b9e4ef; }
.lightbox figure img { width: auto; height: auto; max-height: calc(100dvh - 12rem); object-fit: contain; margin: auto; }
.lightbox figcaption { color: #d9e7eb; font-size: .875rem; text-align: center; padding-top: .8rem; }
@media (min-width: 1440px) { .hero { padding-block: 7rem 6rem; } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) 220px; gap: 3rem; padding-block: 4rem; }
  .project, .project:nth-child(even) { gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach { gap: 1.5rem; }
  .skills { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { gap: 2rem; }
  .contact-links .button { padding-inline: .8rem; font-size: .95rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { min-height: 80px; gap: 1rem; }
  .brand > span:last-child { display: none; }
  .site-header nav { gap: 1.1rem; }
  .site-header nav a { font-size: .875rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.8rem 3rem; }
  .hero .portrait { grid-row: 1; width: 112px; }
  .portrait img { border-radius: 16px; }
  .hero .eyebrow { font-size: .875rem; margin-bottom: .8rem; }
  .hero-statement { margin-top: 1rem; font-size: 1.5rem; }
  .metrics { grid-template-columns: 1fr; padding-block: 0; }
  .metrics > div, .metrics > div:first-child, .metrics > div:last-child { padding: 1.2rem 0; border: 0; border-bottom: 1px solid var(--line); gap: .2rem; }
  .metrics > div:last-child { border-bottom: 0; }
  .metrics strong { font-size: 1.35rem; }
  .section { padding-block: 3rem; }
  .section-heading { margin-bottom: 2rem; }
  .approach { grid-template-columns: 1fr; gap: 1.8rem; margin-top: 2rem; }
  .approach article { padding-top: 1rem; }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.5rem; }
  .project:nth-child(even) .project-visual { order: 0; }
  .project-copy h3 { font-size: 1.55rem; }
  .project-grid { grid-template-columns: 1fr; }
  .small-project-copy { padding: 1.3rem; }
  .project-list li { grid-template-columns: 1fr; gap: .4rem; padding-block: 1.4rem; }
  .project-list .text-link, .project-list .private { justify-self: start; }
  .also-grid { grid-template-columns: 1fr; gap: 2rem; }
  .skills dl > div { grid-template-columns: 1fr; gap: .5rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-links .button { font-size: 1rem; }
  .site-footer { padding-block: 1.3rem; }
  .lightbox { width: calc(100% - 1rem); padding: .6rem; }
  .lightbox-toolbar { gap: .35rem; }
  .lightbox-toolbar button { padding-inline: .65rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
