/* ---------------------
CSS RESET & BASE STYLES
---------------------- */
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;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #F1FAEE;
  color: #1D3557;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  font-weight: 400;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A41623;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
blockquote {
  border-left: 4px solid #457B9D;
  background: #EDF6FB;
  margin: 2em 0;
  padding: 1em 2em;
  font-style: italic;
  color: #27425a;
}

/* -------------------------
TYPOGRAPHY (Corporate Style)
-------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #1D3557;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p, li, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #243049;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}

/* ------------
LAYOUT PRESETS
------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(29,53,87,0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(45,45,68,0.05);
  padding: 32px 24px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(29,53,87,0.16);
  transform: translateY(-4px) scale(1.015);
}
.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;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #EDF6FB;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(29,53,87,0.06);
  max-width: 380px;
  color: #1D3557;
}
.testimonial-card p {
  color: #1D3557;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: #5B6F85;
  font-size: 1rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid, .bestseller-preview, .bestseller-grid, .review-highlights, .post-list, .product-grid, .team-profile-list, .category-list ul, .topic-list ul, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/****** RESPONSIVE BREAKPOINTS (Mobile-first) ******/
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding: 0 14px;
  }
  .section {
    padding: 32px 10px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 7vw;
  }
  .section {
    padding: 24px 4vw;
    margin-bottom: 40px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.45rem;
    margin-bottom: 16px;
  }
  h3 {
    font-size: 1.15rem;
  }
  .content-grid, .feature-grid, .bestseller-preview, .bestseller-grid, .review-highlights, .post-list, .product-grid, .team-profile-list, .category-list ul, .topic-list ul, .faq-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  body { font-size: 0.97rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  .container {
    padding: 0 2vw;
  }
  .section {
    padding: 12px 2vw;
    margin-bottom: 24px;
  }
  .card {
    padding: 16px 8px;
    min-width: 90%;
  }
  .testimonial-card {
    padding: 12px;
    font-size: 0.97rem;
  }
}
/* -----------
HEADER & NAV
------------ */
header {
  width: 100%;
  background: #1D3557;
  box-shadow: 0 4px 12px rgba(29,53,87,0.05);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}
header a img {
  max-height: 44px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  color: #F1FAEE;
  font-weight: 500;
  padding: 8px 0 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.19s, border-bottom 0.21s;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  color: #E63946;
  border-bottom: 2px solid #E63946;
}
.primary-cta {
  background: #E63946;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 28px;
  margin-left: 32px;
  transition: background 0.19s, box-shadow 0.19s, color 0.23s;
  box-shadow: 0 2px 10px #e6394627;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.primary-cta:hover, .primary-cta:focus {
  background: #A41623;
  color: #fff;
  box-shadow: 0 4px 14px #a416234f;
}
.secondary-cta {
  background: transparent;
  color: #1D3557;
  border: 2px solid #1D3557;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  padding: 9px 20px;
  transition: background 0.18s, color 0.14s, border 0.17s;
  font-weight: 600;
  display: inline-block;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #1D3557;
  color: #fff;
  border-color: #1D3557;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  z-index: 101;
  padding: 8px 12px;
  margin-left: 24px;
  transition: color 0.18s, background 0.18s;
}
.mobile-menu-toggle:focus {
  background: #457B9D30;
  outline: 2px solid #A41623;
  border-radius: 4px;
}
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .primary-cta {
    margin-left: 0;
  }
}

