/* ===============================================================
   BücherKompass | Tech Futuristic CSS Theme
   Consistent flexbox layouts, mobile navigation, cookie consent
==================================================================*/

/* ===== CSS RESET & NORMALIZE ===== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; outline: none; }
body, h1, h2, h3, h4, h5, h6, ul, ol, li, p, figure, nav, footer, header, section, article { font: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; color: inherit; font: inherit; cursor: pointer; border: none; }
html { font-size: 16px; line-height: 1.5; }

/* ============ CUSTOM PROPS & BRAND COLORS ============= */
:root {
  --color-primary: #27354F;
  --color-secondary: #A9C1CB;
  --color-accent: #F5F0EB;
  --color-bg: #202638;
  --color-bg-alt: #232B3F;
  --color-neon: #29FFD6;
  --color-error: #F07167;
  --color-footer: #21263b;
  --font-display: 'Lora', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow-main: 0 4px 16px rgba(41,255,214,0.07),0 1.5px 10px rgba(39,53,79,0.14);
  --radius: 16px;
  --radius-card: 18px;
  --radius-btn: 32px;
  --duration: 0.25s;
}

body { 
  min-height: 100vh; 
  background: linear-gradient(135deg, #222B3A 30%, #34415D 100%);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.01em;
  background-attachment: fixed;
}

/* ============= TYPOGRAPHY ============= */
h1, .h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--color-neon); letter-spacing: 0.03em; margin-bottom: 0.65em; }
h2, .h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--color-secondary); margin-bottom: 0.6em; }
h3, .h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--color-accent); margin-bottom: 0.4em; }
h4, .h4 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; }
p, li { font-size: 1rem; color: var(--color-accent); margin-bottom: 0.8em; }
strong { color: var(--color-neon); font-weight: 600; }
em { color: var(--color-secondary); font-style: italic; }
a { color: var(--color-neon); transition: color var(--duration); }
a:hover, a:focus { color: #fff; text-shadow: 0 0 7px var(--color-neon); }

/* ================= LAYOUT CONTAINERS ================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* ====== SECTIONS ========== */
.section,
.hero, .features, .about-preview, .recommendation-teaser, .newsletter-signup, .about, .values, .testimonials, 
.category-hero, .reviews-list, .submission-invite, .tips-hero, .tips-list, .interactive, .recommendations-hero, 
.collections-list, .reader-favorites, .events-hero, .event-listings, .community-invitations, .contact, .visit-us, 
.privacy-overview, .detailed-policy, .gdpr-overview, .user-rights, .cookie-policy,
.terms-of-use, .thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
}

/* ======= HERO SECTIONS =========== */
.hero, .category-hero, .tips-hero, .recommendations-hero, .events-hero, .thank-you {
  background: linear-gradient(120deg, #2de3c2 0%, #222b3a 85%);
  color: var(--color-accent);
  box-shadow: 0 4px 40px rgba(41,255,214,0.10);
  border-radius: var(--radius-card);
}
.hero h1, .category-hero h1, .tips-hero h1, .recommendations-hero h1, .events-hero h1, .thank-you h1 {
  color: var(--color-neon);
  text-shadow: 0 0 14px #29FFD6;
}

/* ============= FLEX GRID CONTAINERS ============= */
.feature-grid, .review-grid, .tip-cards, .collection-cards, .community-picks, .event-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.card-container, .event-overview, .review-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.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;
}

/* ========== CARD STYLES ============= */
.feature-item, .review-card, .tip-card, .collection-card, .rec-card, .event-card, .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #232e45;
  border-radius: var(--radius-card);
  box-shadow: 0 3px 18px rgba(41,255,214,0.08), 0 1.5px 10px rgba(39,53,79,0.16);
  padding: 26px 24px 22px 24px;
  min-width: 210px;
  min-height: 160px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--duration), transform var(--duration);
}
.feature-item:hover, .review-card:hover, .tip-card:hover, .collection-card:hover, .rec-card:hover, .event-card:hover {
  box-shadow: 0 0 12px 2px var(--color-neon);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}
