/* ==== 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, 
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;
  height: 100%;
  min-height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #152233;
  background: #f7fafd;
  min-height: 100vh;
}
a {
  color: #165b82;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0a2837;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #0a2837;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {font-size: 2.25rem; margin-bottom: 24px;}
h2 {font-size: 1.5rem; margin-bottom: 16px;}
h3 {font-size: 1.125rem; margin-bottom: 12px;}
h4, h5, h6 {font-size: 1rem;}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: #21354a;
}

/* ==== LAYOUT UTILITIES ==== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(16,38,60,0.05);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #165b82;
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(16,38,60,0.08);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
}
header img {
  height: 44px;
  width: auto;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.2s;
  position: relative;
}
header nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #f6c763;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
header nav a:hover::after, header nav a:focus::after {
  width: 100%;
}
header nav a:hover {
  color: #f6c763;
}
.cta-btn {
  display: inline-block;
  background: #f6c763;
  color: #0a2837;
  border: none;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 11px 32px;
  margin-left: 12px;
  box-shadow: 0 2px 8px 0 rgba(22,91,130,0.09);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffd977;
  color: #165b82;
  box-shadow: 0 4px 18px 0 rgba(22,91,130,0.16);
  transform: translateY(-1px) scale(1.025);
  text-decoration: none;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  margin-left: 16px;
  cursor: pointer;
  z-index: 52;
  line-height: 1;
}

@media (max-width: 1024px) {
  header nav {
    gap: 16px;
  }
  .cta-btn {
    padding: 10px 24px;
    font-size: 1rem;
  }
  header .container {
    min-height: 70px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(10,40,55, 0.95);
  transform: translateX(-105vw);
  transition: transform 0.34s cubic-bezier(.7, .3, .2, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #f6c763;
  font-size: 2.3rem;
  position: relative;
  top: 22px;
  left: 20px;
  cursor: pointer;
  z-index: 110;
  margin-bottom: 26px;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff59f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  padding: 30px 32px;
  margin-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.085rem;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid rgba(246,199,99,0.07);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #ffd977;
  background: rgba(246,199,99,0.10);
  border-radius: 7px;
  text-decoration: none;
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO SECTIONS ==== */
.hero {
  background: linear-gradient(95deg, #e9f4fb 48%, #f6c76311 100%);
  padding: 54px 0 32px 0;
  margin-bottom: 48px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: 100%;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: #165b82;
  font-size: 2.60rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.2rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #214664;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .hero {
    padding: 26px 0 18px 0;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
}

/* ==== GENERAL FLEX GRIDS & CARDS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(22,91,130,0.08);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  flex: 1 1 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid, .feature-grid, .overview-grid, .tipps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feature-grid > div,
.overview-grid > div,
.tipps-grid > div,
.team-overview > div {
  background: #f3f6fa;
  border-radius: 10px;
  padding: 22px 18px;
  flex: 1 1 220px;
  min-width: 190px;
  box-shadow: 0 1px 7px 0 rgba(22,91,130,0.04);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.feature-grid > div:hover,
.overview-grid > div:hover,
.tipps-grid > div:hover,
.team-overview > div:hover {
  box-shadow: 0 6px 34px 0 rgba(18,63,95,0.10);
  transform: translateY(-2px) scale(1.025);
}
.team-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .content-grid, .feature-grid, .overview-grid, .tipps-grid, .team-overview {
    flex-direction: column;
  }
  .feature-grid > div,
  .overview-grid > div,
  .tipps-grid > div,
  .team-overview > div {
    min-width: 0;
    width: 100%;
  }
}

/* ==== FLEX PATTERNS SPECIFIC ==== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== FEATURE ICONS ==== */
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}
.feature-icons div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-radius: 7px;
  padding: 14px 18px 4px 18px;
  min-width: 100px;
  box-shadow: 0 0.5px 4px 0 rgba(16,38,60,0.06);
  font-size: 0.99rem;
  color: #165b82;
  font-weight: 600;
}
.feature-icons img {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #e9f4fb;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(22,91,130,0.09);
  color: #10233d;
  font-size: 1.09rem;
  flex-wrap: wrap;
}
.testimonial-card p {
  color: #163149;
  margin: 0 0 0 0;
}
.testimonial-card span {
  color: #909faa;
  font-size: 0.98rem;
  font-style: italic;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ==== FAQ ACCORDION/SECTIONS ==== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion > div {
  background: #f0f5fa;
  border-radius: 9px;
  padding: 18px 18px;
  box-shadow: 0 1px 5px 0 rgba(22,91,130,0.06);
  margin-bottom: 0;
  font-size: 1rem;
}

/* ==== MAPMARKER IN KONTAKT ==== */
.mapmarker {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f3f6fa;
  border-radius: 13px;
  padding: 16px 22px 16px 16px;
  margin-top: 8px;
  font-size: 1.1rem;
  color: #165b82;
  box-shadow: 0 1px 7px 0 rgba(16,38,60,0.05);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ==== FOOTER ==== */
footer {
  background: #0a2837;
  color: #dbecf7;
  padding: 52px 0 16px 0;
  box-shadow: 0 -2px 10px 0 rgba(22,91,130,0.06);
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: #dbecf7;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.4;
  padding: 2px 0;
  transition: color 0.17s, text-decoration 0.20s;
}
footer nav a:hover, footer nav a:focus {
  color: #f6c763;
  text-decoration: underline;
}
footer h3 {
  color: #f6c763;
  font-size: 1.05rem;
  margin-bottom: 9px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
footer p, footer small {
  color: #dbecf7;
  font-size: 0.99rem;
}
footer small {
  font-size: 0.84rem;
  color: #8196a7;
  padding-top: 2px;
  display: block;
}
footer .social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}
footer .social-icons a img {
  width: 32px;
  height: 32px;
  opacity: 0.86;
  transition: opacity 0.16s, filter 0.16s;
}
footer .social-icons a:hover img, footer .social-icons a:focus img {
  opacity: 1;
  filter: brightness(1.15) drop-shadow(0 1px 6px #f6c76333);
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 0;
  }
  footer .container {
    padding: 0 9px;
  }
}

/* ==== LISTS & TYPOGRAPHY ==== */
ul, ol {
  margin-bottom: 20px;
  color: #152233;
  font-size: 1rem;
}
ul li::marker {
  color: #165b82;
  font-size: 1.05em;
}
ul li {
  margin-bottom: 9px;
}

ol li {
  margin-bottom: 10px;
  color: #234e74;
  font-weight: 500;
  font-size: 1rem;
}

/* ==== BUTTONS (General) ==== */
button, .btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  background: #165b82;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.12s;
  box-shadow: 0 1px 6px 0 rgba(22,91,130,0.10);
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: #0a2837;
  color: #f6c763;
  box-shadow: 0 3px 14px 0 rgba(22,91,130,0.15);
  transform: translateY(-1px) scale(1.01);
  outline: none;
}

/* ==== CTA SPECIAL SECTIONS ==== */
.cta {
  background: linear-gradient(94deg, #f6c76320 38%, #fff 100%);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(246,199,99,0.08);
  margin-bottom: 60px;
  padding: 36px 0 36px 0;
}
.cta .cta-btn {
  font-size: 1.09rem;
  margin-bottom: 14px;
}
.cta ul {
  margin-top: 8px;
  color: #165b82;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .cta {
    margin-bottom: 32px;
    padding: 26px 0 26px 0;
    border-radius: 9px;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #152233;
  color: #fff;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  z-index: 3000;
  box-shadow: 0 -2px 26px 0 rgba(22,91,130,0.13);
  font-size: 1rem;
  animation: cookie-banner-in 0.65s cubic-bezier(.7,.33,.25,1);
}
@keyframes cookie-banner-in {
  0% { transform: translateY(60px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 10px 26px;
  font-size: 0.98rem;
  font-weight: 600;
  margin-right: 3px;
  cursor: pointer;
  background: #f6c763;
  color: #165b82;
  transition: background 0.17s, color 0.17s, box-shadow 0.19s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd977;
  color: #0a2837;
  box-shadow: 0 2px 10px rgba(22,91,130,0.14);
}
.cookie-btn.reject {
  background: #c2d9ec;
  color: #0a2837;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #9dc2e5;
  color: #0a2837;
}
.cookie-btn.settings {
  background: #fff;
  color: #0a2837;
  border: 1.5px solid #f6c763;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f6c763;
  color: #165b82;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 14px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-buttons {
    gap: 9px;
  }
}

/* ==== COOKIE MODAL / PREFERENCES ==== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(22, 91, 130, 0.40);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-in 0.5s cubic-bezier(.69,.5,.2,1);
}
@keyframes cookie-modal-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 36px 30px;
  max-width: 430px;
  width: 92vw;
  box-shadow: 0 6px 48px 0 rgba(22,91,130,0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #152233;
  z-index: 4010;
}
.cookie-modal h2 {
  color: #165b82;
  font-size: 1.20rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: #0a2837;
  margin-left: 1px;
  margin-bottom: 0;
}
.cookie-toggle {
  accent-color: #165b82;
  width: 24px; height: 24px;
}
.cookie-essential {
  color: #aaa;
  font-size: 0.97rem;
}
.cookie-modal .cookie-btn {
  margin-top: 14px;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 22px 7px 20px 7px;
  }
}

/* ==== SPACING UTILITIES & MISC ==== */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }

/* ==== ANIMATIONS & INTERACTIVITY ==== */
.card, .feature-grid > div, .overview-grid > div, .tipps-grid > div, .team-overview > div {
  transition: box-shadow 0.20s, transform 0.13s, background 0.17s;
}
.card:focus-within, .feature-grid > div:focus-within, .overview-grid > div:focus-within {
  background: #e9f4fb;
  box-shadow: 0 4px 16px 0 rgba(22,91,130,0.13);
  outline: 2px solid #f6c763;
}

/* ==== RESPONSIVE TYPOGRAPHY SCALE ==== */
@media (max-width: 900px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.05rem; }
  .cta-btn, button, .btn { font-size: 0.97rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.19rem; }
  h2 { font-size: 1rem; }
  h3 { font-size: 0.97rem; }
  .cta-btn, button, .btn { font-size: 0.95rem; padding: 10px 18px; }
}

/* ==== VISUAL HIERARCHY UTILITIES ==== */
.section:not(:first-child) { margin-top: 30px; }
.section > .container > .content-wrapper > h2,
.section > .container > .content-wrapper > h1 {
  margin-top: 0;
}

/* ==== ADDITIONAL ENSURE FLEX LAYOUTS ==== */
@media (max-width: 768px) {
  .content-grid, .feature-grid, .overview-grid, .tipps-grid, .team-overview {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 15px 10px;
  }
  .footer .social-icons { gap: 8px; }
}

/* ==== FORMS (if any appear) ==== */
input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 13px;
  border: 1.5px solid #b2c7d4;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 17px;
  color: #165b82;
  width: 100%;
  transition: border 0.15s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #165b82;
  outline: 2px solid #f6c76322;
}

/* ==== HIDE ABSOLUTE FOR CONTENT CARDS (but allow for decorations if needed) ==== */
/* No position:absolute for .card, .feature-grid > div, etc. */

/* ==== PRINT OPTIMIZATION ==== */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  a, a:visited { text-decoration: underline; }
}
