/* ═══════════════════════════════════════════════════════════
   Fotowerkstatt - HL Laura Kühl — Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ─── Dark Theme (default) ──────────────────────────────── */
:root,
[data-theme="dark"] {
  --bg:            #080807;
  --surface:       #121210;
  --surface-hover: #1a1a17;
  --border:        #252520;
  --text:          #f2ead8;
  --muted:         #8a8474;
  --gold:          #7e6a5a;
  --gold-dim:      #5a4d42;
  --hero-text:     #ffffff;
  --nav-scrolled:  rgba(8, 8, 7, 0.93);
  --ff-serif:      'Cormorant Garamond', Georgia, serif;
  --ff-sans:       'Jost', sans-serif;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --grain-opacity: 0.028;
  --toggle-bg:     #252520;
  --toggle-icon:   #7e6a5a;
}

/* ─── Light Theme ───────────────────────────────────────── */
[data-theme="light"] {
  --bg:            #f6f1e8;
  --surface:       #ece6d8;
  --surface-hover: #e2dace;
  --border:        #cfc8b6;
  --text:          #18160f;
  --muted:         #6b6253;
  --gold:          #7e6a5a;
  --gold-dim:      #a08070;
  --hero-text:     #ffffff;
  --nav-scrolled:  rgba(246, 241, 232, 0.94);
  --grain-opacity: 0.018;
  --toggle-bg:     #e2dace;
  --toggle-icon:   #7e6a5a;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* ─── Custom cursor ─────────────────────────────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, background 0.3s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 32px; height: 32px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
}
body.hovering .cursor-ring { width: 52px; height: 52px; border-color: var(--gold); }
body.hovering .cursor-dot  { transform: translate(-50%, -50%) scale(0.4); }

/* ─── Grain overlay ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9990;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  transition: opacity 0.4s;
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

a { color: inherit; text-decoration: none; }
section { position: relative; }

/* ─── Navigation ────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 3rem;
  transition: background 0.4s, border-color 0.4s;
}
nav.scrolled {
  background: var(--nav-scrolled);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.35rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--text);
}
.nav-logo span { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }

/* Theme toggle pill */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  background: var(--toggle-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.7rem; gap: 0.55rem;
  cursor: none;
  transition: background 0.3s, border-color 0.3s;
}
.theme-toggle:hover { border-color: var(--gold-dim); }
.theme-toggle svg {
  width: 13px; height: 13px;
  fill: var(--toggle-icon);
  transition: fill 0.3s, opacity 0.3s, transform 0.4s var(--ease);
  flex-shrink: 0;
}
[data-theme="dark"]  .icon-sun  { opacity: 0.38; transform: scale(0.8); }
[data-theme="dark"]  .icon-moon { opacity: 1;    transform: scale(1);   }
[data-theme="light"] .icon-sun  { opacity: 1;    transform: scale(1);   }
[data-theme="light"] .icon-moon { opacity: 0.38; transform: scale(0.8); }
.toggle-divider { width: 1px; height: 11px; background: var(--border); }

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 3rem 6rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/titel_background.jpg') center/cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,5,4,0.96) 0%,
    rgba(6,5,4,0.52) 40%,
    rgba(6,5,4,0.18) 100%
  );
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s 0.3s var(--ease) forwards;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300; line-height: 0.95; letter-spacing: -0.02em;
  color: var(--hero-text); margin-bottom: 1.8rem;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 1.1s 0.5s var(--ease) forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 0.85rem; letter-spacing: 0.08em; color: #a09585; max-width: 380px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.9s 0.8s var(--ease) forwards;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; right: 3rem; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 0; animation: fadeUp 1s 1.2s var(--ease) forwards;
}
.hero-scroll span {
  writing-mode: vertical-rl; font-size: 0.6rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: #7a7060;
}
.scroll-line {
  width: 1px; height: 48px; background: var(--gold-dim);
  animation: lineGrow 1.5s 1.8s ease forwards;
  transform-origin: top; transform: scaleY(0);
}
@keyframes lineGrow { to { transform: scaleY(1); } }
@keyframes fadeUp   { to { opacity: 1; transform: translateY(0); } }

/* ─── Section shell ─────────────────────────────────────── */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 7rem 3rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 3rem;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 32px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ─── About ─────────────────────────────────────────────── */
#about { background: var(--surface); transition: background 0.4s; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; margin-top: 4rem;
}
.about-image-wrap { position: relative; }
.about-image-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.about-image-wrap::after {
  content: ''; position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold-dim); z-index: -1;
  transition: border-color 0.4s;
}
.about-text p { font-size: 1rem; color: var(--muted); margin-bottom: 1.4rem; max-width: 480px; }
.about-text p strong { color: var(--text); font-weight: 400; }
.about-stats {
  display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border); transition: border-color 0.4s;
}
.stat-value {
  font-family: var(--ff-serif); font-size: 3rem;
  font-weight: 300; color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}