/* ---------------------
MOBILE MENU
---------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  background: #1D3557;
  width: 100vw;
  height: 100vh;
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  box-shadow: 0 8px 32px rgba(29,53,87,0.29);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 28px 0 0 28px;
  background: none;
  color: #F1FAEE;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.14s, color 0.18s;
  padding: 4px 12px;
  border-radius: 5px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E63946;
  background: #27425a30;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 38px;
  margin-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  color: #F1FAEE;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-bottom 0.17s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A41623;
  border-bottom: 2px solid #A41623;
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --------------------
FOOTER
---------------------- */
footer {
  width: 100%;
  background: #1D3557;
  color: #F1FAEE;
  padding: 0;
  margin-top: 42px;
  box-shadow: 0 -2px 8px rgba(29,53,87,0.09);
  font-size: 1rem;
}
footer .container {
  padding: 38px 20px 26px 20px;
  flex-direction: column;
  gap: 32px;
}
.footer-brand img {
  max-width: 150px;
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 20px;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #F1FAEE;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #E63946;
  text-decoration: underline;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9e6f3;
  margin-bottom: 8px;
  font-size: 0.97rem;
}
.footer-social {
  margin: 8px 0;
}
.footer-social a {
  margin-right: 16px;
  display: inline-block;
}
.footer-social img {
  width: 32px;
  height: 32px;
  filter: grayscale(2%) brightness(1.25);
  transition: filter 0.19s, transform 0.17s;
}
.footer-social a:hover img {
  filter: none;
  transform: scale(1.11);
}
.footer-legal {
  color: #aebfd7;
  font-size: 0.94rem;
  margin-top: 18px;
}
@media (max-width: 768px) {
  footer .container {
    padding: 32px 7vw 18px 7vw;
    gap: 20px;
  }
  .footer-links {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
  }
}
@media (max-width: 480px) {
  footer .container {
    padding: 18px 2vw 8px 2vw;
  }
  .footer-brand img{ max-width: 100px; }
}

