/* Projektübersicht und Projektdetail: gleiche Gestaltung wie die Startseite */
:root {
  --charcoal: #0F0F10;
  --surface: #17171A;
  --line: #2A2B30;
  --white: #FFFFFF;
  --stone: #F6F6F4;
  --ultramarine: #2F5BFF;
  --ultramarine-hover: #2348E0;
  --muted: #A4A5AC;
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --margin: clamp(20px, 4.5vw, 64px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--charcoal); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.625; color: var(--white); background: var(--charcoal); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ultramarine); outline-offset: 3px; }
.container { max-width: calc(1280px + 2 * var(--margin)); margin: 0 auto; padding-inline: var(--margin); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--ultramarine); color: var(--white); }
.btn-primary:hover { background: var(--ultramarine-hover); }
.btn-ghost { color: var(--white); border-color: #4A4B50; }
.btn-ghost:hover { border-color: var(--white); }

/* Kopfzeile */
.site-header { padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); }
.site-header .container { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; color: var(--white); }
.logo svg { height: 30px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .site-header .container { height: 64px; } .nav { gap: 18px; font-size: 14px; } .nav a:first-child { display: none; } .logo svg { height: 26px; } }

.page-head { padding-block: clamp(48px, 7vw, 96px) 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--ultramarine); }
.page-head h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin-top: 16px; max-width: 14ch; }
.page-head p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 560px; }
.back { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.back:hover { color: var(--white); }

/* Übersicht: kompakte Kacheln */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: clamp(80px, 10vw, 144px); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #4A4B50; transform: translateY(-4px); }
.card .img { aspect-ratio: 4 / 3; overflow: hidden; background: #0B0B0C; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.card .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.card h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--white); }

/* Detail */
.project { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-bottom: clamp(48px, 6vw, 80px); }
.project .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.project .shots img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.project .shots img.main { grid-column: 1 / -1; aspect-ratio: auto; height: auto; }
.project .body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 4px; }
.project .tag { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.project h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 8px; }
.project dl { margin: 12px 0 0; }
.project dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.project dt { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.project dd { margin: 0; color: #D6D7DB; }
.project .res dt { color: var(--ultramarine); }
.project .res dd { color: var(--white); font-weight: 600; }
.project .chips { list-style: none; margin: 12px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project .chips li { font-size: 13px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: #D6D7DB; }
.project .btn { align-self: flex-start; margin-top: auto; }
.project.wide { grid-template-columns: minmax(0, 1fr); }
.project.wide .shots { display: block; }
.project.wide .body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr auto; column-gap: clamp(32px, 5vw, 80px); }
.project.wide .body > .tag, .project.wide .body > h2, .project.wide .body > .chips, .project.wide .body > .btn { grid-column: 1; }
.project.wide .body > .btn { justify-self: start; align-self: start; margin-top: 8px; }
.project.wide .body > dl { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
@media (max-width: 960px) { .project { grid-template-columns: minmax(0, 1fr); } .project.wide .body { display: flex; } }
@media (max-width: 520px) { .project dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Kontakt-Hinweis */
.cta { background: var(--ultramarine); border-radius: 16px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(80px, 10vw, 144px); }
.cta h2 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 800; max-width: 16ch; }
.cta .btn { background: var(--white); color: var(--charcoal); }
.cta .btn:hover { background: var(--stone); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 40px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
