/* --- 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 {
  scroll-behavior: smooth; 
  height: 100%;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  color: #20436a;
  background: #f8fafc;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin-left: 24px;
}
strong { font-weight: 700; }

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, .cta, .btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #20436a;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #20436a;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
p,li,span,td,th,blockquote {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #20436a;
}
blockquote {
  font-style: italic;
  background: #e2eefc;
  border-left: 4px solid #20436a;
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 8px;
}
a {
  color: #20436a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #e6b400;
  text-decoration: underline;
}

/* --- LAYOUT CONTAINERS / UTILITY --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 800px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: linear-gradient(90deg, #20436a 0%, #3e7bbd 100%);
  color: #fff;
  padding: 0 0 0 0;
  box-shadow: 0 2px 16px 0 rgba(32,67,106,0.08);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 72px;
  gap: 20px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 8px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #e6b400;
  color: #20436a;
}
.main-nav .cta.primary {
  background: #e6b400;
  color: #20436a;
  padding: 10px 18px;
  border-radius: 22px;
  font-weight: 700;
  margin-left: 10px;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px 0 rgba(230,180,0,0.07);
}
.main-nav .cta.primary:hover,
.main-nav .cta.primary:focus {
  background: #fff;
  color: #20436a;
  box-shadow: 0 6px 18px 0 rgba(230,180,0,0.12);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #e6b400;
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0 8px;
  margin-left: 8px;
  z-index: 102;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #e6b400;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #20436a;
  color: #fff;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.76,.01,.21,1.02);
  padding: 32px 24px 0 24px;
  box-shadow: 4px 0 16px 0 rgba(32,67,106,0.10);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #e6b400;
  font-size: 2.4rem;
  cursor: pointer;
  margin-bottom: 20px;
  transition: color .2s;
}
.mobile-menu-close:focus { outline: 2px solid #e6b400; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  padding: 14px 0;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #e6b400;
  color: #20436a;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(105deg, #e2eefc 0%, #fff6df 100%);
  padding: 64px 0 56px 0;
  min-height: 320px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 16px 40px 0 rgba(32,67,106,0.06);
}
.hero h1 {
  font-size: 2.6rem;
  color: #20436a;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 28px;
  color: #2c5279;
}
.hero .cta {
  margin-top: 10px;
}

/* --- SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

@media (max-width: 600px) {
  section {
    padding: 28px 6px;
  }
}

/* --- CARDS, GRIDS, FEATURE, TESTIMONIALS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(32,67,106,0.07);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s,transform .18s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(230,180,0,0.12);
  transform: translateY(-4px) scale(1.03);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- FEATURES --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 0 0;
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(32,67,106,0.05);
  padding: 26px 18px 22px 18px;
  min-width: 160px;
  max-width: 260px;
  flex: 1;
  transition: box-shadow .23s;
  margin-bottom: 0;
}
.feature-grid li img {
  height: 48px;
  margin-bottom: 8px;
}
.feature-grid li:hover {
  box-shadow: 0 10px 36px 0 rgba(230,180,0,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TABLES --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(32,67,106,0.07);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 18px 14px;
  text-align: left;
  border-bottom: 1px solid #e2eefc;
}
.pricing-table th {
  color: #20436a;
  background: #f8fafc;
  font-size: 1.1rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* --- TEAM GRID (ABOUT PAGE) --- */
.team-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.team-member {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(32,67,106,0.08);
  flex: 1 1 200px;
  padding: 24px 16px;
  margin-bottom: 0;
  min-width: 220px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow .18s;
}
.team-member:hover, .team-member:focus {
  box-shadow: 0 12px 32px 0 rgba(32,67,106,0.13);
}

@media (max-width: 900px) {
  .team-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- TESTIMONIALS --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: #f6f6fa;
  border-radius: 15px;
  min-width: 220px;
  flex: 1;
  box-shadow: 0 2px 10px 0 rgba(32,67,106,0.06);
  margin-bottom: 0;
  border: 1px solid #e2eefc;
}
.testimonial-card p {
  color: #20436a;
  font-size: 1.06rem;
}
.testimonial-card span {
  color: #2c5279;
  font-weight: 500;
  font-size: 0.98rem;
}
.summary-text {
  margin-top: 8px;
  font-size: 1.08rem;
}

