/* =======================================================
   CSS RESET & NORMALIZE - Mobile First
   ======================================================= */
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;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #191c22;
  -webkit-tap-highlight-color: rgba(40,84,130,0.08);
  overscroll-behavior-y: none;
}
ul, ol {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  outline: none;
}
button {
  cursor: pointer;
}

/* =======================================================
   ZEITWOHL BRAND COLORS & STYLE
   ======================================================= */
:root {
  --color-primary: #285482;
  --color-secondary: #E4EFE8;
  --color-accent: #F7C948;
  --color-bg: #fff;
  --color-dark: #191c22;
  --color-gray: #e7e7e7;
  --color-danger: #C1121F;
  --color-success: #34C759;
  --color-electric-blue: #26A6FE;
  --color-electric-pink: #FF4F81;
  --color-electric-green: #13DE7C;
  --color-electric-purple: #9C1DE7;
}

/* ================= FLEXBOX COMMON PATTERNS ===================== */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0; /* No extra gap by default, use .content-wrapper for vertical spacing */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature {
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(38,166,254,0.06), 0 2px 6px 0 rgba(9,30,66,0.07);
  border-radius: 18px;
  flex: 1 1 270px;
  padding: 28px 22px;
  margin-bottom: 20px;
  min-width: 220px;
  transition: transform 0.22s cubic-bezier(.55,.08,.68,.53), box-shadow 0.22s;
  position: relative;
  border-left: 5px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}
.feature:hover, .card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 32px -6px var(--color-electric-blue),0 3px 8px 0 rgba(38,166,254,0.13);
  border-left: 5px solid var(--color-electric-pink);
  z-index: 2;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(38,166,254,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 20px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(156,29,231,0.09);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 520px;
}
.testimonial-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 44px -6px var(--color-electric-purple);
}
/* Always ensure testimonials/reviews section have high contrast text on light background! */
.testimonial-card p,
.testimonial-info {
  color: var(--color-dark);
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================= HEADER & NAVIGATION ===================== */
header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 18px -8px var(--color-electric-blue);
  position: relative;
  min-height: 62px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
}
header img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 5px 6px;
  position: relative;
  transition: color 0.15s;
}
.main-nav a:after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.2em; height: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.18s;
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  opacity: 1;
}
header .cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 9px 26px;
  margin-left: 12px;
  box-shadow: 0 3px 12px -3px var(--color-electric-yellow, #ffec19);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 2;
}
header .cta-button:hover, header .cta-button:focus {
  background: var(--color-electric-pink);
  color: #fff;
  box-shadow: 0 6px 24px -6px var(--color-electric-pink);
  text-shadow: 1px 1px 2px #191c2240;
}

/* ========= MOBILE NAVIGATION ========= */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  font-size: 30px;
  border: none;
  margin-left: 10px;
  z-index: 1201;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  color: var(--color-primary);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.68,-0.2,.36,1.30);
  box-shadow: 2px 0 30px -8px var(--color-accent);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-primary);
  font-size: 36px;
  padding: 12px 22px 10px 8px;
  border-radius: 8px;
  align-self: flex-end;
  margin: 16px 6px 0 0;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-electric-purple);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  padding: 13px 20px 13px 7px;
  font-size: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  border-radius: 7px;
  margin-bottom: 10px;
  transition: background 0.15s, color 0.15s;
  min-width: 170px;
  letter-spacing: 0.02em;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-electric-blue);
}

/* Hide main-nav & cta on mobile; show hamburger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media(min-width:1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ================== TYPOGRAPHY & HEADINGS ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-electric-blue);
  text-shadow: 1px 2px 12px #F7C94844;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 800;
  margin-top: 24px;
}
h3 {
  font-size: 1.41rem;
  color: var(--color-electric-pink);
  font-weight: 700;
}
h4 {
  font-size: 1.16rem;
}
p, ul, ol, li, .text-section {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1.8;
}
.text-section h2, .text-section h3, .text-section h4 {
  margin-bottom: 8px;
}
.text-section {
  margin-bottom: 22px;
}
/* Category tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 18px 0;
}
.category-tags span a {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 22px;
  padding: 8px 18px;
  transition: background .18s, color .18s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
}
.category-tags span a:hover {
  background: var(--color-electric-blue);
  color: #fff;
}

/* Feature links for Themen/Leistungen grid */
.feature h3 a {
  color: var(--color-electric-blue);
  text-shadow: 0px 1px 5px #F7C94833;
  font-weight: bold;
  transition: color .17s;
}
.feature h3 a:hover {
  color: var(--color-electric-pink);
}

/* ================== BUTTONS & CTAs ================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 99px;
  padding: 12px 34px;
  margin-top: 18px;
  margin-bottom: 8px;
  box-shadow: 0 4px 18px -4px var(--color-electric-green);
  cursor: pointer;
  transition: background .2s, color .18s, box-shadow .18s, transform .19s;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-electric-blue);
  color: #fff;
  box-shadow: 0 6px 22px -6px var(--color-electric-blue), 0 0 5px #285482cc;
  transform: translateY(-2px) scale(1.03);
}

/* ================== SECTIONS & SPACING ================== */
main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
section {
  padding: 40px 0 40px 0;
  margin-bottom: 60px;
  background: #fff;
}
@media (max-width: 700px) {
  section {
    padding: 24px 0 24px 0;
    margin-bottom: 36px;
  }
}

