@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* ===== Farb- und Design-Token (aus public_y) ===== */
:root {
  /* Warme Palette */
  --primary: #9a3412;         /* Terrakotta-Braun */
  --primary-hover: #7c2d12;
  --secondary: #fcc419;       /* Sonnengelb */
  /*--bg-gradient: linear-gradient(135deg, #ff922b 0%, #ff6b6b 50%, #ee5253 100%);*/
  /*--bg-gradient: linear-gradient(135deg, #fffb2b 0%, #ff816b 50%, #ee8352f8 100%);*/
  --bg-gradient: linear-gradient(135deg, #e4e017 0%, #ff816b 50%, #f57d45c5 100%);
  /*--bg-gradient: linear-gradient(135deg, rgba(255, 177, 107, 0.95) 0%, rgba(255, 133, 133, 0.85) 50%, rgba(255, 107, 107, 0.85) 100%);*/
  --glass-bg: rgba(255, 252, 250, 0.96);

  --text-main: #495057;
  --text-muted: #868e96;

  --radius: 12px;             /* leicht reduziert, näher an old */
  --shadow-strong: 0 20px 60px rgba(0,0,0,0.30); /* aus old Level */
  --shadow-soft: 0 15px 35px rgba(238, 82, 83, 0.15); /* aus y */
}

/* ===== Reset (aus beiden konsolidiert) ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Body/Typografie: Struktur aus old, Farben aus y ===== */
body {
  font-family: 'Poppins', 'Trebuchet MS', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  /* Background gradient removed - now handled by gastro-header-gradient class */
  background: #f9f9f9;
  min-height: 100vh;
}

/* ===== Container/Layouts (aus old) ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== Container kompakter für Header-Bereich ===== */
.container-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header (Struktur aus prod_upload, warm) ===== */
header.public-header {
  text-align: center;
  color: #4a5568;
  padding: 2rem 0 1.25rem;
  background: linear-gradient(180deg, #fff8ea 0%, #fff7e5 100%);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

header.public-header::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -70px;
  height: 220px;
  background:
    radial-gradient(35% 65% at 15% 85%, rgba(252, 211, 77, 0.88) 0%, rgba(252, 211, 77, 0) 75%),
    radial-gradient(42% 72% at 40% 88%, rgba(251, 146, 60, 0.72) 0%, rgba(251, 146, 60, 0) 78%),
    radial-gradient(37% 62% at 70% 82%, rgba(245, 124, 69, 0.66) 0%, rgba(245, 124, 69, 0) 76%),
    radial-gradient(31% 56% at 88% 88%, rgba(238, 82, 83, 0.55) 0%, rgba(238, 82, 83, 0) 72%);
  pointer-events: none;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.header-logo { display: flex; justify-content: center; }
.header-logo img { max-width: 150px; height: auto; }

.header-company-logo { 
  display: flex; 
  justify-content: flex-start; 
  align-items: flex-start; 
  padding: 1rem 1rem 0 1rem;
  position: absolute;
  top: 0;
  left: 0;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

.header-text { display: flex; flex-direction: column; justify-content: center; }
.header-text h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: #7c2d12;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  letter-spacing: -0.5px;
  font-family: 'DM Serif Display', Georgia, serif;
}
.header-text p { margin: 0.5rem 0 0 0; font-size: 1.1rem; opacity: 0.95; color: #4a5568; }

/* Rechte Spalte: Admin-Link */
.header-admin-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.header-admin-link h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4a5568;
}

/* ===== Hero/Sections (Form & Spacing aus old, Glass/Shadow aus y) ===== */
.hero {
  background: var(--glass-bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-strong);
}
.hero h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: 'DM Serif Display', Georgia, serif;
}

.hero-marketing {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

/* Hero mit Hintergrundbild (gedeckter Tisch mit Kerzen) */
.hero-marketing {
  background:
    linear-gradient(115deg, rgba(255,248,235,0.78) 5%, rgba(255,243,224,0.60) 50%, rgba(254,235,200,0.40) 100%),
    var(--hero-bg, none) center/cover no-repeat;
}

.hero-marketing-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(255, 251, 235, 0.92);
  border: 1px solid #f6d59c;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-secondary-link {
  color: #8a3b12;
  font-weight: 600;
  text-decoration: none;
}

.hero-secondary-link:hover {
  text-decoration: underline;
}

/* ===== Feature Grid (aus old) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Feature Cards: Struktur aus old, Akzente aus y */
/* Note: Can be overridden by .gastro-box for new design */
.feature-card:not(.gastro-box) {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);      /* statt #667eea */
  border-bottom: 5px solid var(--secondary);  /* gelber Unterstrich aus y-Idee */
  transition: all 0.3s ease;
}
.feature-card h3 {
  color: #7c2d12;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.feature-card p {
  color: var(--text-main);
  line-height: 1.6;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ===== CTA (aus old, Farben aus y) ===== */
.cta { text-align: center; margin: 3rem 0 2rem; }
.cta-button,
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #fcd34d 0%, #fb923c 100%);
  color: #4a5568;
  padding: 1rem 3rem;
  font-size: 1.1rem; /* old */
  text-decoration: none;
  border: none;
  border-radius: 50px;
  font-weight: 700;  /* y */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.30);
  width: auto;
}

