/* 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, 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;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #223046;
  background: #f7f9fb;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #245074;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #B95C34;
  outline: none;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* TYPOGRAPHY ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: bold;
  color: #245074;
  line-height: 1.2;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 8px;
}
p, li, blockquote, small {
  font-size: 1rem; /* 16px */
}
blockquote {
  font-style: italic;
  color: #2c3b50;
  position: relative;
  margin-bottom: 10px;
  padding-left: 16px;
}
blockquote:before {
  content: "\201C";
  font-size: 2em;
  color: #B95C34;
  position: absolute;
  left: 0;
  top: -2px;
}

.tagline {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 1.125rem;
  color: #B95C34;
  font-weight: 600;
  margin: 18px 0 8px 0;
}

strong {
  font-weight: 600;
  color: #20507A;
}
small {
  color: #8998ab;
}

/* LAYOUT: FLEXBOX STRUCTURE -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(36,80,116,0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(36,80,116,0.07);
  padding: 28px 22px 22px 22px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(36,80,116,0.13);
  transform: translateY(-3px);
}
.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;
  margin-bottom: 20px;
  background: #F6FAFE;
  border-left: 5px solid #245074;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(36,80,116,0.07);
  color: #223046;
  transition: box-shadow 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(36,80,116,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* DEFAULT FLEX LAYOUTs - ENSURE FLEX ONLY */
nav ul {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
footer {
  background: #223046;
  color: #fff;
  padding: 36px 0 20px 0;
  text-align: center;
}
footer a {
  color: #eaeaea;
  font-size: 1rem;
  transition: color 0.19s;
}
footer a:hover {
  color: #B95C34;
  text-decoration: underline;
}
footer small {
  color: #bbc8d8;
  margin-top: 10px;
  display: block;
}

/* HEADER + NAVIGATION ------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(36,80,116,0.10);
  position: sticky;
  top: 0;
  z-index: 15;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
  gap: 18px;
}
header nav img {
  height: 46px;
  width: auto;
}
header nav ul li {
  display: flex;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #223046;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 8px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.19s;
  text-align: center;
  position: relative;
}
header nav ul li a:hover, header nav ul li a.active {
  color: #B95C34;
  background: #EAD8C0;
}
header .cta.primary {
  background: #245074;
  color: #fff;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 28px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 7px rgba(36,80,116,0.06);
  margin-left: 28px;
  transition: background 0.21s, color 0.17s, box-shadow 0.22s;
  border: none;
  cursor: pointer;
  display: inline-block;
  outline: none;
}
header .cta.primary:hover, header .cta.primary:focus {
  background: #B95C34;
  color: #fff;
  box-shadow: 0 2px 16px rgba(36,80,116,0.15);
}

/* MOBILE NAVIGATION: Hamburger & Overlay ------------------------------ */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #245074;
  cursor: pointer;
  z-index: 30;
  margin-left: 12px;
  padding: 7px 13px;
  border-radius: 5px;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #EAD8C0;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,48,70,0.94);
  box-shadow: 0 0 22px rgba(36,80,116,0.3);
  z-index: 1002;
  transform: translateX(-100vw);
  transition: transform 0.42s cubic-bezier(0.47,0,0.75,0.72);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  transition: transform 0.32s cubic-bezier(0.47,0,0.75,0.72), opacity 0.23s;
}

.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  margin: 22px 32px 12px 0;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 7px;
  transition: background 0.14s;
  z-index: 1010;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #B95C34;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 34px 32px 0 32px;
  width: 100vw;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Arial',sans-serif;
  color: #fff;
  font-size: 1.33rem;
  letter-spacing: 0.01em;
  padding: 10px 0;
  border-radius: 5px;
  width: 100%;
  transition: background .14s, color 0.12s;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #245074;
  color: #EAD8C0;
}

@media (max-width: 1100px) {
  .container {
    max-width: 100vw;
    padding: 0 14px;
  }
  header nav {
    padding: 16px 12px;
  }
}
@media (max-width: 970px) {
  header nav ul {
    gap: 16px;
  }
  header .cta.primary {
    padding: 10px 19px;
  }
}
@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 26px 4px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 5px;
  }
  .content-wrapper, .text-section {
    gap: 16px;
  }
  header nav ul {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: stretch;
  }
  .card {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}

/* BUTTONS & CTA ------------------------------------------------------ */
.cta, .btn {
  display: inline-block;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 32px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  outline: none;
  background: #245074;
  color: #fff;
  box-shadow: 0 2px 8px rgba(36,80,116,0.09);
  transition: background 0.21s, color 0.19s, box-shadow 0.21s, transform 0.16s;
}
.cta.primary, .btn.primary {
  background: #245074;
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus, .btn.primary:hover, .btn.primary:focus {
  background: #B95C34;
  color: #fff;
  box-shadow: 0 5px 17px rgba(36,80,116,0.19);
  transform: translateY(-2px) scale(1.03);
}
.cta.secondary, .btn.secondary {
  background: #EAD8C0;
  color: #245074;
}
.cta.secondary:hover, .cta.secondary:focus, .btn.secondary:hover, .btn.secondary:focus {
  background: #B95C34;
  color: #fff;
}
.btn {
  margin-right: 12px;
}

/* LISTS (features, ul, li) --------------------------------------------- */
section ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}
section ul li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-left: 0;
  word-break: break-word;
}
section ul li img {
  width: 32px;
  height: 32px;
  margin-right: 18px;
}

