/* ==========================================================
   Sara Reuys – Stylesheet
   ========================================================== */

@font-face { font-family: "Nunito Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Farben */
  --yellow: #F6EFB4;      /* Name auf dem Slider ("helles Gelb") */
  --ink: #232838;         /* Tinte, aus den Blautönen der Bilder */
  --ink-soft: #5A5F6E;
  --paper: #FFFFFF;
  --blush: #EFA69C;       /* Akzent, aus der PDF-Überschrift */
  --line: rgba(35, 40, 56, .14);

  /* Schrift: Avenir Next wo installiert (Apple), sonst Nunito Sans */
  --font: "Avenir Next", "Avenir", "Nunito Sans", system-ui, sans-serif;

  --edge: clamp(20px, 3.2vw, 48px);   /* Abstand zum Rand */
  --menu-w: 200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--edge); top: var(--edge); z-index: 100; background: var(--paper); color: var(--ink); padding: 6px 10px; }

/* ---------- Name / Logo ---------- */
.brand {
  position: fixed; z-index: 20;
  top: var(--edge); left: var(--edge);
  font-weight: 400; font-size: 15px;
  letter-spacing: .32em; text-transform: uppercase;
  line-height: 1;
  transition: opacity .9s ease;
}

/* ---------- Menü rechts, senkrecht ---------- */
.menu {
  position: fixed; z-index: 20;
  right: var(--edge); top: 50%;
  transform: translateY(-50%);
  text-align: right;
}
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.menu a {
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  position: relative; padding-bottom: 3px;
}
.menu a::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s ease;
}
.menu a:hover::after, .menu a[aria-current="page"]::after { width: 100%; }

.menu-toggle { display: none; }

/* ---------- Unten links: Mail / Instagram ---------- */
.social {
  position: fixed; z-index: 20;
  left: var(--edge); bottom: var(--edge);
  display: flex; gap: 22px;
  font-size: 13px; letter-spacing: .12em;
}
.social a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.social a:hover { border-color: currentColor; }

/* ---------- Unten rechts: Rechtliches ---------- */
.legal {
  position: fixed; z-index: 20;
  right: var(--edge); bottom: var(--edge);
  display: flex; gap: 16px;
  font-size: 11px; letter-spacing: .08em; opacity: .75;
}
.legal a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================
   STARTSEITE – Slider
   ========================================================== */
.home { background: #1a1a1a; color: var(--yellow); overflow: hidden; }
.home .menu, .home .social, .home .legal, .home .brand {
  color: var(--yellow);
  text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 0 18px rgba(0,0,0,.35);
}

.slider { position: fixed; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
  overflow: hidden;
}
.slide.is-active { opacity: 1; }
.slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* leichte Abdunklung, damit Schrift lesbar bleibt */
.slider::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(to top, rgba(0,0,0,.38), rgba(0,0,0,0) 28%),
    linear-gradient(to bottom, rgba(0,0,0,.32), rgba(0,0,0,0) 20%),
    linear-gradient(to left, rgba(0,0,0,.30), rgba(0,0,0,0) 26%);
}

/* Verträumter Weichzeichner (Slide 5) – per data-dreamy auf jede Slide anwendbar */
.slide[data-dreamy] img.base { filter: blur(1.2px) saturate(1.08) brightness(1.04); }
.slide[data-dreamy] img.glow {
  filter: blur(18px) saturate(1.25) brightness(1.15);
  opacity: .55; mix-blend-mode: screen;
}

/* Großer Name auf Slide 1 */
.hero-name {
  position: fixed; z-index: 10; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  transition: opacity 1.2s ease, letter-spacing 1.8s ease;
}
.hero-name h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(36px, 6vw, 104px);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: .14em; /* gleicht das Tracking optisch aus */
  text-shadow: 0 2px 30px rgba(0,0,0,.18);
}
.home .brand { opacity: 0; }
.home.is-away .hero-name { opacity: 0; letter-spacing: .3em; }
.home.is-away .brand { opacity: 1; }

/* Slide-Anzeige */
.dots {
  position: fixed; z-index: 20;
  left: 50%; bottom: var(--edge); transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dots button {
  width: 28px; height: 14px; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--yellow); opacity: .4;
  transition: opacity .4s, height .4s;
}
.dots button[aria-current="true"]::before { opacity: 1; height: 2px; }

/* ==========================================================
   UNTERSEITEN
   ========================================================== */
.page .social, .page .legal { position: static; }

/* Kaum sichtbarer Pastell-Hauch aus den Bildfarben + feines Korn */
body.page {
  background-color: #FDFCFB;
  background-image:
    radial-gradient(1100px 800px at 0% 0%, rgba(239, 166, 156, .075), transparent 65%),
    radial-gradient(1000px 900px at 100% 100%, rgba(128, 196, 186, .065), transparent 65%);
  background-attachment: fixed;
}
body.page::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.page main, body.page .page-foot { position: relative; z-index: 1; }

