/* ═══════════════════════════════════════════════════════════
   RiKaVienna – Elegant Masonry Portfolio
   Helles, modernes Design
   ═══════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #fafaf8;
  --bg-secondary: #f5f5f3;
  --bg-gradient: linear-gradient(to bottom, #f5f5f3, #fafaf8);
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --accent: #8b7355;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg-gradient);
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.hero .subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
}

.hero .tagline {
  margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.4s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   FILTER BUTTONS
   ═══════════════════════════════════════════════════════════ */

.filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--border);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.filter-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

/* ═══════════════════════════════════════════════════════════
   MASONRY GALLERY
   ═══════════════════════════════════════════════════════════ */

.gallery {
  padding: 0 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.masonry {
  columns: 4;
  column-gap: 1.25rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  animation: itemFadeIn 0.6s ease-out forwards;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.masonry-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  color: white;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.overlay span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes itemFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden state für Filter */
.masonry-item.hidden {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */

.about {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-card {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
}

.about-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 88%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: white;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-nav.prev {
  left: 2rem;
}

.lightbox-nav.next {
  right: 2rem;
}

.lightbox-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid white;
  border-right: 1.5px solid white;
}

.lightbox-nav.prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.lightbox-nav.next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.lightbox-info {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.lightbox-info h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  margin-bottom: 0.4rem;
}

.lightbox-info span {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.social-links .social-icon {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-links .logo-icon {
  width: 60px;
  height: auto;
}

.social-links a:hover .social-icon {
  color: var(--text-primary);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--text-primary);
}

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

@media (max-width: 1200px) {
  .masonry {
    columns: 3;
  }
}

@media (max-width: 900px) {
  .header {
    padding: 1rem 1.5rem;
  }
  
  nav {
    gap: 1.25rem;
  }
  
  nav a {
    font-size: 0.75rem;
  }
  
  .masonry {
    columns: 2;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  .hero {
    min-height: 50vh;
    padding: 7rem 1.5rem 3rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: 0.08em;
  }
  
  .hero .subtitle {
    font-size: 0.85rem;
  }
  
  .hero .tagline {
    font-size: 1.1rem;
  }
  
  .filters {
    padding: 1.5rem 1rem;
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.7rem;
  }
  
  .gallery {
    padding: 0 1rem 3rem;
  }
  
  .masonry {
    columns: 1;
  }
  
  .about {
    padding: 3rem 1.5rem;
  }
  
  .about-card {
    padding: 1.75rem;
  }
  
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  
  .lightbox-nav.prev {
    left: 1rem;
  }
  
  .lightbox-nav.next {
    right: 1rem;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
  
  .lightbox-info {
    bottom: 1.5rem;
  }
  
  .lightbox-info h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════
   IMPRESSUM PAGE
   ═══════════════════════════════════════════════════════════ */

.impressum-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg-gradient);
}

.impressum-card {
  width: 100%;
  max-width: 640px;
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 8px 40px var(--shadow);
}

.impressum-card h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.impressum-section {
  margin-bottom: 1.75rem;
}

.impressum-section h2 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.impressum-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.impressum-section a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.impressum-section a:hover {
  color: var(--text-primary);
}

.impressum-note {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.impressum-note p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: white;
}

@media (max-width: 600px) {
  .impressum-page {
    padding: 6rem 1rem 3rem;
  }
  
  .impressum-card {
    padding: 2rem 1.5rem;
  }
  
  .impressum-card h1 {
    font-size: 2rem;
  }
}
