/* --- 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, 
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, menu, nav, section { display: block; }
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #FCFCFE;
  color: #14377A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.15s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; border: 0; }
button { font-family: 'Montserrat', Arial, Helvetica, sans-serif; cursor: pointer; }

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* --- COLOR VARIABLES AS FALLBACK --- */
:root {
  --color-primary: #14377A;
  --color-secondary: #33B3A6;
  --color-accent: #F7CC57;
  --color-bg: #FCFCFE;
  --color-card: #fff;
  --color-shadow: rgba(20, 55, 122, 0.07);
  --color-shadow-strong: rgba(20, 55, 122, 0.13);
  --color-border: #E3EBF5;
  --color-grey: #63779A;
}

/* --- LAYOUT CONTAINERS & UTILITY --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 28px;
  box-shadow: 0 4px 24px var(--color-shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
    border-radius: 16px;
  }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-primary, #14377A);
}
h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #222f4d;
}
strong { font-weight: 700; }
.tagline {
  font-size: 1.1rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-button.primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 18px 36px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 32px;
  transition: background 0.2s, transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 12px var(--color-shadow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 12px 0 0 0;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-3px) scale(1.045);
  box-shadow: 0 6px 32px var(--color-shadow-strong);
}
.cta-button.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: bold;
  border: none;
  border-radius: 32px;
  font-size: 1rem;
  padding: 16px 32px;
  transition: background 0.2s, box-shadow 0.18s, color 0.2s;
  margin: 8px 0 0 0;
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 8px 32px var(--color-shadow-strong);
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 2px solid var(--color-border);
  padding: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 8px;
}
header a img {
  width: 52px;
  height: auto;
  margin-right: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 5px 8px;
  border-radius: 8px;
  transition: color 0.18s, background 0.16s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 205;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover { background: var(--color-secondary); color: #fff; }
@media (max-width: 1024px) {
  header nav {
    display: none; /* Hide navigation, show burger menu */
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #14377A;
  z-index: 210;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.79,.14,.15,.86);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  align-self: flex-end;
  padding: 24px 30px 0 16px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 220;
}
.mobile-menu-close:hover { color: var(--color-accent); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 80vw;
  max-width: 400px;
  margin: 36px 0 0 42px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.01em;
  padding: 12px 10px 12px 0;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none;
  }
}

