/* ========================================= */
/* 1. CSS VARIABLEN                          */
/* ========================================= */
:root {
  /* Mondschein Farbwelt */
  --primary: #E6D9A2;        /* Mondlicht / Gold */
  --primary-dark: #C8B56E;

  --bg-main: #0B132B;        /* Tiefes Nachtblau */
  --bg-section: #1C2541;     /* Sektionen */
  --bg-card: #24305E;        /* Karten / Boxen */
  --bg-product-card: #ffffff; /* Produktkarten */
  --text-product: #1a1a1a;    /* Produkttext */

  --text-main: #EAEAEA;      /* Haupttext */
  --text-muted: #000000;     /* Nebentext */

  --border-soft: rgba(255,255,255,0.08);
}

/* Globale Scroll-Verhalten */
html {
  scroll-behavior: smooth;
}

/* ========================================= */
/* 2. RESET & GRUNDLAGEN                     */
/* ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-main);
}

/* ========================================= */
/* 3. LAYOUT & CONTAINER                     */
/* ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Schmalerer Textbereich für About / Legal */
.about .container {
  max-width: 800px;
}

/* ========================================= */
/* 4. HERO SECTION                           */
/* ========================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-main);
}

.hero-background,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(230, 217, 162, 0.25),
    rgba(11, 19, 43, 0.85) 70%
  );
  z-index: 0;
}
.hero-background {
  position: absolute;
  inset: 0;
}

.background-layer {
  position: absolute;
  inset: 0;
}

.background-layer {
  background-size: cover;
  background-position: center;
}

/* Hero Hintergrundbilder */
.layer-cake {
  background-image: url("assets/Logo1.jpeg");
  opacity: 0.3;
}
/*
.layer-cupcake {
  background-image: url("https://placehold.co/1200x800/FF69B4/FFFFFF?text=Cupcakes");
  opacity: 0.2;
}
*/
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
}

.hero p {
  font-size: 1.5rem;
  margin: 20px 0;
}

/* ========================================= */
/* 5. BUTTONS & INTERAKTIONEN                */
/* Mondschein-Highlight                     */
/* ========================================= */
.cta-button,
.submit-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: oklab(21.779% 0 -0.00002);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

/* Hover-Effekt */
.cta-button:hover,
.submit-button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Submit Button soll volle Breite behalten */
.submit-button {
  width: 100%;
}

/* ---------- Galerie CTA ---------- */
.gallery-cta {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}

.cta-button.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cta-button.outline:hover {
  background: var(--primary);
  color: #1a1a1a;
}

/* ========================================= */
/* 6. FLOATING CTA BUTTON                    */
/* ========================================= */

