/* Layout: full-bleed sport-poster type over a dark alpine ground, gallery as a dense contact sheet, info as a camera-data drawer. */
:root {
  --bg: #0d1013;
  --surface: #161a1f;
  --line: #262c33;
  --fg: #eceeef;
  --muted: #8c949d;
  --accent: #d6a548;        /* Goldenes Dachl / Beach-Sand */
  --accent-ink: #15110a;
  --ph-a: #1d2a36;
  --ph-b: #33281a;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1320px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef0f1; --surface: #ffffff; --line: #d5dade; --fg: #12161a; --muted: #5a636c;
    --accent: #9a6a12; --accent-ink: #ffffff; --ph-a: #c9d3db; --ph-b: #e2d3b8; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef0f1; --surface: #ffffff; --line: #d5dade; --fg: #12161a; --muted: #5a636c;
  --accent: #9a6a12; --accent-ink: #ffffff; --ph-a: #c9d3db; --ph-b: #e2d3b8; color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; text-transform: uppercase; line-height: 0.95; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
p { margin: 0; }

/* Navigation */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; text-decoration: none; letter-spacing: 0.02em; font-size: 1.05rem; }
.brand span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: clamp(12px, 3vw, 28px); margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav .cta-link { color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background-size: cover; background-position: center; }
.hero-media .slide.on { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent) 0%, var(--bg) 100%); }
.hero .wrap { position: relative; display: grid; gap: 28px; padding-block: clamp(56px, 10vw, 120px) 40px; }
.hero h1 { font-size: clamp(3.4rem, 15vw, 12rem); font-weight: 900; letter-spacing: -0.02em; }
.hero h1 .thin { display: block; font-weight: 300; font-stretch: 100%; font-size: 0.32em; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 0.35em; }
.hero-lead { max-width: 52ch; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.coords { display: flex; gap: 20px; flex-wrap: wrap; }
.coords b { display: block; color: var(--fg); font-weight: 500; letter-spacing: 0.04em; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--fg); transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { transform: translateY(-2px); }

section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.sec-head p { max-width: 46ch; color: var(--muted); }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { font-size: 0.7em; margin-left: 4px; opacity: .7; }

/* Projekt-Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 18px; }
.card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); color: inherit; text-align: left; cursor: pointer; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; font: inherit; }
.card:nth-child(5n+1) { aspect-ratio: 4 / 5; }
.card .ph, .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph, .card:hover img { transform: scale(1.05); }
.card .meta { position: absolute; inset: auto 0 0 0; padding: 18px; display: grid; gap: 6px; background: linear-gradient(0deg, rgba(5,7,9,.88), rgba(5,7,9,0)); color: #f3f4f5; }
.card .meta h3 { font-size: 1.55rem; font-weight: 800; }
.card .meta .label { color: #c3c8ce; }
.card .count { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 0.7rem; padding: 4px 9px; border-radius: 999px; background: rgba(5,7,9,.6); color: #f3f4f5; }

/* Platzhalter für fehlende Fotos */
.ph { background:
  radial-gradient(120% 80% at var(--px, 30%) 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
  linear-gradient(160deg, var(--ph-a), var(--ph-b)); display: grid; place-items: center; }
.ph::after { content: attr(data-note); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 55%, transparent); }

/* Über mich */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-text { display: grid; gap: 18px; font-size: 1.1rem; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts b { font-family: var(--display); font-stretch: 125%; font-size: 1.4rem; text-transform: uppercase; }

/* Preise */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.pkg { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.pkg.featured { border-color: var(--accent); }
.pkg .price { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pkg .price small { font-size: 0.4em; font-weight: 600; color: var(--muted); margin-left: 4px; }
.pkg h3 { font-size: 1.25rem; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pkg li { padding-left: 22px; position: relative; color: var(--muted); }
.pkg li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 2px; background: var(--accent); }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 6vw, 72px); }
.contact-side { display: grid; gap: 22px; align-content: start; }
.contact-side .row { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-side .row > a, .contact-side .row > span:not(.label) { font-size: 1.1rem; font-weight: 600; text-decoration: none; word-break: break-word; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hint { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) { form { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--line); padding-block: 28px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }

/* Projekt-Ansicht */
.overlay { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.overlay-bar { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.overlay-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; }
.proj-head { display: grid; gap: 18px; padding-block: 40px 28px; }
.proj-head h2 { font-size: clamp(2.6rem, 9vw, 7rem); font-weight: 900; }
.proj-head p { max-width: 62ch; font-size: 1.1rem; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.masonry { columns: 2 440px; column-gap: 18px; padding-bottom: 60px; }
.tile { break-inside: avoid; margin-bottom: 18px; position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--surface); border-radius: 3px; overflow: hidden; font: inherit; color: inherit; }
.tile .ph { width: 100%; }
.tile img { width: 100%; height: auto; transition: transform .6s; }
.tile:hover img { transform: scale(1.03); }
.tile .i { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: .68rem; padding: 4px 8px; border-radius: 999px; background: rgba(5,7,9,.6); color: #f3f4f5; opacity: 0; transition: opacity .2s; }
.tile:hover .i, .tile:focus-visible .i { opacity: 1; }

/* Lightbox mit Info-Panel */
.lightbox { position: fixed; inset: 0; z-index: 90; background: #050608; color: #eceeef; display: grid; grid-template-columns: minmax(0, 1fr) 340px; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.lightbox.noinfo { grid-template-columns: minmax(0, 1fr) 0; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 56px 64px; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb-stage img { width: auto; height: auto; }
.lb-stage img, .lb-stage .ph { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
.lb-stage .ph { width: min(100%, 900px); aspect-ratio: 3 / 2; }
.lb-btn { position: absolute; border: 1px solid rgba(255,255,255,.18); background: rgba(5,7,9,.5); color: #eceeef; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.lb-btn:hover { border-color: #eceeef; }
.lb-prev { left: max(14px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-close { right: 14px; top: 10px; }
.lb-dl { right: 66px; top: 10px; text-decoration: none; }
.lb-toggle { left: max(14px, env(safe-area-inset-left, 0px)); top: 10px; width: auto; padding: 0 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.lb-counter { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; font-family: var(--mono); font-size: .75rem; color: #9aa2ab; font-variant-numeric: tabular-nums; }
.lb-info { border-left: 1px solid #20262c; background: #0b0d10; padding: 64px 26px 26px; overflow-y: auto; display: grid; gap: 22px; align-content: start; padding-right: max(26px, env(safe-area-inset-right, 0px)); }
.lightbox.noinfo .lb-info { display: none; }
.lb-info h3 { font-size: 1.6rem; font-weight: 800; }
.lb-info .label { color: #8c949d; }
.lb-info p { color: #c9ced3; }
.exif { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #20262c; border: 1px solid #20262c; border-radius: 4px; overflow: hidden; }
.exif div { background: #0b0d10; padding: 12px; display: grid; gap: 2px; }
.exif b { font-family: var(--mono); font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; }
.lb-info .btn { color: #eceeef; border-color: #2c333a; justify-content: center; }
.lb-info .btn.primary { color: #15110a; background: #d6a548; border-color: #d6a548; }
@media (max-width: 860px) {
  .lightbox, .lightbox.noinfo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { padding: 56px 12px 40px; }
  .lb-info { border-left: 0; border-top: 1px solid #20262c; max-height: 42vh; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .lb-prev, .lb-next { top: auto; bottom: 6px; translate: none; }
}

.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: .001; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Bilder: leicht unscharf, scharfer Spotlight-Bereich um den Mauszeiger */
.fx { position: relative; display: block; overflow: hidden; }
.card .fx { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .fx { transform: scale(1.03); }
.card:hover img, .tile:hover img { transform: none; }
.fx img { transition: filter .5s ease, opacity .35s ease; }
.fx .fx-blur { filter: blur(6px) saturate(.85) brightness(.9); transform: scale(1.06); }
.card .fx .fx-blur { transform: scale(1.06); }
.fx .fx-sharp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  -webkit-mask-image: radial-gradient(circle var(--r, 170px) at var(--mx, 50%) var(--my, 50%), #000 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--r, 170px) at var(--mx, 50%) var(--my, 50%), #000 45%, transparent 100%); }
.fx.on .fx-sharp { opacity: 1; }
.fx.on .fx-blur { filter: blur(7px) saturate(.7) brightness(.75); }
.tile .fx-sharp { --r: 210px; }
.card, .tile { box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); transition: box-shadow .4s, transform .4s; }
.card:hover, .tile:hover { box-shadow: 0 26px 60px -22px rgba(0,0,0,.75); }
/* Touch-Geräte ohne Maus: Bilder scharf zeigen, Spotlight gibt es nur mit Maus */
@media (hover: none) {
  .fx .fx-blur { filter: none; transform: none; }
  .fx .fx-sharp { display: none; }
}

/* Foto-Verkauf */
.proj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.proj-actions .hint { flex-basis: 100%; max-width: 70ch; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.ghost { border-color: transparent; padding-inline: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lb-note { font-size: .82rem; color: #9aa2ab; margin: 0; }
.shop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5,6,8,.72); backdrop-filter: blur(6px); }
.shop[hidden] { display: none; }
.shop-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; }
.shop-img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.shop-body { display: grid; gap: 14px; padding: 22px; }
.shop-body h3 { margin: 0; font-size: 1.35rem; }
.shop-body p { margin: 0; }
.shop-body ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.shop-body .btn { justify-content: center; }
.shop-x { top: 10px; right: 10px; }
.shop-pw { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.shop-pw div { display: flex; gap: 8px; }
.shop-pw input { flex: 1; min-width: 0; }
.shop-pw .btn { padding-inline: 16px; }
.shop-status:empty { display: none; }
.shop-status { font-size: .9rem; color: var(--accent); }
