/* ============================================================
   CSS Reset & Normalize
   ============================================================ */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  color: #3C2E17;
  background: #F5E5B8;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: .03em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #AC001C;
  text-decoration: none;
  transition: color .2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #23527C;
  text-decoration: underline;
}
ul, ol {
  margin-left: 2em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
}
strong {
  font-weight: bold;
}

/* ============================================================
   Vintage Retro Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Lato:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #23527C;
  margin-bottom: .6em;
  letter-spacing: .02em;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 0 #F5E5B8, 3px 3px 0 #AC001C10;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
p {
  font-size: 1.06rem;
  margin-bottom: 16px;
  color: #3C2E17;
}

/* ============================================================
   Vintage Retro Color Palette & Variables
   ============================================================ */
:root {
  --color-primary: #23527C;
  --color-secondary: #AC001C;
  --color-accent: #F5E5B8;
  --color-bg: #F5E5B8;
  --color-card-bg: #FFF8E0;
  --color-text: #3C2E17;
  --color-dark: #232019;
  --color-light: #ffffff;
  --color-border: #E3C48E;
  --color-contrast: #561309;
  --color-shadow: #AC001C22;
}

/* ============================================================
   Layout: Container & Sections
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  padding: 32px 24px;
  margin-bottom: 24px;
}

/* ============================================================
   HEADER, NAVIGATION & HERO
   ============================================================ */
header {
  background: #fff8e8 url('../assets/bg-header-pattern.svg') repeat top center;
  border-bottom: 3px dashed var(--color-border);
  box-shadow: 0 6px 22px -16px var(--color-shadow);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}
header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--color-primary);
  background: none;
  padding: 4px 10px;
  border-radius: 7px;
  transition: background .18s, color .18s;
  text-shadow: 1px 1px 0 #e7dac0cc;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  background: #F5E5B8;
}
.btn-primary {
  font-family: 'Merriweather', serif;
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 11px 32px;
  border: none;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .07em;
  margin-left: 16px;
  transition: background .22s, color .22s, box-shadow .2s;
  outline: none;
  cursor: pointer;
  text-shadow: 1px 1px 0 #76441b33;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 16px 0 var(--color-secondary);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  color: var(--color-secondary);
  background: var(--color-accent);
  border: 2px solid var(--color-secondary);
  border-radius: 6px;
  font-size: 2.2rem;
  padding: 2px 7px 0 7px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
  z-index: 60;
}

@media (max-width: 1000px) {
  .btn-primary {
    margin-left: 4px;
    padding: 8px 20px;
    font-size: 1rem;
  }
  header nav a {
    font-size: .98rem;
    padding: 3px 7px;
  }
}

.hero {
  background: var(--color-card-bg) url('../assets/bg-vintage-ornament.svg') repeat-x bottom;
  border-bottom: 5px dotted var(--color-border);
  padding: 60px 0 40px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 14px;
}
.hero h1 {
  color: var(--color-secondary);
  font-size: 2.7rem;
  font-family: 'Merriweather', serif;
  text-shadow: 3px 3px 0 #F5E5B8, 0 3px 24px #23527c33;
  margin-bottom: 16px;
  letter-spacing: .04em;
  text-align: center;
}
.hero p {
  color: var(--color-text);
  font-size: 1.23rem;
  margin-bottom: 17px;
  text-align: center;
  max-width: 600px;
}
.hero .btn-primary {
  margin-top: 14px;
  font-size: 1.11rem;
}

/* ============================================================
   FLEXBOX PATTERNS as per spec
   ============================================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  border-radius: 13px;
  padding: 24px 18px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 0;
  background: #fffaf2;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 #23527c44;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FAQ style block, reuse text-section */
.text-section h3 {
  margin-top: 10px;
  color: var(--color-secondary);
}

