/* ===== 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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; background: #f2e9e4; color: #22223b; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section { display: block; }
img { max-width: 100%; display: block; height: auto; border-radius: 8px; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:focus { outline: 2px solid #22223b; outline-offset: 2px; }
ul, ol { list-style: none; }

/* ===== BRAND/FONT VARIABLES ===== */
:root {
  --color-primary: #22223b;
  --color-secondary: #f2e9e4;
  --color-accent: #9a8c98;
  --color-accent2: #c9ada7;
  --color-cta: #be185d;
  --color-bg-light: #fff;
  --color-bg-dark: #22223b;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(34, 34, 59, 0.07);
  --color-success: #2ecc40;
  --color-warning: #ffcf44;

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

@import url('https://fonts.googleapis.com/css?family=Merriweather:900,700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: var(--font-body);
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--color-primary);
  margin-bottom: 18px;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}

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

/* ===== GENERAL LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 0;
}
section, .section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
}
@media (max-width: 600px) {
  section, .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--color-bg-light);
  border-bottom: 2px solid var(--color-accent2);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
}
header img[alt="Lesefunken"] {
  height: 45px;
  width: auto;
  margin-right: 12px;
  border-radius: 0;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a.active {
  color: #fff;
  background: var(--color-accent);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-accent);
  cursor: pointer;
  margin-left: 10px;
  padding: 5px 10px;
  transition: background .18s, color .18s;
  border-radius: 8px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 960px) {
  nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}

/* ===== MOBILE SLIDE-IN MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: #fff;
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform .39s cubic-bezier(.7,0,.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 32px 24px 0 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 8px;
  transition: background .16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-accent2);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 60px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  padding: 8px 0;
  letter-spacing: 1.5px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-accent2);
  color: var(--color-primary);
}

@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(90deg, var(--color-secondary) 60%, #fff 120%);
  border-radius: 24px;
  box-shadow: 0 4px 32px -16px var(--color-card-shadow);
  margin-bottom: 48px;
}
.hero .content-wrapper {
  min-height: 320px;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  padding: 32px 12px 16px 12px;
}
.hero h1 {
  color: var(--color-accent);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1.5px;
}
.hero p {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .hero .content-wrapper { min-height: 160px; padding: 18px 2px; }
}

/* ===== BUTTONS & CALL TO ACTIONS ===== */
.cta,
button, .button {
  display: inline-block;
  border: none;
  border-radius: 16px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: .04em;
  padding: 14px 36px;
  cursor: pointer;
  margin-top: 6px;
  transition: transform .13s, background .19s, box-shadow .19s;
  box-shadow: 0 2px 10px 0 var(--color-card-shadow);
  text-shadow: none;
}
.cta.primary {
  background: var(--color-cta);
  color: #fff;
}
.cta:hover,
.cta.primary:hover,
button:hover, .button:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px -5px var(--color-card-shadow);
}
button:focus, .button:focus,
.cta:focus, .cta.primary:focus {
  box-shadow: 0 0 0 2px var(--color-accent2);
  outline: none;
}

/* ===== FLEXBOX UTILITIES & CONTAINERS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 3px 14px -4px var(--color-card-shadow);
  position: relative;
  padding: 32px 24px;
  min-width: 270px;
  flex: 1 1 260px;
  transition: box-shadow .18s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover {
  box-shadow: 0 7px 38px -10px var(--color-accent2);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

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

.features .content-wrapper > ul {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 1.07rem;
}
.features .content-wrapper li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
  color: var(--color-primary);
}
.features .content-wrapper li:before {
  content: '•';
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.feature-icons {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}
.feature-icons img {
  width: 38px;
  height: 38px;
}

/* ===== SERVICE & EVENT CARDS ===== */
.service-cards, .service-list, .event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.service-card, .event-card {
  background: var(--color-bg-light);
  border-radius: 18px;
  box-shadow: 0 3px 14px -4px var(--color-card-shadow);
  flex: 1 1 280px;
  min-width: 260px;
  padding: 24px 22px 14px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow .18s, transform .14s;
}
.service-card h2, .service-card h3 {
  color: var(--color-accent);
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 900;
}
.service-card span, .event-card span {
  display: inline-block;
  background: var(--color-accent2);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 5px 18px;
  font-size: .97rem;
  font-weight: 700;
  margin-top: 10px;
}
.service-card:hover, .event-card:hover {
  box-shadow: 0 10px 24px -8px var(--color-accent2);
  transform: translateY(-2px) scale(1.025);
}
.event-card {
  min-height: 190px;
  flex: 1 1 320px;
}
.event-card h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 900;
}
.event-card span img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .service-cards, .service-list, .event-list { gap: 16px; }
  .service-card, .event-card { min-width: 210px; padding: 13px 9px 13px 14px; }
}

