/* ============================================================
   Reset & Normalize (Mobile-First) 
   ============================================================ */
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;
}
body {
  line-height: 1.5;
  background: #F5F8FA;
  color: #223A5E;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: break-word;
}
a {
  color: #223A5E;
  text-decoration: none;
  transition: color .2s;
}
a:hover,
a:focus {
  color: #89AEB2;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border-radius: 0;
  background: none;
  border: none;
}
button {
  cursor: pointer;
}

/* ============================================================
   Brand Variables & Fallbacks
   ============================================================*/
:root {
  --primary: #223A5E;
  --secondary: #89AEB2;
  --accent: #F5F8FA;
  --danger: #E2574C;
  --success: #37B089;
  --shadow-main: 0 2px 16px rgba(34,58,94,0.10);
  --shadow-strong: 0 6px 32px rgba(34,58,94,0.13);
  --radius-main: 20px;
  --radius-button: 40px;
  --radius-card: 18px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ============================================================
   Typography (Hierarchy & Modern/Bold)
   ============================================================*/
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
p, ul li, ol li, .text-section {
  font-family: var(--font-body);
  font-size: 1.07rem;
  line-height: 1.7;
  color: #27324F;
  margin-bottom: 14px;
}
strong { font-weight: 700; color: var(--primary); }

/* ================= Thicker Bold Buttons, CTA ================= */
.cta-button, .cta, button.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-main);
  border: none;
  letter-spacing: 1px;
  transition: background .23s, box-shadow .23s, transform .11s;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
}
.cta-button:active { transform: scale(0.98); }
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-strong);
  text-decoration: none;
}

/* ============================================================
   Container & Core Layouts (Flexbox Only)
   ============================================================*/
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* For page sections, not inside */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}

/* Flex utilities for specific layouts (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-main);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  margin-bottom: 22px;
  background: #F5F8FA;
  color: #17223D;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px rgba(34, 58, 94, 0.10);
  font-size: 17px;
  max-width: 600px;
  font-family: var(--font-body);
  border-left: 6px solid var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 210px;
  min-width: 170px;
  padding: 18px 14px;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34, 58, 94, 0.06);
  font-size: 1rem;
}

.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.recipe-grid > div {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-main);
  padding: 22px 18px;
  margin-bottom: 20px;
}

/* ============================================================
   Hero Section (Modern Bold)
   ============================================================*/
.hero {
  background: linear-gradient(100deg, #89AEB2 0%, #F5F8FA 100%);
  border-radius: 0 0 28px 28px;
  min-height: 320px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 24px rgba(34,58,94,0.08);
  margin-bottom: 60px;
}
.hero .container, .hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 36px 0 36px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 0px 2px 14px rgba(255,255,255,.06);
}
.hero p {
  color: #27324F;
  font-size: 1.15rem;
  font-weight: 500;
}
.hero .cta-button {
  font-size: 1.13rem;
}

/* ============================================================
   Header, Nav, Brand
   ============================================================*/
header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(34,58,94,0.062);
  padding: 0;
  position: relative;
  z-index: 10;
}
header > .container {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  height: 80px;
  min-height: 80px;
}
header img {
  height: 38px;
  min-width: 120px;
}
nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 18px;
  transition: background .18s, color .18s;
  text-transform: uppercase;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: #FFF;
}

/* ============================================================
   Footer
   ============================================================*/
footer {
  background: #223A5E;
  color: #fff;
  font-family: var(--font-body);
  padding: 46px 0 20px 0;
  margin-top: 80px;
  border-radius: 36px 36px 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
footer img {
  width: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.87;
  padding: 2px 0;
  transition: color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFDC52;
}
footer .contact-info {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: #ffffffde;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer .brand-footer img {
  height: 44px;
  filter: brightness(20) saturate(0.7);
  opacity: 0.93;
}

/* ============================================================
   Cookie Consent Banner & Modal
   ============================================================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #27324F;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 16px rgba(34,58,94,0.08);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px 16px 18px 16px;
  gap: 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  max-width: 100vw;
  width: 100%;
  transition: transform .3s cubic-bezier(.5,.9,.6,1), opacity .25s;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(70px);
}
.cookie-banner .cookie-text {
  flex: 2 1 200px;
  min-width: 170px;
}
.cookie-banner .btn-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: 26px;
  font-weight: 700;
  border: none;
  transition: background .19s, color .16s, box-shadow .18s;
  box-shadow: var(--shadow-main);
  margin-right: 2px;
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #E2574C;
  color: #fff;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #27324F;
  color: #fff;
  box-shadow: 0 2px 16px rgba(34,58,94,0.14);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; 
  top: 0; 
  width: 100%;
  height: 100vh;
  background: rgba(34, 58, 94, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .18s;
  pointer-events: auto;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(34,58,94,0.18);
  padding: 46px 32px 36px 32px;
  max-width: 380px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--font-body);
  text-align: left;
  color: #27324F;
  position: relative;
}
.cookie-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal .modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.cookie-modal .cookie-switch input[type='checkbox'] {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 12px;
  background: #D0DDE7;
  outline: none;
  transition: background 0.13s;
  position: relative;
}
.cookie-modal .cookie-switch input[type='checkbox']:checked {
  background: var(--secondary);
}
.cookie-modal .cookie-switch input[type='checkbox']::after {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px; left: 2.5px;
  transition: left 0.14s;
  box-shadow: 0 1px 3px rgba(34,58,94,0.10);
}
.cookie-modal .cookie-switch input[type='checkbox']:checked::after {
  left: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 14px; right: 12px;
  font-size: 1.5rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.cookie-modal .close-modal-btn:hover {
  color: #E2574C;
}
.cookie-modal .essential {
  font-size: 0.99rem;
  color: #7B879E;
  font-weight: 600;
}

/* ============================================================
   Mobile Navigation (Flexbox, Burger, Slide Panel)
   ============================================================*/
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  border: none;
  z-index: 10400;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-main);
  transition: background .2s;
  outline: none;
  visibility: visible;
  opacity: 1;
}
.mobile-menu-toggle:active { background: var(--secondary); }
.mobile-menu-toggle:hover { background: #171A22; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #223A5E;
  box-shadow: -2px 0 32px rgba(34,58,94,0.24);
  z-index: 10500;
  display: flex;
  flex-direction: column;
  transform: translateX(150vw);
  transition: transform .44s cubic-bezier(.85,.02,.21,1);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.0rem;
  position: absolute;
  top: 23px; right: 22px;
  z-index: 2;
  cursor: pointer;
  transition: color .17s;
}
.mobile-menu-close:hover { color: #FFDC52; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 80px;
  margin-left: 32px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  padding: 11px 0;
  letter-spacing: 1px;
  transition: color .19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #89AEB2;
  text-decoration: underline;
}

