/* ============================================
   Doris Mertens — Portfolio
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f6f5f2;
  --color-bg-warm: #edeae4;
  --color-surface: #ffffff;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-accent: #c4521a;
  --color-accent-light: rgba(196, 82, 26, 0.12);
  --color-accent-pale: #fdf2ec;
  --color-border: #e0ddd7;
  --color-dark: #1a1a1a;
  --color-nav-bg: rgba(246, 245, 242, 0.92);
  --color-nav-bg-scrolled: rgba(246, 245, 242, 0.97);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #9a6f00;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}


/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  border-top: 3px solid var(--color-accent);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--color-nav-bg-scrolled);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}


/* ============================================
   Spotlight / Hero Carousel
   ============================================ */
.spotlight {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: var(--color-dark);
}

.spotlight-carousel {
  position: absolute;
  inset: 0;
}

.spotlight-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.spotlight-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.spotlight-slide-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 6s ease-out;
}

.spotlight-slide.active .spotlight-slide-bg {
  transform: scale(1.04);
}

.spotlight-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder styles for images that don't exist yet */
.spotlight-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

.spotlight-slide-placeholder svg {
  opacity: 0.4;
}

/* Loading spinner (used in all image placeholders) */
.loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

.gallery-card-placeholder .loading-spinner {
  width: 32px;
  height: 32px;
  border-width: 2.5px;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

.spotlight-slide-info {
  position: absolute;
  bottom: 80px;
  left: 48px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.spotlight-slide.active .spotlight-slide-info {
  opacity: 1;
  transform: translateY(0);
}

.spotlight-slide-info h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.spotlight-slide-info span {
  font-size: 0.9rem;
  opacity: 0.8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  text-align: center;
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.spotlight-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.spotlight-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.spotlight-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}

.spotlight-btn--prev { left: 24px; }
.spotlight-btn--next { right: 24px; }

.spotlight-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.spotlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.spotlight-dot.active {
  background: #fff;
  transform: scale(1.2);
}


/* ============================================
   Gallery
   ============================================ */
.galerie {
  padding: 100px 0 80px;
  background: var(--color-surface);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-right: 4px;
}

.filter-btn {
  background: none;
  border: 1.5px solid var(--color-border);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.color-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 3px;
}

.color-btn:hover {
  border-color: var(--color-text-muted);
}

.color-btn.active {
  border-color: var(--color-accent);
}

.color-swatch {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.color-swatch--alle {
  background: conic-gradient(#d94040, #e8c840, #3da856, #4071d9, #8b5fbf, #d94040);
}

.color-swatch--bw {
  background: linear-gradient(135deg, #222 50%, #ddd 50%);
}

.color-swatch--bunt {
  background: linear-gradient(135deg, #d94040, #e8c840, #3da856, #4071d9);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.4s ease;
  position: relative;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.gallery-card:hover::before {
  transform: scaleX(1);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-card.hiding {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.gallery-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.05);
}

/* Placeholder for missing images */
.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-placeholder {
  transform: scale(1.05);
}

.gallery-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.gallery-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 3px;
  color: #fff;
}

.gallery-card-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  gap: 10px;
}

.gallery-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 60px 20px;
  font-size: 1.1rem;
}


/* ============================================
   Aktuelles
   ============================================ */
.aktuelles {
  padding: 90px 0;
  background: var(--color-bg);
}

.aktuelles-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.aktuelles-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.aktuelles-image--empty {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-warm);
}

.aktuelles-image--empty::after {
  content: 'Bild: images/aktuelles.jpg';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.aktuelles-photo {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
}

.aktuelles-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.aktuelles-text .section-title {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: left;
}

.aktuelles-text .section-title::after {
  margin-left: 0;
}

.aktuelles-text p {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.aktuelles-text code {
  background: var(--color-bg-warm);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}


/* ============================================
   About
   ============================================ */
.ueber {
  padding: 80px 0 100px;
  background: var(--color-bg-warm);
}

.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.ueber-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.ueber-image-placeholder {
  aspect-ratio: 3 / 4;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.ueber-image-placeholder svg {
  opacity: 0.4;
}

.ueber-text p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.ueber-cta {
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--color-text) !important;
}


/* ============================================
   Contact
   ============================================ */
.kontakt {
  padding: 100px 0;
  background: var(--color-accent-pale);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.kontakt-info p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
}

.kontakt-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.kontakt-item a {
  color: var(--color-text-muted);
}

.kontakt-item a:hover {
  color: var(--color-accent);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: #a34416;
  transform: translateY(-1px);
}


/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.5);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}


/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.lightbox.visible {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  z-index: 10;
  transition: color var(--transition), transform var(--transition);
}

.lightbox-close:hover {
  color: #fff;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }

.lightbox-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-image img {
  transform-origin: center center;
  transition: transform 0.2s ease;
  will-change: transform;
}

.lightbox-image img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-image .gallery-card-placeholder {
  width: 600px;
  max-width: 80vw;
  height: 400px;
  border-radius: var(--radius);
}

.lightbox-info {
  text-align: center;
  color: #fff;
}

.lightbox-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.lightbox-info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.lightbox-info .lightbox-desc {
  margin-top: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .ueber-grid,
  .kontakt-grid,
  .aktuelles-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .aktuelles-image {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .ueber-image-placeholder {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .spotlight {
    height: 70vh;
    min-height: 400px;
  }

  .spotlight-btn {
    width: 40px;
    height: 40px;
  }

  .spotlight-btn--prev { left: 12px; }
  .spotlight-btn--next { right: 12px; }

  .spotlight-slide-info {
    left: 24px;
    bottom: 60px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .galerie {
    padding: 60px 0;
  }

  .lightbox-nav--prev { left: 8px; }
  .lightbox-nav--next { right: 8px; }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-card {
  animation: fadeInUp 0.5s ease both;
}

.gallery-card:nth-child(2) { animation-delay: 0.05s; }
.gallery-card:nth-child(3) { animation-delay: 0.1s; }
.gallery-card:nth-child(4) { animation-delay: 0.15s; }
.gallery-card:nth-child(5) { animation-delay: 0.2s; }
.gallery-card:nth-child(6) { animation-delay: 0.25s; }
.gallery-card:nth-child(7) { animation-delay: 0.3s; }
.gallery-card:nth-child(8) { animation-delay: 0.35s; }

