/* ===========================
   Qubit Küche – style.css
   Nature Organic UI Design
   Mobile-first, Flexbox-only
   ============================= */

/* ===== CSS RESET / NORMALIZE ===== */
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;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  background: #F9F6F1;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #2C3B27;
  font-size: 16px;
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border-radius: 6px;
  border: 1px solid #D8D8D8;
}
ul, ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
a {
  color: #215273;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #70A288;
  outline-offset: 2px;
}

/* ===== BRAND COLORS & TYPOGRAPHY ===== */
:root {
  --primary: #215273;
  --secondary: #70A288;
  --accent: #FFE7C7;
  --earth1: #E6D5B8;
  --earth2: #A0A484;
  --organic: #E1F2E2;
  --danger: #883636;
  --success: #3A793A;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: #F9F6F1 url("../assets/bg-texture.jpg") repeat;
  color: #2C3B27;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #215273;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
  color: #295C3A;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #45706B;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: #215273;
}
p, ul, ol, li, div, span, em, strong {
  font-family: var(--font-body);
  color: #333B2A;
}

em {
  color: #70A288;
}
strong {
  color: #215273;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 30px 30px 90px 30px/40px 90px 30px 30px;
  /* Organic border radius */
  box-shadow: 0 6px 20px 0 rgba(112,162,136, 0.07), 0 2px 6px 0 rgba(33,82,115,0.08);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.text-section {
  background: #E1F2E2;
  border-radius: 26px;
  padding: 32px 20px;
  margin-bottom: 30px;
}

.cta-section {
  display: flex;
  margin-top: 20px;
}

/* ========== HEADER & NAVBAR ========== */
header {
  background: #F4EFE7;
  box-shadow: 0 5px 22px 0 rgba(84,123,87,0.06);
  position: sticky;
  top: 0;
  z-index: 700;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 8px 0;
}
nav > a > img {
  height: 44px;
  max-width: 140px;
  padding-right: 14px;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  font-size: 1em;
  color: #215273;
  font-family: var(--font-display);
  padding: 7px 13px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover,
nav ul li a:focus {
  background: #E1F2E2;
  color: #295C3A;
}
.cta-button {
  background: var(--secondary);
  color: #FFF;
  font-family: var(--font-display);
  font-weight: bold;
  border-radius: 26px 14px 36px 20px/20px 36px 14px 26px;
  padding: 12px 30px;
  font-size: 1.1em;
  margin-left: 18px;
  box-shadow: 0 2px 10px 0 rgba(33,82,115,0.09);
  border: none;
  outline: none;
  transition: background 0.23s, color 0.24s, transform 0.16s;
  cursor: pointer;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--primary);
  color: #FFE7C7;
  transform: translateY(-2px) scale(1.04);
}

/* ========== HERO SECTIONS ========== */
.hero {
  margin-bottom: 50px;
  background: linear-gradient(110deg, #E1F2E2 84%, #FFE7C7 100%);
  border-radius: 0 0 90px 30px/0 0 38px 60px;
  box-shadow: 0 4px 24px 0 rgba(33,82,115,0.03);
  min-height: 220px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 34px;
  padding-bottom: 34px;
}
.hero h1 {
  color: #215273;
  font-size: 2.3rem;
}
.hero p {
  font-size: 1.12rem;
  color: #295C3A;
  margin-bottom: 22px;
  margin-top: 6px;
}
.hero .cta-button {
  margin-top: 18px;
}

/* ========== FLEXBOX PATTERNS ========== */
.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 25px 48px 40px 22px/20px 44px 24px 30px;
  box-shadow: 0 2px 14px 0 rgba(33,82,115,0.06);
  padding: 22px 20px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .card:focus {
  box-shadow: 0 7px 32px rgba(33,82,115,0.12);
  transform: translateY(-3px) scale(1.03);
  z-index: 2;
}
.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;
}
.testimonials {
  background: #E1F2E2;
  border-radius: 44px 18px 80px 24px/24px 80px 18px 44px;
  padding: 30px 0 20px 0;
}
.testimonials .content-wrapper > h2 {
  color: #215273;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  min-width: 0;
  width: 100%;
  background: #FFF;
  border-radius: 33px 36px 46px 20px/26px 36px 18px 24px;
  box-shadow: 0 2px 14px 0 rgba(33,82,115,0.06);
  margin-bottom: 20px;
  border-left: 7px solid #70A288;
  border-top: 2px solid #E6D5B8;
  transition: box-shadow 0.19s, border-color 0.21s;
}
.testimonial-card p {
  color: #2C3B27;
  font-size: 1.07em;
  font-style: italic;
  margin: 0 0 3px 0;
}
.testimonial-card span {
  color: #215273;
  font-weight: 600;
  font-size: 0.98em;
  opacity: 0.9;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 34px rgba(112,162,136,0.16);
  border-left-color: #215273;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 2px 0;
}

/* ========== FOOTER ========== */
footer {
  background: #215273;
  color: #FFF;
  padding: 44px 0 20px 0;
  margin-top: 40px;
  box-shadow: 0 -3px 14px 0 rgba(33,82,115,0.09);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer-nav {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 10px;
}
.footer-nav img {
  height: 38px;
  width: auto;
}
.footer-nav nav {
  display: flex;
  gap: 20px;
}
.footer-nav nav a {
  color: #E1F2E2;
  font-family: var(--font-display);
  font-size: 1.07em;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav nav a:hover,
.footer-nav nav a:focus {
  color: var(--accent);
  background: #70A288;
}
footer .text-section {
  color: #B2CFC5;
  font-size: 1em;
  line-height: 1.45;
}
.footer-legal {
  font-size: 0.98em;
  color: #83A89D;
  text-align: right;
  margin-top: 12px;
}

/* ========== FORMS & SEARCH ========== */
input[type="search"] {
  width: 100%;
  max-width: 400px;
  padding: 11px 16px;
  border-radius: 16px 36px 14px 16px/22px 26px 24px 12px;
  border: 1.5px solid #A6B6A2;
  box-shadow: 0 1px 4px 0 rgba(112,162,136,0.055);
  font-size: 1em;
  background: #FFF;
  margin-top: 10px;
  margin-bottom: 11px;
  transition: border 0.2s, box-shadow 0.18s;
  color: #215273;
}
input[type="search"]:focus {
  border-color: #70A288;
  box-shadow: 0 2px 7px 0 rgba(112,162,136,0.13);
}

/* ========== LISTS & CONTENT ELEMENTS ========== */
ul {
  padding-left: 26px;
  margin-bottom: 12px;
}
ul li {
  position: relative;
  margin-bottom: 10px;
  color: #374531;
  font-size: 1em;
  padding-left: 0.8em;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #A0A484;
  border-radius: 30% 45% 38% 22%;
  margin-right: 10px;
  position: relative;
  top: -2px;
}
ul li strong {
  color: #295C3A;
}

ol {
  padding-left: 32px;
  margin-bottom: 12px;
}
ol li {
  color: #295C3A;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ========== BANNERS & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #F9F6F1;
  box-shadow: 0 -2px 18px 0 rgba(33,82,115,0.08);
  border-top: 4px solid #70A288;
  color: #215273;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 22px 16px 18px 16px;
  font-size: 1.05em;
  transition: transform 0.44s cubic-bezier(.8,.24,.2,1);
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner button {
  margin-left: 9px;
  min-width: 120px;
  padding: 8px 20px;
  margin-right: 7px;
  border: none;
  border-radius: 26px 14px 20px 18px/20px 20px 18px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  transition: background 0.18s, color 0.18s, transform 0.14s;
  box-shadow: 0 2px 8px 0 rgba(112,162,136, 0.03);
}
.cookie-banner .accept{
  background: #70A288; color: #FFF;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #215273;
  color: #FFE7C7;
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner .reject{
  background: #FFF; color: #883636; border: 1.5px solid #883636;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #FBE9E6;
  color: #6C2323;
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner .settings{
  background: #E1F2E2; color: #215273; border: 1.5px solid #A0A484;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #A0A484;
  color: #FFF;
}

/* Modal Overlay*/
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 10000;
  background: rgba(33,82,115,0.19);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.21s;
}
.cookie-modal {
  width: 97%;
  max-width: 420px;
  background: #FFF;
  border-radius: 30px 60px 16px 36px / 44px 32px 36px 50px;
  box-shadow: 0 10px 44px 0 rgba(33,82,115,0.11);
  padding: 34px 26px 24px 26px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1em;
  color: #215273;
  animation: modalAppear 0.45s cubic-bezier(.44,1.16,.73,.84);
}
@keyframes modalAppear {
  from { transform: translateY(160px) scale(.95); opacity: 0.7; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: #295C3A;
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #70A288;
}
.cookie-modal .cookie-category label {
  font-size: 1em;
}
.cookie-modal .cookie-actions {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: #70A288;
  color: #FFF;
  border-radius: 22px 22px 33px 10px;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  transition: background 0.18s, transform 0.14s;
}
.cookie-modal button.reject {
  background: #FFF; color: #883636; border: 1.5px solid #883636;
}
.cookie-modal button.reject:hover, .cookie-modal button.reject:focus {
  background: #FBE9E6;
  color: #6C2323;
}
.cookie-modal button.settings {
  background: #E1F2E2; color: #215273; border: 1.5px solid #A0A484;
}
.cookie-modal button.settings:hover {
  background: #A0A484;
  color: #FFF;
}
.cookie-modal button.accept:hover, .cookie-modal button.accept:focus {
  background: #215273;
  color: #FFE7C7;
  transform: translateY(-2px) scale(1.04);
}

/*============ MOBILE MENU (BURGER NAV) =============*/
.mobile-menu-toggle {
  display: none;
  background: #70A288;
  color: #FFF;
  font-size: 2.1rem;
  border: none;
  border-radius: 12px 30px 16px 22px;
  padding: 9px 22px 7px 18px;
  margin-left: 14px;
  box-shadow: 0 2px 8px 0 rgba(33,82,115,0.10);
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
  z-index: 1021;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #215273;
  color: #FFE7C7;
}
.mobile-menu {
  display: none; /* shown via .open class */
  position: fixed;
  z-index: 1050;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #F4EFE7;
  box-shadow: 0 2px 38px 0 rgba(112,162,136,0.33);
  transition: transform 0.4s cubic-bezier(.52,.56,0,1.04);
  transform: translateX(-101vw);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #A0A484;
  color: #FFF;
  border: none;
  font-size: 2rem;
  padding: 8px 13px 6px 13px;
  border-radius: 16px 26px 20px 18px;
  box-shadow: 0 2px 10px 0 rgba(160,164,132,0.10);
  margin: 21px 32px 8px 0;
  transition: background 0.18s, color 0.16s;
  z-index: 1100;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { background: #295C3A; color: #EEF8EE; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  margin-top: 28px;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #215273;
  font-family: var(--font-display);
  padding: 13px 7px;
  border-radius: 7px 26px 17px 20px;
  font-weight: 550;
  margin-bottom: 7px;
  min-width: 70vw;
  transition: background 0.2s, color 0.22s;
  box-shadow: 0 1.5px 6px 0 rgba(33,82,115,0.04);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E1F2E2;
  color: #295C3A;
}


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1140px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  nav ul { gap: 13px; }
}
@media (max-width: 840px) {
  .footer-nav { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 992px) {
  .section, .text-section {
    padding: 28px 8px;
  }
  .hero .container { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  .hero, .section, .testimonials, .card {
    border-radius: 19px 30px 38px 22px/18px 36px 14px 22px;
  }
  nav ul {
    display: none;
  }
  .cta-button {
    font-size: 1em;
    min-width: 120px;
    padding: 10px 18px;
    margin-left: 12px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  nav {
    gap: 10px;
  }
  .container { padding: 0 6px; }
  .section { padding: 28px 7px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .footer-legal {
    text-align: left;
  }
  .card-container {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 500px) {
  .cookie-modal { padding: 19px 7px 14px 7px; max-width: 96vw; }
  .hero h1 { font-size: 1.11rem; }
  .hero p { font-size: 0.95rem; }
}

/* ========== MICRO-INTERACTIONS ========== */
.card, .testimonial-card, .cta-button, input[type="search"], .cookie-banner button, .cookie-modal button, .mobile-nav a, .mobile-menu-close, .mobile-menu-toggle {
  transition: 
    box-shadow 0.21s, 
    background 0.19s,
    color 0.17s, 
    transform 0.13s,
    border-color 0.17s;
}

/* ========== SHADOWS & ORG. SHAPES ========== */
.card, .testimonial-card, .cookie-modal, .section, .testimonials, .hero {
  box-shadow: 0 2px 12px 0 rgba(33,82,115,0.06);
}
.card, .testimonial-card, .cookie-modal, .section, .testimonials, .hero, .footer-nav nav a, .cta-button {
  border-radius: 38px 34px 60px 18px/22px 36px 14px 22px;
}

/* ========== ACCENT ELEMENTS & DETAILS ========== */
::-webkit-scrollbar { width: 9px; background: #E6D5B8; }
::-webkit-scrollbar-thumb { background: #70A288; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #215273; }

/* ========== COLOR CONTRAST FOR TESTIMONIALS ========== */
.testimonial-card {
  background: #FFF;
  color: #215273;
}

/* ========== MINIMUM SPACING ========== */
.card + .card,
.section + .section,
.testimonial-card + .testimonial-card,
.feature-item + .feature-item,
.content-wrapper > *,
.content-wrapper > .card,
.card-container > .card
{
  margin-top: 20px;
}

/* ========== MISC ELEMENTS ========== */
hr {
  border: none;
  border-top: 2px solid #A0A484;
  margin: 22px 0;
}

/* ========== Z-INDEX MANAGEMENT ========== */
header { z-index: 700; }
.mobile-menu { z-index: 1050; }
.mobile-menu-close { z-index: 1100; }
.cookie-banner { z-index: 9999; }
.cookie-modal-overlay { z-index: 10000; }

/* ========== FOCUS STATES ========== */
a:focus, .cta-button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .mobile-nav a:focus, .cookie-banner button:focus, .cookie-modal button:focus {
  outline: 2px dashed #295C3A;
  outline-offset: 2px;
  background: #E1F2E2;
}

/* ========== A11Y: Cursors ========== */
button, .cta-button, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal button { cursor: pointer; }

/* ========== FADE-IN UTILITY ========== */
.fade-in { animation: fadeInUp 0.6s cubic-bezier(.32,.81,.6,1.17); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== PRINT (to keep background solid) ========== */
@media print {
  body { background: #FFF !important; }
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}