/* ========================================================== 
   Leseschatz Magdeburg – CSS RESET & BASE STYLES (NATURE ORGANIC)
   ========================================================== */
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;
}
/* HTML5 display-role reset (for older browsers) */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F4F2EE url('../assets/bg-texture.png') repeat;
  color: #2A2213;
  min-height: 100vh;
  transition: background 0.2s ease;
}
a {
  color: #1A5528;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F1A035;
}
ul, ol {
  margin-left: 24px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
strong, b {
  font-weight: 700;
  color: #2A2213;
}

/* ========================================================== 
   TYPOGRAPHY: Brand Fonts & Hierarchy
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #123765;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  line-height: 1.2;
}
h1 { font-size: 2.2rem; margin-bottom: 28px; }
h2 { font-size: 1.6rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
p, li, address {
  font-size: 1rem;
  color: #473E2F;
  margin-bottom: 16px;
}
.text-section h3 {
  color: #1A5528;
}
.text-section ul {
  margin-bottom: 10px;
}

/* Responsive Typography */
@media (min-width: 520px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
}
@media (min-width: 1020px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.7rem; }
}

/* ========================================================== 
   COLORS & ORGANIC DESIGN PALETTE
   ========================================================== */
:root {
  --color-primary: #123765;
  --color-secondary: #D9C9B6;
  --color-accent: #F1A035;
  --color-leaf-dark: #1A5528;
  --color-leaf-light: #8FC490;
  --color-earth: #B99F7E;
  --color-background: #F4F2EE;
  --color-background-alt: #EAE6DF;
  --color-text: #2A2213;
  --color-input-bg: #fffefb;
  --shadow-card: 0 4px 24px -8px rgba(44,39,26,0.14);
  --border-radius-main: 22px;
  --border-radius-soft: 12px;
}

/* ========================================================== 
   FLEX LAYOUT CONTAINERS & SPACING GUIDELINES (per requirements)
   ========================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section, section[class] {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
  background: var(--color-background-alt);
  border-radius: var(--border-radius-main);
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius-soft);
  box-shadow: 0 2px 14px rgba(26,85,40,0.08);
  padding: 28px 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(26,85,40,0.18);
  transform: translateY(-3px) scale(1.012);
}
.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 28px;
  background: #fff;
  border-radius: var(--border-radius-soft);
  box-shadow: 0 2px 10px rgba(26,85,40,0.10);
  margin-bottom: 20px;
  flex-direction: column;
  border-left: 6px solid var(--color-leaf-light);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================================================== 
   HEADER & NAVIGATION (Desktop & Mobile)
   ========================================================== */
header {
  background: var(--color-background);
  box-shadow: 0 2px 12px rgba(44,39,26,0.06);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  font-size: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-leaf-dark);
  color: #fff;
}
.main-nav img {
  height: 44px;
  width: auto;
}

/* Hamburger Mobile Menu Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 26px;
  top: 20px;
  z-index: 101;
  background: var(--color-leaf-dark);
  color: #fff;
  border: none;
  border-radius: 36px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: #123765;
}

/* MOBILE NAV OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(218,208,190,0.98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.62,0,0.11,1);
  box-shadow: -8px 0 28px 2px rgba(26,85,40,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  margin: 25px 0 20px 24px;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 40px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--color-leaf-dark);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid #c6b8a6;
  transition: color 0.20s, background 0.17s;
  border-radius: 0;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(241,160,53,0.06);
}

@media (max-width: 1100px) {
  .main-nav a,
  .main-nav{
    font-size: 0.98rem;
    gap: 20px;
    padding: 14px 0;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    padding: 7px 10px;
  }
  .main-nav img {
    height: 36px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu-toggle,
  .mobile-menu { display: none !important; }
  .main-nav { display: flex !important; }
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  background: linear-gradient(120deg, #f5eee7 65%, #D9C9B6 98%);
  margin-bottom: 40px;
  box-shadow: 0 10px 34px -12px #cdac7e13;
  padding-top: 54px;
  padding-bottom: 54px;
  border-radius: var(--border-radius-main);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero .content-wrapper {
  text-align: center;
  max-width: 700px;
}

/* ==========================================================
   SPECIAL SECTIONS: Features, Value, Tips, CTA
   ========================================================== */
