/* =============================
   MenüMosaik – Professional Corporate Theme
   Mobile-first, flexbox-only layouts, brand-aware styling
   ============================= */

/* -----------------------------
   CSS Reset / Normalize
   ----------------------------- */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
main { display: block; }
h1 { font-size: 2rem; margin: 0.67em 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; text-decoration: none; }
abbr[title] { border-bottom: none; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
small { font-size: 80%; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }
legend { padding: 0; }
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="search"] { outline-offset: -2px; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; cursor: pointer; }

/* -----------------------------
   Design Tokens (CSS variables)
   ----------------------------- */
:root {
  /* Corporate palette */
  --corp-navy: #1F3A56; /* corporate header/nav color */
  --corp-blue: #2E5E8A; /* links, accents */
  --corp-blue-700: #254c70;
  --corp-blue-800: #1c3d59;
  --gray-25: #FAFBFC;
  --gray-50: #F5F7FA;
  --gray-100: #EDF1F5;
  --gray-200: #E3E8EF;
  --gray-300: #CDD6E1;
  --gray-400: #A7B3C2;
  --gray-600: #5B6B7C;
  --gray-800: #2C3A4A;
  --white: #FFFFFF;
  --black: #0A0D12;

  /* Brand */
  --brand-green: #0F5C4B; /* primary CTA */
  --brand-green-700: #0C4A3C;
  --brand-amber: #F3A712; /* secondary CTA */
  --brand-amber-700: #CF8D0C;
  --brand-accent: #F7FBF9;

  /* Shadows & radii */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(16, 30, 54, 0.12);
  --shadow-lg: 0 8px 24px rgba(16, 30, 54, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-med: 250ms ease;
  --transition-slow: 400ms ease;
}

/* -----------------------------
   Base Typography & Body
   ----------------------------- */
body {
  font-family: Verdana, Segoe UI, Arial, sans-serif; /* brand body */
  color: var(--gray-800);
  background: var(--gray-25);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif; /* brand display */
  color: var(--corp-navy);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; letter-spacing: 0.1px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p, li { font-size: 16px; }
small, .small { font-size: 14px; color: var(--gray-600); }

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

p { margin: 0 0 12px 0; }
ul, ol { margin: 0 0 16px 18px; padding: 0; }
ul li, ol li { margin: 6px 0; }

/* Links */
a { color: var(--corp-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-green); }
a:focus-visible { outline: 3px solid rgba(243,167,18,0.5); outline-offset: 2px; border-radius: 3px; }

/* -----------------------------
   Layout Containers (Flex Only)
   ----------------------------- */
.container {
  display: flex; /* flexbox only */
  flex-direction: column; /* mobile-first */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections spacing (element + mandatory .section class) */
section { margin-bottom: 60px; padding: 40px 0; background: transparent; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Content wrapper as structural unit */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Mandatory additional patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #F8FAFD; border: 1px solid var(--gray-200); border-left: 4px solid var(--corp-blue); border-radius: var(--radius-md); color: var(--gray-800); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* Prevent overlap with adequate spacing */
.content-wrapper > *:not(:last-child) { margin-bottom: 4px; }

/* -----------------------------
   Header & Navigation
   ----------------------------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 10px rgba(23, 32, 49, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header > .container {
  flex-direction: row; /* header horizontal on all sizes */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

header a img { height: 36px; width: auto; }

/* Desktop nav (hidden on mobile) */
nav { display: none; align-items: center; gap: 20px; }
nav a { color: var(--corp-navy); font-weight: 500; padding: 8px 4px; border-radius: 6px; }
nav a:hover { color: var(--corp-blue); background: var(--gray-50); }
nav a:focus-visible { outline: 3px solid rgba(46,94,138,0.4); }

.header-cta { display: none; align-items: center; gap: 12px; }

/* Mobile menu toggle visible on small screens */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--corp-navy);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.mobile-menu-toggle:hover { background: var(--gray-50); border-color: var(--gray-400); }
.mobile-menu-toggle:focus-visible { outline: 3px solid rgba(243,167,18,0.5); }

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 2000;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active, .mobile-menu.open, .mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 16px 8px 0;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--corp-navy);
  cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 8px 20px 24px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  color: var(--corp-blue);
  background: var(--gray-50);
  font-weight: 600;
}
.mobile-nav a:hover { background: var(--brand-accent); border-color: var(--gray-300); }

/* Prevent scrolling when menu is open (JS toggles class on body) */
body.menu-open { overflow: hidden; }

/* Desktop breakpoint */
@media (min-width: 992px) {
  nav { display: flex; }
  .header-cta { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------------
   Buttons & CTAs
   ----------------------------- */
.button {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--corp-blue);
  background: var(--white);
  color: var(--corp-blue);
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), transform var(--transition-fast), border-color var(--transition-med);
}
.button:hover { background: var(--gray-50); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 3px solid rgba(46,94,138,0.35); outline-offset: 2px; }

.button.primary {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--white);
}
.button.primary:hover { background: var(--brand-green-700); border-color: var(--brand-green-700); box-shadow: 0 6px 16px rgba(15,92,75,0.25); }

