/* --- 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;}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {display:block;}
body {line-height:1;}
ol, ul {list-style:none;}
a {text-decoration:none; color:inherit;}
img {border:0; max-width:100%; display:block;}
button {font-family:inherit; background:none; border:none; cursor:pointer;}
/* --- END RESET --- */

:root {
  --primary: #21314A;
  --secondary: #D4C2A5;
  --accent: #E89A22;
  --cream: #F6F3EB;
  --vintage-blue: #51738D;
  --retro-orange: #F4B860;
  --soft-brown: #A98F75;
  --shadow: rgba(33,49,74,0.09);
  --white: #FFF;
  --black: #1A1A16;

  --font-display: 'Merriweather', serif;
  --font-body: 'Raleway', Arial, Verdana, sans-serif;
}

/* Importing fonts - fallback to local if needed */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Raleway:400,500,700&display=swap');

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--primary);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 900;
  text-shadow: 0 2px 0 var(--secondary), 0 8px 24px var(--shadow);
  letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 1.75rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
.headline { font-size: 1.31rem; font-family: var(--font-display); color: var(--retro-orange); margin-bottom: 8px; }
.subheadline { font-size: 1.08rem; color: var(--soft-brown); margin-bottom: 10px; }

p, li, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}

strong { font-weight: 700; color: var(--vintage-blue); }

/* ========== LAYOUT ========== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  background: var(--white);
  border-radius: 26px;
  padding: 40px 24px;
  margin-bottom: 40px;
  box-shadow: 0 4px 30px var(--shadow);
  border: 3.5px solid var(--secondary);
  position: relative;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--white);
  border: 2px solid var(--secondary);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 18px;
  min-width: 240px;
  flex: 1 1 285px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px var(--vintage-blue);
  transform: translateY(-3px) scale(1.018);
}

.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;
  background: var(--secondary);
  border-radius: 16px;
  border: 2px dashed var(--accent);
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 20px;
  font-size: 1.1rem;
  flex: 1 1 270px;
  color: var(--primary);
  position: relative;
  transition: box-shadow 0.19s;
}
.testimonial-card p {
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 1.08rem;
}
.testimonial-card span {
  color: var(--primary);
  font-style: italic;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px var(--retro-orange);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Tip Cards (Lesetipps) --- */
.tip-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.tip-cards > div {
  background: var(--cream);
  border: 2.5px dotted var(--soft-brown);
  border-radius: 20px;
  box-shadow: 0 2px 18px var(--shadow);
  padding: 24px 22px;
  flex: 1 1 265px;
  min-width: 220px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.tip-cards > div:hover {
  box-shadow: 0 8px 32px var(--accent);
  transform: translateY(-3px) scale(1.012);
}
.quick-reads-section {
  background: var(--retro-orange);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--primary);
  margin-bottom: 20px;
}
.quick-reads-section h3 { color: var(--primary); }
.quick-reads-section ul li { color: var(--white); font-weight: 600; margin: 4px 0; }

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 0 0;
}
.faq-accordion details {
  background: var(--secondary);
  border-radius: 13px;
  padding: 15px 17px;
  border: 1.5px solid var(--accent);
  color: var(--primary);
  transition: background 0.2s;
}
.faq-accordion summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
}
.faq-accordion details[open] {
  background: var(--vintage-blue);
  color: var(--white);
}
.faq-accordion details[open] summary {
  color: var(--accent);
}

