/* ---------- CSS RESET & BASE TYPOGRAPHY ---------- */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #282C34;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #8B1D29;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #282C34;
  outline: none;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: 600;
}

/* ------------ BRAND COLORS & FONTS (Fallbacks) ------------- */
:root {
  --primary: #8B1D29;
  --secondary: #282C34;
  --accent: #FFD99B;
  --gray-border: #EEEAE6;
  --gray-background: #FCFCFC;
  --shadow: 0 2px 24px rgba(139,29,41,0.05);
  --radius: 12px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/*--------------- LAYOUT HELPERS ---------------*/
.container {
  width: 100%;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
/* Section spacing (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/*---------------- TYPOGRAPHY SCALE -----------------*/
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.18;
  color: var(--secondary);
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary);
}
h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
}
p, li, blockquote {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 14px;
}
blockquote {
  font-family: var(--font-body);
  font-style: italic;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
  color: var(--secondary);
  margin-bottom: 18px;
}

.text-section {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------ HEADER & NAVIGATION ------------ */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(40,44,52,0.03);
  position: sticky;
  top: 0;
  z-index: 1005;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img[alt="Kulinarische Spuren"] {
  height: 2.1rem;
}
/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 0;
  color: var(--secondary);
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a.cta-primary {
  color: #fff;
  background: var(--primary);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(139,29,41,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: var(--accent);
  color: var(--primary);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  outline: none;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  padding: 4px 10px;
  cursor: pointer;
  z-index: 1030;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 1100;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  padding-left: 0;
  box-shadow: 0 8px 48px rgba(40,44,52,0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.65,0,.35,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: mobile-slide-in 0.4s cubic-bezier(.65,0,.35,1);
}
@keyframes mobile-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1120;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 50px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--secondary);
  padding: 10px 0;
  border-radius: 6px;
  min-width: 200px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* HIDE NAV ON MOBILE */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width:1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ------------ HERO & MAJOR CTAs ------------ */
.hero {
  background: var(--gray-background);
  padding: 60px 0;
  margin-bottom: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  max-width: 600px;
  font-size: 1.12rem;
  color: var(--secondary);
}
.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139, 29, 41, 0.08);
  margin-top: 8px;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(139, 29, 41, 0.14);
}

/*------------- FLEX LAYOUT PATTERNS -------------*/
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  transition: box-shadow 0.22s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 24px rgba(139,29,41,0.14);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(40,44,52,0.07);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  min-width: 220px;
  max-width: 540px;
  margin-top: 0;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--secondary);
}
.stars {
  font-size: 1.04rem;
  color: var(--accent);
  margin-left: 4px;
  font-family: var(--font-display);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*----------- FEATURE GRID -------------*/
.feature-grid,
.step-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 14px;
  margin-bottom: 10px;
}
.feature-grid li,
.step-grid li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(40,44,52,0.07);
  padding: 26px 22px 18px 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow 0.23s, background 0.18s;
}
.feature-grid li img,
.step-grid li img {
  height: 38px;
  width: 38px;
  margin-bottom: 8px;
  filter: grayscale(0.12); /* subtle effect */
}
.feature-grid li:hover,
.step-grid li:hover {
  box-shadow: 0 6px 32px rgba(139,29,41,0.13);
  background: var(--gray-background);
}

/* --------- SERVICES & LISTS ----------- */
.service-list,
.brand-values,
.instructor-profiles ul,
.use-cases,
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.service-list li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1.5px 12px rgba(139, 29, 41, 0.08);
  padding: 22px 22px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  margin-bottom: 10px;
  transition: box-shadow 0.19s;
}
.service-list li span {
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.07rem;
  margin-top: 5px;
}
.service-list li a {
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
  margin-top: 10px;
  font-size: 1rem;
  transition: color 0.14s;
}
.service-list li a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.contact-info li, .brand-values li, .use-cases li, .instructor-profiles ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.contact-info img,
.brand-values img,
.instructor-profiles ul img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  filter: grayscale(0.18);
}

/*-- CLIENT LOGOS --*/
.client-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.client-logos img {
  height: 34px;
  width: 34px;
  opacity: 0.90;
  filter: grayscale(1) contrast(0.7);
}

