/* =========================
   Silent Crest Literaturwelten CSS
   Warm Friendly | Flexbox Only | Responsive | Accessible
   ================================
   DESIGN SYSTEM COLORS & FONTS
---------------------------------*/
:root {
  --color-primary: #2C3143; /* deep calm blue-gray */
  --color-secondary: #E6E5D8; /* gentle light cream */
  --color-accent: #3B5740; /* warm green accent */
  --color-bg: #FFFDF8; /* off-white paper (background) */
  --color-bg-alt: #F8F6F2; /* lighter secondary background */
  --color-card: #FFFFFF;
  --color-shadow: rgba(60, 50, 40, 0.08);
  --color-shadow-strong: rgba(44, 49, 67, 0.13);
  --color-cta: #BD9270; /* warm sand/caramel for CTAs */
  --color-cta-hover: #a57c5d; 
  --color-error: #b81414;
  --color-success: #338a4f;
  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ============================
   1. RESET & NORMALIZE
============================= */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-cta);
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
blockquote {
  quotes: none;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 8px;
}
hr {
  border: none;
  border-top: 1px solid var(--color-secondary);
  margin: 24px 0;
}

/* ==========================
   2. TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.125rem; }
  h3 { font-size: 1.375rem; }
  h4 { font-size: 1.125rem; }
}
p, li, blockquote, label, input, textarea {
  font-size: 1rem;
  font-family: var(--font-body);
}
strong, b {
  font-weight: 700;
}

/* =============================
   3. LAYOUT CONTAINERS
============================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* Grid / Flex container utilities */
.card-container, .service-cards, .review-cards, .tip-cards, .list-preview-cards, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px) {
  .card-container, .service-cards, .review-cards, .tip-cards, .list-preview-cards, .content-grid,
  .feature-grid {
    gap: 18px;
  }
  .feature-grid, .feature-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .content-wrapper, .card-container, .service-cards, .review-cards, .tip-cards, .list-preview-cards, .feature-grid, .content-grid, .footer-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* Content cards */
.card, .feature-item, .service-card, .review-card, .tip-card, .list-preview-card, .testimonial-card {
  background: var(--color-card);
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--color-shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.18s;
  position: relative;
}
.card:hover, .service-card:hover, .review-card:hover, .tip-card:hover, .list-preview-card:hover {
  box-shadow: 0 8px 28px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.02);
}

/* Testimonials (contrast on text guaranteed) */
.testimonial-card {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: 28px;
  box-shadow: 0 2px 12px var(--color-shadow);
  font-size: 1.08rem;
}
.testimonial-card blockquote {
  color: var(--color-accent);
  font-size: 1.15em;
  line-height: 1.44;
  margin-right: 12px;
}
.testimonial-card p {
  color: var(--color-primary);
  margin-bottom: 0;
}

/* ===============
   4. HEADER / NAV
================= */
header {
  background: var(--color-card);
  box-shadow: 0 2px 18px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px 16px;
  position: relative;
}
.main-nav a img {
  height: 42px;
  width: auto;
  border-radius: 10px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.main-nav ul li {
  margin-bottom: 0;
}
.main-nav ul li a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 10px;
  transition: background 0.18s, color 0.16s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.main-nav .cta-btn {
  margin-left: 20px;
}

/* Burger menu button (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-cta);
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.28s;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: absolute;
  right: 0;
  top: 12px;
  z-index: 250;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-cta-hover);
  outline: none;
}

@media (max-width: 1020px) {
  .main-nav ul {
    gap: 7px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 9px;
  }
}
/* MOBILE NAVIGATION */
@media (max-width: 900px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-card);
  box-shadow: 0 6px 20px var(--color-shadow-strong);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77,0.2,0.05,1.0);
  z-index: 900;
  padding: 24px 28px 16px 22px;
  overscroll-behavior: contain;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 2rem;
  color: var(--color-accent);
  padding: 6px;
  border-radius: 8px;
  transition: background 0.18s;
  margin-bottom: 20px;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  outline: none;
  color: var(--color-cta);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.09rem;
  font-family: var(--font-body);
  text-decoration: none;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-cta);
}

/* ============================
   5. BUTTONS & CTA
============================= */
.cta-btn {
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.4;
  padding: 15px 32px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.18s, transform 0.15s, box-shadow 0.2s;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-cta-hover);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px var(--color-shadow-strong);
  outline: none;
}