/* ─── Portfolio ─────────────────────────────────────────── */
#portfolio { background: var(--bg); transition: background 0.4s; }
.portfolio-filter {
  display: flex; gap: 2rem;
  margin-top: 3rem; margin-bottom: 3rem; list-style: none;
}
.portfolio-filter button {
  background: none; border: none; cursor: none;
  font-family: var(--ff-sans); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.portfolio-filter button.active,
.portfolio-filter button:hover { color: var(--text); border-bottom-color: var(--gold); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px; gap: 0.8rem;
}
.portfolio-item { position: relative; overflow: hidden; }
.portfolio-item:nth-child(7)  { grid-column: span 2; }
.portfolio-item:nth-child(10) { grid-column: span 2; }
.portfolio-item.portrait      { grid-row: span 2; }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s var(--ease), filter 0.5s;
  filter: brightness(0.82) saturate(0.85);
}
.portfolio-item:hover img { transform: scale(1.07); filter: brightness(0.7) saturate(1); }
.portfolio-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 1.5rem;
  background: linear-gradient(to top, rgba(6,5,4,0.82) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-cat {
  font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}

/* ─── Services ──────────────────────────────────────────── */
#services { background: var(--surface); transition: background 0.4s; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 4rem;
  border: 1px solid var(--border); transition: border-color 0.4s;
}
.service-card { padding: 2.8rem 2.4rem; background: var(--surface); transition: background 0.3s; display: flex; flex-direction: column; }
.service-card:hover { background: var(--surface-hover); }
.service-num {
  font-family: var(--ff-serif); font-size: 3.5rem;
  font-weight: 300; color: var(--border); line-height: 1;
  margin-bottom: 1.5rem; transition: color 0.3s;
}
.service-card:hover .service-num { color: var(--gold-dim); }
.service-name { font-family: var(--ff-serif); font-size: 1.9rem; font-weight: 400; margin-bottom: 1.2rem; }
.service-ideal-label {
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.service-ideal {
  list-style: none; padding: 0; margin-bottom: 0;
}
.service-ideal li {
  font-size: 0.8rem; color: var(--muted); line-height: 1.9;
  padding-left: 1rem; position: relative;
}
.service-ideal li::before {
  content: '–'; position: absolute; left: 0; color: var(--gold-dim);
}
.service-divider {
  height: 1px; background: var(--border);
  margin: 1.4rem 0; transition: background 0.4s;
}
.service-features {
  list-style: none; padding: 0; margin-bottom: 0; flex: 1;
}
.service-features li {
  font-size: 0.8rem; color: var(--muted); line-height: 1.9;
  padding-left: 1.4rem; position: relative;
}
.service-features li::before {
  content: '✔'; position: absolute; left: 0;
  color: var(--gold); font-size: 0.65rem; top: 0.18rem;
}
.service-price {
  margin-top: 2rem;
  font-family: var(--ff-serif); font-size: 1.8rem; font-weight: 300;
  color: var(--gold); letter-spacing: 0.02em;
}
.service-note {
  margin-top: 1.8rem; margin-bottom: 3.5rem;
  font-size: 0.88rem; color: var(--muted); line-height: 1.9;
  max-width: 680px;
}

/* ─── Contact ───────────────────────────────────────────── */
#contact { background: var(--bg); transition: background 0.4s; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 6rem; margin-top: 4rem; align-items: start;
}
.contact-info h3 { font-family: var(--ff-serif); font-size: 1.8rem; font-weight: 300; margin-bottom: 1.5rem; }
.contact-info p { font-size: 0.85rem; color: var(--muted); line-height: 1.9; margin-bottom: 2.5rem; }
.contact-detail { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-label {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); min-width: 70px; padding-top: 0.15rem;
}
.contact-item-val { font-size: 0.85rem; color: var(--text); }
.contact-item-link { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.contact-item-link:hover { border-bottom-color: var(--gold); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-sans);
  font-size: 0.88rem; font-weight: 300;
  padding: 0.7rem 0; outline: none; cursor: none;
  transition: border-color 0.25s, color 0.4s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--surface); color: var(--text); }
.form-consent { display: flex; align-items: flex-start; gap: 1rem; }
.form-consent input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; margin-top: 2px; cursor: none; }
.form-consent label { font-size: 0.72rem; color: var(--muted); line-height: 1.6; }
.form-consent a { color: var(--gold); border-bottom: 1px solid transparent; }
.form-consent a:hover { border-bottom-color: var(--gold); }
.btn-submit {
  display: inline-flex; align-items: center; gap: 1rem;
  background: none; border: 1px solid var(--gold-dim);
  color: var(--text); font-family: var(--ff-sans);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 2rem; cursor: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-submit::after { content: '→'; transition: transform 0.25s; }
.btn-submit:hover::after { transform: translateX(4px); }
.form-note { display: none; font-size: 0.78rem; color: var(--gold); padding: 0.8rem 0; }
.form-note.show { display: block; }

/* ─── Legal sections ────────────────────────────────────── */
#impressum, #datenschutz {
  background: var(--surface); border-top: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}
.legal-body { margin-top: 3rem; max-width: 760px; }
.legal-body h3 {
  font-family: var(--ff-serif); font-size: 1.2rem; font-weight: 400;
  color: var(--text); margin-top: 2.5rem; margin-bottom: 0.7rem;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.82rem; color: var(--muted); line-height: 1.9; margin-bottom: 0.5rem; }
.legal-body ul { padding-left: 1.2rem; margin-bottom: 0.8rem; }
.legal-body a { color: var(--gold); }
.legal-placeholder { color: var(--gold); font-style: italic; }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, border-color 0.4s;
}
.footer-logo { font-family: var(--ff-serif); font-size: 1rem; color: var(--muted); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.68rem; color: var(--border); }

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(6, 5, 4, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  max-width: 90vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; display: block;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed; background: none; border: none;
  color: var(--muted); cursor: none;
  font-size: 1.6rem; line-height: 1;
  transition: color 0.2s;
  z-index: 8001;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--text); }
.lightbox-close { top: 1.8rem; right: 2rem; font-size: 1.2rem; }
.lightbox-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ─── Scroll-reveal ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1.4rem 1.5rem; }
  .nav-links { display: none; }
  #hero { padding: 0 1.5rem 5rem; }
  .section-inner { padding: 5rem 1.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:nth-child(7),
  .portfolio-item:nth-child(10) { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
