/* ===============================
   Variablen & System-Fonts
   =============================== */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Georgia", "Times New Roman", Times, serif;

  --bg-dark: #0e0e11;
  --bg-card: #16161c;
  --accent: #c9a24d;
  --accent-hover: #e0b45a;
  --text-main: #f2f2f2;
  --text-muted: #9a9a9a;
  --header-height-large: 120px;
  --header-height-small: 70px;
}

/* ===============================
   Reset & Grundlayout
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Subtiler Grainy-Effekt (Lokal gespeichert) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('img/noise.svg');
  opacity: 0.04; 
  pointer-events: none;
  z-index: 9999;
}

/* Goldene Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* ===============================
   Header (Fixiert & Dynamisch)
   =============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-large);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

header.scrolled {
  height: var(--header-height-small);
  background: rgba(14, 14, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent);
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.5s ease;
}

.logo:hover {
  color: #fff;
  text-shadow: 0 0 15px rgba(201, 162, 77, 0.8);
  transform: scale(1.02);
}

header.scrolled .logo {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

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

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

header.scrolled nav a {
  font-size: 0.85rem;
}

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

/* ===============================
   Hero Section
   =============================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--header-height-large) 5% 60px 5%;
  background: radial-gradient(circle at 20% 30%, #1c1c24, var(--bg-dark) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: 1px;
}

.hero-content h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero-content p {
  color: var(--text-muted);
  margin-bottom: 35px;
  font-size: 1.1rem;
  max-width: 500px;
}

.hero-side {
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border-left: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-side h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-side p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-side .accent-text {
  margin-top: 20px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ===============================
   Buttons
   =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background-color: var(--accent);
  color: #0e0e11;
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn img {
  width: 20px;
  filter: brightness(0);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(201, 162, 77, 0.3);
}

/* ===============================
   Gallery & Cards Layout
   =============================== */
section {
  padding: 100px 5%;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 50px;
  text-align: center;
  font-style: italic;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 15px;
  display: block;
  cursor: zoom-in;
}

.card p {
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Galerie-Seite (Masonry) */
.gallery-container {
  padding: 160px 5% 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
}

.gallery-grid {
  display: columns;
  column-width: 320px;
  column-gap: 20px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

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

.gallery-info {
  padding: 15px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===============================
   Lightbox (Großansicht)
   =============================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  cursor: zoom-out;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 30px rgba(201, 162, 77, 0.2);
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* ===============================
   Legal Pages (Impressum / Datenschutz)
   =============================== */
.legal-container {
  padding: 160px 5% 80px 5%;
  max-width: 850px;
  margin: 0 auto;
  flex: 1;
}

.legal-content h2 {
  font-family: var(--font-heading);
  color: var(--accent);
  margin: 40px 0 20px 0;
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(201, 162, 77, 0.2);
  padding-bottom: 10px;
}

.legal-content h3 {
  color: var(--text-main);
  margin: 25px 0 10px 0;
  font-size: 1.1rem;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ===============================
   Scroll-Reveal Animation
   =============================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Footer
   =============================== */
footer {
  padding: 50px 5%;
  background: #08080a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

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

/* ===============================
   Floating Social Buttons
   =============================== */
.social-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.social-float a {
  background: rgba(26, 26, 34, 0.8);
  backdrop-filter: blur(5px);
  padding: 12px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 77, 0.3);
  display: inline-flex;
  transition: all 0.3s ease;
}

.social-float a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.social-float a:hover {
  transform: scale(1.1) translateX(-5px);
  background: var(--accent);
  border-color: var(--accent);
}

.social-float a:hover img {
  filter: brightness(0);
}

/* ===============================
   Responsive Anpassungen
   =============================== */
@media (max-width: 900px) {
  header { height: 90px; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-side {
    padding: 30px;
    border-left: none;
    border-top: 2px solid var(--accent);
  }

  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
    column-width: 100%;
  }
}

@media (max-width: 480px) {
  header { height: 80px; padding: 0 20px; }
  header.scrolled { height: 60px; }
  
  .logo { font-size: 1.4rem; }
  header.scrolled .logo { font-size: 1.1rem; }
  
  nav a { margin-left: 15px; font-size: 0.8rem; }
  .section-title { font-size: 1.8rem; }
  .social-float { bottom: 15px; right: 15px; gap: 10px; }
  .social-float a img { width: 24px; height: 24px; }
}