/* Badge, Category, Filter UI */
.badge, .category, .filter {
  display: inline-block;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.89rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 2px 10px 2px 10px;
  margin-left: 8px;
  letter-spacing:0.4px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s;
}
.badge { background: var(--retro-orange); color: var(--primary); }
.category { background: var(--vintage-blue); }
.filter {
  background: var(--soft-brown);
  color: var(--white);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.filter:hover { background: var(--accent); color: var(--white); }

/* --- Highlight Grid --- */
.highlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.highlight-grid > div {
  background: var(--secondary);
  border-radius: 18px;
  padding: 24px 20px;
  flex: 1 1 270px;
  box-shadow: 0 4px 16px var(--shadow);
  border: 2px solid var(--soft-brown);
  transition: box-shadow 0.19s, transform 0.19s;
}
.highlight-grid > div:hover {
  box-shadow: 0 8px 32px var(--accent);
  transform: translateY(-2px) scale(1.012);
}

/* --- Literary Timeline --- */
.literary-timeline {
  background: var(--cream);
  border-left: 5px solid var(--soft-brown);
  padding: 18px;
  border-radius: 10px; 
  margin-bottom: 20px;
}
.literary-timeline ul {
  margin-left: 7px;
}
.literary-timeline li {
  margin-bottom: 10px;
  padding-left: 8px;
  font-size: 1.08rem;
  position: relative;
}
.literary-timeline li::before {
  content: '\25A0';
  color: var(--accent);
  margin-right: 6px;
  font-size: 0.84rem;
  position: relative;
  top: -.7px;
}

/* --- Value Icons on About Page --- */
.value-icons {
  display: flex;
  gap: 20px;
  margin: 12px 0 18px 0;
  align-items: center;
}
.value-icons img { width: 38px; height: 38px; filter: grayscale(18%); }

/* --- ROWS --- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.map-snippet { margin: 28px 0 16px 0; border-radius: 14px; overflow: hidden; }

/* --- Footer --- */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 38px 0 18px 0;
  font-size: 0.98rem;
  margin-top: 70px;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.92;
  padding: 3px 5px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover {background: var(--secondary); color: var(--primary);}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 7px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}
footer img {height: 37px; margin-bottom: 10px;}
footer p:last-child {font-size: 0.93rem; opacity: 0.8;}

/* --- HEADER & MAIN NAVIGATION --- */
header {
  background: var(--secondary);
  box-shadow: 0 2px 24px var(--shadow);
  border-bottom: 3.5px solid var(--primary);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  padding: 0 16px;
}
header img { height: 46px; margin-right: 22px; }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.09rem;
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 8px;
  transition: background 0.21s, color 0.21s;
}
nav a:hover, nav a.active {
  background: var(--accent);
  color: var(--white);
}

/* --- BUTTONS & CTAs --- */
.cta-btn {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  border-radius: 20px;
  padding: 14px 31px;
  box-shadow: 0 4px 18px var(--shadow);
  border: none;
  display: inline-block;
  transition: background 0.25s, color 0.25s, transform 0.19s;
  margin: 18px 0 0 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--vintage-blue);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}
.contact-buttons {
  display: flex;
  gap: 14px;
}

/*--- Mobile Burger Menu Styles ---*/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--accent);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 10px;
  border: 2px solid var(--soft-brown);
  margin-left: 16px;
  transition: background 0.2s;
  z-index: 51;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--accent);
}
.mobile-menu {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: var(--primary);
  color: var(--secondary);
  z-index: 2222;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 16px;
  margin: 18px 18px 7px 0;
  padding: 4px 16px 2px 16px;
  border: none;
  transition: background 0.2s, color 0.2s;
  z-index: 52;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--white);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}
