/* ============================================
   gastrosicher.de — Stylesheet
   Brand: Gastronomie-Versicherungsportal
   Palette: Warm Red + Amber + Purple Accent
   Font: Inter (Headings + Body)
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-light: rgba(225, 29, 72, 0.08);
  --secondary: #f59e0b;
  --secondary-hover: #d97706;
  --accent: #8b5cf6;
  --bg-dark: #1a1a2e;
  --bg-footer: #141425;
  --bg-white: #ffffff;
  --bg-light: #fff7ed;
  --text: #374151;
  --text-heading: #1a1a2e;
  --text-light: #6B7280;
  --text-dark: #1a1a2e;
  --border: #E5E7EB;
  --success: #22c55e;
  --error: #ef4444;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --content-width: 1200px;
  --section-padding: 64px;
  --radius: 8px;
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg-white); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2.6rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; font-weight: 700; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; font-weight: 600; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* === LAYOUT === */
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.section { padding: var(--section-padding) 0; }
.section--alt { background: var(--bg-light); }
.section--dark { background: var(--bg-dark); color: #ffffff; }
.section--dark h2, .section--dark h3 { color: #ffffff; }

/* === HEADER / NAVIGATION === */
.header { background: var(--bg-dark); padding: 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(225, 29, 72, 0.15); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo { display: flex; align-items: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.header__logo:hover { text-decoration: none; }
.logo__gastro { color: var(--primary); }
.logo__sicher { color: #ffffff; }
.logo--light .logo__sicher { color: var(--text-heading); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; list-style: none; gap: 4px; padding: 0; margin: 0; align-items: center; }
.nav__link { color: #ffffff; font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius); transition: background 0.2s, color 0.2s; white-space: nowrap; text-decoration: none; }
.nav__link:hover { background: rgba(255,255,255,0.1); color: #ffffff; text-decoration: none; }
.nav__link--active { color: var(--primary); }
.nav__cta { background: var(--primary); color: #ffffff !important; padding: 10px 20px; border-radius: var(--radius); font-weight: 700; font-size: 14px; font-family: var(--font-body); margin-left: 8px; transition: background 0.2s; text-decoration: none; }
.nav__cta:hover { background: var(--primary-hover); text-decoration: none; }

/* === DROPDOWN NAVIGATION === */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger { color: #ffffff; font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius); transition: background 0.2s, color 0.2s; white-space: nowrap; cursor: pointer; background: none; border: none; display: flex; align-items: center; gap: 4px; }
.nav__dropdown-trigger::after { content: '\25BE'; font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s; }
.nav__dropdown:hover .nav__dropdown-trigger, .nav__dropdown-trigger:hover { background: rgba(255,255,255,0.1); color: #ffffff; }
.nav__dropdown-panel { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #ffffff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,0.15); padding: 24px; min-width: 280px; z-index: 200; border: 1px solid var(--border); }
.nav__dropdown:hover .nav__dropdown-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.nav__dropdown-column { min-width: 180px; }
.nav__dropdown-heading { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.nav__dropdown-link { display: block; padding: 6px 0; color: var(--text); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; text-decoration: none; }
.nav__dropdown-link:hover { color: var(--primary); text-decoration: none; }
.nav__dropdown-footer { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.nav__dropdown-footer a { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

/* Mobile menu toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #ffffff; margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }

/* === HERO SECTION === */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 50%, #1a1a2e 100%); color: #ffffff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(225,29,72,0.1) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%); border-radius: 50%; }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero__image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.hero h1 { color: #ffffff; font-size: 2.6rem; max-width: 700px; }
.hero__subtitle { font-size: 1.05rem; line-height: 1.6; max-width: 600px; margin-bottom: 1.5rem; color: rgba(255,255,255,0.85); }
.hero__bullets { list-style: none; padding: 0; margin: 0 0 2rem; }
.hero__bullets li { font-size: 1rem; margin-bottom: 0.5rem; padding-left: 1.6em; position: relative; color: rgba(255,255,255,0.9); }
.hero__bullets li::before { content: '\2713'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }
.hero__trust { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.hero__trust strong { color: var(--secondary); }

/* === BUTTONS === */
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 16px; font-family: var(--font-body); text-align: center; cursor: pointer; border: none; transition: background 0.2s, transform 0.1s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #ffffff; }
.btn--primary:hover { background: var(--primary-hover); color: #ffffff; }
.btn--secondary { background: var(--secondary); color: #ffffff; }
.btn--secondary:hover { background: var(--secondary-hover); color: #ffffff; }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #ffffff; }
.btn--white { background: #ffffff; color: var(--bg-dark); }
.btn--white:hover { background: #f0f0f0; color: var(--bg-dark); }
.btn--large, .btn--lg { padding: 16px 40px; font-size: 18px; }

/* === CARDS === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(225, 29, 72, 0.1); transform: translateY(-2px); }
.card__icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }
.card--highlight { border-left: 4px solid var(--primary); }
.card__price { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin: 0.8rem 0; }

/* === GRID HELPERS === */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* === TABLES === */
.table-wrapper, .table-responsive { overflow-x: auto; margin: 1.5rem 0; }
table, .table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
thead { background: var(--bg-light); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 700; color: var(--text-heading); white-space: nowrap; }
tbody tr:hover { background: rgba(225, 29, 72, 0.04); }

/* === STEPS === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { text-align: center; padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--primary); color: #ffffff; border-radius: 50%; font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.5rem; }

/* === FAQ / ACCORDION === */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--text-heading); background: none; border: none; width: 100%; text-align: left; font-family: var(--font-body); }
.faq-question::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--primary); transition: transform 0.2s; flex-shrink: 0; margin-left: 16px; }
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 20px; }
.faq-answer p { color: var(--text); line-height: 1.7; }

/* === TESTIMONIALS === */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.testimonial__stars { color: var(--secondary); font-size: 1.1rem; margin-bottom: 0.8rem; }
.testimonial blockquote { font-style: italic; margin-bottom: 1rem; line-height: 1.6; }
.testimonial__author { font-size: 0.85rem; color: var(--text-dark); }

/* === RECHNER === */
.rechner-section { width: 100%; max-width: 100%; padding: 0; margin: 0; }
.rechner-section #ensurance_view_root { width: 100%; min-height: 600px; }

/* === CTA BANNER === */
.cta-banner, .cta-section { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 100%); color: #ffffff; text-align: center; padding: 56px 24px; }
.cta-banner h2, .cta-section h2 { color: #ffffff; margin-bottom: 0.8rem; }
.cta-banner p, .cta-section p { max-width: 600px; margin: 0 auto 1.5rem; opacity: 0.9; }

/* === BREADCRUMB === */
.breadcrumb { padding: 16px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }
.section .breadcrumb { color: var(--text); padding: 0 0 16px; }
.section .breadcrumb a { color: var(--text); }
.section .breadcrumb a:hover { color: var(--primary); }

/* === ARTICLE CONTENT === */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article h2:first-of-type { border-top: none; padding-top: 0; }
.article h3 { margin-top: 1.5rem; }
.article ul, .article ol { margin-bottom: 1rem; }
.article li { margin-bottom: 0.4rem; }
.article blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 1.5rem 0; background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0; }

/* Key facts box */
.key-facts { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 24px 28px; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.key-facts h3 { margin-top: 0; }
.key-facts ul { margin-bottom: 0; }

/* Tip box */
.tip-box { background: rgba(34, 197, 94, 0.08); border-left: 4px solid var(--success); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.tip-box strong { color: var(--text-heading); }

/* Warning box */
.warning-box { background: rgba(239, 68, 68, 0.06); border-left: 4px solid var(--error); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }

/* Table of Contents */
.toc { background: var(--bg-light); padding: 24px 28px; border-radius: var(--radius); margin: 1.5rem 0 2rem; }
.toc h3 { margin-top: 0; font-size: 1rem; }
.toc ol { margin-bottom: 0; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: var(--text); font-size: 0.95rem; }
.toc a:hover { color: var(--primary); }

/* Related Links */
.related-links { background: var(--bg-light); border-radius: var(--radius); padding: 24px 28px; margin: 2rem 0; }
.related-links h3 { margin-top: 0; font-size: 1rem; color: var(--text-heading); }
.related-links ul { list-style: none; padding: 0; margin: 0; }
.related-links li { margin-bottom: 0.4rem; }
.related-links a { font-size: 0.95rem; }

/* === CUISINE CARDS === */
.cuisine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cuisine-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: var(--text); display: block; }
.cuisine-card:hover { box-shadow: 0 8px 30px rgba(225,29,72,0.1); transform: translateY(-3px); text-decoration: none; color: var(--text); }
.cuisine-card__emoji { font-size: 2.5rem; margin-bottom: 0.8rem; }
.cuisine-card__name { font-size: 1.15rem; font-weight: 700; color: var(--text-heading); margin-bottom: 0.3rem; }
.cuisine-card__desc { font-size: 0.85rem; color: var(--text-light); }

/* === FOOTER === */
.footer { background: var(--bg-footer); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 32px; margin-bottom: 40px; }
.footer__brand { padding-right: 16px; }
.footer__brand .header__logo { font-size: 1.3rem; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.85rem; line-height: 1.6; }
.footer h4 { color: #ffffff; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer__links a:hover { color: #ffffff; text-decoration: none; }
.footer__contact a { color: var(--primary); }
.footer__contact .btn { color: #ffffff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; text-align: center; }

/* === TRUST BAR === */
.trust-bar { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; padding: 24px 0; }
.trust-bar__item { text-align: center; }
.trust-bar__stars { font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 4px; color: var(--secondary); }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.lead { font-size: 1.1rem; line-height: 1.7; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-padding: 40px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero__image { display: none; }
  .nav__list { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-dark); flex-direction: column; padding: 16px 24px; gap: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
  .nav__list.active { display: flex; }
  .nav__link, .nav__dropdown-trigger { padding: 12px 0; display: block; width: 100%; text-align: left; }
  .nav__cta { margin-left: 0; margin-top: 8px; display: inline-block; }
  .nav__toggle { display: block; }
  .nav__dropdown-panel { position: static; transform: none; box-shadow: none; border: none; background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 8px 16px; margin-bottom: 8px; }
  .nav__dropdown:hover .nav__dropdown-panel { display: none; }
  .nav__dropdown.active .nav__dropdown-panel { display: block; }
  .nav__dropdown-link { color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 6px 0; }
  .nav__dropdown-heading { color: rgba(255,255,255,0.5); border-bottom-color: rgba(255,255,255,0.1); }
  .nav__dropdown-footer { border-top-color: rgba(255,255,255,0.1); }
  .nav__dropdown-footer a { color: var(--primary); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  th, td { padding: 8px 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
  .btn--large, .btn--lg { padding: 14px 28px; font-size: 16px; }
  .trust-bar { flex-direction: column; gap: 16px; }
}

@media (min-width: 992px) {
  .hero__grid { grid-template-columns: 55fr 45fr; gap: 3rem; }
}