/* Hide desktop header nav and show burger on mobile */
@media (max-width:1024px) {
  header nav {
    display: none !important;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:1025px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* Hide burger in print, always screen! */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}

/* ============================================================
   Spacing, Cards, Sections, Micro-interactions (Modern Bold)
   ============================================================*/
section, .section {
  margin-bottom: 60px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.card {
  transition: box-shadow .21s, transform .19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px rgba(34,58,94,0.15);
  transform: translateY(-4px) scale(1.01);
}
.feature-grid li img, .feature-item img, .recipe-grid img, .text-section img {
  width: 42px; height: 42px; object-fit: contain;
  filter: drop-shadow(0 1px 4px #D0DDE751);
  margin-bottom: 3px;
}
ul.feature-grid li strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary);
}
ul.feature-grid li br {
  margin-bottom: 5px;
}

.testimonial-card {
  box-shadow: 0 2px 12px rgba(34,58,94,0.10);
  border-radius: 18px;
  transition: box-shadow .14s, border-color .25s;
  border-left: 6px solid var(--secondary);
  background: #fff;
  color: #181B2B;
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: 0 2px 27px rgba(34,58,94,0.18);
  border-left: 6px solid #37B089;
}

/* Gap helpers for all major *-container classes */
.card-container, .feature-grid, .recipe-grid, .content-grid, .text-image-section {
  row-gap: 20px;
  column-gap: 24px;
}
.card, .feature-item, .testimonial-card, .recipe-grid > div {
  margin-bottom: 20px;
}

/* ==========================================
   Geometric Accents (Modern/Bold) – e.g. demo dots or shapes left of titles
   ========================================== */
h2:before {
  content: '';
  display: inline-block;
  background: var(--secondary);
  width: 18px;
  height: 18px;
  border-radius: 3px 40px 12px 40px;
  margin-right: 13px;
  vertical-align: middle;
  transition: background .25s;
}

h2:hover:before { background: var(--primary); }


/* ============================================================
   Forms (Kontaktformular, Inputs, etc.)
   ============================================================*/
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 14px;
  background: #F5F8FA;
  border: 2px solid #EFF4F8;
  font-size: 1.07rem;
  color: var(--primary);
  font-family: var(--font-body);
  box-shadow: none;
  margin-bottom: 18px;
  transition: border .16s, background .19s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 2px solid #89AEB2;
  background: #fff;
}

/* ==========================================
   Misc. Utilities & Responsive Gaps
   ========================================== */
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.px-32 { padding-left:32px !important; padding-right:32px !important; }

/* ==========================================
   Responsive Layouts - Mobile First
   ========================================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .container { padding-left: 8px; padding-right: 8px; }
  header > .container { flex-direction: row; gap: 10px; height: 62px; min-height: 62px; }
  .hero { border-radius: 0 0 18px 18px; min-height: unset; }
  .hero h1 { font-size: 1.19rem; }
  .hero .container, .hero .content-wrapper { padding-top: 13px; padding-bottom: 13px; gap: 12px; }
  .footer-nav { flex-direction: column; gap: 7px; }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-grid { flex-direction: column; gap: 20px; }
  .card-container { flex-direction: column; gap: 20px; }
  .content-grid { flex-direction: column; gap: 11px; }
  .recipe-grid { flex-direction: column; gap: 15px; }
  .testimonial-card { flex-direction: column; gap: 10px; }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  section, .section { margin-bottom: 32px; padding: 18px 2px; }
  .mobile-menu {
    width: 100vw;
    left: 0;
    right: 0;
  }
}

@media (max-width: 420px) {
  .footer-nav a, .contact-info { font-size:0.95rem; }
  .cookie-banner, .cookie-modal .modal-content { padding:16px 6px; }
}

/* ================================= Getting ready for contrast on testimonal cards ============================== */
.testimonial-card {
  background: #fff;
  color: #223A5E;
}
.testimonial-card strong {
  color: var(--primary);
}

/* ===============================
   Animation smooth
   =============================== */
.cta-button, .cookie-btn, .cookie-banner,
.card, .hero, .mobile-menu, .mobile-menu-toggle {
  transition-duration: .22s;
  transition-timing-function: cubic-bezier(.62,.19,.89,.78);
}

/* ===============================
   Print support
   =============================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}

/* =================================
   Accessibility helpers
   ================================= */
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 1px; }

/* ===========================
   Hide visual clutter on error
   ===========================*/
[hidden] { display: none !important; }