/* CTA BOX */
.cta-box {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 2px 12px -2px var(--color-accent2);
  padding: 36px 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* ===== TESTIMONIALS ===== */
.testimonials .content-wrapper {
  gap: 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 34px;
  background: var(--color-bg-light);
  box-shadow: 0 3px 20px -5px var(--color-accent2);
  border-radius: 18px;
  margin-bottom: 28px;
  color: var(--color-primary);
  font-size: 1.08rem;
  font-family: var(--font-body);
  transition: box-shadow .16s, border-color .16s;
  border-left: 6px solid var(--color-accent);
  min-width: 240px;
  max-width: 730px;
}
.testimonial-card p {
  flex: 1 1 80%;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 0;
}
.testimonial-meta {
  min-width: 120px;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-direction: row;
  white-space: nowrap;
}
.testimonial-meta span {
  color: #ffba08;
  font-size: 1.1rem;
  margin-left: 3px;
}
.testimonial-card:hover {
  box-shadow: 0 9px 25px -9px var(--color-accent);
  border-color: var(--color-cta);
}

/* ===== TEXT SECTIONS & LISTS ===== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
  max-width: 900px;
}
.text-section ul, .text-section ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
.text-section ul li {
  position: relative;
  margin-bottom: 8px;
  color: var(--color-primary);
  padding-left: 16px;
}
.text-section ul li:before {
  content: '\25E2';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2em;
}
.text-section ol li {
  list-style: decimal;
  margin-left: 1.5em;
  margin-bottom: 8px;
}
.text-section strong {
  color: var(--color-accent);
  font-weight: bold;
}

.age-groups {
  margin-top: 12px;
}
.age-groups ul {
  margin-bottom: 0;
}

.benefits {
  background: var(--color-secondary);
  border-radius: 13px;
  padding: 18px 16px;
  margin-top: 12px;
  margin-bottom: 0;
}

.engagement-stats {
  background: var(--color-accent2);
  color: var(--color-primary);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 1.04rem;
  font-weight: 700;
  display: inline-block;
}

.member-testimonials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 26px 0 25px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.footer-menu a {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 5px;
  padding: 3px 10px;
  transition: background .15s, color .12s;
}
.footer-menu a:hover {
  background: var(--color-accent);
  color: #fff;
}
.contact-info {
  font-size: .98rem;
  line-height: 1.5;
  color: #f2e9e4;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.contact-info img {
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
  margin-right: 7px;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 21px;
  align-items: center;
  margin-top: 10px;
}
.social-links a {
  width: 35px; height: 35px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  transition: background 0.18s, box-shadow 0.18s;
}
.social-links a:hover,
.social-links a:focus {
  background: var(--color-cta);
  box-shadow: 0 0 7px var(--color-accent2);
}
.social-links img {
  width: 20px; height: 20px;
  margin: 0;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
  }
}

/* ===== MAP EMBED & DIRECTIONS ===== */
.map-embed {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--color-accent2);
  padding: 18px;
}
.map-embed img {
  width: 100%;
  max-width: 280px;
  border-radius: 13px;
}

.directions {
  margin-top: 28px;
}
.directions ul {
  padding-left: 24px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: #fff;
  padding: 28px 14px 19px 14px;
  box-shadow: 0 -3px 19px -5px var(--color-accent2);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  font-size: 1.08rem;
  transition: transform .32s, opacity .3s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-left: 24px;
}
.cookie-banner .cookie-btn {
  border-radius: 12px;
  padding: 8px 22px;
  background: var(--color-accent);
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 7px -2px var(--color-accent2);
  transition: background .16s, color .16s;
}
.cookie-banner .cookie-btn.primary {
  background: var(--color-cta);
  color: #fff;
}
.cookie-banner .cookie-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .cookie-btn:focus {
  outline: 2px solid var(--color-accent);
}
@media (max-width: 800px) {
  .cookie-banner { flex-direction: column; gap: 16px; text-align: center; }
  .cookie-banner .cookie-buttons { margin-left: 0; }
}

