/* ---------- Lokale Schriften (kein Google, kein Flackern) ---------- */
@font-face { font-family:"Cormorant Garamond"; font-style:normal; font-weight:400; font-display:swap; src:url("fonts/cormorant-400.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:italic; font-weight:400; font-display:swap; src:url("fonts/cormorant-400i.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:normal; font-weight:500; font-display:swap; src:url("fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family:"Cormorant Garamond"; font-style:italic; font-weight:500; font-display:swap; src:url("fonts/cormorant-500i.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("fonts/inter-500.woff2") format("woff2"); }

/* ============================================================
   Carlo Vallender — Künstlerwebsite
   Farbschema: warmes Creme #F3F1EC, warmes Schwarz
   Schrift: Cormorant Garamond (Display) + Inter (Text)
   ============================================================ */

:root {
  --cream:        #F3F1EC;
  --cream-deep:   #ECE8E0;
  --ink:          #23211D;
  --ink-soft:     #4A463F;
  --muted:        #8A8479;
  --line:         #D8D3C8;
  --accent:       #6E6354;
  --white:        #FBFAF7;
  --maxw:         1180px;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream); color: var(--ink);
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.12; letter-spacing: 0.2px; }
.display { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; }
.display em { font-style: italic; color: var(--accent); }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.lead { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--ink-soft); font-weight: 400; }

/* ---------- Buttons (Sweep-Fill) ---------- */
.btn {
  position: relative; display: inline-block;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 15px 34px; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; border-radius: 2px; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), letter-spacing .5s var(--ease), transform .45s var(--ease-out); cursor: pointer; will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: var(--cream); letter-spacing: 0.22em; }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.98); }

.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: color .3s var(--ease); }
.text-link:hover { color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.arrow-link .ar { transition: transform .4s var(--ease); }
.arrow-link:hover .ar { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 241, 236, 0.82);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; letter-spacing: 0.06em; font-weight: 500; }
.brand small { display: block; font-family: "Inter", sans-serif; font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.menu { display: flex; gap: 38px; list-style: none; }
.menu a { position: relative; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding: 6px 0; transition: color .35s var(--ease); }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.menu a:hover, .menu a.active { color: var(--ink); }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); transform-origin: left; }