/* ================== TESTIMONIALS SLIDER ================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ================== FOOTER ================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 18px 0;
  box-shadow: 0 -2px 36px -13px #28548261;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-bottom: 19px;
}
.footer-nav a {
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  padding: 5px 6px;
  letter-spacing: .015em;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.footer-nav span {
  font-size: 14px;
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.footer-contact img {
  height: 26px;
}
.footer-contact span {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* ================== BLOG LISTS & LINKS ================== */
ul,
ol {
  margin: 8px 0 8px 24px;
  padding: 0;
  line-height: 1.7;
}
ul li, ol li {
  margin-bottom: 7px;
  position: relative;
  color: var(--color-primary);
}
ul li img, ol li img {
  margin-right: 8px;
  vertical-align: middle;
  height: 22px;
  width: 22px;
  display: inline-block;
}
ul li a, ol li a {
  color: var(--color-electric-purple);
  font-weight: 700;
  transition: color .13s;
}
ul li a:hover, ol li a:hover, ul li a:focus, ol li a:focus {
  color: var(--color-electric-blue);
}

/* ================== UTILITY SPACING ================== */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.pt-16 { padding-top: 16px; }
.pb-16 { padding-bottom: 16px; }

/* ================== MEDIA QUERIES FOR RESPONSIVENESS ================== */
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .card-container {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid,
  .card-container,
  .testimonial-slider,
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature, .card {
    min-width: 0;
    width: 100%;
    padding: 16px 13px;
  }
  .testimonial-card {
    padding: 16px;
    border-radius: 13px;
    margin-bottom: 18px;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .main-nav, 
  header .cta-button {
    display: none;
  }
}
@media (max-width: 440px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.19rem; }
  h3 { font-size: 1rem; }
  .feature { padding: 10px 8px; }
}

/* ================== COOKIE CONSENT BANNER ================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #fff;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 -2px 22px -5px var(--color-primary)22;
  padding: 22px 8px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.34s cubic-bezier(.85,.12,.42,1.26), opacity 0.2s;
  opacity: 1;
  transform: translateY(0);
}
#cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
#cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 6px;
}
#cookie-banner button {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 29px;
  font-weight: 700;
  border: none;
  padding: 8px 24px;
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 6px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 7px -3px #28548224;
}
#cookie-banner button:last-child {
  margin-right: 0;
}
#cookie-banner button:hover, #cookie-banner button:focus {
  background: var(--color-electric-blue);
  color: #fff;
  box-shadow: 0 4px 14px -6px var(--color-electric-purple);
  transform: translateY(-1px) scale(1.03);
}

/* Cookie Modal Overlay */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2010;
  background: rgba(40,84,130,0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
#cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  width: 94%;
  max-width: 400px;
  border-radius: 18px;
  box-shadow: 0 10px 50px -10px var(--color-primary)70;
  padding: 32px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  position: relative;
}
#cookie-modal .close-cookie-modal {
  position: absolute;
  top: 14px; right: 21px;
  background: transparent;
  border: none;
  font-size: 30px;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-modal-content h3 {
  font-size: 1.17rem;
  color: var(--color-electric-blue);
  font-weight: 800;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-electric-blue);
  width: 17px; height: 17px;
  margin-right: 5px;
  border-radius: 4px;
  border: 2px solid var(--color-primary);
  transition: border 0.12s;
}
.cookie-buttons-modal {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 22px;
}
.cookie-buttons-modal button {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 29px;
  font-weight: 700;
  border: none;
  padding: 8px 26px;
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 7px -3px #28548224;
}
.cookie-buttons-modal button:hover, .cookie-buttons-modal button:focus {
  background: var(--color-electric-blue);
  color: #fff;
  box-shadow: 0 4px 14px -6px var(--color-electric-purple);
  transform: translateY(-1px) scale(1.03);
}
.cookie-category .cookie-essential-label {
  color: var(--color-dark);
  font-size: 0.96em;
  font-weight: 500;
}
.cookie-category .cookie-switch[disabled] {
  opacity: 0.6;
  pointer-events: none;
}


/* =========== VIBRANT DECORATIVE EFFECTS =========== */
.feature:before {
  content: "";
  position: absolute;
  top: -11px; right: -11px;
  width: 34px; height: 34px;
  background: var(--color-electric-blue);
  opacity: 0.13;
  border-radius: 100%;
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}
.feature-grid .feature:nth-child(2n):before {
  background: var(--color-electric-pink);
}
.feature-grid .feature:nth-child(3n):before {
  background: var(--color-accent);
}
.feature-grid .feature:nth-child(4n):before {
  background: var(--color-electric-green);
}
/* Only for decorative flourish. */


/* =========== MICRO-INTERACTIONS FOR BUTTONS =========== */
.cta-button:active, .main-nav a:active, .mobile-nav a:active {
  filter: brightness(0.94);
  transform: scale(0.97);
}

/* =========== FOCUS STATES =========== */
a:focus, button:focus, .cta-button:focus, .cookie-buttons-modal button:focus, .mobile-nav a:focus {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
}

/* =========== SCROLLBAR STYLING (optional) =========== */
::-webkit-scrollbar {
  width: 9px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 7px;
}

/* =========== FONT IMPORTS (for self-hosted or fallback) =========== */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
  font-display: swap;
}
