/* Stefan Hillen · Fotografie – Visitenkarte */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #0F1012;
  --panel: #16171A;
  --line: #2A2C31;
  --text: #EDEBE7;
  --muted: #A3A19C;
  --accent: #E9A23B;
  --accent-soft: rgba(233, 162, 59, 0.14);
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #111; padding: 8px 14px; border-radius: 3px; }
.skip:focus { left: 8px; }

/* ---------- Kopf: Visitenkarte ---------- */
.card { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; min-height: 100svh; }
.card-text { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(28px, 5vw, 80px); background: var(--panel); position: relative; z-index: 1; }
.card-photo { position: relative; overflow: hidden; background: #000; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel) 0%, rgba(22, 23, 26, 0) 18%); pointer-events: none; }

.mark { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; color: var(--text); text-decoration: none; margin-bottom: auto; }
.mark span { color: var(--accent); font-weight: 600; }
.kicker { margin: 48px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 7vw, 96px); line-height: 0.92; letter-spacing: -0.005em; text-transform: uppercase; }
.fields { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fields li { font-size: 14px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, 0.02); }
.lead { margin: 26px 0 0; max-width: 34em; color: var(--muted); }
.region { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 500; }
.region svg { flex: none; width: 20px; height: 20px; color: var(--accent); }

.contact { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 18px; }
.contact dt { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact dd { margin: 0; }
.contact dd a { text-decoration: none; font-weight: 500; }
.contact dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--f-body); text-decoration: none; padding: 12px 20px; border-radius: 3px; border: 1px solid var(--accent); background: var(--accent); color: #141414; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: transparent; color: var(--accent); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

.scroll-hint svg { width: 16px; height: 16px; }
.scroll-hint { margin-top: 36px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.scroll-hint:hover { color: var(--accent); }

/* ---------- Auswahl ---------- */
.work { padding: 96px clamp(16px, 4vw, 56px) 80px; max-width: 1600px; margin: 0 auto; }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 32px; }
.work-head h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 4vw, 52px); line-height: 1; text-transform: uppercase; }
.work-head p { margin: 0; color: var(--muted); max-width: 36em; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.grid figure { margin: 0; grid-column: span 4; position: relative; overflow: hidden; background: #000; aspect-ratio: 3 / 2; }
.grid figure.big { grid-column: span 6; }
.grid button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.grid button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.grid figure:hover img { transform: scale(1.03); }
.grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #FFF; background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.grid figure:hover figcaption, .grid figure:focus-within figcaption { opacity: 1; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.cats a { font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.cats a:hover { border-color: var(--accent); color: var(--accent); }
.cat { padding-top: 56px; scroll-margin-top: 16px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-head h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; }
.cat-head h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin: 0 12px 4px 0; background: var(--accent); vertical-align: middle; }
.cat-head p { margin: 0; color: var(--muted); }

/* Bildunterschrift nur für die Großansicht, die Rubrik steht schon über dem Raster */
.grid figcaption { display: none; }

.area { max-width: 1600px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) 56px; }
.area p { margin: 0; max-width: 46em; color: var(--muted); font-size: 15px; }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* ---------- Rechtstexte ---------- */
.legal-head { padding: 28px clamp(20px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.legal h1 { font-size: clamp(44px, 6vw, 64px); margin-bottom: 32px; }
.legal h2 { font-family: var(--f-display); font-weight: 700; font-size: 26px; margin: 36px 0 8px; }
.legal p { margin: 0 0 14px; color: #CFCDC8; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center; background: rgba(8, 8, 9, 0.97); }
.lb[hidden] { display: none; }
.lb figure { grid-column: 2; grid-row: 1; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 4px; min-height: 0; }
.lb img { max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); width: auto; height: auto; }
.lb figcaption { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lb button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: #FFF; cursor: pointer; display: grid; place-items: center; justify-self: center; }
.lb button:hover { border-color: var(--accent); color: var(--accent); }
.lb button svg { width: 22px; height: 22px; }
.lb .lb-prev { grid-column: 1; grid-row: 1; }
.lb .lb-next { grid-column: 3; grid-row: 1; }
.lb .lb-close { position: absolute; top: 14px; right: 14px; }
.lb .lb-count { grid-column: 1 / -1; grid-row: 2; margin: 0 0 16px; text-align: center; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
body.lb-open { overflow: hidden; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; min-height: 0; }
  .card-photo { order: -1; aspect-ratio: 3 / 2; }
  .card-photo::after { background: linear-gradient(0deg, var(--panel) 0%, rgba(22, 23, 26, 0) 30%); }
  .card-text { padding: 8px 24px 48px; }
  .mark { margin: 16px 0 0; }
  .kicker { margin-top: 28px; }
  .scroll-hint { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid figure, .grid figure.big { grid-column: span 1; }
  .grid figure.big { grid-column: span 2; }
  .grid figcaption { opacity: 1; padding: 22px 10px 8px; font-size: 11px; }
  .work { padding-top: 64px; }
}
@media (max-width: 600px) {
  .lb { grid-template-columns: 0 1fr 0; }
  .lb figure { padding: 64px 6px 6px; }
  .lb .lb-prev, .lb .lb-next { position: absolute; bottom: 12px; }
  .lb .lb-prev { left: 16px; }
  .lb .lb-next { right: 16px; }
  .lb .lb-count { margin-bottom: 26px; }
  .contact dl { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