/* Inline buttons or links when needed inside banners/modals */
.btn-inline, .cookie-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0 8px 0 0;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.18s, transform 0.14s;
  box-shadow: 0 1px 3px var(--color-shadow);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-cta);
  color: #fff;
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: #b9322b;
}
.cookie-btn.reject:hover {
  background: #8d1810;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.cookie-btn.settings:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* =============================
   6. HERO & KEY SECTIONS
============================== */
.hero {
  background: linear-gradient(90deg, #e6e5d8 70%, #ffe9d2 100%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 2px 24px var(--color-shadow-strong);
  margin-bottom: 60px;
  padding: 40px 0 50px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
@media (min-width: 768px) {
  .hero {
    padding: 70px 0 80px 0;
    margin-bottom: 70px;
  }
  .hero .content-wrapper {
    align-items: center;
    text-align: center;
    gap: 30px;
  }
}

/* =============================
   7. FEATURES, SERVICES, CARDS
============================== */
.feature-item > img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-secondary);
  box-shadow: 0 4px 15px var(--color-shadow);
  margin-bottom: 8px;
}
.service-card, .review-card, .tip-card, .list-preview-card {
  min-width: 230px;
  flex: 1 1 260px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 190px;
  border-left: 6px solid var(--color-cta);
}
.service-card .service-price {
  margin-top: auto;
  font-size: 1.07em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 2px;
}
@media (max-width: 600px) {
  .service-card, .review-card, .tip-card, .list-preview-card {
    min-width: 90vw;
    width: 100%;
    max-width: 98vw;
  }
}

/* Content List, Categories */
.content-list ul, .tip-categories ul, .list-categories ul, .features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.content-list ul li, .tip-categories ul li, .list-categories ul li, .features ul li {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: 10px;
  font-size: 1rem;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 1px 4px var(--color-shadow);
}
.features ul li img {
  width: 1.4em;
  height: 1.4em;
}

/* Service Highlight Box */
.service-highlight {
  background: var(--color-bg-alt);
  border-radius: 18px;
  padding: 22px 22px;
  margin-bottom: 20px;
  color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
  font-size: 1.09rem;
}

/* =====================
   8. CONTACT SECTIONS
====================== */
.contact-details .contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-details .contact-info img {
  width: 1.7em;
  height: 1.7em;
}

/* ========================
   9. FOOTER
======================== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 44px 0 16px 0;
  border-radius: 34px 34px 0 0;
  margin-top: 80px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-wrapper > * {
  flex: 1 1 180px;
  margin-bottom: 10px;
}
.footer-logo-contact {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
.footer-logo-contact img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-secondary);
  font-size: 0.97rem;
}
.footer-nav a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-cta);
}
.contact-brief, .newsletter-signup {
  font-size: 0.99rem;
  line-height: 1.46;
  margin-bottom: 10px;
}
.newsletter-signup h4 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-bottom: 6px;
  margin-top: 0;
}
.newsletter-signup .cta-btn {
  background: var(--color-accent);
  margin-top: 7px;
  font-size: 1rem;
}
.social-links {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 10px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background 0.18s;
}
.social-links a:hover img, .social-links a:focus img {
  background: var(--color-secondary);
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  footer {
    padding: 30px 0 8px 0;
    border-radius: 26px 26px 0 0;
  }
  .footer-logo-contact {
    flex-direction: column;
    gap: 12px;
  }
}

/* =========================
   10. COOKIE CONSENT BANNER
======================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-card);
  color: var(--color-primary);
  box-shadow: 0 -2px 32px var(--color-shadow-strong);
  padding: 22px 12px 22px 30px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  gap: 22px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s, transform 0.35s;
}
#cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
#cookie-consent-banner .cookie-btn {
  margin-left: 0;
  margin-right: 10px;
  min-width: 120px;
}
@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 8px 18px 8px;
    font-size: 0.97rem;
  }
  #cookie-consent-banner .cookie-btn {
    min-width: unset;
    width: 90%;
    margin-bottom: 5px;
  }
}

/* COOKIE MODAL */
#cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1600;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44, 49, 67, 0.40);
  align-items: center;
  justify-content: center;
  animation: cookieFadeIn 0.27s;
}
#cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
#cookie-modal {
  background: var(--color-card);
  color: var(--color-primary);
  border-radius: 26px;
  box-shadow: 0 8px 34px var(--color-shadow-strong);
  max-width: 95vw;
  width: 420px;
  padding: 38px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: slideModal .22s;
}
@keyframes slideModal {
  from { transform: translateY(50px); opacity: 0; } to { transform: none; opacity: 1; }
}
#cookie-modal h2 {
  font-size: 1.22rem;
  font-family: var(--font-display);
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
#cookie-modal .cookie-category input[type=checkbox]:not(:disabled) {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
#cookie-modal .cookie-category label {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}
#cookie-modal .cookie-category .essential {
  color: var(--color-success);
  font-weight: 600;
}
#cookie-modal .cookie-btn {
  margin-top: 12px;
}
#cookie-modal .close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.85rem;
  border-radius: 8px;
  padding: 5px;
  transition: background 0.16s;
  cursor: pointer;
}
#cookie-modal .close:hover, #cookie-modal .close:focus {
  background: var(--color-secondary);
  color: var(--color-cta);
}

/* =========================
   11. THANK YOU SECTION
======================== */
.thankyou-section {
  background: linear-gradient(90deg, #e6e5d8 70%, #ffe9d2 100%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 2px 24px var(--color-shadow-strong);
  margin-bottom: 60px;
  padding: 70px 0 92px 0;
  text-align: center;
}
.thankyou-section .content-wrapper {
  align-items: center;
  gap: 24px;
}

/* =========================
   12. MEDIA QUERIES
======================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  section, .section {
    padding: 34px 5px;
    margin-bottom: 36px;
  }
  .hero, .thankyou-section {
    padding: 38px 0 34px 0;
    border-radius: 0 0 18px 18px;
  }
}

/* ===============
   13. MISC
================ */
.text-section {
  background: var(--color-bg-alt);
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.text-section h2, .text-section h3 {
  margin-top: 0;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
input, textarea, select {
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-secondary);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.17s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-shadow);
}

/* Accessibility: focus ring on links */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed var(--color-accent);
  outline-offset: 2px;
}

/* Hide visually but keep for screenreaders */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0;
}

/* ===============
   14. PRINT
================ */
@media print {
  header, nav, footer, #cookie-consent-banner { display: none !important; }
  .container { padding: 0 !important; }
  section, .section { background: none !important; box-shadow: none !important; }
}
