/* ========================================
   Marzipanfabrik GmbH – Styles
   ======================================== */

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

:root {
  --color-brown-dark: #3C1A0B;
  --color-brown: #5D3A1A;
  --color-brown-mid: #7A4E2D;
  --color-brown-light: #8B7355;
  --color-tan: #B8956A;
  --color-gold: #D4A056;
  --color-gold-light: #DEB887;
  --color-cream: #FFFDF8;
  --color-cream-warm: #FFF8F0;
  --color-white: #ffffff;
  --color-text: #3C1A0B;
  --color-text-muted: #8B7355;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 72px;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(60, 26, 11, 0.08);
  --shadow-hover: 0 4px 20px rgba(60, 26, 11, 0.14);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #F5EDE3;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-brown);
  margin-bottom: 0.25rem;
}

.section-title.center,
.section-header.center {
  text-align: center;
}

.section-subtitle {
  color: var(--color-tan);
  font-size: 0.85rem;
}

.page-top {
  padding-bottom: 0.5rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-brown);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--color-tan);
  font-size: 0.9rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-mid) 100%);
  color: var(--color-gold-light);
  box-shadow: 0 4px 15px rgba(93, 58, 26, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 58, 26, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-brown);
  border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-full {
  width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--color-brown-dark) 0%, var(--color-brown) 60%, var(--color-brown-mid) 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: transform var(--transition);
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.5px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-gold-light);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFD700;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold-light);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.25rem;
  border-top: 0px solid transparent;
}

.nav-mobile.open {
  max-height: 300px;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-mobile {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-gold-light);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFD700;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: linear-gradient(180deg, var(--color-cream-warm) 0%, var(--color-cream) 100%);
  padding: 0.25rem 1.25rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 160, 86, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(212, 160, 86, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 0.25rem;
  display: block;
}

@media (min-width: 640px) {
  .hero-logo {
    width: 280px;
  }
}

@media (min-width: 960px) {
  .hero-logo {
    width: 320px;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-brown);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero-text {
  color: var(--color-brown-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-visual {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  color: var(--color-brown);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(212, 160, 86, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #EDE5DA;
  transition: all var(--transition);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card.expanded {
  border-color: var(--product-color, #EDE5DA);
  border-width: 2px;
  box-shadow: var(--shadow-hover);
}

.product-card-header {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-card-left {
  flex: 1;
  min-width: 0;
}

.product-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.product-icon {
  font-size: 1.25rem;
}

.product-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.3px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.product-desc {
  color: var(--color-brown-light);
  font-size: 0.8rem;
  line-height: 1.4;
}

.product-card-right {
  text-align: right;
  flex-shrink: 0;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
}

.product-weight {
  color: #aaa;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.product-toggle {
  color: #ccc;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  transition: transform var(--transition);
}

.product-card.expanded .product-toggle {
  transform: rotate(180deg);
}

/* Product Details (expandable) */
.product-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.product-details-inner {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card.expanded .product-details {
  max-height: 400px;
}

.product-details-label {
  font-weight: 600;
  color: var(--color-brown);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0.75rem 0 0.5rem;
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ingredient-tag {
  background: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  color: var(--color-brown);
}

.nutrition-box {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-brown-light);
  line-height: 1.7;
}

.nutrition-box strong {
  color: var(--color-brown);
}

/* ========================================
   ALLERGEN SECTION
   ======================================== */
.allergen-section {
  padding-top: 0;
  margin-top: 0.75rem;
}

#home-products {
  padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .allergen-section {
    margin-top: -1.5rem;
  }
}

.allergen-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #FFF5E6;
  border-radius: var(--radius);
  border-left: 4px solid #E8A317;
}

.allergen-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.allergen-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-brown);
}

.allergen-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ========================================
   USP SECTION
   ======================================== */
.usp-section {
  background: var(--color-cream-warm);
  border-radius: var(--radius);
  margin: 0 auto;
  padding: 2rem 1rem;
  max-width: calc(var(--max-width) - 2.5rem);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.usp-icon {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.usp-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-brown);
  margin-bottom: 0.15rem;
}

.usp-text {
  color: var(--color-tan);
  font-size: 0.8rem;
}

/* ========================================
   INFO SECTION
   ======================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.info-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-brown);
  margin-bottom: 0.4rem;
}

.info-card-text {
  color: var(--color-brown-light);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-timeline {
  position: relative;
  padding-left: 2rem;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 13px;
  height: 13px;
  background: var(--color-gold);
  border-radius: 50%;
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-gold);
  transform: translateX(-5px);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-brown);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  color: var(--color-brown-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Values */
.about-values {
  margin-top: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-brown);
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--color-brown-light);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ========================================
   KONTAKT PAGE
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-brown);
  margin-bottom: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-detail div {
  font-size: 0.9rem;
  color: var(--color-brown-light);
  line-height: 1.6;
}

.contact-detail strong {
  color: var(--color-brown);
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-brown);
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-brown);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #E0D5C8;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 86, 0.15);
}

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

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: #F0FFF4;
  border-radius: var(--radius-sm);
  color: #2E8B57;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid #B7E4C7;
}

.form-success.show {
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--color-brown-dark) 0%, #2A1008 100%);
  color: var(--color-gold-light);
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 0.5rem;
  opacity: 0.9;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-tan);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--color-tan);
  font-size: 0.8rem;
  line-height: 1.8;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(184, 149, 106, 0.6);
  font-size: 0.7rem;
  line-height: 1.6;
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page.page-active {
  display: block;
  opacity: 1;
}

/* ========================================
   RESPONSIVE - MOBILE (simplified view)
   ======================================== */
@media (max-width: 639px) {
  .hero-actions .btn-secondary {
    display: none;
  }

  .info-section {
    display: none;
  }

  .footer-links {
    display: none;
  }

  .footer {
    padding: 1.5rem 1.25rem 1rem;
  }

  .hero-logo {
    width: 160px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-text {
    font-size: 0.85rem;
  }

  .contact-grid {
    gap: 1.25rem;
  }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (min-width: 640px) {
  .section {
    padding: 3rem 2rem;
  }

  .hero {
    padding: 0.25rem 2rem 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .usp-section {
    margin: 0 auto;
    max-width: calc(var(--max-width) - 4rem);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */
@media (min-width: 960px) {
  :root {
    --header-height: 80px;
  }

  .nav-desktop {
    display: flex;
  }

  .burger {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .hero {
    padding: 0.5rem 2rem 1.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-text {
    font-size: 1.15rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ========================================
   SCROLL ANIMATION
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