.button.secondary {
  background: var(--white);
  border-color: var(--brand-amber);
  color: var(--brand-amber-700);
}
.button.secondary:hover { background: #FFF8EA; border-color: var(--brand-amber-700); color: var(--brand-amber-700); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* -----------------------------
   Hero/Intro Tweaks
   ----------------------------- */
main section:first-of-type .content-wrapper {
  background: linear-gradient(0deg, var(--white), var(--white)) padding-box, linear-gradient(135deg, rgba(46,94,138,0.2), rgba(15,92,75,0.2)) border-box;
  border: 1px solid transparent;
}

/* -----------------------------
   Lists, Details & Summaries
   ----------------------------- */
details { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 12px 14px; background: var(--white); }
summary { color: var(--corp-navy); font-weight: 700; }
details[open] { box-shadow: var(--shadow-sm); }
details p { margin-top: 8px; }

/* -----------------------------
   Tables (kept as table semantics, styled)
   ----------------------------- */
table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; }
th { background: var(--gray-50); color: var(--corp-navy); font-weight: 700; border-bottom: 1px solid var(--gray-200); }
tr + tr td { border-top: 1px solid var(--gray-100); }
tr:hover td { background: #FAFDFF; }

/* -----------------------------
   Reusable UI Patterns
   ----------------------------- */
.trustmarks, .badges, .icon-list, .tags, .plan-selector, .plan-cards, .sample-menu-list, .footer-nav, .newsletter-signup, .social-links, .ratings-summary, .contact-details {
  display: flex; flex-wrap: wrap; gap: 16px;
}

.trustmarks img, .badges img { width: 40px; height: 40px; object-fit: contain; }

.tags { gap: 10px; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--gray-50); color: var(--corp-blue); border: 1px solid var(--gray-200); border-radius: 999px; font-size: 14px; font-weight: 600; }

.icon-list { gap: 12px; }
.icon-list > div, .icon-list > img { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--brand-accent); border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.icon-list img { width: 22px; height: 22px; }

.plan-selector .button { border-color: var(--gray-300); color: var(--corp-navy); background: var(--white); }
.plan-selector .button:hover { background: var(--gray-50); }

.plan-cards { gap: 20px; }
.plan-cards > div { flex: 1 1 260px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 18px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.plan-cards > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.sample-menu-list { gap: 20px; }
.sample-menu-list > div { flex: 1 1 260px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }

.ratings-summary { align-items: center; font-weight: 700; color: var(--corp-navy); }
.ratings-summary img { width: 22px; height: 22px; }

.contact-details { line-height: 1.8; align-items: flex-start; }
.contact-details img { width: 18px; height: 18px; margin-right: 6px; }

blockquote { margin: 0; font-style: italic; color: var(--gray-800); }
cite { font-style: normal; color: var(--gray-600); font-weight: 700; }

.guarantee { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--brand-accent); border: 1px solid var(--gray-200); border-radius: var(--radius-md); font-weight: 700; color: var(--brand-green); }
.guarantee img { width: 20px; height: 20px; }

