/* BücherKompass - style.css - Elegant Classic / Flexbox Only / Responsive / Cookie Banner / Mobile Menu */

/* 1. 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #faf8f4;
  color: #253441;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #ce4f0b;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E66E2F;
  text-decoration: none;
  outline: none;
}

/* HEADINGS ELEGANT TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #253441;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.5rem;}
  h3 {font-size: 1.1rem;}
}

strong {font-weight: 700; color: #253441;}
.subheadline {font-size: 1.2rem; color: #7c766a; margin-bottom: 24px;}


/* 2. LAYOUT CONTAINERS & SECTIONS */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 24px;
}
.text-section {
  margin: 0 auto 40px auto;
  max-width: 700px;
}

/* CRITICAL FLEXBOX PATTERNS */
.card-container, .card-grid, .content-grid,
.features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container { gap: 24px; }
.card-grid { gap: 32px; }
.content-grid {
  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: 20px;
  background: #fff;
  border-left: 6px solid #F9DFA1;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(37,52,65,0.07);
  font-style: italic;
  color: #253441;
  transition: box-shadow .2s;
}
.testimonial-card strong {
  color: #E66E2F;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  display: inline-block;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f8f4ee;
  border-radius: 12px;
  box-shadow: 0 1px 5px 0 rgba(37,52,65,0.05);
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  padding: 32px 24px;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(37,52,65,0.07);
  transition: transform 0.12s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 20px 0 rgba(37,52,65,0.13);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Utility gaps */
.gap-20 {gap: 20px;}
.gap-24 {gap: 24px;}
.gap-32 {gap: 32px;}


/* 3. NAVIGATION & HEADER (DESKTOP & MOBILE) */
header {
  background: #fff8ec;
  box-shadow: 0 1px 10px 0 rgba(37,52,65,0.04);
  z-index: 101;
  position: relative;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 0 0 0 12px;
  min-height: 70px;
}
nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  color: #253441;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.17s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: #F9DFA1;
  color: #ce4f0b;
}
nav img {
  height: 44px;
  width: auto;
  margin-right: 10px;
}
nav .cta.primary {
  background: #253441;
  color: #fff;
  font-weight: 700;
  margin-left: 8px;
  border-radius: 14px;
  padding: 11px 22px;
  box-shadow: 0 2px 8px 0 rgba(37,52,65,0.08);
  letter-spacing: 0.02em;
  transition: background 0.14s, color 0.14s, box-shadow 0.16s;
}
nav .cta.primary:hover, nav .cta.primary:focus {
  background: #E66E2F;
  color: #fff;
  box-shadow: 0 8px 22px 0 rgba(37,52,65,0.14);
}

/* Special accent btns */
.cta.accent {
  background: #ce4f0b;
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 22px;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.15s, box-shadow 0.2s;
  margin-top: 14px;
  margin-bottom: 6px;
}
.cta.accent:hover, .cta.accent:focus {
  background: #253441;
  color: #F9DFA1;
  box-shadow: 0 6px 18px 0 rgba(37,52,65,0.12);
}


