/* 
   L'Impastino  Index 2 Stylesheet (2026 Redesign)
   Standalone  alle Styles enthalten, kein style.css ntig
    */

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

/*  CSS CUSTOM PROPERTIES  */
:root {
  --cream:      #fdf6e3;
  --warm-white: #fff9f0;
  --lemon:      #f2c94c;
  --olive:      #5a7a2e;
  --olive-dark: #3d5420;
  --terra:      #c0392b;
  --terra-dark: #922b21;
  --sand:       #e8d5a3;
  --sand-dark:  #c9ae72;
  --brown:      #2c1a0e;
  --brown-mid:  #5c3317;
  --tile-blue:  #2471a3;
  --tile-red:   #c0392b;
  --sidebar-bg: rgba(255,249,240,0.92);
  --sidebar-w:  240px;
  --font-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-script:'Helvetica Neue', Helvetica, Arial, sans-serif;
  --red:        #c0392b;
  --red-bg:     #fdecea;
}

/*  BASE (index page only)  */
body.page-index {
  font-family: var(--font-sans);
  background: var(--brown);
  color: var(--brown);
  overflow-x: hidden;
  margin: 0;
}

/*  SHARED BUTTON STYLES  */
.btn {
  padding: 13px 28px;
  border: 2px solid #404132;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  background: var(--sand);
  color: var(--brown);
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  background: var(--olive);
  color: #e8f5d8;
  border-color: var(--olive-dark);
}
.btn-primary {
  background: var(--sand);
  color: var(--brown);
  border: 2px solid #404132;
}
.btn-primary:hover {
  background: var(--olive);
  color: #e8f5d8;
  border-color: var(--olive-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(253,246,227,0.6);
}
.btn-secondary:hover {
  background: rgba(253,246,227,0.12);
  color: var(--cream);
  border-color: var(--cream);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/*  LOGIN MODAL  */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--warm-white);
  border-radius: 16px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  position: relative;
  font-family: var(--font-sans);
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--brown-mid);
}
.modal-logo {
  text-align: center;
  margin-bottom: 20px;
}
.modal-logo img { height: 48px; width: auto; }
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--brown);
  text-align: center;
  margin-bottom: 22px;
}
.modal-field {
  margin-bottom: 14px;
}
.modal-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown-mid);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--sand);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--brown);
  outline: none;
  transition: border-color 0.2s;
}
.modal-field input:focus { border-color: var(--olive); }
.modal-submit {
  width: 100%;
  padding: 11px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.modal-submit:hover { background: var(--olive-dark); }
.modal-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--brown-mid);
  margin-top: 14px;
}
.modal-hint a { color: var(--olive); text-decoration: none; font-weight: 700; }
.modal-error {
  display: none;
  background: #fdecea;
  border: 1px solid #e74c3c;
  color: #c0392b;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/*  SCROLL REVEAL (progressive enhancement)  */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/*  FORM ELEMENTS  */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown-mid);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  background: #fffdf7;
  color: var(--brown);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(90,122,46,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/*  MINI CALENDAR  */
.mini-cal { font-size: 0.73rem; }
.mini-cal table { width: 100%; border-collapse: collapse; }
.mini-cal th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--olive-dark);
  padding: 5px 2px;
  text-align: center;
  font-size: 0.68rem;
}
.mini-cal td {
  text-align: center;
  padding: 4px 2px;
  color: var(--brown-mid);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.mini-cal td:hover { background: var(--sand); }
.mini-cal td.today {
  background: var(--olive);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}
.mini-cal td.empty { color: transparent; cursor: default; }
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cal-nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--olive);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.cal-nav button:hover { background: var(--sand); }
.cal-month {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown);
}

/*  MAP PLACEHOLDER  */
.map-placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(180deg, #d4e8c2 0%, #a8d4a0 50%, #7fbf7b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1.5px solid var(--sand-dark);
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0px, transparent 14px, rgba(255,255,255,0.25) 14px, rgba(255,255,255,0.25) 15px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 14px, rgba(255,255,255,0.25) 14px, rgba(255,255,255,0.25) 15px);
}
.map-pin {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  z-index: 1;
}

/*  SOCIAL ROW  */
.social-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.6rem;
}
.social-row a { color: var(--sand); text-decoration: none; transition: color 0.2s; }
.social-row a:hover { color: var(--lemon); }

/*  SIGNATURE PIZZA CARD  */
.pizza-img-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--cream);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  flex-shrink: 0;
}
.pizza-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.signature-card {
  background: rgba(255,249,240,0.96);
  border: 2px solid var(--sand-dark);
  border-radius: 14px;
  padding: 20px;
  flex: 1;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.sig-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 6px;
}
.sig-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
  line-height: 1.2;
}
.sig-ingredients {
  font-size: 0.78rem;
  color: var(--brown-mid);
  line-height: 1.55;
  margin-bottom: 12px;
}
.sig-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 12px;
}

/*  PIZZA SLIDER  */
.slider-wrap {
  position: relative;
  width: 100%;
  padding: 20px 0 30px;
  display: flex;
  align-items: center;
  gap: 0;
}
.slider-track {
  display: flex;
  gap: 16px;
  overflow: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 8px 0;
}
.slide-card {
  min-width: calc(50% - 8px);
  max-width: calc(50% - 8px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.slide-card:hover { transform: translateY(-4px); }
.slide-img {
  height: 140px;
  background: linear-gradient(135deg, #f5e6c8 0%, #e8d0a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.slide-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slider-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--olive);
  background: rgba(255,255,255,0.9);
  color: var(--olive-dark);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.slider-btn:hover { background: var(--olive); color: #fff; }
.slider-prev { margin-left: 8px; }
.slider-next { margin-right: 8px; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 16px;
}
.slider-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sand-dark);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dots span.active { background: var(--olive); transform: scale(1.3); }
