/* Casa Luvoni – Stylesheet */

/* ---------- Schriften ---------- */
@font-face { font-family: "Peachi"; src: url("../fonts/peachi-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Peachi"; src: url("../fonts/peachi-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Peachi"; src: url("../fonts/peachi-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --aubergine: #32273B;
  --rose: #F0DCE5;
  --blush: #FFF4F9;
  --offwhite: #FCFCFC;
  --navy: #114065;
  --line: #E7D3DC;
  --gold: #C9A983;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Peachi", Georgia, "Times New Roman", serif;

  /* Fliessende Schriftskala 375 px → 1440 px */
  --fs-hero:    clamp(2rem, 1.3rem + 3vw, 4rem);
  --fs-claim:   clamp(1.875rem, 1.3rem + 2.44vw, 3.5rem);
  --fs-gallery: clamp(1.75rem, 1.49rem + 1.13vw, 2.5rem);
  --fs-label:   clamp(1.5rem, 1.32rem + 0.75vw, 2rem);
  --fs-lead:    clamp(1.25rem, 1.03rem + 0.94vw, 1.875rem);
  --fs-mail:    clamp(1.375rem, 0.8rem + 2.44vw, 3rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.8125rem;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1280px;
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 14px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--aubergine);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
strong { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--rose); }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--aubergine); color: var(--rose);
  font-family: var(--sans); font-weight: 600; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Blob-Muster als dezenter Hintergrund */
.pattern { position: relative; isolation: isolate; background: var(--blush); }
.pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/pattern.webp") center / cover no-repeat;
  opacity: .35;
}

.dark { background: var(--aubergine); color: var(--rose); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.site-nav ul {
  pointer-events: auto;
  list-style: none; padding: 6px; margin: 0;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(50, 39, 59, .06);
}
.site-nav ul { gap: 2px; }
.site-nav a {
  display: block; padding: 8px clamp(12px, 2.4vw, 20px);
  font-family: var(--sans); font-weight: 600; font-size: 0.9375rem; letter-spacing: .01em;
  text-decoration: none; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--rose); }
.site-nav a.is-active { background: var(--rose); }
.site-nav a.nav-cta { background: var(--aubergine); color: var(--rose); }
.site-nav a.nav-cta:hover { background: #4a3a57; }
.site-nav li + li a.is-active, .site-nav li + li a:hover { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding-block: calc(84px + clamp(8px, 2vw, 24px)) clamp(72px, 9vh, 112px);
}
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-media img { width: min(72%, 300px, 34svh); margin-inline: auto; }
.hero-text { min-width: 0; }
.hero-gruezi { width: clamp(140px, 13vw, 186px); margin-bottom: clamp(12px, 1.6vw, 22px); }
.hero h1 { font-size: var(--fs-hero); font-weight: 400; line-height: 1.22; letter-spacing: 0; max-width: 17ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
@media (max-height: 640px) and (min-width: 900px) { .hero-media img { width: min(100%, 400px); } }

/* Scroll-Hinweis */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(16px, 3vh, 32px); transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid var(--aubergine); border-radius: 999px; opacity: .55;
  transition: opacity .2s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--aubergine); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 899px) { .scroll-cue { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--aubergine); color: var(--rose); }
.btn-primary:hover { background: #4a3a57; }
.btn-ghost { border-color: var(--aubergine); color: var(--aubergine); background: transparent; }
.btn-ghost:hover { background: var(--aubergine); color: var(--rose); }
.btn-light { background: var(--rose); color: var(--aubergine); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: var(--rose); border-color: rgba(240, 220, 229, .5); }
.btn-outline-light:hover { border-color: var(--rose); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero-media img { width: min(100%, 540px); margin-inline: 0 auto; }
}

/* ---------- Über mich ---------- */
.about { padding-block: var(--section-y); }
.about-row { display: grid; gap: 20px 48px; }
.about-row + .about-row { margin-top: clamp(56px, 7vw, 96px); }
.about h2 { font-family: var(--sans); font-weight: 700; font-size: var(--fs-label); line-height: 1.2; letter-spacing: -0.01em; }
.about .lead { font-weight: 500; font-size: var(--fs-lead); line-height: 1.5; max-width: 32ch; }

.cv { list-style: none; padding: 0; display: grid; gap: 22px; max-width: 46ch; }
.cv li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.cv li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rose);
}
.cv li:not(:last-child)::after {
  content: ""; position: absolute; left: 4px; top: calc(.55em + 14px); bottom: -18px; width: 1.5px;
  background: rgba(240, 220, 229, .3);
}
.cv-when { font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cv-what { font-weight: 500; font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); line-height: 1.4; }