@media (max-width: 800px) {
  .testimonials {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* --- BLOG LIST PREVIEWS --- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-post-preview {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px 0 rgba(32,67,106,0.06);
  padding: 26px 18px 20px 18px;
  min-width: 200px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  transition: box-shadow .18s;
  margin-bottom: 0;
}
.blog-post-preview:hover {
  box-shadow: 0 8px 40px 0 rgba(230,180,0,0.09);
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
}
.blog-filters label {
  font-weight: 600;
}
.blog-filters select, .blog-filters input[type="search"] {
  padding: 8px 14px;
  border: 1px solid #e2eefc;
  border-radius: 8px;
  font-size: 1rem;
  margin-right: 6px;
  background: #f8fafc;
  outline: none;
  color: #20436a;
  transition: border .2s;
}
.blog-filters select:focus, .blog-filters input[type="search"]:focus {
  border: 1.5px solid #e6b400;
}

/* --- CTA BUTTONS --- */
.cta.primary, .btn.primary {
  background: #e6b400;
  color: #20436a;
  border-radius: 22px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 32px;
  display: inline-block;
  box-shadow: 0 4px 20px 0 rgba(230,180,0,0.10);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.18s;
}
.cta.primary:hover, .cta.primary:focus,
.btn.primary:hover, .btn.primary:focus {
  background: #20436a;
  color: #fff;
  box-shadow: 0 10px 32px 0 rgba(32,67,106,0.09);
  transform: translateY(-2px) scale(1.04);
}
.button-link {
  border: none;
  background: none;
  color: #20436a;
  font-size: 1rem;
  cursor: pointer;
  transition: color .23s;
}
.button-link:hover { color: #e6b400; }

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(90deg, #e6b400 0%, #f8fafc 120%);
  border-radius: 20px;
  box-shadow: 0 2px 20px 0 rgba(230,180,0,0.07);
  padding: 32px 24px 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-banner h2 {
  color: #20436a;
}
.cta-banner p {
  color: #2c5279;
}


/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #20436a 0%, #28558C 100%);
  color: #fff;
  padding: 48px 0 28px 0;
  border-top-left-radius: 35px;
  border-top-right-radius: 35px;
  box-shadow: 0 -8px 32px 0 rgba(32,67,106,0.13);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 56px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  padding: 6px 0;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #e6b400;
}
.footer-contact, .footer-hours {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact span, .footer-hours span {
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 2px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-logo img {
    height: 36px;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .cta-banner { padding: 16px 6px 22px 6px; }
  .footer-logo img { height: 34px; }
  .container { padding-left: 4px; padding-right: 4px; }
  .feature-grid, .content-grid, .blog-list { gap: 12px; }
}

/* --- LEGAL SECTION & INFO UTILITIES --- */
.legal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(32,67,106,0.07);
  padding: 32px 20px;
  margin: 28px 0 18px 0;
}
.legal h1,.legal h2 { color: #20436a; }
.legal ul li { margin-bottom: 10px; }

/* --- FORM & MAP EMBED (for Kontakt) --- */
.map-embed {
  width: 100%;
  height: 220px;
  background: #e2eefc;
  border-radius: 13px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #20436a88;
  font-size: 1rem;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #20436a;
  color: #fff;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 28px 18px 20px 18px;
  box-shadow: 0 -8px 22px 0 rgba(32,67,106,0.16);
  font-size: 1rem;
  transition: transform .36s, opacity .36s;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 18px;
  padding: 9px 22px;
  border: none;
  outline: none;
  box-shadow: 0 1px 10px #0001;
  cursor: pointer;
  transition: background .17s, color .18s, box-shadow .17s;
}
.cookie-banner .accept {
  background: #e6b400;
  color: #20436a;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #fff;
  color: #20436a;
}
.cookie-banner .reject {
  background: #fff;
  color: #20436a;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e6b400;
  color: #20436a;
}
.cookie-banner .cookie-settings {
  background: #28558C;
  color: #fff;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #e6b400;
  color: #20436a;
}
@media (max-width: 440px) {
  .cookie-banner .cookie-btns {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 215;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,67,106,0.44);
  align-items: flex-end;
  justify-content: center;
  transition: opacity .27s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 32px 0 rgba(32,67,106,0.14);
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: cookieModalSlideIn .32s cubic-bezier(.83,0,.32,1.02) backwards;
}
@keyframes cookieModalSlideIn {
  0% { transform: translateY(120%); opacity: 0; }
  85% { opacity: 0.71; }
  100% { transform: translateY(0%); opacity: 1; }
}
.cookie-modal h2 {
  color: #20436a;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 6px 0;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
}
.cookie-modal .category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #e6b400;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 13px;
  right: 17px;
  background: transparent;
  border: none;
  color: #20436a;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  transition: color .2s;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  color: #e6b400;
}
.cookie-modal .category label {
  font-weight: 500;
}
.category.always-on label {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 14px;
}
.cookie-modal .modal-actions button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 21px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  background: #e6b400;
  color: #20436a;
  font-weight: 600;
  transition: background .17s, color .16s;
}
.cookie-modal .modal-actions .decline {
  background: #fff;
  color: #20436a;
}
.cookie-modal .modal-actions .decline:hover,
.cookie-modal .modal-actions .decline:focus {
  background: #e6b400;
  color: #20436a;
}
.cookie-modal .modal-actions .save {
  background: #e6b400;
  color: #20436a;
}
.cookie-modal .modal-actions .save:hover,
.cookie-modal .modal-actions .save:focus {
  background: #20436a;
  color: #fff;
}

/* --- MISC & ACCESSIBILITY --- */
::-webkit-input-placeholder { color: #a2b5cb; }
::-moz-placeholder { color: #a2b5cb; }
:-ms-input-placeholder { color: #a2b5cb; }
::placeholder { color: #a2b5cb; }

/* --- Utility Classes for Spacing and Alignment --- */
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.gap-20 { gap: 20px !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }

/* --- Prevent Content Overlap --- */
.card, .feature-grid li, .testimonial-card, .blog-post-preview, .team-member {
  margin-bottom: 20px;
}

/* --- Print Styles --- */
@media print {
  header, footer, .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