.btn-primary {
  width: 100%;
}
.btn-primary:hover,
.cta-button:hover {
  filter: saturate(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.40);
}
.btn-primary:active { transform: translateY(0); }

/* ===== Benefits (Struktur aus old, Icons/Farben aus y) ===== */
.benefits {
  background: linear-gradient(to right, #fffdfa, #fff4e8);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.benefits h3 {
  color: #8a3b12;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.benefits ul { list-style: none; padding: 0; }
.benefits li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-main);
}
.benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ===== Register Card (Mischung: Form aus old, Glass aus y) ===== */
.register-card {
  max-width: 700px;
  margin: 0 auto 2rem;
  background: var(--glass-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.4);
}
.register-card h1 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 2rem;
}
.subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== Formulare (Breiten/Struktur aus old, Fokus/Look aus y) ===== */
.form-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}
.form-section:last-of-type { border-bottom: none; }
.form-section h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #444;
}
label .required { color: #e74c3c; margin-left: 0.25rem; }
label .optional {
  color: #999;
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #fff9f4;           /* aus y */
  border: 2px solid #ffe8cc;     /* aus y */
  border-radius: 12px;           /* aus y */
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.2s;
  font-family: inherit;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}
textarea { resize: vertical; min-height: 64px; }

.help-text { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

.password-requirements {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.password-requirements ul {
  margin-top: 0.2rem;
  margin-left: 1rem;
}

/* Fehlerbox aus old, Farben leicht warm getunt */
.error {
  background: #fff1f1;
  border: 1px solid #ffd6d6;
  color: #c33;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.error ul { margin-left: 1.5rem; margin-top: 0.5rem; }

/* ===== Links/Navi (aus old, Farbe angepasst) ===== */
.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ===== Slug/Password Widgets (aus old, Farben feinjustiert) ===== */
.slug-preview {
  background: #fff9f4;
  padding: 0.75rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--primary);
}
.password-requirements {
  background: #fff9f4;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* ===== Footer/Admin-Link (aus old, Farben beibehalten/abgeleitet) ===== */
footer.public-footer {
  background: linear-gradient(180deg, #fff8ea 0%, #fff4e0 100%);
  color: #2f343a;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

footer.public-footer::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -85px;
  height: 240px;
  background:
    radial-gradient(38% 66% at 10% 85%, rgba(252, 211, 77, 0.84) 0%, rgba(252, 211, 77, 0) 74%),
    radial-gradient(38% 70% at 35% 90%, rgba(251, 146, 60, 0.75) 0%, rgba(251, 146, 60, 0) 78%),
    radial-gradient(42% 74% at 65% 86%, rgba(249, 115, 22, 0.67) 0%, rgba(249, 115, 22, 0) 80%),
    radial-gradient(28% 55% at 90% 90%, rgba(238, 82, 83, 0.55) 0%, rgba(238, 82, 83, 0) 72%);
  pointer-events: none;
}

footer {
  text-align: center;
  padding: 2rem 0;
  opacity: 0.9;
  font-size: 0.9rem;
}
.footer-links {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #2f343a;
}
.footer-links a {
  color: #2f343a;
  font-weight: 600;
  text-decoration: none;
  margin-right: 15px;
}
.footer-links a:last-child { margin-right: 0; }
.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.admin-link {
  position: static;
  display: inline-block;
  color: #4a5568;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid #4a5568;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.admin-link:hover {
  background: #4a5568;
  color: #fff7e3;
  border-color: #4a5568;
}

.section-headline p {
  color: #6b7280;
}

.app-slider {
  position: relative;
  border-radius: 14px;
  border: 1px solid #f3dfbd;
  background: #fffdf8;
  min-height: 220px;
  overflow: hidden;
}

.slider-track {
  position: relative;
  min-height: 220px;
}

.slide {
  display: none;
  margin: 0;
}

.slide.is-active {
  display: block;
  animation: fadeInSlide 0.5s ease;
}

.slide img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 10px auto;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: #a14414;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.slider-nav.prev {
  left: 0.85rem;
}

.slider-nav.next {
  right: 0.85rem;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.96);
}

.empty-slider-notice {
  background: #fff9ef;
  border: 1px dashed #e8c88f;
  color: #7c5a2b;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.pricing-wrap {
  background: linear-gradient(180deg, #fffefb 0%, #fff8ec 100%);
}

.pricing-intro {
  color: #6b7280;
  margin-top: -0.6rem;
  margin-bottom: 1.2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #f0dbc0;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.08);
}

.price-card h3 {
  margin-bottom: 0.3rem;
  color: #9a3412;
}

.price-tag {
  font-size: 1.15rem;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 0.2rem;
}

.yearly-note {
  font-size: 0.86rem;
  color: #6b7280;
  margin-bottom: 0.8rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
}

.price-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: 700;
}

.price-card.highlight {
  border-color: #f59e0b;
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.18);
}

.badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f59e0b;
  color: #fff;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
}

/* ===== Testimonials ===== */
.testimonials {
  background: linear-gradient(to right, #fffdfa, #fff4e8);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #f0dbc0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.testimonial-text {
  font-style: italic;
  color: #495057;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  quotes: "„" "“" "‚" "‘";
}

.testimonial-text::before {
  content: "„";
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4em;
  color: #d97706;
  margin-right: 0.2rem;
}

.testimonial-text::after {
  content: "“";
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.2em;
  color: #d97706;
  margin-left: 0.2rem;
}

.testimonial-author {
  border-top: 1px solid #f0e0ca;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.testimonial-author strong {
  display: block;
  color: #7c2d12;
  font-style: normal;
}

.testimonial-author span {
  display: block;
  font-size: 0.82rem;
}

.testimonial-placeholder {
  background: #fffbf5;
  border-style: dashed;
}

.testimonial-cta {
  display: inline-block;
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
}

.testimonial-cta:hover {
  text-decoration: underline;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Coming Soon Badge */
.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.3);
}

.benefits li.coming-soon {
  color: #9ca3af;
}

.benefits li.coming-soon .coming-soon-badge {
  vertical-align: baseline;
  margin-left: 0.3rem;
}

.pricing-grid .coming-soon-badge {
  font-size: 0.6rem;
  padding: 0.12rem 0.45rem;
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-logo,
  .header-text,
  .header-admin-link {
    justify-content: center;
    align-items: center;
  }

  .header-company-logo {
    position: static;
    justify-content: center;
    padding: 0;
    margin-bottom: 0.4rem;
  }

  .header-branding {
    flex-direction: column;
    gap: 0.6rem;
  }

  .header-admin-link {
    margin-top: 0.2rem;
  }

  .hero-marketing {
    min-height: 0;
    background-position: center right;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .cta-button {
    width: 100%;
    text-align: center;
  }

  .hero-secondary-link {
    text-align: center;
  }

  .slider-nav {
    width: 38px;
    height: 38px;
  }
}