/* ================================================================== */
/* 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, main, 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, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F7F3;
  color: #173a49;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
*:focus {
  outline: 2px solid #78A8BD;
  outline-offset: 2px;
}

/* ================================================================== */
/* BRAND VARIABLES & TYPOGRAPHY */
/* ================================================================== */
:root {
  --color-primary: #20537A;
  --color-secondary: #78A8BD;
  --color-accent: #F8F7F3;
  --color-text: #173a49; /* Slightly softer than black */
  --color-muted: #A4B5C2;
  --color-white: #fff;
  --color-shadow: rgba(32, 83, 122, 0.06);
  --color-border: #ebebeb;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold'), url(https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm45_Q.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v34/mem8YaGs126MiZpBA-U1UpcaXcl0Aw.ttf) format('truetype');
}

h1, h2, h3, h4 {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
p, ul, ol, li, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.subheadline {
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-bottom: 22px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* ================================================================== */
/* LAYOUT: CONTAINER PATTERNS & FLEXBOX */
/* ================================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 3px 20px var(--color-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
  flex: 1 1 250px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.22s, border 0.18s;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(32, 83, 122, 0.14);
  border: 1px solid var(--color-secondary);
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 22px 16px 18px 16px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 240px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, border 0.16s;
}

.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;
}
.feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 11px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 220px;
  border: 1px solid var(--color-border);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--color-shadow);
  border: 1px solid var(--color-border);
  color: #1c2b36;
  max-width: 640px;
  transition: box-shadow 0.21s, border 0.13s;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #264c63;
  font-size: 1.08rem;
  margin-bottom: 0;
  margin-top: 0;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--color-secondary);
  margin: 0;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer-contact {
  color: var(--color-muted);
  font-size: 0.97rem;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ================================================================== */
/* HEADER & NAVIGATION */
/* ================================================================== */
header {
  width: 100%;
  background: var(--color-accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px 20px;
  position: relative;
  z-index: 30;
  min-height: 60px;
}
header > a img {
  display: block;
  width: 140px;
  height: auto;
}
.main-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 1.08rem;
}
.main-menu a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  position: relative;
  padding: 2px 0 2px 0;
  transition: color 0.15s, border-bottom 0.16s;
}
.main-menu a:hover, .main-menu a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.cta-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 13px 28px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  box-shadow: 0 2px 14px var(--color-shadow);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.16s, transform 0.11s;
  display: inline-block;
  margin-left: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 22px rgba(32, 83, 122, 0.16);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 12px 26px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  box-shadow: none;
  cursor: pointer;
  margin-left: 0;
  margin-top: 8px;
  transition: border 0.18s, color 0.17s, background 0.17s;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 101;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--color-shadow);
  transition: background 0.16s, box-shadow 0.18s;
}
.mobile-menu-toggle:active {
  background: var(--color-secondary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 83, 122, 0.93);
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.28s;
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--color-secondary);
  font-size: 2.4rem;
  position: absolute;
  right: 30px;
  top: 26px;
  border: none;
  z-index: 2001;
  cursor: pointer;
  opacity: 0.95;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  margin-top: 92px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 0 40px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 10px 0 10px 0;
  border-bottom: 1px solid rgba(120, 168, 189, .20);
  width: 100%;
  transition: color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

@media (max-width: 1020px) {
  .main-menu {
    gap: 18px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .main-menu a {
    font-size: 0.98rem;
  }
}

@media (max-width: 820px) {
  .main-menu {
    gap: 7px;
    font-size: 0.93rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    gap: 10px;
    padding: 14px 12px 8px 12px;
  }
  header > .main-menu,
  header > .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    max-width: 100vw;
    padding: 0 14px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 12px;
  }
  .feature-item, .service-card, .card {
    min-width: 95vw;
    min-width: 0;
    flex-basis: 100%;
    padding: 18px 10px;
  }
  .testimonial-card {
    max-width: 100vw;
    padding: 14px 6px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .container {
    padding: 0 3px;
  }
}

/* Responsive direction for flex containers */
@media (max-width: 768px) {
  .content-grid, .feature-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 12px;
  }
}
@media (min-width: 769px) {
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
  .feature-grid {
    flex-direction: row;
    gap: 20px;
  }
}