/*--------- MAP / INFO SNIPPETS ---------*/
.map-snippet,
.business-hours {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--gray-background);
  font-size: 1rem;
  color: var(--secondary);
}

/* ------------ FOOTER --------------- */
footer {
  background: #fff;
  border-top: 1.5px solid var(--gray-border);
  margin-top: 64px;
  padding-top: 22px;
  padding-bottom: 16px;
  font-size: 1rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-flex > * {
  margin-bottom: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  padding: 5px 0;
  transition: color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--primary);
  text-decoration: underline;
}
.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-icons img {
  height: 26px;
  width: 26px;
  opacity: 0.87;
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s, opacity 0.12s;
  cursor: pointer;
}
.social-icons img:hover {
  background: var(--accent);
  opacity: 1;
}
.legal-info {
  color: #788190;
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ----------- COOKIE CONSENT BANNER ----------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--gray-border);
  box-shadow: 0 -2px 24px rgba(40,44,52,0.08);
  padding: 18px 20px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  animation: fade-in 0.65s 0.06s cubic-bezier(.75,0,.26,1);
}
@keyframes fade-in { from { opacity: 0; bottom: -128px; } to { opacity: 1; bottom:0; } }
.cookie-banner p {
  color: var(--secondary);
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
}
.cookie-buttons button,
.cookie-buttons .cookie-settings {
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 18px;
  margin: 0 2px;
  cursor: pointer;
  background: var(--gray-background);
  color: var(--secondary);
  font-weight: 600;
  transition: background 0.18s, color 0.16s;
  box-shadow: 0 2px 8px rgba(40,44,52,0.07);
}
.cookie-buttons button.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-buttons button.accept:hover {
  background: var(--accent);
  color: var(--primary);
}
.cookie-buttons button.reject {
  background: #eee;
  color: var(--secondary);
  border: 1.5px solid #ddd;
}
.cookie-buttons button.reject:hover {
  background: var(--accent);
  color: var(--primary);
}
.cookie-buttons .cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 17px;
}
.cookie-buttons .cookie-settings:hover {
  background: var(--primary);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  z-index: 1400;
  border-radius: var(--radius);
  box-shadow: 0 6px 32px rgba(40,44,52,0.21);
  padding: 36px 30px 28px 30px;
  min-width: 340px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: modal-fadein 0.33s cubic-bezier(.65,0,.35,1);
}
@keyframes modal-fadein { from { opacity: 0; scale:0.95; } to { opacity:1; scale:1; } }
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--secondary);
  font-family: var(--font-body);
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--primary);
  border-radius: 4px;
  vertical-align: middle;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1410;
  line-height:1;
}
.cookie-modal .close-modal:hover {
  color: var(--accent);
}
.cookie-modal .apply-cookies {
  margin-top: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
}
.cookie-modal .apply-cookies:hover {
  background: var(--accent);
  color: var(--primary);
}

.cookie-modal .desc {
  font-size: 0.98rem;
  color: #64697a;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1023px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 10px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-nav a.cta-primary{
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .step-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .header-flex {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .hero {
    padding: 36px 0 28px 0;
  }
  .section {
    margin-bottom: 34px;
    padding: 24px 8px;
  }
  .content-wrapper, .text-section {
    padding-left: 0;
    padding-right: 0;
    max-width: 98vw;
  }
  .card-container, .content-grid, .feature-grid, .service-list, .brand-values {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 15px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .client-logos {
    gap: 24px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 520px) {
  .footer-flex, .content-wrapper, .brand-values, .card-container {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-banner {
    padding: 12px 2px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    min-width: 92vw;
    max-width: 98vw;
    padding: 18px 7vw 20px 7vw;
  }
}

/* ---- MICROINTERACTIONS & TRANSITIONS ---- */
button, .cta-primary, .main-nav a, .mobile-nav a,
.service-list li a, .cookie-buttons button, .cookie-buttons .cookie-settings {
  transition: box-shadow 0.19s, background 0.16s, color 0.15s, border 0.13s;
}
.card, .feature-grid li, .service-list li {
  will-change: box-shadow;
}

/* ---- FOCUS STYLES ---- */
a:focus, button:focus, .cta-primary:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- UTILITY CLASSES ---- */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }

/* ---- PRINT ADJUSTMENTS ---- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100vw; padding: 0; }
  body { color: #000; background: #fff; }
}
