/* ========================================================
   RESET & NORMALIZE (Vintage_Retro Foundation)
======================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #fffbe7;
  color: #254060;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
  outline: none;
  border: none;
  background: none;
}

/* ================================================
   FONT IMPORTS (Vintage Inspired)
================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Sharp Mosaic Kulinarik Brand Palette – Retro tweaks */
  --primary: #254060;
  --secondary: #F6C145;
  --accent: #FFFFFF;
  --retro-green: #4F6D60;
  --retro-salmon: #F78D6C;
  --retro-brown: #92705B;
  --retro-beige: #FFFBE7;
  --retro-orange: #f4a259;
  --retro-shadow: rgba(37, 64, 96, 0.09);
  --heading-display: 'Montserrat', Helvetica, Arial, sans-serif;
  --body-text: 'Roboto', Arial, sans-serif;
  --vintage-pattern: repeating-linear-gradient(135deg, #F6C145 0 8px, #FFFBE7 8px 16px);
}

/* =============================================
   BASE TYPOGRAPHY
============================================= */
body {
  font-family: var(--body-text);
  font-size: 16px;
  background-color: var(--retro-beige);
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--primary);
  text-shadow: 2px 2px 0 #F6C145, 0 1px 12px var(--retro-shadow);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--retro-brown);
  text-shadow: 1px 1px 0 var(--retro-orange);
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--retro-green);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
}
ul {
  margin-left: 24px;
  padding-left: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}
ul li::before {
  content: '\25A0';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 0.95em;
  top: 2px;
}
strong, b {
  font-weight: 700;
}

/* =============================================
   CONTAINER & LAYOUT (FLEX ONLY!)
============================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Let section padding take care of vertical spacing */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 6px 28px var(--retro-shadow);
  border: 3px solid var(--secondary);
  position: relative;
}

/* Vintage border patterns for visual flavor */
.section:nth-child(even) {
  background: var(--retro-beige);
  border-color: var(--retro-orange);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 4px 16px var(--retro-shadow);
  border: 2.5px solid var(--retro-brown);
  padding: 32px 26px 28px;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.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: #fff8e9;
  border-left: 8px solid var(--secondary);
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--retro-shadow);
  position: relative;
  font-family: var(--body-text);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Ensure card spacing and no overlap */
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item {
  margin-top: 20px;
}

/* =============================================
   VINTAGE & RETRO EFFECTS
============================================= */
.section {
  background:
    var(--vintage-pattern),
    var(--accent);
  background-blend-mode: lighten;
}
.section:nth-child(even) {
  background:
    repeating-linear-gradient(45deg, #FFFBE7 0 16px, #FAECD8 16px 32px),
    var(--retro-beige);
}

hr {
  border: none;
  border-top: 2px dashed var(--retro-brown);
  margin: 32px 0;
}

/* =============================================
   HEADER & NAVIGATION
============================================= */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 64, 96, 0.12);
  border-bottom: 5px solid var(--secondary);
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 70px;
}
.logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(1px 2px 0 var(--secondary));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--heading-display);
  font-size: 1.1rem;
}
.main-nav a {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 5px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--heading-display);
  font-weight: 700;
  padding: 12px 32px;
  font-size: 1rem;
  border-radius: 39px;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
  box-shadow: 0 3px 8px rgba(76,72,60, 0.11);
  margin-left: 16px;
  cursor: pointer;
  border: none;
  outline: none;
}
.button-primary {
  background: var(--secondary);
  color: var(--primary);
  border: 2.5px solid var(--primary);
  text-shadow: 1px 1px 0 #FFFBE7;
}
.button-primary:hover, .button-primary:focus {
  background: var(--retro-orange);
  color: #fffbe7;
  box-shadow: 0 5px 14px var(--retro-shadow);
}
.button-secondary {
  background: var(--primary);
  color: var(--secondary);
  border: 2.5px solid var(--secondary);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--retro-salmon);
  color: var(--accent);
  border-color: var(--primary);
}

/* Hamburger menu toggle (mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.2rem;
  border-radius: 50%;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 3px 8px rgba(246,193,69,0.12);
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-orange);
}

/* ===========================================
   HERO SECTION
=========================================== */
.hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 70%, #f8b65a 13%, #fffbe7 100%),
    var(--vintage-pattern),
    var(--retro-beige);
  border-bottom: 5px solid var(--secondary);
}
.hero .container {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 44px 20px 60px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
}
.hero p {
  color: var(--retro-brown);
  margin-bottom: 28px;
  font-size: 1.2rem;
  text-shadow: 1px 1px 0 #FFFBE7;
}
.hero .button-primary {
  font-size: 1.18rem;
  padding: 13px 36px;
  margin-left: 0;
  margin-top: 10px;
}

/* ===========================================
   FOOTER
=========================================== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 32px 0 0;
  border-top: 5px solid var(--secondary);
}
.footer-logo img {
  height: 44px;
  filter: drop-shadow(1px 2px 0 var(--secondary));
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 0;
}
.footer-nav {
  display: flex;
  gap: 18px;
  font-family: var(--heading-display);
}
.footer-nav a {
  color: var(--secondary);
  text-decoration: underline dotted;
  transition: color 0.14s;
  font-size: 1.04rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
footer p {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 18px;
  letter-spacing: 0.01em;
}

/* =======================================
   TESTIMONIALS
========================================= */
.testimonial-card {
  background: var(--accent);
  color: var(--primary);
  border-left: 8px solid var(--secondary);
  font-style: italic;
  font-size: 1.08rem;
  position: relative;
}
.testimonial-card p {
  color: var(--primary);
  margin-bottom: 4px;
  font-style: normal;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-family: var(--body-text);
  font-size: 1rem;
  font-weight: 700;
  margin-left: 12px;
  font-style: normal;
}

