/* =======================
   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.6;
  background: #FAF6EF;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
}
button, input, select, textarea {
  font-family: inherit;
}

/* =======================
   VINTAGE RETRO THEME VARIABLES
   ======================= */
:root {
  --primary: #243E61; /* Navy - main brand */
  --primary-dark: #172542;
  --secondary: #F9F7F0; /* Light retro beige */
  --background: #FAF6EF; /* Body background */
  --accent: #B32C00; /* Warm accent red/orange */
  --accent-bright: #D9411E; /* For hover/accent */
  --retro-yellow: #F4E285;
  --retro-green: #5A7D7C;
  --retro-brown: #A6876F;
  --retro-blue: #7095B6;
  --grey: #767676;
  --border: #E4DED3;
  --shadow: 0 2px 16px rgba(36,62,97,0.12);
  --shadow-btn: 0 1px 5px rgba(179,44,0,0.10);
  --font-display: 'PT Sans', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
  --h1-size: 2.5rem; /* 40px */
  --h2-size: 2rem; /* 32px */
  --h3-size: 1.5rem; /* 24px */
  --h4-size: 1.125rem; /* 18px */
  --base-size: 1rem; /* 16px */
  --small-size: 0.875rem; /* 14px */
}

@media (max-width: 768px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 1.5rem;
    --h3-size: 1.15rem;
    --base-size: 0.95rem;
    --small-size: 0.85rem;
  }
}

body {
  background: var(--background);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: var(--base-size);
  letter-spacing: 0.01em;
  min-height: 100vh;
}

/* =======================
   TYPOGRAPHY
   ======================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}
h1 {
  font-size: var(--h1-size);
  margin-bottom: 24px;
  text-shadow: 1px 3px var(--retro-yellow);
  letter-spacing: 0.04em;
}
h2 {
  font-size: var(--h2-size);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  border-left: 6px solid var(--accent);
  padding-left: 14px;
  background: rgba(244,226,133,0.10);
  border-radius: 0 16px 16px 0;
}
h3 {
  font-size: var(--h3-size);
  color: var(--accent);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: var(--h4-size);
}
p, ul, ol, blockquote, cite {
  font-family: var(--font-body);
  margin-bottom: 16px;
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--retro-brown);
  border-left: 4px solid var(--accent);
  padding: 8px 18px;
  margin:0 0 10px 0;
  background: var(--secondary);
}
cite {
  font-size: var(--small-size);
  font-style: italic;
  color: var(--retro-blue);
  margin-left: 10px;
  letter-spacing: 0.02em;
}
strong {
  color: var(--accent);
}
.tagline {
  font-family: var(--font-display);
  color: var(--retro-green);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

/* =======================
   LAYOUT CONTAINERS
   ======================= */
.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  margin: 0 auto;
  background: var(--secondary);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px 24px 36px 24px;
  margin-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 270px;
  max-width: 340px;
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 5px 24px rgba(179,44,0,0.13);
}
.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;
  background: var(--retro-yellow);
  border: 1.5px solid var(--retro-brown);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 9px rgba(90,125,124,0.16);
  margin-bottom: 24px;
  min-width: 220px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}
.staff-bio {
  background: var(--retro-yellow);
  border-radius: 15px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(244,226,133,0.13);
  padding: 22px 20px;
  margin-bottom: 18px;
  min-width: 200px;
  flex: 1 1 250px;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.faq {
  background: var(--secondary);
  border: 1.5px dashed var(--retro-brown);
  border-radius: 14px;
  padding: 16px 16px 10px 16px;
  flex: 1 1 220px;
}

@media (max-width: 900px) {
  .container {
    padding: 0 6vw;
  }
  .team-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .content-wrapper{ padding:32px 8px 24px 8px; }
  .section { padding: 28px 0; }
  .card-container, .content-grid, .team-list, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .container{
    padding: 0 2vw;
  }
  .content-wrapper, .card, .testimonial-card, .staff-bio, .faq {
    padding-left: 9px;
    padding-right: 9px;
  }
  .section {
    padding: 16px 0;
    margin-bottom: 36px;
  }
}

/* =======================
   HEADER & NAVBAR (RETRO)
   ======================= */
header {
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 0;
  min-height: 73px;
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 2px 16px rgba(36,62,97,0.04);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header a img {
  height: 53px;
  margin: 10px 12px 10px 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 8px 13px;
  border-radius: 10px;
  position: relative;
  transition: background .21s, color .18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}
header nav .cta-primary {
  background: var(--accent);
  color: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow-btn);
  font-weight: 700;
  padding: 10px 20px;
  margin-left: 18px;
  letter-spacing: 0.03em;
  border: none;
  font-size: 1rem;
  transition: background .23s;
}
header nav .cta-primary:hover, header nav .cta-primary:focus {
  background: var(--accent-bright);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--retro-yellow);
  font-size: 2.1rem;
  margin-right: 16px;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  color: var(--accent-bright);
}