.features ul, .values ul, .tips-grid ul, .local-features ul, .community ul,
.reviews-list ul, .faq ul, .highlight-list .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 24px 0;
}
.features ul li, .values ul li, .tips-grid ul li, .local-features ul li, .community ul li,
.reviews-list ul li, .faq ul li, .highlight-list .text-section {
  background: #fff;
  border-radius: var(--border-radius-soft);
  box-shadow: 0 2px 10px 0 rgba(44,39,26,0.08);
  padding: 20px 18px 18px 20px;
  margin-bottom: 1px;
  flex: 1 1 0px;
  word-break: break-word;
  transition: box-shadow 0.21s, background 0.16s;
  position: relative;
}
.features ul li img, .values ul li img { margin-bottom: 11px; }
.features ul li:hover {
  box-shadow: 0 6px 22px rgba(80,140,80,0.13);
  background: #f3f9f2;
}

.cta-section, .newsletter {
  text-align: center;
  background: var(--color-leaf-light);
  color: #154117;
  border-radius: var(--border-radius-main);
  box-shadow: 0 3px 16px 0 rgba(44,39,26,0.12);
}
.cta-section .cta, .newsletter .cta {
  margin-top: 20px;
}

/* ========================================================== 
   CALL TO ACTION BUTTONS
   ========================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 28px;
  background: var(--color-leaf-dark);
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
  margin-top: 12px;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 12px rgba(26,85,40,0.08);
  transition: background 0.19s, box-shadow 0.23s, color 0.19s, transform 0.19s;
  cursor: pointer;
}
.cta.primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--color-leaf-dark);
  color: #fff;
  transform: scale(1.034);
}
.cta:hover,
.cta:focus {
  background: #7db379;
  color: var(--color-primary);
  box-shadow: 0 6px 22px rgba(241,160,53,0.12), 0 2px 16px 0 rgba(26,85,40,0.09);
  transform: translateY(-2px) scale(1.018);
  text-decoration: none;
}

/* ========================================================== 
   TESTIMONIALS
   ========================================================== */
