/* =============================================
   IMRE HORVATH — TRÄUME UND BILDER
   Redesign 2025 — Elegante dunkle Farbpalette
   
   DOKUMENTATION:
   Alle Farben und Design-Tokens sind hier als
   CSS-Variablen definiert. Um Farben zu ändern,
   einfach die Werte unter :root anpassen.
   ============================================= */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Hauptfarben — dunkle harmonische Blautöne */
  --bg-deep:          #0a0f1a;       /* Tiefster Hintergrund */
  --bg-primary:       #0f1625;       /* Standard-Hintergrund */
  --bg-secondary:     #151d30;       /* Karten / Sections */
  --bg-card:          #1a2340;       /* Galerie-Items */
  --bg-card-hover:    #1f2a4a;       /* Hover-Zustand */
  --bg-input:         #131b2e;       /* Formularfelder */

  /* Akzentfarben */
  --accent:           #4a6fa5;       /* Primärer Akzent */
  --accent-light:     #6b8fc5;       /* Heller Akzent */
  --accent-glow:      rgba(74, 111, 165, 0.25);
  --gold:             #c4a265;       /* Gold-Akzent */
  --gold-soft:        rgba(196, 162, 101, 0.15);

  /* Textfarben */
  --text-primary:     #e8e4dd;       /* Haupttext */
  --text-secondary:   #9aa3b8;       /* Sekundärtext */
  --text-muted:       #5a6580;       /* Dezenter Text */
  --text-heading:     #f0ece5;       /* Überschriften */

  /* Ränder & Linien */
  --border-subtle:    rgba(74, 111, 165, 0.1);
  --border-medium:    rgba(74, 111, 165, 0.2);

  /* Overlay */
  --overlay:          rgba(5, 8, 15, 0.95);

  /* Abstände */
  --section-gap:      clamp(2rem, 4vw, 3.5rem);
  --content-max:      1400px;

  /* Übergänge */
  --ease:             0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-slow:        0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Schriften */
  --font-display:     'Cormorant Garamond', 'Georgia', serif;
  --font-body:        'Jost', 'Segoe UI', sans-serif;
}

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

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover {
  color: var(--gold);
}


/* =============================================
   NAVIGATION
   ============================================= */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem clamp(1.5rem, 4vw, 3rem);
  transition: background var(--ease), padding var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}

.main-nav.scrolled {
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom-color: var(--border-subtle);
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-heading);
  text-transform: uppercase;
}

.logo .subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}

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

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

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-secondary);
  margin: 6px 0;
  transition: var(--ease);
}

/* Spacer für fixed Nav */
.nav-spacer {
  height: 80px;
}


/* =============================================
   CONTAINER
   ============================================= */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}


/* =============================================
   HERO SECTION (index.html)
   ============================================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;

  padding: 2rem 0;
}

.hero-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Dezenter goldener Rahmen */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(196, 162, 101, 0.15);
  border-radius: 1px;
  pointer-events: none;
}

.hero-content {
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.statement {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--text-heading);
  background: transparent;
  cursor: pointer;
  transition: all var(--ease);
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 25px var(--accent-glow);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-secondary {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 0 25px var(--gold-soft);
}


/* =============================================
   KATEGORIEN SECTION (index.html)
   ============================================= */

.categories-section {
  padding: var(--section-gap) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 3.5rem;
}

.category-group {
  margin-bottom: 3.5rem;
}

.category-group-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.category-main-link {
  color: var(--text-heading);
  text-decoration: none;
  transition: color var(--ease);
}

.category-main-link:hover {
  color: var(--gold);
}

.category-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-medium), transparent);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.category-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--ease);
  position: relative;
}

.category-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.category-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.08);
}

.category-info {
  padding: 1.2rem 1.3rem;
}

.category-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.category-description {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.category-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: rgba(74, 111, 165, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}


/* =============================================
   GALERIE SEITEN (acryl.html, aquarell.html)
   ============================================= */

.gallery-header {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.gallery-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.gallery-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  transition: color var(--ease);
}

.back-link::before {
  content: '←';
  margin-right: 0.6rem;
  font-size: 1rem;
  transition: transform var(--ease);
}

.back-link:hover {
  color: var(--gold);
}

.back-link:hover::before {
  transform: translateX(-3px);
}

/* Galerie Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.gallery-item:hover {
  border-color: var(--border-medium);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity var(--ease);
}

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

/* Dezenter Hover-Overlay auf Galerie-Items */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 26, 0.4) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}


/* =============================================
   VOLLBILD LIGHTBOX
   ============================================= */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Lightbox Controls */
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  z-index: 1001;
}