/* HIDE MAIN NAV ON MOBILE */
@media (max-width: 960px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =======================
   MOBILE MENU
   ======================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(36,62,97,0.96);
  box-shadow: 0 6px 40px rgba(36,62,97,0.18);
  z-index: 2002;
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(.84,.07,.32,1.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-yellow);
  font-size: 2.3rem;
  margin: 24px 0 0 20px;
  cursor: pointer;
  align-self: flex-start;
  transition: color .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:active {
  color: var(--accent);
}
.mobile-nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}
.mobile-nav a {
  padding: 16px 30px;
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: #fff;
  border-bottom: 1.5px solid var(--primary-dark);
  border-radius: 0 20px 20px 0;
  background: transparent;
  transition: background .17s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--retro-yellow);
}

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

/* =======================
   BUTTONS (RETRO STYLES)
   ======================= */
.cta-primary, .cta-secondary, button, .mobile-nav a {
  font-family: var(--font-display);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  font-weight: 700;
}
.cta-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 30px;
  font-size: 1.18rem;
  box-shadow: var(--shadow-btn);
  text-shadow: 1px 1px rgba(0,0,0,0.06);
  margin-right: 2px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--accent-bright);
  color: #fff;
  box-shadow: 0 4px 18px rgba(179,44,0,0.14);
}
.cta-secondary {
  background: var(--retro-yellow);
  color: var(--primary);
  padding: 10px 22px;
  font-size: 1rem;
  border: 1.5px solid var(--accent);
  margin-right: 4px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-bright);
}
button:active { outline: none; }

/* =======================
   LINK STYLES
   ======================= */
a {
  color: var(--accent);
  text-decoration: underline dotted var(--accent);
  transition: color .17s,
              text-decoration-color .17s,
              background .12s;
}
a:hover, a:focus {
  color: var(--primary-dark);
  background: var(--retro-yellow);
  text-decoration-color: var(--primary-dark);
}
.footer-nav a {
  text-decoration: underline;
  color: var(--retro-blue);
  font-size: var(--small-size);
  margin-right: 15px;
  transition: color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  background: transparent;
}

/* =======================
   SPECIAL COMPONENTS
   ======================= */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 24px;
}
.category-nav a {
  background: var(--retro-yellow);
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 8px 13px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.2px solid var(--accent);
  transition: background .16s, color .16s;
  margin-bottom: 2px;
}
.category-nav a:hover, .category-nav a:focus {
  background: var(--accent);
  color: #fff;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-display);
  margin: 22px 0 10px 0;
}
.pagination a {
  background: var(--retro-yellow);
  border-radius: 9px;
  padding: 7px 12px;
  border: 1px solid var(--accent);
  font-weight: 600;
  color: var(--primary-dark);
  transition: background .17s, color .15s;
}
.pagination a.active, .pagination a:hover {
  background: var(--accent);
  color: #fff;
}
.pagination span {
  color: var(--retro-brown);
  margin: 0 6px;
}
.event-filters {
  margin-top: 18px;
  font-family: var(--font-body);
  color: var(--primary-dark);
  font-size: var(--small-size);
}
.event-filters a {
  color: var(--accent);
  margin: 0 2px;
  padding: 2px 7px;
}
.event-filters a:hover {
  background: var(--retro-yellow);
  color: var(--primary-dark);
  border-radius: 6px;
}

.google-map {
  background: var(--retro-yellow);
  border-radius: 10px;
  padding: 13px 20px;
  font-size: var(--small-size);
  color: var(--primary-dark);
  margin-bottom: 26px;
  margin-top: 6px;
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
}
.contact-details ul img {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(36,62,97, 0.07);
  background: var(--retro-yellow);
  padding: 2px;
  border: 1px solid var(--retro-brown);
}

/* List with icons (Unsere Stärken, etc.) */
li img {
  margin-right: 10px;
  width: 23px; height: 23px;
  vertical-align: middle;
  border-radius: 6px;
  background: var(--retro-green);
  padding: 2px;
  box-shadow: 0 2px 8px rgba(80,92,80,0.09);
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: var(--primary-dark);
  color: var(--retro-yellow);
  padding: 28px 0 18px 0;
  border-top: 4px solid var(--accent);
}
footer .container {
  flex-direction: column;
  display: flex;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-info {
  font-family: var(--font-body);
  font-size: var(--small-size);
  color: var(--retro-yellow);
  opacity: 0.94;
}
.footer-info a {
  color: var(--retro-yellow);
  text-decoration: underline dotted var(--retro-yellow);
  transition: color .15s;
}
.footer-info a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  footer .container {
    padding: 0 2vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 11px;
  }
}

