@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/jost-300.woff") format("woff"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jost-400.woff") format("woff"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jost-500.woff") format("woff"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-italic-400.woff") format("woff"); }
:root { color-scheme: light; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout: ruhige Galerie-Seite wie die Referenz. Schmale Kopfzeile, grosse Bildflaechen,
   Unterseiten (Start, Portfolio, Angebot, Ueber mich, Kontakt) per Navigation umgeschaltet. */
:root {
  --bg: #fafaf8;
  --fg: #161616;
  --muted: #6b6a68;
  --line: #dcdad6;
  --accent: #7a1f2b;
  --ph-a: #2c2b2e;
  --ph-b: #121113;
  --ph-fg: rgba(255, 255, 255, 0.55);
  --ph-light: rgba(255, 236, 200, 0.3);
  --font-ui: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-note: "Newsreader", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f10;
    --fg: #ecebe7;
    --muted: #9a9893;
    --line: #2c2b2a;
    --accent: #e08a96;
    --ph-a: #323034;
    --ph-b: #1a191b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f10;
  --fg: #ecebe7;
  --muted: #9a9893;
  --line: #2c2b2a;
  --accent: #e08a96;
  --ph-a: #323034;
  --ph-b: #1a191b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; }

/* Kopfzeile */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 18px 14px;
}
.mark { text-decoration: none; display: block; min-width: 0; }
.mark b { display: block; font-weight: 300; font-size: clamp(1.05rem, 4.6vw, 1.5rem); letter-spacing: 0.34em; line-height: 1.1; }
.mark small { display: block; margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Seiten */
.page { padding-top: 28px; animation: rise 0.4s ease both; }
@keyframes rise { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }
h1, h2, h3 { font-weight: 300; margin: 0; text-wrap: balance; }
h1, h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: 0.12em; text-transform: uppercase; }
h3 { font-size: 1.15rem; letter-spacing: 0.06em; }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 10px; }
.note { font-family: var(--font-note); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.4; max-width: 28ch; margin: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
.cap { margin: 10px 0 0; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }

/* Bildplatzhalter: dunkle Flaechen in beiden Themes */
.ph {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--r, 3 / 2);
  background: linear-gradient(var(--ang, 160deg), var(--ph-a), var(--ph-b));
  overflow: hidden;
}
.ph::before { content: ""; position: absolute; inset: 0; }
.ph.stage::before {
  background: linear-gradient(to bottom, var(--ph-light), transparent 75%);
  clip-path: polygon(42% 0, 58% 0, 86% 100%, 14% 100%);
}
.ph.face::before { background: radial-gradient(ellipse 34% 40% at 50% 40%, rgba(255, 255, 255, 0.13), transparent 70%); }
.ph span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ph-fg);
}
.hero { --r: 21 / 9; }
@media (max-width: 640px) { .hero { --r: 4 / 3; } }

.intro { display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: flex-start; justify-content: space-between; padding-block: 36px 44px; }
.intro > div { min-width: 0; }
.intro p { color: var(--muted); }

/* Instagram */
.ig { border-top: 1px solid var(--line); padding-top: 32px; }
.ig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.ig-head p { margin: 0; color: var(--muted); }
.ig-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.ig-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--line); transition: opacity 0.2s; }
.ig-grid a:hover { opacity: 0.8; }
.ig-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }

/* Portfolio */
.tabs { display: flex; gap: 28px; margin: 18px 0 26px; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 8px 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.gal { display: grid; gap: 14px; }
.gal-stage { display: flex; justify-content: center; }
.gal-frame { position: relative; width: min(100%, max(320px, calc(68vh * var(--rn, 1.5)))); max-width: 100%; }
.gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gal-arrow:hover { background: rgba(0, 0, 0, 0.65); }
.gal-arrow.prev { left: 0; }
.gal-arrow.next { right: 0; }
.gal-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.gal-meta > * { min-width: 0; }
.gal-count { font-variant-numeric: tabular-nums; letter-spacing: 0.16em; }
.gal-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gal-thumbs button { display: block; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.gal-thumbs button:hover, .gal-thumbs button[aria-current="true"] { opacity: 1; }
.gal-thumbs button[aria-current="true"] { outline: 1px solid var(--fg); outline-offset: 3px; }
.gal-thumbs .ph span { display: none; }
.gal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; min-width: 0; }

/* Angebot */
.offers { margin-top: 26px; border-top: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: 1fr; gap: 14px 40px; padding-block: 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .offer { grid-template-columns: 1.1fr 1.6fr 0.8fr; } }
.offer > * { min-width: 0; }
.offer .where { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.offer ul { margin: 0; padding: 0; list-style: none; }
.offer li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.offer li:first-child { border-top: 0; padding-top: 0; }
.price { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
@media (min-width: 820px) { .price { text-align: right; } }
.legal { margin-top: 22px; font-size: 0.85rem; color: var(--muted); max-width: 70ch; }

/* Ueber mich / Kontakt */
.split { display: grid; grid-template-columns: 1fr; gap: 28px 56px; margin-top: 26px; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 0.8fr 1.2fr; } }
.split > * { min-width: 0; }
.split .ph { --r: 4 / 5; }
.mail-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 6px 0 26px; }
.mail { font-size: clamp(1.15rem, 3.6vw, 1.7rem); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 460px; }
.facts li { text-align: right; display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.facts li span:first-child { text-align: left; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; padding-top: 3px; }

.imp { display: grid; gap: 26px; margin-top: 26px; max-width: 70ch; }
.imp h3 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.imp p { margin: 0; }
.imp a { text-decoration-color: var(--line); text-underline-offset: 3px; }

footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

.tabs a { display: block; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 8px 0; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.gal-thumbs a { display: block; opacity: 0.5; transition: opacity 0.2s; }
.gal-thumbs a:hover, .gal-thumbs a[aria-current="true"] { opacity: 1; }
.gal-thumbs a[aria-current="true"] { outline: 1px solid var(--fg); outline-offset: 3px; }
.gal-thumbs .gal-img { object-position: 50% 30%; }
.gal-arrow[hidden] { display: none; }
.cc-note { color: var(--muted); }
.stack { display: grid; gap: 28px; }

#cc { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; z-index: 50; background: var(--bg); color: var(--fg); border: 1px solid var(--line); padding: 16px 18px; font-size: 0.82rem; line-height: 1.5; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
#cc p { margin: 0 0 12px; }
#cc a { text-decoration: underline; }
#cc div { display: flex; gap: 10px; }
#cc button { flex: 1; font: inherit; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; padding: 10px 12px; cursor: pointer; border: 1px solid var(--fg); background: transparent; color: var(--fg); }
#cc button:hover { border-color: var(--accent); color: var(--accent); }