/* ================================================================== */
/* BREADCRUMBS, LISTS, MISC */
/* ================================================================== */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  padding-left: 20px;
  position: relative;
  min-height: 30px;
}
ul li:before {
  content: '•';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  font-size: 1.1em;
  line-height: 1;
  top: 0.4em;
}
ol li:before {
  display: none;
}
li img {
  width: 24px;
  height: 24px;
  margin-right: 7px;
  vertical-align: middle;
}

/* ================================================================== */
/* BUTTONS & LINKS */
/* ================================================================== */
button, .cta-primary, .cta-secondary {
  transition: background 0.18s, color 0.15s, border 0.18s, box-shadow 0.15s, transform 0.13s;
}

/* To ensure nice focus for accessibility */
.cta-primary:focus, .cta-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  box-shadow: 0 0 0 3px var(--color-secondary);
  outline: none;
}

/* Links in texts (like Datenschutzerklärung) */
a {
  transition: color 0.17s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ================================================================== */
/* FOOTER */
/* ================================================================== */
footer {
  width: 100%;
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  padding: 36px 0 10px 0;
  margin-top: 60px;
  font-size: 1rem;
}
@media (max-width: 600px) {
  footer {
    padding: 20px 0 4px 0;
    margin-top: 30px;
  }
}

/* ================================================================== */
/* COOKIE CONSENT BANNER & MODAL */
/* ================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px var(--color-shadow);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 32px;
  animation: fadeInCookieBanner 0.7s cubic-bezier(.5,1.3,.7,1); 
}
@keyframes fadeInCookieBanner {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 0%;
  color: var(--color-primary);
  font-size: 1.02rem;
  margin-right: 20px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-banner__btn, .cookie-banner__btn--secondary {
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s, color 0.16s, border 0.14s;
}
.cookie-banner__btn {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner__btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-banner__btn--secondary:hover, .cookie-banner__btn--secondary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 14px 8px;
  }
  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
}

.cookie-modal__overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 83, 122, 0.32);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  animation: fadeIn .23s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(32,83,122,0.11);
  padding: 36px 26px 32px 26px;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 4100;
  animation: popupModalAppear 0.31s cubic-bezier(.22,1.3,.72,1);
}
@keyframes popupModalAppear {
  from { transform: scale(0.95) translateY(22px); opacity: 0; }
  to   { transform: scale(1) translateY(0px); opacity: 1; }
}
.cookie-modal__header {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 17px;
}
.cookie-modal__category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
}
.cookie-modal__category:last-child {
  border-bottom: none;
}
.cookie-modal__label {
  flex: 1;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.03rem;
}
.cookie-modal__switch {
  margin-left: 8px;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 24px;
  justify-content: flex-end;
}
/* Custom styled switch for cookie modal */
.cookie-modal__switch input[type="checkbox"] {
  width: 42px; height: 22px;
  position: relative;
  appearance: none;
  background: #dee8ee;
  border-radius: 22px;
  outline: none;
  box-shadow: inset 0 1px 7px rgba(32, 83, 122, 0.04);
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal__switch input[type="checkbox"]:checked {
  background: var(--color-secondary);
}
.cookie-modal__switch input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: transform 0.19s, background 0.13s;
}
.cookie-modal__switch input[type="checkbox"]:checked::before {
  background: var(--color-primary);
  transform: translateX(20px);
}
.cookie-modal__switch input[type="checkbox"]:disabled {
  filter: grayscale(0.8);
  background: #f0f0f2;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  .cookie-modal {
    min-width: 0;
    max-width: 99vw;
    padding: 19px 8px 16px 8px;
  }
}

/* ================================================================== */
/* ANIMATIONS & MICRO-INTERACTIONS */
/* ================================================================== */
.card, .service-card, .testimonial-card, .cookie-banner, .cookie-modal {
  will-change: box-shadow, border, transform, opacity;
}
.card:active, .service-card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ================================================================== */
/* CUSTOM UTILITIES & SPACING ENHANCEMENTS */
/* ================================================================== */
.mt-32 { margin-top: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* ================================================================== */
/* PRINT & SELECTION */
/* ================================================================== */
::selection {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* ================================================================== */
/* FINAL RESPONSIVE CONSTRAINTS */
/* ================================================================== */
@media (max-width: 360px) {
  .main-menu, .footer-menu {
    flex-direction: column;
    gap: 6px;
  }
}

/* ================================================================== */
/* END OF CSS -- ZILMAR REISEN MINIMALIST DESIGN */
/* ================================================================== */