/* --- HERO SECTION --- */
main > section:first-of-type .container {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
main > section:first-of-type .content-wrapper {
  align-items: center;
  text-align: center;
  padding-top: 24px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 8px;
}
.feature-grid > div {
  background: var(--color-card);
  border-radius: 20px;
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 32px 20px 24px;
  flex: 1 1 220px;
  min-width: 240px;
  transition: box-shadow 0.20s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid > div img {
  width: 48px; height: 48px; margin-bottom: 10px;
  background: var(--color-secondary);
  border-radius: 16px;
  padding: 8px;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow-strong);
  transform: translateY(-7px) scale(1.035);
  z-index: 2;
}
.feature-grid h3 {
  font-size: 1.08rem;
  color: var(--color-primary);
}
@media (max-width: 900px) {
  .feature-grid {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 0;
    padding: 25px 14px 16px;
    border-radius: 16px;
  }
}

/* --- TEAM & TESTIMONIALS --- */
.team-list,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.team-list > div {
  background: var(--color-card);
  border-left: 8px solid var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 24px 20px 20px;
  flex: 1 1 200px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
@media (max-width: 900px) {
  .team-list {
    flex-direction: column;
    gap: 14px;
  }
  .team-list > div {
    min-width: unset;
    padding: 18px 8px;
    border-radius: 14px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px var(--color-shadow-strong);
  padding: 20px 28px 22px 22px;
  min-width: 240px;
  min-height: 80px;
  margin-bottom: 20px;
  margin-right: 10px;
  color: #102046;
  font-size: 1.08rem;
  border-left: 8px solid var(--color-accent);
}
.testimonial-card p {
  color: #102046;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
@media (max-width: 900px) {
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    min-width: unset;
    margin-right: 0;
    padding: 13px 11px 18px 14px;
  }
}

/* --- OTHER FLEX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 22px 16px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 36px var(--color-shadow-strong);
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

/* --- TEXT SECTION (e.g. Kontakt) --- */
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.text-section li {
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #14377A;
  font-weight: 500;
}
.text-section li img {
  width: 28px;
  height: 28px;
  margin-right: 4px;
  background: var(--color-secondary);
  border-radius: 9px;
  padding: 3px;
}

/* --- FORMS & INPUTS --- */
input[type='text'],
input[type='email'],
textarea {
  border: 2px solid var(--color-border);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.16s;
}
input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  border: 2px solid var(--color-secondary);
  outline: none;
}

/* --- FOOTER --- */
footer {
  margin-top: 64px;
  padding: 40px 0 20px 0;
  background: #14377A;
  color: #fff;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
footer nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #F7CC57;
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: 7px;
  transition: background 0.16s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: #fff;
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  background: var(--color-secondary);
  border-radius: 6px;
  padding: 2px;
  vertical-align: middle;
  display: inline-block;
}
.footer-contact a { color: #F7CC57; word-break: break-all; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 18px; }
  footer .footer-contact { margin-top: 0; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2500;
  background: #fff;
  box-shadow: 0px -2px 18px var(--color-shadow-strong);
  border-top: 3px solid var(--color-accent);
  padding: 24px 10px 14px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  animation: cookiePopIn 0.42s cubic-bezier(.45,.46,.59,.97);
}
@keyframes cookiePopIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 200px;
  font-size: 1.07rem;
  color: #14377A;
  max-width: 600px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 24px;
  border: none;
  padding: 10px 28px;
  margin: 2px 0;
  box-shadow: 0 1px 3px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 9px var(--color-shadow-strong);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #14377A;
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 10px 8px;
    gap: 16px;
  }
  .cookie-banner-actions { gap: 10px; }
}

/* --- COOKIE MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 55, 122, 0.56);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalPopIn 0.34s;
}
@keyframes cookieModalPopIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  padding: 34px 30px 24px 30px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 12px 48px var(--color-shadow-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2700;
  animation: cookieModalPopIn 0.33s cubic-bezier(.45,.46,.59,.97);
}
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
  margin-right: 6px;
}
.cookie-modal .btn-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: bold;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.cookie-modal .btn-modal-close:hover { color: var(--color-accent); background: #f4f4f4; }
.cookie-preference-actions {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  align-items: center;
}
@media (max-width: 520px) {
  .cookie-modal {
    min-width: 0;
    padding: 15px 5vw 15px 5vw;
    border-radius: 16px;
  }
}

/* --- RESPONSIVE MAIN LAYOUTS --- */
@media (max-width: 650px) {
  .container { padding-left: 6px; padding-right: 6px; }
  main > section:first-of-type .container { min-height: 160px; }
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.02rem; }
}

/* --- GENERAL ANIMATIONS & EFFECTS --- */
.card, .feature-grid > div, .team-list > div, .testimonial-card, .cta-button, .cookie-btn {
  transition: box-shadow 0.18s, transform 0.17s;
}
.cta-button:focus, .cookie-btn:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}

/* --- Z-INDEX FIXES FOR OVERLAYS --- */
header {
  z-index: 1500;
  position: relative;
}
.mobile-menu {
  z-index: 2100;
}
.cookie-banner {
  z-index: 2500;
}
.cookie-modal-backdrop { z-index: 2600; }
.cookie-modal { z-index: 2700; }

/* --- SCROLLBAR STYLES --- */
::-webkit-scrollbar {
  width: 12px;
  background: #f5f7fa;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 8px;
}

/* --- VISUAL DECORATIVE SHAPES --- */
/* (Optional: For additional geometric modern_bold accents, add in HTML if desired)
.shape-accent {
  position: absolute;
  width: 130px;
  height: 130px;
  background: var(--color-accent);
  border-radius: 28% 62% 74% 42% / 44% 72% 28% 55%;
  opacity: 0.25;
  z-index: 0;
  filter: blur(8px);
}
*/
