/* ============================================================
   Lichterwerkstatt – Hauptstylesheet
   ============================================================ */

:root {
  --color-bg:       #111111;
  --color-surface:  #1c1c1c;
  --color-text:     #e8e8e8;
  --color-muted:    #888888;
  --color-accent:   #c9a96e;
  --color-white:    #ffffff;
  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --nav-height:     72px;
  --max-width:      1280px;
}

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

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

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

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* Typography
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}

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

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text);
  transition: color 0.2s;
}

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

/* Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/hero1.webp');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 2.5rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--color-white);
  max-width: 680px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 1.25rem;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  margin-top: 0.4rem;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-solid {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-solid:hover {
  background: transparent;
  color: var(--color-accent);
}

/* Sections
   ============================================================ */
.section {
  padding: 7rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--color-muted);
  margin-top: 0.75rem;
  font-size: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Preview Gallery (Homepage)
   ============================================================ */
.gallery-preview {
  columns: 4;
  column-gap: 8px;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto 4rem;
}

.gallery-preview-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-preview-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.92);
}

.gallery-preview-item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

.gallery-more {
  text-align: center;
  padding: 1rem 2rem 6rem;
}

/* Full Portfolio Gallery
   ============================================================ */
.gallery-full {
  columns: 3;
  column-gap: 10px;
  padding: 0 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-full-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-full-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

.gallery-full-item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

/* Lightbox
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* About
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 7rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top center;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--color-accent);
  opacity: 0.4;
  z-index: -1;
}

.about-text { padding-right: 1rem; }

.about-text h2 { margin-bottom: 1.5rem; }

.about-text p {
  color: rgba(232,232,232,0.8);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-text .btn { margin-top: 1rem; }

/* Testimonial
   ============================================================ */
.testimonial-section {
  background: var(--color-surface);
  padding: 6rem 2rem;
  text-align: center;
}

.testimonial-inner {
  max-width: 720px;
  margin: 0 auto;
}

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

blockquote::before { content: '\201C'; }
blockquote::after  { content: '\201D'; }

.testimonial-author {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* CTA Section
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  background: url('../images/hero/hero1.webp') center/cover no-repeat;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}

/* Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.contact-link-icon {
  width: 18px;
  text-align: center;
  color: var(--color-accent);
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-group select option { background: var(--color-surface); }

/* Page Hero (Subpages)
   ============================================================ */
.page-hero {
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 1.75rem;
  background: var(--color-surface);
}

.page-hero-content {
  padding: 0 2.5rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

/* Footer
   ============================================================ */
footer {
  background: var(--color-surface);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--color-accent); }

/* Scroll-Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .gallery-preview { columns: 2; }
  .gallery-full    { columns: 2; }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image img { height: 420px; }
  .about-image::before { display: none; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 560px) {
  .gallery-preview,
  .gallery-full { columns: 1; }

  .hero-scroll { display: none; }

  .hero-content { padding: 0 1.5rem; }
  .section { padding: 5rem 1.5rem; }
}

/* Cookie-Banner (Google-Analytics-Einwilligung)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(20, 20, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-banner.show { opacity: 1; transform: none; }

.cookie-banner-text { margin: 0 0 1rem; line-height: 1.55; }
.cookie-banner-text a { color: var(--color-accent); text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: var(--color-white);
  transition: opacity 0.2s, color 0.2s;
}

.cookie-btn-decline { color: rgba(255, 255, 255, 0.6); }
.cookie-btn-decline:hover { color: var(--color-white); }

.cookie-btn-accept {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111;
}
.cookie-btn-accept:hover { opacity: 0.9; }