/* Burger */
.burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 30px; height: 30px; background: none; border: none; cursor: pointer; }
.burger span { display: block; height: 1.5px; width: 26px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 78px 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); z-index: 99; }
.mobile-menu.open { max-height: 60vh; }
.mobile-menu ul { list-style: none; padding: 10px 28px 28px; }
.mobile-menu li { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu.open li:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open li:nth-child(2) { transition-delay: .14s; }
.mobile-menu.open li:nth-child(3) { transition-delay: .20s; }
.mobile-menu.open li:nth-child(4) { transition-delay: .26s; }
.mobile-menu a { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 130px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

/* Hero */
.intro-line { max-width: 960px; font-family: "Cormorant Garamond", serif; font-size: clamp(1.4rem, 2.9vw, 2.25rem); line-height: 1.3; color: var(--ink-soft); margin: clamp(26px, 5vw, 52px) 0 clamp(26px, 4vw, 44px); }
.hero-img { width: 100%; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; }
.hero-img .ph, .hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); animation: kenburns 18s ease-in-out infinite alternate; }
/* Grosse Navigation ueber dem Bild (Home) */
.hero-stage { position: relative; }
.hero-nav { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(4px,1.2vw,16px); }
.hero-nav::before { content: ""; position: absolute; inset: 0; border-radius: 3px; background: radial-gradient(72% 78% at 50% 50%, rgba(28,26,22,.52), rgba(28,26,22,.14) 68%, rgba(28,26,22,0)); transition: opacity .6s var(--ease); }
.hero-nav a { position: relative; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(2.5rem,6.4vw,5.2rem); line-height: 1.02; color: var(--cream); letter-spacing: .005em; text-shadow: 0 2px 26px rgba(0,0,0,.4); transition: opacity .45s var(--ease), transform .55s var(--ease-out), font-style .3s var(--ease), letter-spacing .45s var(--ease); will-change: transform, opacity; }
.hero-nav a:hover { font-style: italic; letter-spacing: .045em; }
.hero-nav.leaving::before { opacity: 0; }
@keyframes kenburns { from { transform: scale(1.0) translate(0,0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.hero-cta { margin-top: 38px; text-align: center; }
.hero-intro .intro-line { margin-top: 0; }

/* Platzhalter */
.ph { width: 100%; height: 100%; background: radial-gradient(120% 120% at 30% 20%, #efe9dd 0%, #e3dccd 45%, #d6cdba 100%); display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: "Cormorant Garamond", serif; font-size: 1.1rem; letter-spacing: 0.18em; text-transform: uppercase; position: relative; }
.ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px); }

/* Statement */
.statement { text-align: center; }
.statement .display { max-width: 14ch; margin-bottom: 30px; }
.statement p { max-width: 60ch; color: var(--ink-soft); margin: 0 auto 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

/* Contact teaser */
.contact-band { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.contact-band .eyebrow { display: block; margin-bottom: 18px; }
.contact-band p { max-width: 48ch; margin: 0 auto 34px; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.page-head { padding: clamp(70px,9vw,120px) 0 0; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.art { cursor: pointer; }
.art-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--cream); box-shadow: 0 1px 3px rgba(35,33,29,.06); transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out); will-change: transform; }
.art-frame .ph, .art-frame img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s var(--ease); }
.art:hover .art-frame { transform: translateY(-10px); box-shadow: 0 26px 48px -18px rgba(35,33,29,.32), 0 8px 16px -10px rgba(35,33,29,.18); }
.art:hover .art-frame .ph, .art:hover .art-frame img { filter: brightness(1.02); }

.art-index { position: absolute; top: 14px; left: 16px; z-index: 3; font-size: .72rem; letter-spacing: .12em; color: var(--cream); mix-blend-mode: difference; opacity: .85; }

.art-overlay { position: absolute; inset: 0; background: none; opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity .5s var(--ease); }
.art:hover .art-overlay { opacity: 1; }
.art-overlay .plus { width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: rgba(243,241,236,.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 300; transform: scale(.85); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s var(--ease); }
.art:hover .art-overlay .plus { transform: scale(1); opacity: 1; }

.art-meta { padding: 16px 2px 4px; }
.art-meta h3 { font-size: 1.5rem; line-height: 1; }
.art-meta .dims { font-size: 0.82rem; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }
.art-meta .cat  { font-size: 0.74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.art-meta .status { font-size: 0.84rem; color: var(--ink-soft); margin-top: 4px; }
.art-meta .status.sold { color: #9a5b4f; }
/* Bildunterschriften nur in der ersten Reihe (erste 3 Kacheln) */
.gallery-grid .art:nth-child(n+7) .art-meta { display: none; }


/* ---------- Lightbox (Text links, Bild rechts) ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(28,26,22,0.93); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); z-index: 200; padding: clamp(24px,5vw,70px); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { max-width: 1120px; width: 100%; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px,5vw,70px); align-items: center; transform: translateY(20px) scale(.97); transition: transform .6s var(--ease-out); }
.lightbox.open .lightbox-inner { transform: none; }
.lightbox .lb-caption { text-align: left; }
.lightbox .lb-caption .eyebrow { color: rgba(243,241,236,.6); margin-bottom: 14px; }
.lightbox h3 { color: var(--cream); font-size: clamp(2rem,4vw,3rem); line-height: 1.05; }
.lightbox .dims { color: rgba(243,241,236,.75); font-size: .95rem; letter-spacing: .05em; margin-top: 12px; }
.lightbox .lb-status { color: rgba(243,241,236,.55); font-size: .9rem; margin-top: 8px; }
.lightbox .frame { position: relative; display: flex; align-items: center; justify-content: center; max-height: 82vh; }
.lightbox .frame img.lb-img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 3px; display: block; cursor: zoom-in; }
/* Bild ohne Unterschrift: nur das Bild, keine Infos */
.lightbox.no-caption .lb-caption { display: none; }
.lightbox.no-caption .lightbox-inner { grid-template-columns: 1fr; max-width: 92vw; justify-items: center; }
/* Lupe */
.loupe { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(243,241,236,.85); box-shadow: 0 8px 34px rgba(0,0,0,.45); pointer-events: none; background-repeat: no-repeat; opacity: 0; transition: opacity .25s var(--ease); z-index: 6; }
.loupe.show { opacity: 1; }
/* Navigation bei mehreren Bildern */
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(243,241,236,.12); border: 1px solid rgba(243,241,236,.4); color: var(--cream); font-size: 1.5rem; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; transition: background .3s var(--ease); z-index: 7; }
.lb-nav:hover { background: rgba(243,241,236,.26); }
.lightbox.has-multi .lb-nav { display: flex; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-counter { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; color: rgba(243,241,236,.6); font-size: .78rem; letter-spacing: .12em; display: none; }
.lightbox.has-multi .lb-counter { display: block; }
.lb-desc { color: rgba(243,241,236,.78); font-size: .96rem; line-height: 1.65; margin-top: 18px; max-width: 46ch; }
.lb-thumbs { display: none; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.lightbox.has-multi .lb-thumbs { display: flex; }
.lb-thumbs button { width: 56px; height: 56px; padding: 0; border: 1px solid transparent; border-radius: 2px; overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: opacity .3s var(--ease), border-color .3s var(--ease); }
.lb-thumbs button.active, .lb-thumbs button:hover { opacity: 1; border-color: rgba(243,241,236,.8); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-close { position: absolute; top: 26px; right: 30px; background: none; border: none; color: var(--cream); font-size: 2rem; cursor: pointer; line-height: 1; opacity: .8; transition: opacity .3s var(--ease); z-index: 8; }
.lightbox-close:hover { opacity: 1; }

/* ---------- Info ---------- */
.info-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.info-portrait { aspect-ratio: 3/4; border-radius: 3px; overflow: hidden; }
.info-portrait .ph, .info-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.info-portrait:hover .ph, .info-portrait:hover img { transform: scale(1.04); }
.info-body h2 { font-size: clamp(1.8rem,3.4vw,2.6rem); margin: 38px 0 18px; }
.info-body h2:first-child { margin-top: 0; }
.info-body p { color: var(--ink-soft); margin-bottom: 20px; max-width: 60ch; }

/* ---------- Contact form ---------- */
.form-wrap { max-width: 620px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110,99,84,.1); }
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0; background: var(--cream-deep); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: .82rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { position: relative; transition: color .3s var(--ease); }
.footer-links a::after { content:""; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.img-reveal .ph, .img-reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
.img-reveal.in .ph, .img-reveal.in img { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .lightbox-inner { grid-template-columns: 1fr; gap: 22px; }
  .lightbox .lb-caption { text-align: center; order: 2; }
  .lightbox .frame { max-height: 58vh; order: 1; }
  .lightbox .frame img.lb-img { max-height: 58vh; }
  .lb-counter { bottom: 10px; color: var(--cream); background: rgba(28,26,22,.55); padding: 3px 12px; border-radius: 12px; width: auto; left: 50%; right: auto; transform: translateX(-50%); }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .burger { display: flex; }
  .two-col, .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 4/3; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .img-reveal .ph, .img-reveal img { clip-path: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Vollbreite Hero (Banner) ---------- */
.hero-full { position: relative; padding: 0; height: clamp(380px, 56vh, 600px); overflow: hidden; margin-bottom: 0; }
.hero-full-img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; animation: kenburns 20s ease-in-out infinite alternate; }
.hero-full-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(28,26,22,.62) 0%, rgba(28,26,22,.18) 38%, rgba(28,26,22,0) 68%); }
.hero-full-overlay .wrap { padding-bottom: clamp(34px, 6vw, 72px); }
.hero-full-overlay .intro-line { color: var(--cream); max-width: 660px; margin: 0 0 30px; }
.btn-light { border-color: rgba(243,241,236,.9); color: var(--cream); }
.btn-light::before { background: var(--cream); }
.btn-light:hover { color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 220px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110,99,84,.1); }
.newsletter-form .news-note { flex-basis: 100%; margin: 0; }

/* ---------- E-Mail kopieren ---------- */
.mail-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; background: none; border: none; color: var(--muted); cursor: pointer; border-radius: 4px; transition: color .25s var(--ease), background .25s var(--ease); }
.copy-btn:hover { color: var(--ink); background: var(--cream-deep); }
.copy-feedback { font-size: .8rem; color: var(--accent); opacity: 0; transition: opacity .3s var(--ease); }
.copy-feedback.show { opacity: 1; }

/* ---------- Sticky Footer ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
