/* =============================================================
   CSS RESET & BASE
   ============================================================= */
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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1d2536;
}
*, *:before, *:after {
  box-sizing: border-box;
}
img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* =======================================
   BRAND FONTS & BODY TYPOGRAPHY
   ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Source+Serif+Pro:wght@400;600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

body {
  font-family: 'Source Serif Pro', 'Georgia', serif;
  font-size: 1rem;
  color: #243048;
  background-color: #FAFCFE;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Source Serif Pro', 'Georgia', serif;
  color: #214072;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  color: #243048;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: #243048;
}

p, li, blockquote, ul, ol, dl, dd {
  font-family: 'Source Serif Pro', serif;
  font-size: 1.07rem;
  color: #2C3545;
  margin-bottom: 14px;
}
p:last-child, li:last-child, ul:last-child, ol:last-child, blockquote:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(33,64,114,0.04);
}

/* =========================
   GENERAL LAYOUT CONTAINERS
   ========================= */
.container {
  max-width: 1080px;
  padding: 0 18px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  padding: 18px 0;
}

/* ==============
   FLEX PATTERNS
   ============== */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(33,64,114,0.04);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(33,64,114,0.10);
  transform: translateY(-3px) scale(1.02);
}
.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;
  background: #E5EEF6;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(33,64,114,0.03);
  margin-bottom: 20px;
  color: #1f263a;
  font-size: 1.09rem;
  border-left: 4px solid #F3A042;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(33,64,114,0.10);
  border-color: #214072;
}
.testimonial-card blockquote {
  margin: 0;
  color: #1f263a;
  font-size: 1.08rem;
  line-height: 1.55;
  font-style: italic;
  font-family: 'Source Serif Pro', serif;
}
.testimonial-card span {
  display: block;
  margin-top: 10px;
  color: #214072;
  font-weight: 600;
  font-size: 0.99rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.features-grid > div {
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 250px;
  background: #F7FAFC;
  border-radius: 12px;
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1.5px 7px rgba(33,64,114,0.07);
  transition: box-shadow 0.15s, transform 0.16s;
}
.features-grid > div:hover {
  box-shadow: 0 5px 32px rgba(33,64,114,.11);
  transform: translateY(-2px) scale(1.01);
}
.features-grid img {
  width: 38px;
  margin-bottom: 12px;
  opacity: 0.87;
}
.features-grid h3 {
  font-size: 1.13rem;
  margin-bottom: 9px;
  color: #214072;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}
.services-list .text-section {
  flex: 1 1 245px;
  min-width: 245px;
  background: #F8F8FA;
  border-radius: 12px;
  padding: 22px 16px 16px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(33,64,114,0.04);
  transition: box-shadow 0.15s, transform 0.16s;
}
.services-list .text-section:hover {
  box-shadow: 0 4px 20px rgba(33,64,114,0.08);
  transform: translateY(-2px) scale(1.01);
}
.services-list h2 {
  font-size: 1.18rem;
  margin-bottom: 7px;
}

/* ===============
   HEADER & NAV
   =============== */
header {
  background: #fff;
  box-shadow: 0 2px 9px rgba(33,64,114,0.05);
  z-index: 199;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px 18px;
  gap: 18px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  color: #214072;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 8px;
  border-radius: 4px;
  position: relative;
  transition: color 0.16s, background 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E5EEF6;
  color: #F3A042;
}
.cta-btn {
  font-family: 'Montserrat', serif;
  background: #F3A042;
  color: #214072;
  font-size: 1.06rem;
  padding: 9px 24px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 20px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1.5px 10px rgba(33,64,114,0.06);
  border: 1px solid #F3A042;
  letter-spacing: 0.02em;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: #F3A042;
  border: 1px solid #F3A042;
  box-shadow: 0 7px 28px rgba(243,160,66,0.08);
  outline: none;
  transform: translateY(-1.5px) scale(1.03);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #214072;
  padding: 6px 12px;
  margin-left: 14px;
  border-radius: 7px;
  z-index: 320;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E5EEF6;
  color: #F3A042;
}

/* =============================
   MOBILE NAVIGATION MENU
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 8px 40px rgba(33,64,114,0.14);
  z-index: 500;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #214072;
  background: none;
  border: none;
  margin: 23px 16px 0 14px;
  align-self: flex-end;
  z-index: 100;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F3A042;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.2rem;
  color: #214072;
  padding: 20px 34px 12px 32px;
  border-bottom: 1px solid #E5EEF6;
  background: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.13s, color 0.13s;
  display: block;
  z-index: 2;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E5EEF6;
  color: #F3A042;
}

/* ================
   FOOTER STYLES
   ================ */
footer {
  background: #E5EEF6;
  padding-top: 44px;
  padding-bottom: 26px;
  margin-top: 38px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 22px rgba(33,64,114,0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-branding img {
  height: 48px;
  width: auto;
  margin-bottom: 5px;
}
.footer-branding p {
  font-size: 1rem;
  line-height: 1.48;
  color: #243048;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-size: 1rem;
  color: #214072;
  font-family: 'Source Serif Pro', serif;
  border-radius: 4px;
  padding: 5px 8px;
  transition: color 0.15s, background 0.15s;
  font-weight: 600;
}
.footer-nav a:focus,
.footer-nav a:hover {
  background: #fff;
  color: #F3A042;
}
.footer-info {
  color: #888;
  font-size: 0.95rem;
  align-self: flex-end;
  margin-top: 20px;
}

/* =====================
   COMMON PAGE SPACING
   ===================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 12px;
}
ul li, ol li {
  margin-bottom: 9px;
  line-height: 1.55;
  list-style-type: disc;
  color: #2C3545;
}
ul li:last-child {
  margin-bottom: 0;
}
dl {
  margin-bottom: 18px;
}
dt {
  font-weight: 600;
  margin-bottom: 2px;
  color: #214072;
}
dd {
  margin-left: 0;
  margin-bottom: 11px;
  color: #2C3545;
}

/* ===========================
   STANDORT-SPECIAL BLOCKS
   =========================== */
.standort {
  margin-top: 15px;
  background: #E5EEF6;
  padding: 18px 22px;
  border-radius: 10px;
  max-width: 380px;
  color: #243048;
  font-size: 1.07rem;
  box-shadow: 0 2px 12px rgba(33,64,114,0.04);
}
.standort h3 {
  margin-bottom: 2px;
  font-size: 1.15rem;
  color: #214072;
  font-weight: 600;
}

/* =================
   RESPONSIVENESS
   ================= */
@media (max-width: 1100px) {
  .container {
    max-width: 99vw;
    padding: 0 9vw;
  }
  .features-grid > div,
  .services-list .text-section {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .footer-branding p,
  .footer-info {
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  section, .section {
    padding: 28px 9px;
    margin-bottom: 42px;
  }
  header .container {
    padding: 13px 10px 10px 10px;
    gap: 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .services-list, .features-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .services-list .text-section, .features-grid > div {
    max-width: 97vw;
    min-width: unset;
    width: 100%;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.54rem;
  }
  h2 {
    font-size: 1.11rem;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 14px;
  }
  .footer-branding img {
    height: 38px;
  }
  .footer-branding, .footer-nav {
    font-size: 0.97rem;
  }
}
@media (max-width: 480px) {
  .standort {
    font-size: 0.98rem;
    padding: 10px 7px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =====================================
   COOKIES BANNER AND PREFERENCES MODAL
   ===================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 4000;
  background: #2C3545;
  color: #fff;
  box-shadow: 0 -5px 30px rgba(33,64,114,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 16px 18px;
  gap: 13px;
  font-size: 1rem;
  font-family: 'Source Serif Pro', serif;
  animation: cookieBannerFadeIn 0.95s ease 0.1s;
}
@keyframes cookieBannerFadeIn {
  from {opacity: 0; transform: translateY(50px);}
  to {opacity: 1; transform: translateY(0);}
}
.cookie-banner strong {
  color: #F3A042;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  margin-top: 7px;
}
.cookie-banner button {
  border-radius: 7px;
  border: none;
  font-family: 'Montserrat', serif;
  font-size: 1.04rem;
  padding: 9px 19px;
  font-weight: 700;
  color: #214072;
  background: #fff;
  box-shadow: 0 1px 7px rgba(33,64,114,.12);
  margin: 0;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.cookie-banner .accept-btn {
  background: #F3A042;
  color: #214072;
  border: 1px solid #F3A042;
}
.cookie-banner .accept-btn:hover,
.cookie-banner .accept-btn:focus {
  background: #fff;
  color: #F3A042;
  box-shadow: 0 4px 18px rgba(243,160,66,.09);
}
.cookie-banner .settings-btn {
  background: #214072;
  color: #fff;
  border: 1px solid #214072;
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
  background: #fff;
  color: #214072;
}
.cookie-banner .reject-btn {
  background: #f8f8fa;
  color: #214072;
  border: 1px solid #e5eef6;
}
.cookie-banner .reject-btn:hover,
.cookie-banner .reject-btn:focus {
  background: #E5EEF6;
  color: #214072;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33,64,114,0.28);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s cubic-bezier(.56,0,.36,1);
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  width: 96vw;
  max-width: 418px;
  background: #fff;
  color: #214072;
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(33,64,114,.18);
  padding: 35px 32px 29px 32px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  font-family: 'Source Serif Pro', serif;
  animation: slideInY 0.45s cubic-bezier(.77,0,.18,1);
  position: relative;
  z-index: 4150;
}
@keyframes slideInY {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', serif;
  font-size: 1.22rem;
  color: #214072;
  margin-bottom: 9px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.51rem;
  color: #214072;
  cursor: pointer;
  line-height: 1;
  transition: color 0.14s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #F3A042;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  color: #243048;
  margin-bottom: 8px;
}
.cookie-modal input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0 6px 0 0;
  accent-color: #F3A042;
}
.cookie-modal .modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
}
.cookie-modal .modal-actions button {
  font-family: 'Montserrat', serif;
  border-radius: 7px;
  border: 1px solid #214072;
  background: #214072;
  color: #fff;
  padding: 9px 18px;
  transition: background 0.14s, color 0.14s;
  font-size: 1.07rem;
  font-weight: 600;
}
.cookie-modal .modal-actions .modal-accept {
  background: #F3A042;
  border-color: #F3A042;
  color: #214072;
}
.cookie-modal .modal-actions .modal-accept:hover,
.cookie-modal .modal-actions .modal-accept:focus {
  background: #fff;
  color: #F3A042;
  border-color: #F3A042;
}
.cookie-modal .modal-actions .modal-cancel {
  background: #214072;
  color: #fff;
}
.cookie-modal .modal-actions .modal-cancel:hover,
.cookie-modal .modal-actions .modal-cancel:focus {
  background: #F3A042;
  color: #214072;
  border-color: #F3A042;
}
.cookie-modal .cookie-categories {
  margin-bottom: 7px;
}
.cookie-modal .cookie-category[disabled],
.cookie-modal .cookie-category[readonly],
.cookie-modal .cookie-category input[disabled],
.cookie-modal .cookie-category input[readonly] {
  opacity: 0.6;
  pointer-events: none;
}
/* Always-on styling for essential cookies */
.cookie-modal label.essential {
  font-weight: 600;
  color: #214072;
}

/* ==========
   ANIMATIONS
   ========== */
.cta-btn, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close,
.card, .features-grid > div, .testimonial-card, .services-list .text-section {
  transition: box-shadow 0.17s, background 0.16s, color 0.16s, transform 0.16s;
}

/* --- SCROLLBAR BEAUTIFY FOR DESKTOP --- */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    background: #E5EEF6;
    border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb {
    background: #C1D5EB;
    border-radius: 10px;
  }
}

/* ==============
   PRINT OPTIMIZE
   ============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none!important;
  }
  section, .section {
    background: none;
    box-shadow: none;
    padding: 0!important;
    margin-bottom: 18px!important;
  }
  .container {
    box-shadow: none;
    padding: 0!important;
  }
}

/* ====================================
   A11Y: FOCUS VISIBILITY
   ==================================== */
:focus {
  outline: 2px solid #F3A042;
  outline-offset: 2px;
}

/* ===========
   LINK STYLE
  ============ */
a {
  color: #214072;
  text-decoration: none;
  border-bottom: 1px dotted #E5EEF6;
  transition: color 0.14s, border-color 0.14s;
}
a:hover, a:focus {
  color: #F3A042;
  border-color: #F3A042;
}

/* =============
   MISC DETAILS
   ============= */
blockquote {
  quotes: '“' '”' '‘' '’';
  margin: 0;
  font-style: italic;
  color: #243048;
  border-left: 4px solid #F3A042;
  background: none;
  padding-left: 13px;
}

/* Hide scroll on mobile menu when offscreen for perf */
.mobile-menu {
  overflow-y: auto;
}