.testimonials {
  background: linear-gradient(120deg, #EAE6DF 84%, #CBE4D2 100%);
  border-radius: var(--border-radius-main);
}
.testimonial-card {
  background: #fff;
  color: #154117;
  border-left: 8px solid var(--color-leaf-dark);
  border-radius: var(--border-radius-soft);
  margin-bottom: 28px;
  box-shadow: 0 4px 18px -6px rgba(26,85,40,0.12);
  padding: 28px 30px 18px 26px;
}
.testimonial-card strong {
  margin-top: 7px;
  font-size: 1rem;
  color: #497151;
}
.testimonials .content-wrapper > h2 {
  margin-bottom: 30px;
}

@media (max-width: 720px){
  .testimonial-card {
    padding: 19px 12px 9px 12px;
    font-size: 1rem;
    border-radius: 18px;
  }
}

/* ========================================================== 
   FOOTER STYLES
   ========================================================== */
footer {
  background: #d7cdbd;
  color: #2A2213;
  padding: 24px 0 0 0;
  margin-top: 40px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  position: relative;
  box-shadow: 0 -1px 28px rgba(44,39,26,0.10);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.99rem;
  padding: 8px 13px;
  border-radius: 13px;
  transition: color 0.20s, background 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-leaf-dark);
  background: #f7eed7;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.97rem;
  padding: 17px 0 0 0;
  border-top: 1px solid #ccbc9a;
}
.footer-contact address {
  font-style: normal;
  color: #123765;
  font-weight: 700;
}
.footer-contact a, .footer-contact p {
  display: flex;
  align-items: center;
  color: #1A5528;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.16s;
}
.footer-contact a:hover {
  color: var(--color-accent);
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

@media (max-width: 900px) {
  .footer-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  footer .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 570px) {
  .footer-nav {
    gap: 12px;
    font-size: 0.93rem;
  }
}

/* ========================================================== 
   SECTION & CARD SPACING
   ========================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

@media(max-width: 768px) {
  .content-grid, .card-container { flex-direction: column; }
  .text-image-section { flex-direction: column; gap: 18px; }
  section, .section { padding-left: 9px; padding-right: 9px; }
  .container { padding-left: 8px; padding-right: 8px; }
}

/* ========================================================== 
   RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 620px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
  section, .section { padding: 25px 6px !important; }
  .container { padding-left: 5px; padding-right: 5px; }
}
@media (max-width: 420px) {
  .card, .testimonial-card { padding: 12px 7px !important; }
  .main-nav img, .footer-contact img { width: 24px; height: 24px; }
  .cta { padding: 9px 14px; font-size: 0.97rem; }
}

/* ========================================================== 
   SPECIAL: THANK YOU PAGE
   ========================================================== */
.thankyou {
  background: #f7faef;
  text-align: center;
  border-radius: var(--border-radius-main);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thankyou .cta {
  margin-top: 18px;
}

/* ========================================================== 
   COOKIE CONSENT BANNER & MODAL
   ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #20491a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  box-shadow: 0 -2px 16px rgba(26,85,40,0.15);
  z-index: 13000;
  transition: transform 0.32s, opacity 0.27s;
  gap: 28px;
}
.cookie-banner.closed { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner__text {
  font-size: 1rem;
  max-width: 530px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  appearance: none;
  border: none;
  outline: none;
  padding: 10px 18px;
  border-radius: 8px;
  background: #fff;
  color: #1A5528;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 2px 9px rgba(136,110,41,0.07);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.14s;
  font-size: 1rem;
}
.cookie-banner button.accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner button.reject {
  background: #f1f1f1;
  color: var(--color-leaf-dark);
}
.cookie-banner button.settings {
  background: var(--color-secondary);
  color: var(--color-leaf-dark);
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  box-shadow: 0 6px 16px rgba(241,160,53,0.22);
  background: #fce7c7;
  color: #1A5528;
  transform: translateY(-2px) scale(1.033);
}

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 9px; gap: 20px; }
  .cookie-banner__actions { gap: 8px; }
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,55,51,0.79);
  z-index: 14000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open { display: flex; animation: fadeIn 0.29s cubic-bezier(.63, .1, .42, 1.07); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal__content {
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(44,39,26,0.21);
  padding: 36px 32px 28px 32px;
  min-width: 325px;
  color: #143d27;
  max-width: 96vw;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cookie-modal__header h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
  color: #20491a;
}
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #20491a;
  cursor: pointer;
}
.cookie-modal__categories {
  margin-bottom: 20px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  font-size: 1rem;
}
.cookie-modal__category label {
  font-weight: 500;
}
.cookie-modal__category input[type=checkbox] {
  accent-color: var(--color-leaf-dark);
  width: 22px; height: 22px;
  margin: 0 7px 0 0;
}
.cookie-modal__category input[disabled] {
  accent-color: #ccc;
}
.cookie-modal__actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
@media (max-width: 420px) {
  .cookie-modal__content { padding: 19px 7px 16px; min-width: 0; }
}

/* ========================================================== 
   ACCESSIBILITY: FOCUS STATES
   ========================================================== */
a:focus, button:focus,
.cta:focus, .cookie-modal__close:focus {
  outline: 3px dashed var(--color-leaf-dark);
  outline-offset: 2px;
}

/* ========================================================== 
   MISC: Utility & Minor Classes
   ========================================================== */
.text-section { margin-bottom: 24px; }
.text-section ul { margin-bottom: 12px; }
.bg-accent { background: var(--color-accent) !important; color: #fff !important; }
.hide { display: none !important; }

/* for book-snippets, reading-tips-preview, event-preview */
.book-snippets, .reading-tips-preview, .event-preview {
  background: #fff;
  border-radius: var(--border-radius-soft);
  box-shadow: 0 2px 8px 0 rgba(44,39,26,0.06);
  margin-bottom: 22px;
  padding: 16px 14px 14px 17px;
}

/* For submission section & about text-section */
.submission, .about .text-section {
  background: #fff;
  border-radius: var(--border-radius-soft);
  box-shadow: 0 1px 8px 0 rgba(44,39,26,0.06);
  margin-bottom: 26px;
  padding: 23px 17px 17px 21px;
}

/* Values Section */
.values {
  background: #f9f6f1;
  border-radius: var(--border-radius-main);
  box-shadow: 0 2px 10px 0 rgba(62,39,26,0.07);
}

/* Legal/GDPR/Cookie-policy etc */
.legal {
  background: #fff;
  border-radius: var(--border-radius-main);
  box-shadow: 0 4px 24px -10px rgba(66,79,48,0.08);
}

/* FAQ formatting */
.faq ul li strong {
  display: block;
  margin-bottom: 7px;
  color: #1A5528;
}
.faq ul li p {
  margin-bottom: 11px;
}

/* Contact page ul+li icons */
.contact ul { list-style: none; margin-left: 0; }
.contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--border-radius-soft);
  box-shadow: 0 2px 10px 0 rgba(44,39,26,0.08);
  padding: 11px 13px;
}
.contact ul li a { color: var(--color-primary); font-weight: 600; }
.contact ul li a:hover { color: var(--color-accent); }
.contact ul li img { height: 20px; width: 20px; margin-right: 8px; }

/* Submission CTA underline */
.submission a {
  color: var(--color-leaf-dark);
  text-decoration: underline !important;
  font-weight: 500;
}
.submission a:hover { color: var(--color-accent); }

/* ========================================================== 
   END OF CSS FILE
   ========================================================== */
