/* === 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.5;
  background: #FAFAFD;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, textarea, select {
  font: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
  box-sizing: border-box;
}

/* === CSS CUSTOM PROPERTIES === */
:root {
  --color-primary: #164276;
  --color-secondary: #73A942;
  --color-accent: #FFF6E6;
  --color-bg: #FAFAFD;
  --color-white: #fff;
  --color-dark: #22242A;
  --color-soft-pink: #FFDEE9;
  --color-soft-green: #D2F5E6;
  --color-soft-blue: #D4E7F4;
  --color-soft-lavender: #F5EAFE;
  --color-soft-yellow: #FFFAD1;
  --color-grey: #F2F3F8;
  --color-border: #EAECF0;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 40px;
  --shadow-sm: 0 3px 12px 0 rgba(22,66,118,0.07);
  --shadow-md: 0 6px 24px 0 rgba(22,66,118,0.11);
  --transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

/* === TYPOGRAPHY === */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-bg);
  letter-spacing: 0.03em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
small {
  font-size: 0.90rem;
  color: #718493;
}
strong {
  font-weight: 700;
  color: var(--color-secondary);
}
address {
  font-style: normal;
  color: #4F5D75;
  font-size: 1rem;
  margin-top: 12px;
  line-height: 1.4;
}

/* === LINKS & BUTTONS === */
a:not(.cta-button) {
  color: var(--color-primary);
  position: relative;
  transition: var(--transition);
}
a:not(.cta-button):hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px 13px 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.125rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-top: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  border: none;
}
.cta-button[disabled],
.cta-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  background: transparent;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 12px;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  box-shadow: 0 4px 16px 0 rgba(22,66,118,0.04);
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1002;
  min-height: 68px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 12px; 
  padding-bottom: 12px;
}
header nav {
  display: flex;
  gap: 18px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  color: var(--color-primary);
  opacity: 0.90;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--color-soft-blue);
  color: var(--color-secondary);
  opacity: 1;
}
header img {
  height: 38px;
  width: auto;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, var(--color-soft-blue) 50%, var(--color-soft-pink) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  padding: 48px 0 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
  background: none;
}
.hero p {
  color: #363E57;
  font-size: 1.20rem;
}
.hero .cta-button {
  margin-top: 20px;
  font-size: 1.23rem;
}