.mobile-nav a {
  font-size: 1.39rem;
  font-family: var(--font-display);
  color: var(--secondary);
  padding: 12px 26px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--cream);
  color: var(--primary);
  box-shadow: 0 -4px 24px var(--shadow);
  border-top: 3px solid var(--accent);
  z-index: 2075;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  gap: 22px;
  opacity: 1;
  transition: opacity 0.35s;
}
.cookie-banner.hide {opacity:0; pointer-events: none;}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button, .cookie-modal button {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.01rem;
  border-radius: 19px;
  padding: 9px 20px;
  border: none;
  box-shadow: 0 2.5px 7px var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.17s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-banner .accept:hover { background: var(--primary); color: var(--accent); }
.cookie-banner .reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .reject:hover { background: var(--vintage-blue); color: var(--white); }
.cookie-banner .settings {
  background: var(--retro-orange);
  color: var(--primary);
}
.cookie-banner .settings:hover { background: var(--accent); color: var(--white); }

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width:100vw;
  height:100vh;
  background: rgba(33,49,74,0.89);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3200;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.33s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--cream);
  color: var(--primary);
  border-radius: 23px;
  box-shadow: 0 12px 48px var(--shadow);
  border: 4px solid var(--accent);
  padding: 38px 30px 30px 30px;
  max-width: 420px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h2 {
  margin-bottom: 11px; color: var(--vintage-blue); font-size: 1.35rem;
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 2.2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  padding: 2px 12px;
  border: none;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  transition: background 0.2s;
}
.cookie-modal-content .close-modal:hover { background: var(--primary); color: var(--accent); }
.cookie-modal-category {
  background: var(--secondary);
  border-radius: 11px;
  margin-bottom: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size:1.06rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: var(--accent);
  border-radius: 20px;
  position: relative;
  outline: none;
  transition: background 0.24s;
  cursor: pointer;
}
.cookie-toggle:checked {background: var(--vintage-blue);}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left:3px; top:3px;
  width:14px; height:14px;
  background: var(--white);
  border-radius:50%;
  transition: left 0.22s;
}
.cookie-toggle:checked:before { left:21px; }
/* Make essential cookie category appear disabled */
.cookie-modal-category.essential .cookie-toggle {
  opacity: 0.3;
  pointer-events: none;
}

/* Modal buttons */
.cookie-modal-buttons {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* --- Confirmation page special --- */
.confirmation-message {
  background: var(--vintage-blue);
  color: var(--secondary);
  border-radius: 12px;
  padding: 15px 18px;
  margin: 16px 0 18px 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: bold;
}

/* --- Responsive Queries (MOBILE FIRST) --- */
@media (max-width: 1024px) {
  .container { max-width: 98%; }
}

@media (max-width: 900px) {
  .container { max-width: 99%; }
  .card-container, .highlight-grid, .tip-cards, .content-grid, .row, .footer-contact, .value-icons {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .card, .highlight-grid > div, .tip-cards > div, .testimonial-card { min-width: 80%; }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 4px; padding-right: 4px;
  }
  .header .container, header .container {
    flex-direction: row;
  }
  .content-wrapper {
    padding: 26px 8px;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 7px;
  }
  /* Nav toggle */
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-contact { flex-direction: column; gap: 9px; }
  .row { flex-direction: column; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 20px; }
  .card-container, .highlight-grid, .tip-cards, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 13px 8px;
  }
  .footer-contact p { font-size: 0.97rem; }
}

@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.11rem; }
  .headline { font-size: 1.01rem; }
  .subheadline { font-size: 0.94rem; }
  .contact-buttons .cta-btn { padding: 9px 18px; font-size: 0.95rem; }
  .footer-contact p { font-size: 0.9rem; }
  .cookie-banner {flex-direction: column; gap: 11px; padding: 14px 6px;}
  .cookie-modal-content {padding:18px 4px 20px 4px;}
}

/* ========== MICRO-INTERACTIONS & ANIMATIONS ========== */
a, .cta-btn, .cookie-modal button, .cookie-banner button, .card, .filter, .badge, .category {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
}

/* Subtle pattern for vintage feel */
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  left:0; top:0; right:0; bottom:0;
  opacity: 0.08;
  pointer-events: none;
  background-image:
    repeating-linear-gradient( 135deg, var(--secondary) 0px, var(--secondary) 2px, transparent 2px, transparent 12px ),
    repeating-linear-gradient( 45deg, var(--retro-orange) 0px, var(--retro-orange) 1.4px, transparent 1.4px, transparent 18px );
  background-size: 28px 28px;
}

/* ========== PRINT ========== */
@media print {
  header, footer, .cookie-banner, .mobile-menu {display:none!important;}
  .container, .content-wrapper, main, body {background: #fff; color: #000; box-shadow:none;}
}
