/* ═══════════════════════════════════════════════
   ROHRER SCHLOSSEREI — Design System
   "Refined Craft" Aesthetic
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ────────────────────────── */
:root {
  --bg-primary: #F5F1EC;
  --bg-secondary: #EAE4DD;
  --bg-dark: #1C1C1C;
  --bg-dark-soft: #2A2A28;
  --text-primary: #1A1A1A;
  --text-secondary: #7A736B;
  --text-on-dark: #F5F1EC;
  --text-on-dark-muted: #A39E96;
  --accent: #9B8567;
  --accent-hover: #B39A78;
  --accent-subtle: rgba(155,133,103,0.12);
  --border: #D6D0C8;
  --border-light: #E8E3DC;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --max-width: 1400px;
  --nav-height: 64px;
  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

/* ── Container ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Navigation ───────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.nav.is-scrolled {
  background: rgba(245,241,236,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-light);
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo: Text-basiert, klar lesbar */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.nav-logo .logo-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin: 0 2px;
}
.nav.is-scrolled .nav-logo { color: var(--text-primary); }

/* Original-Logo-Bild als Fallback, aber grösser */
.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(10);
  transition: filter var(--transition);
}
.nav.is-scrolled .nav-logo img { filter: brightness(0.15); }

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav.is-scrolled .nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--accent-hover); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 4px 0;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
  border-radius: 1px;
}
.nav.is-scrolled .nav-toggle span { background: var(--text-primary); }
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.85) contrast(1.15) saturate(1.1);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(28,28,28,0.05) 0%, rgba(28,28,28,0.45) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 25%, transparent 55%, rgba(0,0,0,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--space-md);
}
.hero-content h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-content .hero-subtitle {
  color: var(--accent-hover);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Spark Canvas Overlay */
.hero-sparks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-content { z-index: 2; }
.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Section Base ─────────────────────────────── */
.section {
  padding: var(--space-2xl) 0;
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--alt {
  background: var(--bg-secondary);
}
.section-header {
  margin-bottom: var(--space-lg);
}
.section-header h2 {
  margin-bottom: var(--space-sm);
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 1.05rem;
}
.section--dark .section-header p {
  color: var(--text-on-dark-muted);
}

/* ── Intro Section ────────────────────────────── */
.intro {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.intro-text {
  max-width: 700px;
  margin: 0 auto;
}
.intro-text h2 {
  margin-bottom: var(--space-md);
  font-style: italic;
  color: var(--text-primary);
}
.intro-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}
.intro-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-lg) auto;
}

/* ── Portfolio Grid (Categories) ──────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.portfolio-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-card:hover img {
  transform: scale(1.06);
}
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.8) 0%, rgba(28,28,28,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}
.portfolio-card-overlay h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.portfolio-card-overlay span {
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Featured Work (Horizontal Scroll) ────────── */
.featured-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: var(--space-sm) 0;
  -webkit-overflow-scrolling: touch;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-item {
  flex: 0 0 auto;
  width: min(80vw, 600px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.featured-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.featured-item:hover img { transform: scale(1.04); }
.featured-item-caption {
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.featured-item-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}
.featured-item-caption span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ── About Section (Split Layout) ─────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.about-images img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-images img:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}
.about-text h2 {
  margin-bottom: var(--space-md);
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-text .about-details {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.about-detail-item {
  display: flex;
  flex-direction: column;
}
.about-detail-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.about-detail-item .value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
}

/* ── Re-Editionen Section ─────────────────────── */
.editions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.edition-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.edition-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.edition-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.edition-card:hover .edition-card-image img { transform: scale(1.04); }
.edition-card-body h3 {
  margin-bottom: var(--space-xs);
}
.edition-card-body .edition-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.edition-card-body p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.edition-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  margin-top: var(--space-sm);
}

/* ── Impressionen Strip ───────────────────────── */
.impressions-strip {
  display: flex;
  gap: 4px;
  overflow: hidden;
}
.impressions-strip img {
  flex: 1;
  min-width: 0;
  height: 400px;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.6s ease, flex 0.6s ease;
}
.impressions-strip img:hover {
  filter: grayscale(0%);
  flex: 2;
}

/* ── Blog Teaser ──────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.blog-card {
  border: 1px solid var(--border);
  padding: var(--space-md);
  transition: border-color var(--transition), transform var(--transition);
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.blog-card-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.blog-card h4 {
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Contact Section ──────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.contact-info h2 {
  margin-bottom: var(--space-md);
}
.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}
.contact-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-item a {
  font-size: 1.1rem;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }
.contact-map {
  width: 100%;
  height: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(60%) contrast(1.1);
  transition: filter 0.6s ease;
}
.contact-map:hover iframe { filter: grayscale(0%); }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-on-dark);
  letter-spacing: 0.05em;
}
.footer-right {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}
.footer-right a { color: var(--accent); }
.footer-right a:hover { color: var(--accent-hover); }
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: var(--space-md);
}

/* ── Scroll Animations ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Metallic Divider ─────────────────────────── */
.metal-divider {
  position: relative;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  max-width: var(--max-width);
}
.metal-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Lightbox ─────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.is-active {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font-body);
  font-weight: 300;
}
.lightbox-close:hover { color: var(--accent); }

/* ── Button ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all var(--transition);
}
.btn:hover {
  background: var(--accent);
  color: #fff;
}
.btn--filled {
  background: var(--accent);
  color: #fff;
}
.btn--filled:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Partners / Links ─────────────────────────── */
.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}
.partners-list a {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.partners-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    gap: var(--space-md);
  }
  .editions-grid {
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-2xl: 6rem;
  }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-md)) var(--space-md) var(--space-md);
    gap: var(--space-sm);
    transition: right var(--transition);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }
  .nav-links.is-open { right: 0; }
  .nav-links a {
    font-size: 1rem;
    color: var(--text-on-dark-muted) !important;
  }
  .nav-links a:hover { color: var(--accent) !important; }

  .hero { min-height: 500px; padding-bottom: var(--space-lg); }
  .hero-content h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-card { aspect-ratio: 1; }
  .portfolio-card-overlay { opacity: 1; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .about-images { order: -1; }

  .editions-grid { grid-template-columns: 1fr; }

  .impressions-strip {
    flex-wrap: wrap;
  }
  .impressions-strip img {
    height: 250px;
    min-width: 45%;
    flex: 1 1 45%;
  }

  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }

  .footer .container {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-images { grid-template-columns: 1fr; }
  .about-images img:first-child { grid-row: span 1; aspect-ratio: 3/4; }
  .impressions-strip img {
    min-width: 100%;
    height: 200px;
  }
}

/* ── Print ────────────────────────────────────── */
@media print {
  .nav, .hero-scroll, .lightbox, .contact-map { display: none; }
  .hero { height: auto; min-height: 0; padding: var(--space-md) 0; }
  .hero-bg { display: none; }
  .hero-content h1, .hero-content p { color: var(--text-primary); }
  .section { padding: var(--space-md) 0; }
  .section--dark { background: #fff; color: var(--text-primary); }
}
