/* ======================================================
   AmberKüche — Professional Corporate CSS (Flexbox-only)
   - Mobile-first, professional_corporate aesthetic
   - Blue/gray foundation with brand accents
   - No CSS Grid / Columns used anywhere
   ====================================================== */

/* ------------------------------
   CSS Reset & Normalize (lean)
   ------------------------------ */
* { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 12px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px 24px; padding: 0; }
a { background-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
img { border-style: none; display: block; max-width: 100%; height: auto; }
button { font: inherit; background: none; border: none; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }

/* ------------------------------
   Theme Tokens (with fallbacks)
   ------------------------------ */
:root {
  /* Corporate base (blue/gray) */
  --c-navy: #1E3A5F; /* primary UI */
  --c-blue: #2B4C7E;
  --c-bg: #F5F7FA;
  --c-surface: #FFFFFF;
  --c-muted: #E5EAF1;
  --c-border: #D1D7E0;
  --c-text: #1F2937; /* dark gray for readability */
  --c-subtext: #4B5563;
  --c-link: #1E3A5F;
  --c-link-hover: #16314A;
  --c-focus: #2563EB;

  /* Brand accents */
  --brand-brown: #5A3A1E; /* primary */
  --brand-green: #2F5D50; /* secondary */
  --brand-cream: #FAF5EE; /* accent surface */

  /* Feedback */
  --c-success: #2F5D50;
  --c-warning: #B45309;
  --c-danger: #B91C1C;

  /* Shadows & radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 6px 14px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 12px 24px rgba(16, 24, 40, 0.14);
}

/* ------------------------------
   Base Typography
   ------------------------------ */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif; /* brand display */
  color: var(--c-navy);
}

h1 { font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; color: var(--c-blue); }

p, li, address { font-size: 16px; color: var(--c-text); }
.small { font-size: 14px; color: var(--c-subtext); }

strong { color: var(--c-text); font-weight: 700; }

a { color: var(--c-link); transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
a:hover { color: var(--c-link-hover); text-decoration-color: var(--c-link-hover); }

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--c-surface);
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

main { display: flex; flex-direction: column; gap: 40px; }

/* Required spacing utilities (explicit class names) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.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: #F7FAFC; border: 1px solid #DFE7F1; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: #0F172A; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure minimum spacing between all sections */
section { display: flex; flex-direction: column; gap: 20px; padding: 0 0 0; }
section + section { margin-top: 20px; }

/* ------------------------------
   Header & Navigation
   ------------------------------ */
header { position: sticky; top: 0; z-index: 1000; background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: 0 1px 0 rgba(16,24,40,0.04); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 20px; }

.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 20px; }
.main-nav a { color: var(--c-text); text-decoration: none; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.main-nav a:hover { color: var(--c-navy); background: var(--c-bg); border-color: var(--c-border); }
.main-nav a:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* Mobile hamburger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}
.mobile-menu-toggle:hover { background: var(--c-bg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 360px;
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1100;
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
}
.mobile-menu.open, .mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--c-border);
  color: var(--c-navy);
  background: var(--c-bg);
}
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px; border-radius: 8px; text-decoration: none; color: var(--c-text); border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--c-bg); border-color: var(--c-border); }

/* ------------------------------
   Hero Sections
   ------------------------------ */
.hero { background: var(--brand-cream); border-bottom: 1px solid var(--c-border); }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero .content-wrapper { background: var(--c-surface); border-left: 4px solid var(--c-navy); }
.hero h1 { color: var(--c-navy); }
.hero p { color: var(--c-subtext); }

/* Optional CTA styling in hero — only style when p contains exactly links separated by space */
.hero .content-wrapper p a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; text-decoration: none; border: 1px solid var(--c-border); background: var(--c-surface); }
.hero .content-wrapper p a:hover { background: var(--c-bg); border-color: var(--c-navy); color: var(--c-navy); }
/* When two CTAs are adjacent, emphasize the first */
.hero .content-wrapper p a:first-child { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.hero .content-wrapper p a:first-child:hover { background: var(--c-blue); border-color: var(--c-blue); }

/* ------------------------------
   Text/Media Sections & Cards
   ------------------------------ */
.text-image-section > * { flex: 1 1 260px; min-width: 240px; }
.text-image-section img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); }