/* 4. MOBILE MENU (BURGER) */
.mobile-menu-toggle {
  display: none;
  background: #fff7e3;
  color: #253441;
  border: none;
  border-radius: 10px;
  font-size: 2.1rem;
  padding: 5px 17px;
  margin-left: auto;
  cursor: pointer;
  z-index: 121;
  transition: background 0.11s;
}
.mobile-menu-toggle:focus {
  outline: 3px solid #F9DFA1;
  background: #ffd98f;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fffdfa;
  z-index: 250;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,.2,1);
  box-shadow: 0 2px 32px 0 rgba(37,52,65,0.27);
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 22px 16px 22px;
}
.mobile-menu.open { 
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #ce4f0b;
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:focus {
  outline: 2px solid #E66E2F;
  color: #253441;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav a {
  color: #253441;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.19rem;
  font-weight: 500;
  background: none;
  padding: 14px 0 14px 8px;
  border-radius: 7px;
  transition: color 0.12s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F9DFA1;
  color: #ce4f0b;
}

/* Responsive header nav (mobile) */
@media (max-width: 992px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  nav { display: flex !important; }
}


/* 5. BUTTONS */
button, .cta {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(37,52,65,0.08);
  transition: background 0.13s, color 0.13s, box-shadow 0.16s;
}
button:focus {
  outline: 2px solid #F9DFA1;
}


/* 6. CONTENT ELEMENTS: LISTS, UL/OL */
ul, ol {
  padding-left: 26px;
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #39352b;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
}

/* 7. FOOTER & FOOTER NAV */
footer {
  background: #ede8de;
  color: #253441;
  font-size: 0.95rem;
  padding: 32px 10px 16px 10px;
  box-shadow: 0 -1px 9px 0 rgba(37,52,65,0.03);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #253441;
  background: none;
  font-weight: 500;
  font-family: 'Merriweather', Georgia, serif;
  text-decoration: underline;
  font-size: 1rem;
  padding: 4px 7px;
  border-radius: 6px;
  transition: background 0.11s; 
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F9DFA1;
  color: #E66E2F;
  text-decoration: none;
}
footer small {
  display: block;
  text-align: center;
  color: #7c766a;
  margin-top: 6px;
}


/* 8. SPACING UTILITIES */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/* 9. CONFIRMATION-MESSAGE */
.confirmation-message {
  background: #F9DFA1;
  color: #253441;
  font-size: 1.1rem;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 18px;
}


/* 10. COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 499;
  background: #fffdfa;
  border-top: 2px solid #F9DFA1;
  box-shadow: 0 -2px 24px 0 rgba(37,52,65,0.14);
  padding: 24px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.32s cubic-bezier(0.4,0,.2,1), opacity 0.34s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  color: #574b30;
  margin: 0 8px 0 0;
  flex: 1 1 260px;
  font-size: 1rem;
}
.cookie-consent-banner button, .cookie-consent-banner .cookie-btn {
  min-width: 122px;
  padding: 8px 17px;
  margin-left: 2px;
  font-size: 1rem;
  border-radius: 9px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: #253441;
  color: #fff;
}
.cookie-consent-banner .cookie-btn.accept:hover, .cookie-consent-banner .cookie-btn.accept:focus {
  background: #ce4f0b;
  color: #fff;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #fde3cf;
  color: #253441;
}
.cookie-consent-banner .cookie-btn.reject:hover, .cookie-consent-banner .cookie-btn.reject:focus {
  background: #ecd9c2;
  color: #ce4f0b;
}
.cookie-consent-banner .cookie-btn.settings {
  background: none;
  border: 2px solid #ce4f0b;
  color: #ce4f0b;
}
.cookie-consent-banner .cookie-btn.settings:hover, .cookie-consent-banner .cookie-btn.settings:focus {
  background: #F9DFA1;
  color: #253441;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  display: none;
  position: fixed; 
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,52,65,0.29);
  z-index: 600;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fffdfa;
  border-radius: 18px;
  box-shadow: 0 6px 30px 0 rgba(37,52,65,0.22);
  padding: 36px 32px 24px 32px;
  max-width: 420px;
  width: 98%;
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: modalIn 0.37s cubic-bezier(.44,.1,.28,1);
  color: #253441;
  z-index: 701;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(50px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #253441;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #39352b;
}
.cookie-modal .cookie-choices {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 18px 0;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
}
.cookie-modal .toggle-switch input[type='checkbox'] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ecd9c2;
  border-radius: 19px;
  transition: background 0.13s;
}
.cookie-modal .toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px 0 rgba(37,52,65,0.07);
  transition: transform 0.16s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: #E66E2F;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .category-desc {
  font-size: 0.98rem;
  color: #88806d;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1.7rem;
  background: none;
  color: #ce4f0b;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cookie-modal .modal-close-btn:focus {
  outline: 2px solid #F9DFA1;
  color: #253441;
}


/* 11. RESPONSIVE DESIGN (MOBILE-FIRST) */
@media (max-width: 1024px) {
  .container {
    max-width: 90vw;
    padding: 0 6vw;
  }
}
@media (max-width: 768px) {
  
  .container { padding: 0 8px; }
  .section { padding: 26px 8px; margin-bottom: 36px; }
  .card-container, .card-grid, .content-grid, .features, .feature-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonial-card { padding: 16px; font-size: 1rem; }
  nav img { height: 36px; }
  h1 {font-size: 1.4rem;}
  h2 {font-size: 1.1rem;}
  h3 {font-size: 1rem;}
  .footer-nav { gap: 10px; }
  .content-wrapper { padding: 0; }
}
@media (max-width: 450px) {
  .cookie-modal { padding: 18px 5vw 15px 5vw; }
  .cookie-consent-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 17px 5vw; }
}


/* 12. MICRO-INTERACTIONS, TRANSITIONS, HOVER EFFECTS */
.card, .card-container > * {
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px 0 rgba(37,52,65,0.18);
  transform: translateY(-4px) scale(1.01);
}
.cta, .cta.primary, .cta.accent {
  transition: background 0.16s, color 0.15s, box-shadow 0.18s;
}
.cta:active, .cta.primary:active, .cta.accent:active {
  filter: brightness(0.95);
  box-shadow: 0 3px 7px 0 rgba(206,79,11,0.11);
}

/* 13. ACCESSIBILITY & FOCUS */
a:focus, button:focus, .cta:focus {
  outline: 2px solid #F9DFA1;
  outline-offset: 2px;
  box-shadow: 0 1px 12px 0 rgba(206,79,11,0.18);
}

/* 14. MISCELLANEOUS */
::-webkit-input-placeholder { color: #baad93; }
::-moz-placeholder { color: #baad93; }
:-ms-input-placeholder { color: #baad93; }
::placeholder { color: #baad93; }

/* 15. PRINT SUPPORT */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  .container { max-width: 100%; padding: 0; }
  .section { box-shadow: none; background: none; padding: 0; }
}

/* END OF STYLE.CSS - BÜCHERKOMPASS */