/* COOKIE SETTINGS MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,59,0.74);
  z-index: 2050;
  align-items: center;
  justify-content: center;
}
#cookie-modal.open {
  display: flex;
  animation: fadeIn .22s linear;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 22px;
  max-width: 470px;
  width: 90%;
  padding: 36px 32px 28px 32px;
  box-shadow: 0 8px 46px -16px var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: modalOpen .37s cubic-bezier(.7,0,.3,1);
}
@keyframes modalOpen {
  from { transform: translateY(120px) scale(.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 12px;
  color: var(--color-accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: var(--color-secondary);
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 1.04rem;
  font-weight: 500;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-toggle {
  accent-color: var(--color-accent);
  width: 22px;
  height: 22px;
  pointer-events: auto;
}
.cookie-category.essential {
  background: var(--color-accent2);
  color: var(--color-primary);
  font-weight: bold;
  opacity: 0.66;
}
.cookie-category.essential input {
  display: none;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal-actions button {
  border-radius: 10px;
  padding: 8px 22px;
  background: var(--color-accent);
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 7px -2px var(--color-accent2);
  transition: background .16s, color .16s;
}
.cookie-modal-actions button.primary {
  background: var(--color-cta);
  color: #fff;
}
.cookie-modal-actions button:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal-actions button:focus {
  outline: 2px solid var(--color-accent);
}

/* ===== RESPONSIVE & FLEX ADJUSTMENTS ===== */
@media (max-width: 900px) {
  .card-container, .service-cards, .service-list, .event-list, .content-grid {
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .card, .service-card, .event-card {
    min-width: unset; max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 650px) {
  .container { padding: 0 4px; }
  .content-wrapper { gap: 16px; }
  .footer-menu { gap: 9px; }
  .testimonials .content-wrapper { gap: 0; }
  .testimonial-card, .service-card, .event-card {
    padding: 13px 8px;
  }
  section, .section { padding: 16px 4px; }
  .cta-box { padding: 13px 5px; }
}

/* ========== Utility Classes ========== */
.mt-24 { margin-top: 24px !important; } .mt-40 { margin-top: 40px !important; }
.mb-16 { margin-bottom: 16px !important; } .mb-24 { margin-bottom: 24px !important; }
.py-16 { padding-top: 16px !important; padding-bottom: 16px !important; }

/* ===== ANIMATION/MICRO-INTERACTIONS ===== */
.card, .service-card, .cta-box, .event-card, .testimonial-card {
  transition: box-shadow .16s, transform .13s;
}
.card:active,
.service-card:active,
.cta-box:active {
  transform: scale(.98);
}
.cta, .cta.primary, button, .cookie-btn {
  transition: background .17s, color .17s, transform .13s;
}

/* ===== GEOMETRIC DECORATIVE SHAPES (OPTIONAL) ===== */
.hero::after {
  content: '';
  display: block;
  position: absolute;
  right: -80px; top: -80px;
  width: 210px; height: 210px;
  background: var(--color-accent2);
  border-radius: 50%;
  opacity: 0.11;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 800px) {
  .hero::after { display: none; }
}

/* ===== ACCESSIBILITY FOCUS STYLE ===== */
:focus-visible {
  outline: 3px solid var(--color-accent2);
  outline-offset: 2px;
}

/* ===== TYPOGRAPHIC SCALE ===== */
body { font-size: 16px; }
@media (max-width: 500px) {
  body { font-size: 14px; }
}

/* ===== MISC HELPFUL STYLES ===== */
::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

hr {
  border: 0;
  border-top: 2px solid var(--color-accent2);
  margin: 40px 0 20px 0;
}

.hide { display: none!important; }

/* ===== THANK YOU PAGE ===== */
.continue .cta {
  margin-top: 22px;
}

/* ========== END OF STYLE.CSS ========== */