/* -----------------------------
   Footer
   ----------------------------- */
footer { background: var(--corp-navy); color: var(--white); padding: 24px 0; margin-top: 40px; }
footer a { color: #C7D6EA; }
footer a:hover { color: var(--white); }

footer > .container { gap: 24px; }
.footer-nav { gap: 16px; }
.newsletter-signup { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); padding: 16px; }
.newsletter-signup p { margin: 0; color: #E6EDF6; }
.newsletter-signup input[type="email"] { flex: 1 1 auto; min-width: 220px; padding: 12px 12px; border-radius: 8px; border: 1px solid var(--gray-300); outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.newsletter-signup input[type="email"]:focus { border-color: var(--brand-amber); box-shadow: 0 0 0 3px rgba(243,167,18,0.25); }
.newsletter-signup .button { align-self: flex-start; }
.social-links img { width: 24px; height: 24px; filter: brightness(1.5) saturate(0.8); }

@media (min-width: 768px) {
  .newsletter-signup { flex-direction: row; align-items: center; }
}

/* -----------------------------
   Forms
   ----------------------------- */
input[type="email"], input[type="text"], input[type="tel"], textarea, select {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--gray-800);
}

/* -----------------------------
   Accessibility & Micro-interactions
   ----------------------------- */
::selection { background: rgba(46,94,138,0.2); }

/* Hover lift for cards */
.content-wrapper:hover { box-shadow: var(--shadow-md); transition: box-shadow var(--transition-fast); }

/* -----------------------------
   Responsive rules
   ----------------------------- */
@media (min-width: 992px) {
  .container { gap: 28px; }
  .content-wrapper { padding: 28px; }
  .cta-row { gap: 16px; }
}

/* -----------------------------
   Cookie Consent Banner & Modal
   ----------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .button { padding: 10px 14px; }
.cookie-banner .button.primary { background: var(--brand-green); border-color: var(--brand-green); }
.cookie-banner .button.secondary { border-color: var(--brand-amber); color: var(--brand-amber-700); }

/* Cookie preferences modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.55); display: none; z-index: 3500; }
.cookie-overlay.show { display: block; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96);
  display: flex; flex-direction: column; gap: 16px;
  width: min(680px, 92vw);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  z-index: 3600;
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}
.cookie-modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.cookie-modal .cookie-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-modal .cookie-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }

/* -----------------------------
   Page-specific niceties
   ----------------------------- */
/* Testimonials contrast (dark text on light bg ensured above) */
.testimonial-card blockquote { color: var(--gray-800); }
.testimonial-card cite { color: var(--gray-600); }

/* Social links layout */
.social-links { align-items: center; }
.social-links img { transition: transform var(--transition-fast), filter var(--transition-fast); }
.social-links img:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* FAQ spacing */
.content-wrapper details + details { margin-top: 8px; }

/* Contact links */
.contact-details a { color: var(--corp-blue); font-weight: 700; }

/* -----------------------------
   Utilities
   ----------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* -----------------------------
   Compliance with flex-only layout for containers
   (All custom layout groups above use display:flex; tables kept as semantic tables)
   ----------------------------- */

/* Ensure no overlaps by spacing sections from footer */
main { display: flex; flex-direction: column; gap: 24px; }

/* -----------------------------
   Print adjustments (simple)
   ----------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-overlay { display: none !important; }
  body { background: #fff; }
  .content-wrapper { box-shadow: none; border-color: #ddd; }
}