/* Features Grid (Classic 3-column, FLex Only!) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.feature-grid > div {
  background: #fff4de;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  box-shadow: 0 1px 7px 0 #ac001c25;
  flex: 1 1 265px;
  min-width: 250px;
  max-width: 350px;
  padding: 28px 18px 24px 18px;
  margin-bottom: 0;
  transition: box-shadow .24s, border-color .25s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.feature-grid > div img {
  width: 56px;
  margin-bottom: 8px;
  filter: sepia(30%);
  opacity: .92;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 24px 0 #23527c33;
  border-color: var(--color-secondary);
}
.feature-grid h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
}
.feature-grid p {
  margin-bottom: 0;
}

/* Newsletter Section */
.newsletter {
  padding: 46px 0 42px 0;
  margin-bottom: 0;
  background: var(--color-primary) url('../assets/bg-vintage-ornament.svg') repeat-x bottom;
}
.newsletter .text-section, .newsletter .content-wrapper {
  background: none;
  box-shadow: none;
  text-align: center;
  color: #fff;
}
.newsletter h2, .newsletter .text-section h2 {
  color: var(--color-accent);
  text-shadow: 2px 2px 0 #23527c38;
}
.newsletter .btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  box-shadow: 0 2px 10px 0 #fff4ebaa;
  text-shadow: none;
}
.newsletter .btn-primary:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ============================================================
   Testimonials & Highlights
   ============================================================ */
.testimonial-card {
  font-size: 1.07rem;
  color: #2b1707;
  background: #FFF8E0;
  border-left: 5px solid var(--color-secondary);
  margin-bottom: 28px;
  box-shadow: 0 2px 14px 0 #ac001c18;
  border-radius: 15px;
  align-items: flex-start;
  gap: 18px;
}
.testimonial-card p {
  color: #2b1707;
  font-style: italic;
  margin-bottom: 7px;
  margin-right: 8px;
}
.testimonial-card span {
  font-size: .97rem;
  color: #5b3c15;

}
.testimonial-card:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: #EFE3CA url('../assets/bg-footer-pattern.svg') repeat-x top center;
  font-size: 1rem;
  color: #3C2E17;
  padding: 36px 0 20px 0;
  border-top: 3px double #DDB04C;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
footer nav a {
  color: var(--color-primary);
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  padding: 2px 8px;
  background: transparent;
  border-radius: 6px;
  transition: color .17s, background .17s;
}
footer nav a:hover {
  color: var(--color-secondary);
  background: #fceccc;
}
footer address {
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px 24px;
  line-height: 1.5;
  font-size: .97rem;
  color: #3C2E17;
}
footer address img {
  margin-right: 7px;
  vertical-align: middle;
  height: 18px;
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF8E0;
  border-top: 4px double #cd993b;
  box-shadow: 0 -8px 32px 0 #23527c33;
  color: #3C2E17;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 22px 18px;
  z-index: 2000;
  gap: 20px;
  font-family: 'Lato', Arial, sans-serif;
  animation: cookieBannerIn .7s cubic-bezier(.42, 1.5, .5, 1) 1;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 5px;
}
.cookie-banner button {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1.01rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  padding: 8px 32px;
  margin: 0 2px;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: background .2s, color .2s, border-color .22s;
}
.cookie-banner button.accept {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
  box-shadow: 0 1px 8px 0 var(--color-secondary);
}
.cookie-banner button.reject {
  background: #fff4de;
}
.cookie-banner button.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 2px 14px 0 var(--color-secondary);
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #00000066;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn .33s cubic-bezier(.23,1.8,.55,1) 1;
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF8E0;
  border-radius: 14px;
  box-shadow: 0 8px 36px 0 #ac001c33;
  padding: 38px 28px 24px 28px;
  max-width: 410px;
  width: 96%;
  font-family: 'Lato', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalContentIn .55s cubic-bezier(.3,1.5,.9,1) 1;
}
@keyframes cookieModalContentIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 4px
}
.cookie-modal-content label {
  font-size: 1.01rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal-content input[type=checkbox] {
  accent-color: var(--color-secondary);
  margin-right: 6px;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  opacity: .8;
  transition: opacity .2s;
}
.cookie-modal-close:hover {
  opacity: 1;
}

/* ============================================================
   MOBILE NAV & BURGER
   ============================================================ */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFF8E0ee;
  z-index: 2010;
  flex-direction: column;
  animation: none;
  transform: translateX(-100%);
  transition: transform .42s cubic-bezier(.14,1.3,.72,1);
  box-shadow: 0 0 64px 24px #56130911;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: mobileMenuIn .44s cubic-bezier(.09,1.2,.4,1.21) 1;
}
@keyframes mobileMenuIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.7rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  margin: 13px 25px 11px 0;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
}
.mobile-menu-close:hover {
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 40px;  /* larger touch targets */
}
.mobile-nav a {
  font-size: 1.23rem;
  color: var(--color-primary);
  font-family: 'Merriweather', serif;
  padding: 8px 0;
  border-bottom: 1px dotted #AC001C33;
  width: 100%;
  text-align: left;
  transition: color .2s, background .2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
  background: #F5E5B8
}