@media (min-width: 900px) {
  .about-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
  .about h2 { padding-top: .2em; }
}

/* ---------- Claims (Arbeiten / Kontakt) ---------- */
.claim { padding-block: clamp(72px, 9vw, 128px); }
.claim h2 { font-size: var(--fs-claim); font-weight: 400; line-height: 1.22; max-width: 20ch; text-wrap: balance; }

/* ---------- Galerie ---------- */
.work { background: var(--offwhite); padding-block: var(--section-y); }
.work-head { display: grid; gap: clamp(20px, 2.5vw, 32px); margin-bottom: clamp(28px, 3.5vw, 48px); }
.work-head h2 { font-size: var(--fs-claim); font-weight: 400; line-height: 1.22; max-width: 20ch; text-wrap: balance; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--aubergine);
  font-family: var(--sans); font-weight: 600; font-size: .9375rem; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--aubergine); }
.chip[aria-pressed="true"] { background: var(--aubergine); border-color: var(--aubergine); color: var(--rose); }
.chip-count { font-weight: 600; font-size: .8125rem; opacity: .6; font-variant-numeric: tabular-nums; }

.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 2.6vw, 36px) clamp(16px, 2.2vw, 32px); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile[hidden] { display: none; }
.gallery-empty { padding: 32px 0; opacity: .7; }

.tile { min-width: 0; }
.tile a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--rose); text-decoration: none; }
.tile a::after {
  content: "Ansehen"; position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--aubergine); font-family: var(--sans); font-weight: 600; font-size: .8125rem;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.tile a:hover::after, .tile a:focus-visible::after { opacity: 1; transform: none; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.035); }
.tile figcaption { padding: 12px 2px 0; display: grid; gap: 2px; }
.tile-title { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.tile-meta { font-size: .9375rem; line-height: 1.35; opacity: .72; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--rose);
  width: min(1200px, 100vw); max-width: 100vw; max-height: 100dvh; overflow: visible;
}
.lightbox::backdrop { background: rgba(32, 24, 38, .95); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { display: grid; gap: 14px; justify-items: center; padding: 64px 16px 24px; }
.lb-figure img { max-height: calc(100dvh - 250px); width: auto; border-radius: 10px; background: var(--rose); }
.lb-caption { text-align: center; max-width: 60ch; }
.lb-count { font-family: var(--sans); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; opacity: .7; font-variant-numeric: tabular-nums; }
.lb-title { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; }
.lb-text { font-size: 1rem; opacity: .85; margin-top: 2px; }
.lb-link { margin-top: 14px; min-height: 42px; padding: 10px 20px; font-size: .9375rem; }
.lb-btn {
  position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(240, 220, 229, .35); background: rgba(50, 39, 59, .6); color: var(--rose);
  display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1;
  transition: background-color .2s;
}
.lb-btn:hover { background: var(--aubergine); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-figure { padding-bottom: 80px; }
  .lb-figure img { max-height: calc(100dvh - 240px); }
}

/* ---------- Kontakt ---------- */
.contact { padding-block: clamp(64px, 8vw, 110px); }
.contact-label { font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.contact-mail { font-weight: 300; font-size: var(--fs-mail); line-height: 1.3; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.copy-status { font-family: var(--sans); font-weight: 600; font-size: .875rem; }
.contact-mail a {
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 2px no-repeat;
  padding-bottom: .06em; transition: background-size .3s, color .2s;
}
.contact-mail a:hover { color: #fff; background-size: 100% 4px; }
.contact-hint { margin-top: 18px; font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--rose); padding-block: 22px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.made-with { font-family: var(--sans); font-weight: 700; font-size: var(--fs-small); letter-spacing: .2em; text-transform: uppercase; }
.made-with .heart { color: #E0479E; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--sans); font-weight: 600; font-size: var(--fs-small); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section-y); }
.legal .container { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-family: var(--sans); font-weight: 700; font-size: var(--fs-gallery); letter-spacing: -0.02em; margin-bottom: 28px; }
.legal h2 { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; margin: 36px 0 8px; }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.6; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal .todo { background: #FFE9A8; padding: 0 4px; border-radius: 3px; }
.back-link { display: inline-block; margin-bottom: 28px; font-family: var(--sans); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