.page main {
  padding: calc(var(--edge) * 3.2) calc(var(--menu-w) + var(--edge)) 0 var(--edge);
  max-width: 1320px;
}

.page-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 80px calc(var(--menu-w) + var(--edge)) var(--edge) var(--edge);
  color: var(--ink-soft);
}

/* About */
.statement {
  margin: 0 0 clamp(56px, 9vw, 120px);
  font-weight: 300;
  font-size: clamp(28px, 3.7vw, 56px);
  line-height: 1.14;
  letter-spacing: -.005em;
}
.statement span { display: block; }
.statement span + span { color: var(--ink-soft); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.about-grid .portrait { grid-column: 7 / 13; grid-row: 1 / 3; }
.about-grid .text-a    { grid-column: 1 / 6;  grid-row: 1; }
.about-grid .detail    { grid-column: 1 / 6;  grid-row: 2 / 4; }
.about-grid .text-b    { grid-column: 7 / 12; grid-row: 3; }

.prose p { margin: 0 0 1.2em; max-width: 60ch; }
.text-a p:first-child { font-size: 1.18em; line-height: 1.55; }

figure { margin: 0; }
figure img { width: 100%; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(56px, 8vw, 110px);
  align-items: start;
}
.contact-grid .brush     { grid-column: 1 / 5; }
.contact-grid .intro     { grid-column: 6 / 13; align-self: center; }
.contact-grid .comm-text { grid-column: 1 / 7; align-self: center; }
.contact-grid .comm-img  { grid-column: 8 / 12; }

.contact-grid h1, .contact-grid h2 {
  font-weight: 300; margin: 0 0 .6em; line-height: 1.15;
}
.contact-grid h1 { font-size: clamp(28px, 3.6vw, 50px); max-width: 18ch; }
.contact-grid h2 { font-size: clamp(24px, 2.6vw, 36px); }
.contact-grid p { max-width: 52ch; margin: 0 0 1.4em; }

.channels { display: grid; gap: 12px; margin-top: 36px; }
.channels a {
  font-size: clamp(20px, 2.1vw, 28px); font-weight: 300;
  display: inline-block; justify-self: start;
  background: linear-gradient(var(--blush), var(--blush)) no-repeat 0 100% / 100% 1px;
  transition: background-size .35s ease;
  padding-bottom: 2px;
}
.channels a:hover { background-size: 100% 40%; }
.channels small { display: block; font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase; }

/* Rechtstexte */
.legal-text { max-width: 70ch; }
.legal-text h1 { font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 1em; }
.legal-text h2 { font-weight: 600; font-size: 18px; margin: 2.2em 0 .5em; }
.legal-text h3 { font-weight: 600; font-size: 16px; margin: 1.6em 0 .4em; }
.legal-text p, .legal-text li { font-size: 15.5px; }
.todo { background: #FFF3A8; padding: 0 .25em; }

/* ==========================================================
   MOBIL
   ========================================================== */
@media (max-width: 860px) {
  :root { --menu-w: 0px; }

  .menu-toggle {
    display: block; position: fixed; z-index: 30;
    top: calc(var(--edge) - 10px); right: calc(var(--edge) - 10px);
    background: none; border: 0; color: inherit; cursor: pointer;
    padding: 10px; font: inherit; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  }
  .menu {
    inset: 0; top: 0; transform: none;
    display: grid; place-items: center; text-align: center;
    background: rgba(255,255,255,.97); color: var(--ink) !important;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .menu ul { gap: 28px; }
  .menu a { font-size: 16px; }
  .menu.is-open { opacity: 1; visibility: visible; }
  body.menu-open .menu-toggle { color: var(--ink); }

  .home .legal { display: none; }
  .home .dots { left: auto; right: var(--edge); transform: none; }

  .page main { padding-top: calc(var(--edge) * 4.5); }

  .about-grid, .contact-grid { display: block; }
  .about-grid > *, .contact-grid > * { margin-bottom: 48px; }
  .about-grid .portrait { margin-left: -8px; margin-right: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .hero-name, .brand { transition: none !important; }
}

/* Unterseiten: Name scrollt mit, Menü bleibt stehen */
.page .brand { position: absolute; }
@media (max-width: 860px) { .page .menu-toggle { position: absolute; } }
@media (max-width: 860px) { .dots button { width: 16px; } .dots { gap: 5px; } }


/* ==========================================================
   GALERIE
   ========================================================== */
.gallery-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(56px, 8vw, 110px);
}
.gallery-head h1 { margin: 0; font-weight: 300; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; }
.filter { display: flex; gap: 22px; }
.filter button {
  background: none; border: 0; padding: 0 0 3px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.filter button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.filter[hidden] { display: none; }

.works { display: grid; gap: clamp(80px, 10vw, 150px); }

/* Festes Raster: Bildspalte immer gleich breit, Text immer an derselben Stelle.
   Die Bildspalte entspricht der Klasse "Groß". Kleinere Werke werden kleiner,
   bleiben aber im selben Verhältnis zueinander. */
.work {
  --col: min(46vw, 76vh);
  --f: .72;            /* Anteil der Spalte für die längste Bildseite */
  --ar: 1;             /* Seitenverhältnis Breite/Höhe, setzt gallery.js */
  display: grid;
  grid-template-columns: minmax(0, var(--col)) minmax(220px, 340px);
  column-gap: clamp(28px, 4vw, 64px);
  align-items: end;
  justify-content: start;
}
.work[data-scale="s"] { --f: .48; }
.work[data-scale="m"] { --f: .72; }
.work[data-scale="l"] { --f: 1; }
.work[hidden] { display: none; }

/* Bilder stehen bündig zur Textspalte, unten auf einer Linie – wie gehängt */
.work .frame { display: flex; justify-content: flex-end; align-items: flex-end; }
.work .zoom {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  width: calc(100% * var(--f) * min(1, var(--ar)));
}
.work .zoom img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 1px 2px rgba(35,40,56,.06), 0 18px 40px -22px rgba(35,40,56,.35);
}

.label { padding-bottom: 6px; max-width: 38ch; }
.label h2 { margin: 0 0 .5em; font-weight: 400; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; }
.label .meta { margin: 0 0 1.1em; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.label .meta span { display: block; }
.label .desc { margin: 0 0 1.4em; font-size: 15.5px; line-height: 1.65; }

.status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
.status .state { display: inline-flex; align-items: center; gap: 9px; }
.status .state::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--dot, var(--ink-soft));
  box-shadow: inset 0 0 0 1.5px var(--ring, transparent);
}
.status .state[data-s="available"] { --dot: #6DAF94; }
.status .state[data-s="reserved"]  { --dot: transparent; --ring: #C98A3A; }
.status .state[data-s="sold"]      { --dot: #C63B32; }   /* roter Punkt = verkauft, wie in Galerien üblich */
.status .state[data-s="nfs"]       { --dot: transparent; --ring: var(--ink-soft); }
.status .price { color: var(--ink-soft); }
.status .ask {
  background: linear-gradient(var(--blush), var(--blush)) no-repeat 0 100% / 100% 1px;
  padding-bottom: 1px; transition: background-size .3s ease;
}
.status .ask:hover { background-size: 100% 40%; }

.empty { color: var(--ink-soft); font-size: 18px; }

/* Großansicht */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent;
  max-width: 94vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(253, 252, 251, .96); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; margin: 0 auto; }
.lightbox p { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
.lightbox .close {
  position: fixed; top: var(--edge); right: var(--edge);
  background: none; border: 0; cursor: pointer; font: inherit;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
}

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; row-gap: 22px; }
  .work[data-scale="s"] { --f: .6; }
  .work[data-scale="m"] { --f: .8; }
  .work .frame { justify-content: flex-start; }
  .work .zoom { width: calc(100% * var(--f) * min(1, var(--ar))); }
  .gallery-head { margin-bottom: 48px; }
}

/* Verweis auf die Galerie (Slide 5) – Milchglas-Feld über dem weichen Bild */
.slide { pointer-events: none; }
.slide.is-active { pointer-events: auto; }
.slide-cta {
  position: absolute; z-index: 2;
  left: 50%; bottom: calc(var(--edge) + 72px);
  transform: translate(-50%, 14px);
  padding: 20px 40px 21px;
  color: var(--yellow);
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid rgba(246, 239, 180, .55);
  border-radius: 2px;
  background: rgba(30, 28, 36, .30);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, transform .9s ease, visibility 0s linear .9s,
              background-color .35s ease, border-color .35s ease;
}
.slide.is-active .slide-cta {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 1s ease 1.1s, transform 1s ease 1.1s, visibility 0s,
              background-color .35s ease, border-color .35s ease;
}
.slide-cta:hover, .slide-cta:focus-visible {
  background: rgba(246, 239, 180, .16);
  border-color: rgba(246, 239, 180, .9);
}
@media (max-width: 860px) {
  .slide-cta { bottom: calc(var(--edge) + 64px); padding: 17px 30px 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-cta, .slide.is-active .slide-cta { transition: none; transform: translate(-50%, 0); }
}