.floating-cta {
  position: sticky;
  top: 20px;
  right: 20px;
  z-index: 9999;

  padding: 12px 20px;
  border-radius: 999px;

  background-color: rgba(230, 217, 162, 0.85);
  backdrop-filter: blur(6px);

  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* dezenter beim Scrollen */
.floating-cta.scrolled {
  opacity: 0.6;
}

/* Hover nur Desktop */
@media (hover: hover) {
  .floating-cta:hover {
    transform: translateY(-2px);
  }
}

/* ========================================= */
/* 7. CONTENT SECTIONS                       */
/* ========================================= */
/* ---------- About ---------- */
.about {
  padding: 80px 0;
  background: var(--bg-section);
  text-align: center;
}

/* ---------- Products ---------- */
.products {
  padding: 80px 0;
  background: var(--bg-main);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-item {
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  background: var(--bg-product-card);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.product-image {
  width: 100%;
  height: 220px;              /* Einheitliche Höhe */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}
/* Bildanpassung ohne Zuschneiden */
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;        /* ← KEIN Zuschneiden */
  transition: transform 0.4s ease;
}
/* Optionaler Hover-Effekt */
.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-name {
  font-size: 1.2rem;
  margin: 15px 0 10px;
  color: var(--text-product);
  font-weight: 500;
}

.product-item:hover .product-name {
  color: var(--primary);
}


/* ========================================= */
/* 8. ORDER / FORMULAR                       */
/* ========================================= */

/* Order Section */
.order-section {
  background: var(--bg-section);
  padding: 80px 0;
}

/* Formular Stil */
form {
  max-width: 600px;
  margin: auto;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 40px;
  border-radius: 10px;
}

/* Formular Gruppen */
.form-group {
  margin-bottom: 20px;
}

/* Labels */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  border-radius: 5px;
}

/* Placeholder Stil */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Radio Buttons Gruppe */
.radio-group {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

/* Einzelne Radio Option */
.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Radio Input Stil */
.radio-option input {
  accent-color: var(--primary);
  cursor: pointer;
}

/* dropdown Stil */
.order-form select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;

  border-radius: 10px;
  border: none;

  background-color: #2a241f;   /* dunkler Hintergrund */
  color: #b1b0aa;              /* helle Schrift */

  font-size: 0.95rem;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Custom Pfeil für Dropdown */
.order-form select {
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

/* ---------- Bildvorschau ---------- */
.image-preview {
  margin-top: 12px;
}
.image-preview img {
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: block;
}

/* Fehleranzeige bei Bild upload */
.upload-error {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #e07a7a;
}





/* ========================================= */
/* 9. FOOTER                                 */
/* ========================================= */
.footer {
  background: #060B1A;
  color: var(--text-muted);
  padding: 40px 0;
  text-align: center;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

/* ==============================
   10. About Page – Mondschein Stil
============================== */


.about.page {
  position: relative;
  overflow: hidden;
}

/* Hintergrundbild wie Hero-Layer */
.about.page::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("assets/about-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.15; /* fein & elegant */
  z-index: 0;
}

/* Inhalt über dem Hintergrund halten */
.about.page > .container {
  position: relative;
  z-index: 1;
}

.about.page {
  background: linear-gradient(
    to bottom,
    #1e1b18,
    #2a241f
  );
  color: #eee;
}

.about.page h1,
.about.page h2 {
  color: #f5e6c8;
}

.about.page p,
.about.page li {
  color: #ddd;
  line-height: 1.7;
}

.about.page section {
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.about.page ul {
  margin-left: 1.2em;
}

.about.page li {
  margin-bottom: 0.6em;
}

/* ==============================
   10b. Kostentabelle Page
============================== */

.cost-page {
  background: linear-gradient(
    to bottom,
    #1e1b18,
    #2a241f
  );
  color: #eee;
}

.cost-page h1,
.cost-page h2 {
  color: #f5e6c8;
}

.cost-page p {
  color: #ddd;
  line-height: 1.7;
}

.cost-table-wrapper {
  margin-top: 2rem;
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: rgba(255, 255, 255, 0.02);
}

.cost-table th,
.cost-table td {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.cost-table th {
  color: #f5e6c8;
  font-weight: 600;
  background: rgba(245, 230, 200, 0.08);
}

.cost-table td {
  color: #ddd;
}

.cost-note {
  margin-top: 1.5rem;
  color: #cfc7b8;
}



/* ========================================= */
/* 11. RECHTLICHE SEITEN                      */
/* Datenschutz & Impressum                  */
/* ========================================= */
.about.datenschutz p,
.about.impressum p {
  color: var(--text-muted);
}


.about.datenschutz h3,
.about.impressum h3 {
  color: var(--primary);
}


.about.datenschutz ul,
.about.impressum ul {
  margin: 0 0 1.5em 1.5em;
}

.about.datenschutz li,
.about.impressum li {
  margin-bottom: 0.5em;
}

/* ==============================
   12. Page Fade Transition
============================== */

.page-wrapper {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==============================
   13. Galerie Seite
============================== */

.gallery-page {
  background: linear-gradient(to bottom, #1e1b18, #2a241f);
  color: #eee;
}

.gallery h1 {
  color: #f5e6c8;
  text-align: center;
  margin-bottom: 10px;
}

.gallery-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------------- Gallery Masonry Layout---------------- */

.gallery-grid {
  column-count: 4;
  column-gap: 18px;
}

.gallery-grid img {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 16px;
  display: block;
  break-inside: avoid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effekt */
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 12px;
  }

  .gallery-grid img {
    margin-bottom: 12px;
  }
}


@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }

  .gallery-grid img {
    margin-bottom: 16px;
  }
}



/* ==============================
   GALLERY LIGHTBOX SYSTEM
============================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  pointer-events: all;
  opacity: 1;
}

.lightbox.hidden {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}

#lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.85);
  opacity: 0;
  transition: 
    transform 0.4s ease,
    opacity 0.4s ease;
}

/* Zoom-In Animation */
.lightbox.active #lightbox-img {
  transform: scale(1);
  opacity: 1;
}

/* Cursor Hint */
.gallery-grid img {
  cursor: zoom-in;
}

/* ==============================
   Lazy Loading Images
============================== */

.lazy-img {
  opacity: 0;
  transform: translateY(10px);
  transition: 
    opacity 0.6s ease,
    transform 0.6s ease;
}

.lazy-img.loaded {
  opacity: 1;
  transform: translateY(0);
}


/* --------------- Skeleton Placeholder ------------*/

.skeleton {
  width: 100%;
  height: 260px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    #2a241f 25%,
    #3a332c 37%,
    #2a241f 63%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  break-inside: avoid;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}




/* ========================================= */
/* 14. RESPONSIVE DESIGN (Auskommentiert 11. übernimmt */
/* ========================================= */
/*@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .about,
  .products,
  .order-section {
    padding: 50px 0;
  }
}

/* ========================================= */
/* 15. MOBILE OPTIMIERUNG – STARTSEITE           */
/* ========================================= */
@media (max-width: 768px) {

  /* ---------- Hero ---------- */
  .hero {
    height: 80vh; /* weniger Scrollen */
    padding: 40px 20px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero h1, 
  .hero h2,
  .about h1,
  .about h2 {
    letter-spacing: 0.3px;
  }

  .hero p {
    font-size: 1.1rem;
    margin: 15px 0 25px;
  }

  .hero p,
  .about p,
  .products p {
    line-height: 1.7;
  }

  /* ---------- Buttons ---------- */
  .cta-button {
    padding: 16px 28px;
    font-size: 1rem;
  }

  .floating-cta {
  top: 12px;
  right: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

  /* ---------- Galerie Button auf Startseite ---------- */
  .gallery-cta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    grid-column: 1 / -1; /* ERGÄNZUNG: Belegt alle Grid-Spalten */
    max-width: none !important;
}


  .cta-button.outline {
    padding: 14px 26px;
    font-size: 0.95rem;
  }

  /* ---------- Sections ---------- */
  .about,
  .products,
  .order-section {
    padding: 50px 0;
  }

  .about p {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* ---------- Products ---------- */
  .product-grid {
    gap: 20px;
  }

  .product-item {
    padding: 16px;
  }

  .product-name {
    font-size: 1.1rem;
  }

  .product-image {
    height: 170px;
  }

  /* ---------- Formular Seite ---------- */
  .order-form {
    padding: 25px;
    margin-top: 1.5em;
  }

  .order-form input,
  .order-form select,
  .order-form textarea {
    font-size: 1rem;
    padding: 14px;
  }

  .submit-button {
    padding: 16px;
    font-size: 1rem;
  }

  .order-form label {
    font-size: 0.95rem;
  }

/* ---------- Galerie Seite ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ 2 Spalten auf Mobile */
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;          /* größer & ruhiger */
  object-fit: cover;     /* füllt Kachel sauber */
  border-radius: 14px;
}

.gallery-intro {
  font-size: 1rem;
  padding: 0 10px;
  text-align: center;
}

}

/* ==============================
   16. Formular Seite
============================== */

.form-page {
  background: linear-gradient(
    to bottom,
    #1e1b18,
    #2a241f
  );
  color: #eee;
}

.form-page h1 {
  color: #f5e6c8;
}

.order-form {
  max-width: 500px;
  margin-top: 2em;
}

.order-form label {
  display: block;
  margin-bottom: 1.2em;
  font-weight: 500;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;

  border-radius: 8px;
  border: none;

  background-color: #2a241f;
  color: #fff;

  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 217, 162, 0.45);
}

.order-form .submit-button {
  margin-top: 1.5em;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #1a1a1a;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}
.order-form .submit-button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.order-form .submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================= */
/* 17. ANIMATIONEN UND EFFEKTE                */
/* ========================================= */
/* Sanftes Einblenden von Elementen */
/*.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
} */