/* === FEATURES, SERVICE CARDS, GRIDS & ITEMS === */
.feature-grid, .service-cards, .event-list, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 22px;
}
.feature-grid > div, .service-cards > div, .event-list > div {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 30px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.feature-grid > div:hover, .service-cards > div:hover, .event-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(115,169,66,0.08);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img, .service-cards img, .event-list img {
  height: 48px;
  width: 48px;
  margin-bottom: 10px;
}

/* --- List inside service cards - product table (Leistungen) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px 0;
  background: var(--color-soft-lavender);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table thead tr {
  background: var(--color-soft-blue);
}
table th, table td {
  padding: 12px 10px;
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  border-bottom: 1px solid #E6EAF1;
}
table th {
  font-weight: 700;
}
table tbody tr:last-child td {
  border-bottom: none;
}

/* === TESTIMONIALS === */
.testimonial-list {
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 16px 0 rgba(22,66,118,0.08);
  font-size: 1.10rem;
  color: var(--color-dark);
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 280px;
  margin-bottom: 0;
  border: 1.5px solid var(--color-soft-blue);
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(115,169,66,0.12);
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 6px;
  font-style: italic;
  background: none;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 1rem;
}
.star-rating-summary {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-family: var(--font-display);
  margin-top: 16px;
  background: var(--color-soft-yellow);
  padding: 7px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* === FAQ ACCORDION === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
  margin-top: 12px;
}
.faq-accordion > div {
  background: var(--color-soft-lavender);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  border-left: 4px solid var(--color-secondary);
  transition: var(--transition);
}
.faq-accordion > div h3 {
  margin-bottom: 6px;
}
.faq-accordion > div p {
  margin-bottom: 0;
  color: var(--color-primary);
}

/* === Newsletter Signup (Downloads Seite) === */
.newsletter-signup-example {
  background: var(--color-soft-pink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.newsletter-signup-example input[type=email] {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-size: 1rem;
  background: var(--color-white);
  margin-right: 10px;
  transition: border var(--transition);
}
.newsletter-signup-example input[type=email]:focus {
  border-color: var(--color-secondary);
}

/* === TEXT SECTIONS, LISTS === */
.text-section {
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul,
.content-wrapper ul {
  padding-left: 24px;
  margin-bottom: 10px;
}
.text-section ul li,
.content-wrapper ul li {
  position: relative;
  margin-bottom: 8px;
  color: var(--color-primary);
  padding-left: 18px;
  font-size: 1rem;
}
.text-section ul li:before, .content-wrapper ul li:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 9px;
}

/* === THANK YOU PAGE === */
.thank-you {
  background: linear-gradient(90deg, var(--color-soft-yellow) 20%, var(--color-soft-pink) 140%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 50px 0;
  text-align: center;
}
.thank-you .content-wrapper {
  align-items: center;
}

/* === FOOTER === */
footer {
  background: var(--color-accent);
  padding-top: 26px;
  padding-bottom: 14px;
  border-top: 1px solid var(--color-border);
}
footer img {
  height: 22px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.9;
}
footer nav a {
  color: var(--color-primary);
  font-weight: 500;
  opacity: 0.88;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}
footer nav a:hover {
  color: var(--color-secondary);
  background: var(--color-soft-yellow);
  opacity: 1;
}

/* === FORM FIELDS (Kontakt Demo) === */
.text-section ul li button {
  margin-top: 10px;
}
.text-section ul li {
  margin-bottom: 4px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-soft-yellow);
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: 0 -3px 24px 0 rgba(115,169,66,0.09);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 22px 16px 22px 16px;
  gap: 18px;
  animation: fadeInUp 0.34s cubic-bezier(.41,0,.2,1);
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  min-width: 110px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  background: var(--color-primary);
  color: #fff;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
  font-size: 1rem;
}
.cookie-banner button.cookie-reject {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: var(--color-soft-blue);
  color: var(--color-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* -- Cookie Modal -- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,36,42,0.22);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.21s cubic-bezier(.41,0,.2,1);
}
@keyframes fadeIn {
  from {opacity: 0;} to {opacity:1;}
}
.cookie-modal {
  background: var(--color-soft-yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 95vw;
  max-width: 410px;
  padding: 36px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  z-index: 2115;
}
.cookie-modal h2 {
  font-size: 1.31rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
  border-radius: 4px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  font-size: 1rem;
  min-width: 100px;
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: inline-flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(22,66,118,.08);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-soft-blue);
  color: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  z-index: 2000;
  background: var(--color-soft-pink);
  transform: translateX(100vw);
  transition: transform 0.37s cubic-bezier(0.6,0,.5,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  box-shadow: 0 8px 48px rgba(22,66,118,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 23px;
  right: 27px;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 2rem;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  z-index: 2001;
  box-shadow: 0 4px 16px rgba(115,169,66,0.04);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  margin-top: 80px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  height: auto;
  padding: 0 22px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.21rem;
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-soft-blue);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 1px;
  width: 100%;
  transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .container {
    max-width: 870px;
  }
  .feature-grid > div, .service-cards > div, .event-list > div {
    min-width: 185px;
    max-width: 440px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .footer-flex {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  .section {
    padding: 25px 10px;
    margin-bottom: 34px;
  }
  .hero {
    padding: 34px 0 24px 0;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-grid, .service-cards, .event-list, .testimonial-list {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div, .service-cards > div, .event-list > div {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    padding: 22px 12px 16px 15px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 11px;
  }
  .newsletter-signup-example {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
}
@media (max-width: 600px) {
  .content-wrapper, .footer-flex, .feature-grid, .service-cards, .event-list, .testimonial-list, .faq-accordion {
    gap: 12px !important;
  }
  .testimonial-card, .feature-grid > div, .service-cards > div, .event-list > div {
    padding: 16px 6px;
  }
}

/* ========== VISIBILITY CONTROLS ========== */
@media (max-width: 991px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ========== MICRO-INTERACTIONS & TRANSITIONS ========== */
.card, .testimonial-card, .feature-grid > div, .service-cards > div, .event-list > div {
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover, .testimonial-card:hover, .feature-grid > div:hover, .service-cards > div:hover, .event-list > div:hover {
  box-shadow: 0 6px 32px 0 rgba(115,169,66,0.09);
  transform: scale(1.025);
}
.cta-button, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: var(--transition), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}

/* ========== CARD & FLEX UTILITY CLASSES FROM BRIEF ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 16px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
}

/* === ACCESSIBILITY & HIGH CONTRAST === */
.testimonial-card, .star-rating-summary {
  color: #232326;
  background: var(--color-soft-yellow);
  border: 1.5px solid var(--color-secondary);
}
.testimonial-card p, .testimonial-card span {
  color: #22242A;
}

/* ========== MISC ========== */
::-webkit-scrollbar {width: 10px; background: var(--color-soft-yellow);}
::-webkit-scrollbar-thumb {background: #e4e9f3; border-radius: 8px;}
::-webkit-scrollbar-thumb:hover {background: #d5e2f4;}

/* Make modal and banner content selectable and responsive */
.cookie-modal, .cookie-banner { user-select: text; }