.card:hover, .testimonial-card:hover, .content-wrapper:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card, .testimonial-card, .content-wrapper { transition: transform 0.2s ease, box-shadow 0.2s ease; }

/* Links within content blocks */
.content-wrapper a { color: var(--c-navy); }
.content-wrapper a:hover { color: var(--c-link-hover); }

/* Lists spacing */
.content-wrapper ul, .content-wrapper ol { display: flex; flex-direction: column; gap: 8px; margin-left: 20px; }

/* Addresses */
address { font-style: normal; color: var(--c-text); }

/* ------------------------------
   Testimonials (high contrast)
   ------------------------------ */
.testimonial-card p { margin: 0; color: #0F172A; }
.testimonial-card strong { color: #0B1220; }

/* ------------------------------
   Footer
   ------------------------------ */
footer { background: #0F1B2D; color: #E5E7EB; border-top: 1px solid #0B1524; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { background: transparent; border: none; box-shadow: none; padding: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
footer nav a { color: #D1D5DB; text-decoration: none; padding: 6px 0; }
footer nav a:hover { color: #FFFFFF; text-decoration: underline; }
footer p, footer a { color: #D1D5DB; }

/* ------------------------------
   Buttons (utility classes, optional)
   ------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 10px 16px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-navy); text-decoration: none; box-shadow: var(--shadow-sm); transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { background: var(--c-bg); border-color: var(--c-navy); transform: translateY(-1px); }
.btn-primary { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.btn-primary:hover { background: var(--c-blue); border-color: var(--c-blue); }
.btn-secondary { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.btn-secondary:hover { filter: brightness(0.95); }
.btn-outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }

/* ------------------------------
   Cookie Consent (banner + modal)
   ------------------------------ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--brand-brown);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(120%);
  transition: transform 0.3s ease;
  z-index: 1200;
}
.cookie-banner.visible, .cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .cookie-actions .btn { flex: 1 1 auto; min-width: 140px; }

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 27, 45, 0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1300;
}
.cookie-modal-backdrop.open, .cookie-modal-backdrop.is-open { display: flex; }
.cookie-modal {
  width: min(700px, 92%);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-bg); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Example toggle style (if checkboxes are used) */
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle input[type="checkbox"] { appearance: none; width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--c-border); background: #E5E7EB; position: relative; transition: background-color .2s ease, border-color .2s ease; }
.toggle input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.toggle input[type="checkbox"]:checked { background: var(--brand-green); border-color: var(--brand-green); }
.toggle input[type="checkbox"]:checked::after { transform: translateX(20px); }

/* ------------------------------
   Utilities
   ------------------------------ */
.hr { width: 100%; height: 1px; background: var(--c-border); }
.muted { color: var(--c-subtext); }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--c-border); background: var(--brand-cream); color: var(--brand-brown); }

/* ------------------------------
   Page-specific refinements
   ------------------------------ */
/* Index: seasonal image trio spacing */
.hero + section .text-image-section img { background: #fff; }

/* Lists inside policy/legal pages */
main h3 + ul, main h3 + ol { margin-top: 6px; }

/* Links for downloads */
a[rel~="noopener"][target="_blank"] { padding-right: 0; }

/* ------------------------------
   Responsive (Mobile-first)
   ------------------------------ */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .content-wrapper { padding: 28px; }
}

@media (min-width: 768px) {
  /* Show desktop nav, hide burger */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Align text-media rows */
  .text-image-section { flex-direction: row; align-items: center; }

  /* Section rhythm */
  main { gap: 48px; }
  section .container { gap: 24px; }

  .hero .container { padding-top: 40px; padding-bottom: 40px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .container { padding-left: 24px; padding-right: 24px; }
  .content-wrapper { padding: 32px; }
}

/* ------------------------------
   Micro-interactions
   ------------------------------ */
nav a, .btn, .card, .testimonial-card, .content-wrapper { will-change: transform, box-shadow; }

/* ------------------------------
   Accessibility & Contrast tweaks
   ------------------------------ */
::selection { background: rgba(30, 58, 95, 0.18); }

/* ------------------------------
   Compliance: Flex-only layout proof
   (No display: grid / columns anywhere)
   ------------------------------ */
/* End of stylesheet */