/* -------------
CONTENT CARDS
--------------- */
.feature {
  background: #EDF6FB;
  border-radius: 9px;
  padding: 24px;
  box-shadow: 0 2px 10px #1d35571a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 340px;
  min-width: 220px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.feature img {
  width: 40px;
  height: 40px;
}
.feature:hover {
  box-shadow: 0 8px 32px rgba(29,53,87,0.15);
  transform: translateY(-2px) scale(1.04);
}
.bestseller-item, .blog-post, .team-profile, .faq-item, .ebook-card, .bestseller-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px #1d35571a;
  margin-bottom: 20px;
  color: #1D3557;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow 0.19s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bestseller-card:hover, .ebook-card:hover, .blog-post:hover, .team-profile:hover {
  box-shadow: 0 8px 32px rgba(29,53,87,0.15);
  transform: translateY(-2px) scale(1.02);
}
.bestseller-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .bestseller-item, .blog-post, .team-profile, .faq-item, .ebook-card, .bestseller-card {
    min-width: unset;
    width: 100%;
    padding: 12px 10px;
    font-size: 0.96rem;
  }
}
@media (max-width: 480px) {
  .feature {
    padding: 10px 4vw;
    min-width: 90%;
    max-width: 95%;
  }
}
.category-list ul, .topic-list ul, .faq-list, .usp-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.category-list ul li, .topic-list ul li, .usp-list ul li {
  list-style: none;
}
.category-list ul a, .topic-list ul a {
  background: #EDF6FB;
  color: #1D3557;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid #AABAFF12;
  transition: background 0.18s, color 0.17s;
}
.category-list ul a:hover, .topic-list ul a:hover {
  background: #1D3557;
  color: #fff;
}
.usp-list ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 500;
  background: #EDF6FB;
  border-radius: 6px;
  padding: 10px 12px;
}
.usp-list ul img {
  width: 26px; height: 26px;
}
.quick-tip-links a {
  color: #1D3557;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  transition: background 0.12s;
}
.quick-tip-links a:hover { background: #E639469F; color: #fff; }

/* -----------
TRUST PARTNERS
------------- */
.trust-partners {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin: 12px 0 2px 0;
}
.trust-partners span {
  background: #F1FAEE;
  color: #1D3557;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.trust-partners img {
  width: 24px; height: 24px;
}
@media (max-width: 650px) {
  .trust-partners {
    flex-direction: column;
    gap: 10px;
  }
}

/* -------------
LEGAL CONTENT
------------- */
.legal-content {
  padding: 28px 24px;
  background: #F1FAEE;
  border-radius: 9px;
  box-shadow: 0 1px 7px #1d355712;
  color: #113055;
  margin-bottom: 10px;
}
.legal-content h1, .legal-content h2, .legal-content h3 {
  color: #1D3557;
  margin-bottom: 10px;
}
.legal-content ul { margin-bottom: 14px; }
.legal-content a { color: #E63946; }

/* ---------
MISC UTILS
---------- */
.list-no-style {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-snippet {
  padding: 18px;
  background: #EDF6FB;
  border-radius: 8px;
  color: #29537E;
  font-size: 0.97rem;
  margin: 18px 0 10px 0;
}

/* -------
MODALS, BANNERS, POPUPS
---------- */
/* COOKIE CONSENT BANNER (fixed bottom) */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #27425a;
  color: #F1FAEE;
  font-size: 1rem;
  padding: 25px 10px 22px 10px;
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 -2px 8px rgba(29,53,87,0.12);
  opacity: 1;
  transition: opacity 0.34s, transform 0.38s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-message {
  flex: 1 1 320px;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.16s, color 0.12s, box-shadow 0.17s;
  margin: 0 1px;
}
.cookie-btn.accept {
  background: #1D3557;
  color: #F1FAEE;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #A41623;
}
.cookie-btn.reject {
  background: #bfbfbf;
  color: #111;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E63946;
  color: #fff;
}
.cookie-settings-btn {
  background: #E63946;
  color: #fff;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #A41623;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
    padding: 19px 10px 17px 10px;
    font-size: 0.97rem;
  }
  .cookie-actions {
    gap: 7px;
  }
}

/* COOKIE SETTINGS MODAL */
#cookie-settings-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,53,87,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 222;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
#cookie-settings-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #213A54;
  border-radius: 13px;
  padding: 32px 30px;
  max-width: 425px;
  width: 90vw;
  box-shadow: 0 8px 32px #1d355746;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.39s cubic-bezier(.67,.05,.25,1);
}
@keyframes cookieModalIn {
  0% { transform: translateY(32px) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.29rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e6ec;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  font-size: 1.07rem;
  font-weight: 600;
  color: #1D3557;
}
.cookie-toggle {
  width: 43px;
  height: 24px;
  border-radius: 14px;
  background: #e2e6ec;
  position: relative;
  transition: background 0.16s;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px;
  height: 18px;
  background: #1D3557;
  border-radius: 50%;
  transition: transform 0.18s, background 0.17s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #E63946;
  transform: translateX(19px);
}
.cookie-category.essential .cookie-toggle {
  background: #1D3557 !important;
  opacity: 0.67;
  pointer-events: none;
}
.cookie-category.essential label:after {
  content: ' (immer aktiv)';
  color: #aac5e3;
  font-size: 0.98rem;
  margin-left: 3px;
  font-style: italic;
}
.cookie-modal-btns {
  display: flex;
  gap: 14px;
  margin-top: 7px;
  justify-content: flex-end;
}
.cookie-modal-btns .cookie-btn {
  min-width: 120px;
}

/* ---------
ACCESSIBILITY FOCUS OUTLINES
----------- */
a:focus, button:focus, input:focus, .cookie-btn:focus {
  outline: 2.5px solid #A41623 !important;
  outline-offset: 2px;
  z-index: 2;
}

/* -------
HELPERS
-------- */
.hide { display: none !important; }

/******* UTILITY MARGINS *******/
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/***** Z-INDEX LAYERS FOR HEADER AND MODALS *****/
header, .mobile-menu { z-index: 110; }
.cookie-consent-banner, #cookie-settings-modal { z-index: 220; }
footer { z-index: 10; }

/***************
END OF GLOBAL CORPORATE STYLES
***************/