/* =======================================
   RESPONSIVE LAYOUTS (Mobile First)
========================================= */
@media (max-width: 1140px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
  header .container, footer .container {
    padding: 0 12px;
  }
}
@media (max-width: 980px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .section {
    padding: 24px 10px;
    margin-bottom: 32px;
    border-radius: 11px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    font-size: 0.96rem;
  }
  footer .container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
  }
}

/* FLEX DIRECTION SWITCH FOR TEXT-IMAGE/CONTENT SECTIONS */
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .footer-nav {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start;
  }
}

/* Hide Hamburger on Desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ===============================================
   MOBILE BURGER MENU (SLIDE PANEL)
================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,64,96,0.92);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.8,0,.15,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 4px 0 20px rgba(37, 64, 96,0.18);
}
.mobile-menu-close {
  margin: 18px 0 28px 12px;
  align-self: flex-start;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 50%;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  z-index: 321;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0 36px;
}
.mobile-nav a {
  display: inline-block;
  font-family: var(--heading-display);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.18rem;
  padding: 13px 0;
  border-radius: 4px;
  transition: background 0.17s, color 0.14s;
  outline: none;
  margin-left: -8px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Accessibility & scroll lock for .mobile-menu (Class should be toggled by JS) */
body.menu-open {
  overflow: hidden;
}

/* =============================================
   MICRO-INTERACTIONS & TRANSITIONS
============================================= */
a, .button-primary, .button-secondary, .mobile-nav a, .main-nav a {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, outline 0.18s;
}
.section, .card, .testimonial-card {
  transition: box-shadow 0.19s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 9px 30px rgba(37,64,96,0.14), 0 1.5px 4px #FFF5d9;
  border-color: var(--retro-orange);
  z-index: 2;
}

/* =========================================
   FORM ELEMENTS (for Kontakt page if added)
========================================= */
input, textarea, select {
  border: 2px solid var(--retro-brown);
  border-radius: 7px;
  background: #fffefa;
  font-family: var(--body-text);
  padding: 10px 14px;
  font-size: 1rem;
  color: #3d2f1a;
  transition: border 0.18s;
  margin-bottom: 17px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

label {
  display: block;
  font-family: var(--heading-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--primary);
}

/* ==========================================
   ACCESSIBLE FOCUS RING
========================================== */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ==========================================
   COOKIE CONSENT BANNER
========================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--secondary);
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(37,64,96,0.19);
  padding: 22px 16px 28px;
  font-family: var(--body-text);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.34s, transform 0.24s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1.06rem;
  line-height: 1.5;
  font-weight: 500;
  margin-right: 28px;
  color: var(--secondary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .button-primary, .cookie-banner .button-secondary {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 30px;
  font-family: var(--heading-display);
  font-weight: 700;
  border: 2px solid var(--secondary);
  background: var(--accent);
  color: var(--primary);
  transition: background 0.14s, color 0.14s, border 0.15s;
  cursor: pointer;
}
.cookie-banner .button-secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .button-primary:hover,
.cookie-banner .button-secondary:hover {
  background: var(--retro-orange);
  color: var(--accent);
  border-color: var(--primary);
}

/* Cookie settings modal popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-55%) scale(1);
  background: var(--accent);
  border: 4px solid var(--secondary);
  border-radius: 18px;
  max-width: 390px;
  width: 90vw;
  z-index: 10001;
  padding: 24px 20px 32px 24px;
  box-shadow: 0 9px 40px rgba(37,64,96,0.19);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.23s, transform 0.19s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-40%) scale(0.95);
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.34rem;
  margin-bottom: 5px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 2px;
}
.cookie-modal label {
  color: var(--primary);
  font-family: var(--body-text);
  font-size: 1.08rem;
  font-weight: 500;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .button-primary, .cookie-modal .button-secondary {
  font-size: 1rem;
}

/* Cookie modal close button */
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 3px 12px;
  cursor: pointer;
  border: none;
  z-index: 10002;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--retro-orange);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37,64,96,0.46);
  z-index: 10000;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* Ensure mobile banner modal proper stacking and scroll */
body.cookie-modal-open {
  overflow: hidden;
}

/* ===============================
   ACCESSIBILITY
=============================== */
[tabindex="0"]:focus, button:focus, a:focus {
  outline: 2.5px dashed var(--retro-orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #FFFBE7;
}

/* ===============================
   RETRO ELEMENTS & SPECIAL CLASSES
=============================== */
.vintage-shadow {
  box-shadow: 0 8px 34px -8px var(--retro-shadow), 0 1.5px 5px #FFC;
}
.pattern-bg {
  background: var(--vintage-pattern);
}
.rounded-rect {
  border-radius: 16px;
}

/* ===============================
   PRINT STYLES
=============================== */
@media print {
  header, footer, nav, .button-primary, .button-secondary, .mobile-menu, .cookie-banner { display: none !important; }
}