/* =======================
   COOKIE CONSENT BANNER
   ======================= */
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2300;
  background: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 -3px 30px rgba(36,62,97,0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  gap: 22px;
  transition: transform 0.33s cubic-bezier(.56,.14,.5,1.1), opacity 0.22s;
  font-family: var(--font-body);
  font-size: 1rem;
}
#cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-text {
  flex: 2 1 280px;
  margin-right: 10px;
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
  align-items: center;
  flex: 1 1 140px;
}
.cookie-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-right: 3px;
  box-shadow: 0 1px 7px rgba(179,44,0,0.10);
  cursor: pointer;
  transition: background .18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--retro-yellow);
}
.cookie-settings-btn {
  background: var(--retro-green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: var(--font-display);
  box-shadow: 0 2px 6px rgba(90,125,124,0.07);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--primary-dark);
}
@media (max-width: 730px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 8px 11px 8px;
    gap: 12px;
  }
  #cookie-banner .cookie-btns {
    gap: 7px;
  }
}

/*==============
 COOKIE MODAL
 ==============*/
#cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(36,62,97,0.75);
  z-index: 2400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .33s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
#cookie-modal .modal-content {
  background: var(--secondary);
  border: 2.5px solid var(--accent);
  border-radius: 24px;
  padding: 38px 30px 21px 30px;
  width: 93vw;
  max-width: 410px;
  box-shadow: 0 6px 36px rgba(36,62,97,0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  font-family: var(--font-body);
  color: var(--primary-dark);
}
#cookie-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--accent);
  margin-bottom: 16px;
}
#cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
}
#cookie-modal .category input[type=checkbox] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
#cookie-modal .category .always-on {
  color: var(--grey);
  font-size: var(--small-size);
  font-style: italic;
}
#cookie-modal .modal-actions {
  margin-top: 28px;
  display: flex;
  gap: 13px;
  width: 100%;
  justify-content: flex-end;
}
#cookie-modal .close-modal-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
}
#cookie-modal .close-modal-btn:hover { color: var(--primary-dark); }

@media (max-width: 430px) {
  #cookie-modal .modal-content {
    padding: 14px 4vw 12px 4vw;
    max-width: 97vw;
  }
}

/* =======================
   MICRO-ANIMATIONS & EFFECTS
   ======================= */
.cta-primary, .cta-secondary, .cookie-btn, .cookie-settings-btn, .mobile-menu-toggle, .mobile-menu-close, .close-modal-btn, .category-nav a, .pagination a, .footer-nav a {
  transition: background .2s, color .21s, box-shadow .2s, outline .13s;
}
.card, .testimonial-card, .staff-bio, .faq {
  transition: box-shadow .23s, border-color .15s;
}
.card:hover, .testimonial-card:hover, .staff-bio:hover, .faq:hover {
  box-shadow: 0 4px 20px rgba(230,170,40,0.10), 0 2px 13px rgba(36,62,97,0.09);
  border-color: var(--accent);
}

/* =======================
   RESPONSIVE FLEXBOX
   ======================= */
@media (max-width: 860px) {
  .card-container, .content-grid, .team-list {
    flex-direction: column;
    gap: 17px;
  }
}

/* =======================
   COLOR CONTRAST FOR TESTIMONIALS
   ======================= */
.testimonial-card {
  color: #222;
  background: var(--retro-yellow);
  border-color: var(--retro-brown);
}
.testimonial-card blockquote {
  color: var(--primary-dark);
  background: transparent;
  border-left-color: var(--accent);
}
.testimonial-card cite {
  color: var(--accent);
}

/* =======================
   RETRO PATTERNS & DECOR
   ======================= */
.content-wrapper {
  position: relative;
  overflow: hidden;
}
.content-wrapper::after {
  content: "";
  position: absolute;
  bottom: -28px;
  right: -23px;
  width: 80px;
  height: 80px;
  background: repeating-linear-gradient(135deg, var(--retro-yellow) 0 7px, var(--secondary) 7px 17px);
  opacity: 0.21;
  border-radius: 70% 30% 70% 30% / 60% 40% 60% 40%;
  pointer-events: none;
  z-index: 0;
}
.section:nth-child(odd) .content-wrapper::before {
  content: "";
  position: absolute;
  top: -35px; left: -29px;
  width: 64px; height: 64px;
  background: repeating-linear-gradient(115deg, var(--retro-blue) 0 9px, var(--secondary) 9px 21px);
  opacity: 0.14;
  border-radius: 48px 12px 48px 12px;
  z-index: 0;
}

/* ==========
   GENERAL UTILITIES
   ========== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.text-center { text-align: center !important; }

/* ===========
   PRINTING LEGIBILITY (for legal pages)
   =========== */
@media print {
  header, footer, #cookie-banner, #cookie-modal, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