.rec-card {
  background: var(--color-footer);
  border-left: 4px solid var(--color-neon);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
  padding: 16px 20px;
  border-radius: var(--radius);
}
.event-card a { margin-top: 12px; }

/* ========== TESTIMONIAL CARD ============== */
.testimonials .testimonial-card {
  background: #f6f9fd;
  color: #222d41;
  border-radius: var(--radius-card);
  box-shadow: 0 1.5px 9px rgba(41,255,214,0.09);
  border-left: 4px solid var(--color-neon);
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow var(--duration), border-color var(--duration);
}
.testimonials .testimonial-card p {
  color: #2e3d5e;
}
.testimonials .testimonial-card strong {
  color: #11eac7;
}

/* ========== BUTTONS & CTA =========== */
.cta-btn, .feature-grid button, .review-grid button, .tips-list button, .collections-list button, .vote-section button,
.mobile-nav a, .event-card a, .rec-card a, .community-invitations a, .quiz-teaser a, .meetup-teaser a, .contact-cta a {
  background: var(--color-neon);
  color: #191e2c;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 11px 32px;
  border-radius: var(--radius-btn);
  box-shadow: 0 1.5px 9px rgba(41,255,214,0.13);
  transition: background var(--duration), color var(--duration), box-shadow var(--duration), transform var(--duration);
  display: inline-block;
  margin-right: 16px;
  margin-top: 12px;
}
.cta-btn:hover, .feature-grid button:hover, .review-grid button:hover, .tips-list button:hover, .collections-list button:hover, .event-card a:hover, .quiz-teaser a:hover, .meetup-teaser a:hover, .vote-section button:hover {
  background: #1edcc3;
  color: #222;
  box-shadow: 0 0 12px 4px #29FFD6;
  transform: scale(1.03);
}
.cta-btn:active { background: #1bc4ab; }

button, .btn {
  background: var(--color-footer);
  color: var(--color-neon);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.98rem;
  margin-right: 6px;
  border: 1px solid var(--color-neon);
  transition: background var(--duration), color var(--duration), border var(--duration);
}
button:hover, .btn:hover { background: var(--color-neon); color: #21263b; border-color: #23be9b; }

/* =============== HEADER & NAVIGATION ================= */
header {
  background: #1a2032cc;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 12;
  box-shadow: 0 2px 40px rgba(41,255,214,0.11);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img { height: 46px; max-width: 180px; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--color-accent); font-weight: 600; font-size: 1.07rem; letter-spacing: 0.03em; border-bottom: 2.5px solid transparent; padding: 8px 0; transition: border-color var(--duration), color var(--duration); }
nav a.active, nav a:hover, nav a:focus { color: var(--color-neon); border-bottom: 2.5px solid var(--color-neon); }
.mobile-menu-toggle { display: none; font-size: 2rem; color: var(--color-neon); background: var(--color-footer); border-radius: 50%; width: 42px; height: 42px; align-items: center; justify-content: center; box-shadow: 0 4px 20px #1bc4ab22; }
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: var(--color-neon); color: #27354F; }
.cta-btn {
  margin-left: 20px;
  margin-right: 0;
}

/* ============= MOBILE NAV LAYER ============ */
.mobile-menu {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,25,35,0.98);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 42px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 2.1rem;
  color: var(--color-neon);
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background var(--duration), color var(--duration);
  z-index: 100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: var(--color-neon); color: #202638; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-neon);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 16px 8px;
  border-bottom: 2.5px solid transparent;
  border-radius: 8px;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus { background: #22e4c862; border-bottom: 2.5px solid var(--color-neon); color: #fff; }

/* =============== FOOTER ============== */
footer {
  margin-top: 60px;
  background: var(--color-footer);
  color: #dbefff;
  box-shadow: 0 -2.5px 44px rgba(39,255,214,0.06);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 24px;
}
footer nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-start;
}
footer nav a {
  color: var(--color-neon);
  font-size: 1rem;
  font-weight: 600;
  margin-right: 16px;
  opacity: 0.82;
  border-bottom: none;
}
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.96rem; color: #eef; }
.footer-contact img { width: 18px; margin-right: 8px; vertical-align: middle; }
.footer-legal { margin-top: 18px; font-size: 0.92rem; color: #b0bedc; width: 100%; }

/* ======================== NEWSLETTER, TEASERS ==================== */
.newsletter-signup ul {
  margin-top: 8px;
  margin-bottom: 14px;
}
.newsletter-signup li {
  font-size: 1rem;
  color: var(--color-neon);
  margin-bottom: 5px;
}
.recommendation-teaser .top-picks-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.recommendation-teaser a {
  margin-top: 12px;
}
.collection-cards, .tip-cards {
  gap: 24px;
  margin-bottom: 20px;
}

/* =================== COMMUNITY PICKS ===================*/
.community-picks {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 16px;
}
.community-picks > div {
  background: #26324f;
  color: var(--color-accent);
  border-left: 3px solid var(--color-neon);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-family: var(--font-body);
}
.vote-section {
  margin-top: 10px;
}

/* =================== QUIZ & MEETUP TEASERS =================== */
.quiz-teaser, .meetup-teaser {
  background: #232b3f;
  border-left: 4px solid var(--color-neon);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 10px;
}
.meetup-teaser a, .quiz-teaser a {
  margin-top: 8px;
}

/* ========== CONTACT & ADDRESS SECTIONS ========== */
.contact-information, .opening-hours, .address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.contact-information img, .address img { width: 18px; vertical-align: middle; margin-right: 7px; }

/* ================== MODAL OVERLAYS (COOKIE) ================== */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 0;
  bottom: 0;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #232e47;
  color: #fff;
  padding: 20px 24px;
  box-shadow: 0 -8px 34px #29FFD666;
  border-top: 2.5px solid var(--color-neon);
  font-size: 1rem;
  gap: 20px;
  flex-wrap: wrap;
  animation: cookie-fadein 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes cookie-fadein { from { transform: translateY(100%); } to { transform: none; } }
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--color-neon);
  color: #222c3e;
  border-radius: var(--radius-btn);
  border: none;
  padding: 9px 22px;
  font-size: 0.99rem;
  letter-spacing: 0.035em;
  font-weight: 700;
  margin-right: 0;
  transition: box-shadow var(--duration), background var(--duration), color var(--duration);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 0 10px var(--color-neon);
  background: #13e6ba;
  color: #19213a;
}

.cookie-modal {
  position: fixed;
  z-index: 2000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,32,50,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-fadein 0.5s;
}
.cookie-modal .cookie-modal-content {
  background: #232e47;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px #29FFD633;
  max-width: 420px;
  width: 92%;
  padding: 32px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 2rem;
  color: var(--color-neon);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal h3 { color: var(--color-neon); margin-bottom: 8px; font-size: 1.2rem;}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-category label { font-weight: 600; }
.cookie-category input[type="checkbox"] { width: 20px; height: 20px; background: #19213a; border-radius: 5px; accent-color: var(--color-neon); margin-top: 0; }

/* =============== GENERAL TABLE & LISTS =============== */
ul, ol {
  margin-bottom: 18px;
}
li {
  margin-bottom: 8px;
  padding-left: 8px;
  position: relative;
}
ul li:before {
  content: '';
  display: inline-block;
  background: var(--color-neon);
  border-radius: 50%;
  width: 7px; height: 7px;
  margin-right: 10px;
  margin-left: -17px;
}
ol { counter-reset: number; }
ol li { counter-increment: number; }
ol li:before { content: counter(number) ". "; color: var(--color-neon); font-weight: bold; margin-right: 7px; }

/* =============== MEDIA QUERIES ================ */
@media (max-width: 1080px) {
  .container { max-width: 98vw; }
  .footer-contact { font-size: 0.92rem; }
}
@media (max-width: 920px) {
  nav { gap: 10px; }
  .container { padding-left: 10px; padding-right: 10px; }
  .footer-contact, .footer-legal { font-size: 0.94rem; }
  .feature-grid, .review-grid, .tip-cards, .collection-cards, .event-overview { gap: 14px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding-left: 8px; padding-right: 8px; }
  header .container { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  nav { display: none; }
  .cta-btn { margin-left: 8px; }
  .mobile-menu-toggle { display: flex; }
  .hero, .category-hero, .tips-hero, .recommendations-hero, .events-hero, .thank-you { padding: 28px 8px; }
  .content-wrapper { gap: 14px; }
  .feature-grid, .review-grid, .tip-cards, .collection-cards, .event-overview { flex-direction: column; gap: 14px; }
  .newsletter-signup ul, .newsletter-signup li { font-size: 0.97rem; }
  .card { min-width: 80vw; }
  .section, .about-preview, .about, .values, .testimonials, .submission-invite, .reader-favorites, .recommendation-teaser, .recommendations-hero, .collections-list, .events-hero, .event-listings, .community-invitations, .contact, .visit-us, .privacy-overview, .detailed-policy, .terms-of-use, .thank-you, .gdpr-overview, .user-rights, .cookie-policy { padding: 24px 8px; margin-bottom: 34px; }
  .footer-legal, .footer-contact { font-size: 0.88rem; }
  .mobile-menu { padding: 38px 12px 18px 12px; }
}
@media (max-width: 480px) {
  h1, .h1 { font-size: 1.44rem; }
  h2, .h2 { font-size: 1.16rem; }
  h3, .h3 { font-size: 1rem; }
  nav a, .mobile-nav a { font-size: 1rem; }
  .cookie-modal .cookie-modal-content { padding: 15px 6px 13px 10px; }
  .rec-card, .feature-item, .tip-card, .collection-card, .event-card, .testimonial-card { padding: 12px 10px; }
}

/* ============ GENERAL ANIMATIONS/MICRO-INTERACTIONS =========== */
a, button, .cta-btn, .feature-item, .review-card, .collection-card, .tip-card, .event-card, .rec-card, .mobile-menu-toggle, .mobile-menu-close {
  transition: all var(--duration) cubic-bezier(0.61,0,0.4,1);
}
.card, .feature-item, .review-card, .tip-card, .collection-card {
  position: relative;
  overflow: hidden;
}
.card:after, .feature-item:after, .review-card:after, .tip-card:after, .collection-card:after {
  content: '';
  display: block;
  position: absolute;
  left: -80px;
  top: 40px;
  width: 45px;
  height: 110%;
  background: radial-gradient(circle, var(--color-neon) 0%, transparent 75%);
  opacity: 0.09;
  pointer-events: none;
  filter: blur(1.5px);
}
.card:hover:after, .feature-item:hover:after, .review-card:hover:after, .tip-card:hover:after, .collection-card:hover:after {
  left: 84%;
  top: -15px;
  width: 64px;
  opacity: 0.16;
}

/* ================== SCROLLBAR & SELECTION =================== */
::-webkit-scrollbar { width: 10px; background: #1b2240; }
::-webkit-scrollbar-thumb { background: #29ffd6aa; border-radius: 8px; }
::selection { background: #29ffd6; color: #21263b; }

/* ====================== MISC ======================== */
@media (max-width: 480px) { .mobile-menu .mobile-nav a { font-size: 0.93rem; padding: 12px 3px; } }

/* ================= UTILS/HELPERS =================== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.w-100 { width: 100%!important; }
.round { border-radius: 50%!important; }

/* =========== NO GRID/NO ABSOLUTE FOR CONTENT-ONLY ============= */
/* No display:grid, grid-*, columns, or absolute for layouts/cards*/

/* ============= END BOOKKOMPASS THEME ============= */