/* FORMATTING FOR PAGES WITH STRAIGHT TEXT (Impressum etc) ------------- */
.text-section h2, .text-section h1 {
  margin-top: 12px;
  margin-bottom: 10px;
}
.text-section ul {
  margin-bottom: 16px;
}

/* MICRO-INTERACTIONS & SHADOWS ---------------------------------------- */
.card, .testimonial-card, .section {
  transition: box-shadow 0.18s;
}
.card:focus-within, .testimonial-card:focus-within, .section:focus-within {
  box-shadow: 0 4px 20px rgba(36,80,116,0.10);
}

/* SPACING: Consistent gutters & margins ------------------------------- */
.card, .testimonial-card, .feature-item, .content-wrapper, .text-section, .section {
  margin-bottom: 20px;
}
/* Remove double margin for last card in a group */
.card:last-child, .testimonial-card:last-child, .feature-item:last-child, .section:last-child {
  margin-bottom: 0;
}

/* ACCESSIBILITY: FOCUS RING ------------------------------------------- */
a:focus, .cta:focus, .btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #B95C34;
  outline-offset: 2px;
}

/* COOKIE CONSENT BANNER ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 1200;
  background: #fff;
  box-shadow: 0 -3px 20px rgba(36,80,116,0.08);
  padding: 28px 16px 21px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 1rem;
  transition: transform 0.27s, opacity 0.19s;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .banner-text {
  color: #245074;
  max-width: 620px;
}
.cookie-banner .banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 18px;
  border-radius: 5px;
  border: none;
  margin-right: 0;
  transition: background 0.17s, color 0.14s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.accept {
  background: #245074;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #B95C34;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #EAD8C0;
  color: #245074;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #B95C34;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: #245074;
  border: 1px solid #245074;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #245074;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 17px 8px 19px 8px;
  }
  .cookie-banner .banner-actions {
    gap: 10px;
  }
}

/* COOKIE MODAL ------------------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(46,58,74,.42);
  z-index: 1300;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  width: 98vw;
  max-width: 388px;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 30px rgba(36,80,116,0.13);
  margin-bottom: 0;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 300px;
  animation: cookieModalUp .33s cubic-bezier(.49,.3,.87,.75);
  position: relative;
}
@keyframes cookieModalUp {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.cookie-modal .consent-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.cookie-modal .consent-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #223046;
}
.cookie-modal .consent-toggle {
  accent-color: #245074;
  width: 19px;
  height: 19px;
}
.cookie-modal .consent-category.essential label {
  font-weight: 600;
  color: #B95C34;
}
.cookie-modal .consent-category.essential .consent-toggle {
  display: none;
}
.cookie-modal .modal-actions {
  margin-top: 11px;
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .modal-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 19px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  background: #245074;
  color: #fff;
  transition: background 0.18s;
}
.cookie-modal .modal-btn.secondary {
  background: #EAD8C0;
  color: #245074;
}
.cookie-modal .modal-btn.secondary:hover {
  background: #B95C34;
  color: #fff;
}
.cookie-modal .modal-btn:hover, .cookie-modal .modal-btn:focus {
  background: #B95C34;
  color: #fff;
}
.cookie-modal .close-x {
  position: absolute;
  top: 16px; right: 15px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #245074;
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 7px;
  transition: background 0.11s;
}
.cookie-modal .close-x:focus, .cookie-modal .close-x:hover {
  background: #EAD8C0;
  color: #B95C34;
}

/* ANIMATIONS --------------------------------------------------------- */
.section, .card, .testimonial-card {
  transition: box-shadow 0.18s, background 0.22s, transform 0.13s;
}
a, .cta, .btn, .mobile-menu-toggle {
  transition: background 0.16s, color 0.15s, box-shadow 0.13s;
}

/* PAGE-SPECIFIC -------------------------------------- */
/* FAQ question/answers on Kontakt */
.content-wrapper ul li strong {
  color: #245074;
  font-weight: 600;
}

/* Small images/icons feature lists */
section ul li img {
  min-width: 32px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
  }
}

/* Endcard CTA (thank-you) --------------------------------------------- */
.thank-you .cta {
  margin-top: 18px;
}

/* Hide certain elements visually but keep for screen readers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* Utility spacing for cards in flex row */
.card-container > .card {
  margin-bottom: 0 !important;
}

/* Print-friendly adjustments */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}

/* END CSS */