.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  z-index: 1001;
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent-light);
  color: var(--text-heading);
  background: rgba(74, 111, 165, 0.15);
}

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  background: rgba(15, 22, 37, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border-subtle);
  z-index: 1001;
}


/* =============================================
   KONTAKT SEITE
   ============================================= */

.contact-section {
  max-width: 800px;
  margin: 2rem auto var(--section-gap);
  padding: 3rem clamp(2rem, 5vw, 3.5rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.contact-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.contact-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.contact-info {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--accent-light);
  font-weight: 400;
  transition: color var(--ease);
}

.contact-info a:hover {
  color: var(--gold);
}

/* Kontaktformular */
.contact-form {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

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

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-light);
  display: none;
}

.form-status.visible {
  display: block;
}


/* =============================================
   FILTER BUTTON (gallery-filter.js)
   ============================================= */

.show-all-button {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  text-decoration: none;
  transition: all var(--ease);
}

.show-all-button:hover {
  border-color: var(--accent);
  color: var(--text-heading);
  background: rgba(74, 111, 165, 0.1);
}


/* =============================================
   FOOTER
   ============================================= */

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  text-align: center;
}

footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-links {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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


/* =============================================
   LOADING & ERROR STATES
   ============================================= */

.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* Skeleton shimmer für ladende Bilder */
.gallery-item img {
  background: linear-gradient(90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

.gallery-item img[src] {
  animation: none;
  background: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: rgba(74, 111, 165, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.gallery-error p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}


/* =============================================
   ANIMATIONEN
   ============================================= */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }


/* =============================================
   KEYBOARD / ACCESSIBILITY
   ============================================= */

.gallery-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.category-card:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablets */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 1rem 0 2rem;
  }

  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .statement {
    max-width: 100%;
  }

  .cta-buttons {
    justify-content: center;
  }

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

  .categories-section {
    padding: 3rem 0;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .category-group-title {
    font-size: 1.4rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .main-nav {
    padding: 1rem 1.2rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
  }

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

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
  }

  .nav-toggle {
    display: block;
  }

  .nav-spacer {
    height: 65px;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .logo .subtitle {
    font-size: 0.75rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .gallery-header h1 {
    font-size: 1.8rem;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .category-image {
    height: 130px;
  }

  .category-info {
    padding: 0.8rem 1rem;
  }

  .category-name {
    font-size: 1rem;
  }

  .category-description {
    font-size: 0.75rem;
  }

  .category-group-title::after {
    display: none;
  }

  .contact-section {
    padding: 2rem 1.2rem;
    margin: 1rem 0 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Lightbox Mobile */
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

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

  .lightbox-counter {
    bottom: 1rem;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

/* Kleine Displays */
@media (max-width: 400px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* =============================================
   ERWEITERUNGEN — STARTSEITE REDESIGN
   Anhängen ans Ende von style.css
   =============================================

   Inhalt:
   1. Hero Fullscreen (ersetzt alten .hero-Grid)
   2. Neueste Werke Section
   3. Category Card — Verbesserter Hover-Overlay
   ============================================= */


/* =============================================
   1. HERO FULLSCREEN
   ─────────────────────────────────────────────
   Funktionsweise:
   • 100vh hohe Sektion mit titelbild.jpg als
     CSS-Hintergrund (background-attachment:fixed
     erzeugt Parallax-Effekt beim Scrollen).
   • Dunkles Overlay (.hero-overlay) macht Text
     lesbar ohne das Bild zu stark zu verdecken.
   • .hero-fg enthält Text und Buttons, zentriert.
   • Auf iOS Safari kein Parallax (Fallback via
     @supports -webkit-touch-callout).
   ============================================= */

.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;              /* moderne Viewport-Einheit (iOS/Android) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* Bild als Hintergrund — Parallax nur Desktop */
  background-image: url('titelbild.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;    /* Parallax auf Desktop */
  background-repeat: no-repeat;

  overflow: hidden;
}

/* Mobile / Touch-Geräte: KEIN Parallax.
   `(hover: none) and (pointer: coarse)` erfasst iOS, Android, Tablets
   zuverlässig — im Gegensatz zu @supports (-webkit-touch-callout). */
@media (hover: none) and (pointer: coarse) {
  .hero-fullscreen {
    background-attachment: scroll;
  }
}

/* Safety-Net nach Viewport-Breite — fängt alte Browser
   ohne hover/pointer Media-Queries ab. */
@media (max-width: 1024px) {
  .hero-fullscreen {
    background-attachment: scroll;
  }
}

/* Dunkles Overlay — Gradient von unten, damit Text oben frei bleibt */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 15, 26, 0.45) 0%,
      rgba(10, 15, 26, 0.30) 40%,
      rgba(10, 15, 26, 0.65) 85%,
      rgba(10, 15, 26, 0.85) 100%
    );
  pointer-events: none;
}

/* Zentrierter Text-Container */
.hero-fg {
  position: relative;   /* Über dem Overlay */
  z-index: 1;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem);
  max-width: 700px;
}

/* Label "Malerei & Kunst" */
.hero-fg .hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

/* Haupttitel */
.hero-fg h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  /* Dezenter Textschatten für Lesbarkeit auf hellem Bild */
  text-shadow: 0 2px 20px rgba(10, 15, 26, 0.5);
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

/* Statement-Text */
.hero-fg .statement {
  font-size: 1rem;
  color: rgba(232, 228, 221, 0.82);  /* leicht transparent */
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

/* CTA-Buttons */
.hero-fg .cta-buttons {
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* ─── Scroll-Indikator ───
   Pulsierender Pfeil ganz unten im Hero.
   Verschwindet sobald der Nutzer scrollt
   (via JS in nav.js oder via CSS scroll-driven). */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;

  color: rgba(232, 228, 221, 0.4);
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;  /* Erscheint verzögert nach allen anderen */
}

.scroll-label {
  display: block;
}

.scroll-arrow {
  display: block;
  font-size: 1rem;
  animation: scrollBounce 2.2s ease-in-out 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.4; }
  50%       { transform: translateY(7px); opacity: 0.8; }
}

/* Responsive Hero */
@media (max-width: 640px) {
  .hero-fg h2 {
    font-size: 2rem;
  }
  .hero-fg .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .hero-fg .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}


/* =============================================
   2. NEUESTE WERKE SECTION
   ─────────────────────────────────────────────
   Zeigt 6 Kacheln (befüllt von neueste.js).
   Jede Kachel ist ein <a>-Link zur Galerie.
   Hover: Bild zoomt leicht, Label-Overlay
   blendet von unten ein.
   ============================================= */

.neueste-section {
  padding: var(--section-gap) 0 calc(var(--section-gap) * 0.6);
  background: var(--bg-secondary);    /* Minimal vom normalen BG abgehoben */
  border-top:    1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Grid: 3 Spalten Desktop → 2 Tablet → 1 Mobile */
.neueste-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 2rem;
}

/* Lade-Hinweis */
.neueste-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* Einzelne Bild-Kachel */
.neueste-item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.neueste-item:hover {
  border-color: var(--border-medium);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Bild */
.neueste-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.neueste-item:hover img {
  transform: scale(1.06);
}

/* Typ-Label Overlay (erscheint beim Hover von unten) */
.neueste-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.9rem 0.7rem;
  background: linear-gradient(to top,
    rgba(10, 15, 26, 0.8) 0%,
    transparent 100%
  );
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.neueste-item:hover .neueste-item-overlay {
  transform: translateY(0);
}

/* Link-Bereich unter dem Grid */
.neueste-links {
  text-align: center;
  margin-top: 0.5rem;
}

/* Responsive Neueste */
@media (max-width: 968px) {
  .neueste-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .neueste-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}


/* =============================================
   3. CATEGORY CARD — VERBESSERTER HOVER
   ─────────────────────────────────────────────
   Ergänzt die bestehenden Stile in style.css.
   Neu: "Entdecken →" Overlay schiebt sich beim
   Hover von unten ins Bild. Bildzoom (scale)
   war schon vorhanden, bleibt erhalten.
   ─────────────────────────────────────────────
   Technik: .category-image braucht
   position:relative (war nicht gesetzt).
   ::after Pseudo-Element mit overflow-clip
   durch .category-image (overflow:hidden).
   ============================================= */

/* position:relative ergänzen — war nicht gesetzt */
.category-image {
  position: relative;
}

/* "Entdecken →" Overlay — via ::after auf .category-image */
.category-image::after {
  content: 'Entdecken →';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.1rem 0.75rem;

  background: linear-gradient(to top,
    rgba(10, 15, 26, 0.88) 0%,
    transparent 100%
  );

  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  /* Startzustand: unten weggeklappt — overflow:hidden clippt es weg */
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

/* Overlay einblenden beim Hover auf die übergeordnete Card */
.category-card:hover .category-image::after {
  transform: translateY(0);
}

/* Bestehenden hover translateY(-4px) leicht verstärken für mehr Tiefe */
.category-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