/* Hide navs on mobile, show burger */
@media (max-width: 900px) {
  header nav { display: none; }
  header .btn-primary { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ============================================================
   Accessibility, Spacing & Lists
   ============================================================ */
main li {
  list-style: disc inside;
  margin-bottom: 10px;
}
main ul, main ol {
  margin-left: 1.4em;
  margin-bottom: 17px;
}
main ul {
  list-style-type: disc;
}
main ol {
  list-style-type: decimal;
}

/* Custom vintage pseudo-elements */
h2::after, .text-section h2::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  height: 13px;
  width: 36px;
  background: url('../assets/pattern-divider.svg') center/contain no-repeat;
  opacity: .6;
  margin-bottom: 3px;
}

/* Cards (Optional) */
.card {
  background: var(--color-card-bg);
  box-shadow: 0 2px 12px 0 #23527c22;
  border-radius: 15px;
  border: 2px dashed #E3C48E;
  margin-bottom: 20px;
  padding: 24px 18px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Lists in icons, footer, kontakt forms, etc */
.text-section ul li, .text-section ul li img {
  vertical-align: middle;
  margin-right: 7px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 13px;
}

/* Event List */
.event-list ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.event-list ul li {
  background: #fff5dd;
  border-left: 5px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 #ac001c18;
  padding: 18px 18px 18px 22px;
}
.event-list ul li strong {
  font-family: 'Merriweather', serif;
  color: var(--color-secondary);
}

/* ============================================================
   Spacing & Responsive Patterns
   ============================================================ */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .content-grid {
  gap: 20px;
  flex-wrap: wrap;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  margin-bottom: 20px;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* Ensure no overlapping & proper space */
.content-wrapper > * { margin-bottom: 16px; }
.content-wrapper > *:last-child { margin-bottom: 0; }

/* ============================================================
   Vintage Effects: Shadows & Borders
   ============================================================ */
.card,
.text-section,
.feature-grid > div,
.event-list ul li,
.testimonial-card {
  box-shadow: 0 2px 14px 0 #ac001c12;
  border-radius: 13px;
}

/* Decorative borders for retro look */
.section {
  border-top: 4px dotted #E3C48E;
  border-bottom: 4px dotted #E3C48E;
}

.newsletter {
  border-top: 4px double var(--color-secondary);
  border-bottom: 4px double var(--color-secondary);
}


/* ============================================================
   Responsive Design (Mobile-First)
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid { flex-direction: column; }
  .feature-grid > div { max-width: 100%; min-width: 0; width: 100%; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  header .container { padding: 10px 10px; }
  .section, section { padding: 28px 8px; margin-bottom: 34px; }
  .newsletter { padding: 26px 0; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.29rem; }
  h3 { font-size: 1.07rem; }
  .feature-grid,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  footer .container { gap: 18px; }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px;
  }
  .event-list ul li {
    padding: 12px 8px 12px 12px;
    font-size: 0.99rem;
  }
}

/* Hamburger visible, header nav btns hidden, at 900px- */
@media (max-width: 900px) {
  header nav, header .btn-primary { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
}

/* ============================================================
   Micro-interactions & Transitions
   ============================================================ */
.card, .feature-grid > div, .event-list ul li, .testimonial-card, .btn-primary, .cookie-banner button {
  transition: box-shadow .21s, border .19s, background .21s, color .21s, transform .17s;
}
.card:hover,
.feature-grid > div:hover,
.event-list ul li:hover,
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 #23527c1f;
  transform: translateY(-3px) scale(1.022);
}

@media (hover: none) {
  .card:hover,
  .feature-grid > div:hover,
  .event-list ul li:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

.btn-primary:active, .cookie-banner button:active {
  transform: scale(.97);
}

/* ============================================================
   Misc
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: #E3C48E;
  border-radius: 8px;
}

::selection {
  background: #fbe4a1;
  color: #ac001c;
}

/* Inputs (primitive for contact page) */
input, textarea, button {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
}

/* Vintage Pattern Utility */
.vintage-border {
  border: 3px double #E3C48E !important;
  border-radius: 17px !important;
}


/* ==================
   Hide visually
   ================== */
.visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}
