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

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #111926;
  color: #F5F5F0;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01rem;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  color: #E5B83B;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #F5F5F0;
  text-shadow: 0 0 4px #E5B83B, 0 0 10px #FFC107;
}

strong {
  font-weight: 700;
  color: #E5B83B;
}

/* Typography */
h1, .display {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px #15416999, 0 0 16px #E5B83BCC;
}

h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: #E5B83B;
  margin-bottom: 18px;
  text-shadow: 0 0 8px #15416980;
}

h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 4px #15416980;
}

h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #E5B83B;
  margin-bottom: 8px;
}

p, li {
  font-size: 1rem;
  color: #F5F5F0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
header {
  background: #151F2B;
  box-shadow: 0 2px 24px 0 #15416950;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 18px 0 14px 0;
}
header nav a {
  padding: 6px 14px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #F5F5F0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
header nav a.cta-primary {
  background: #E5B83B;
  color: #154169;
  font-weight: 700;
  box-shadow: 0 2px 18px #E5B83B70;
  border: none;
  text-shadow: none;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #fff6da;
  color: #154169;
  box-shadow: 0 2px 36px #E5B83Bbb, 0 0 6px #F5F5F0;
}
header nav a:hover, header nav a:focus {
  color: #E5B83B;
  background: #223556;
  box-shadow: 0 0 10px #E5B83B80, 0 0 2px #F5F5F0;
  z-index: 2;
}
header nav img {
  height: 40px;
  width: auto;
  margin-right: 14px;
  vertical-align: middle;
  display: inline-block;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #E5B83B;
  z-index: 61;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #fff;
  outline: none;
}

/* ===========
   MOBILE MENU
   =========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 82vw;
  max-width: 320px;
  height: 100vh;
  background: #151F2B;
  box-shadow: -4px 0 44px #154169DD;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.175,1);
  padding: 32px 0 0 18px;
  opacity: 0.99;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #E5B83B;
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1101;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  width: 90%;
  padding-bottom: 20px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #F5F5F0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 0 10px 10px;
  border-radius: 8px;
  transition: background 0.1s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E5B83B;
  background: #223556;
}

@media (max-width: 1020px) {
  header nav {
    gap: 10px;
    flex-wrap: wrap;
  }
  header nav a {
    font-size: 0.98rem;
    padding: 6px 10px;
  }
  header nav img {
    height: 34px;
  }
}

@media (max-width: 870px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
/* Ensure .mobile-menu covers content when open */
@media (max-width: 870px) {
  .mobile-menu {
    display: flex;
  }
}

/* =========================================
   HERO SECTION & LAYOUTS
   ========================================= */
.hero {
  background: linear-gradient(120deg, #18294C 0%, #154169 70%, #18152b 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 0 32px 0;
  gap: 26px;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  margin-top: 12px;
  margin-bottom: 18px;
  letter-spacing: 0.045em;
  text-shadow: 0 2px 32px #E5B83BBB,0 0 8px #154169;
}
.hero p {
  font-size: 1.2rem;
  color: #F5F5F0;
  margin-bottom: 16px;
}

/* ===== Feature Grid & Cards (flexbox only!) ===== */
.feature-grid, .card-container, .content-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  justify-content: flex-start;
}
.feature-grid > div, .card {
  background: #192646;
  border: 1.5px solid #223556;
  border-radius: 16px;
  box-shadow: 0 4px 36px #1c2c4d60, 0 0 16px #E5B83B11;
  padding: 24px 22px 22px 22px;
  flex: 1 1 275px;
  min-width: 240px;
  max-width: 335px;
  margin-bottom: 20px;
  transition: transform 0.17s, box-shadow 0.17s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}
.feature-grid > div:hover, .card:hover {
  transform: translateY(-4px) scale(1.009);
  box-shadow: 0 8px 44px #E5B83BCC, 0 0 16px #fff2;
}
.feature-grid img, .card img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px #E5B83B66);
}
.feature-grid h3, .card h3 {
  margin-bottom: 6px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.category-tabs button {
  background: #223556;
  border: none;
  color: #E5B83B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 9px 24px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px #15416960;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}
.category-tabs button:hover, .category-tabs button:focus {
  background: #E5B83B;
  color: #18294C;
  box-shadow: 0 4px 18px #E5B83BCC;
}

/* GENERAL Utility layouts */
.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F5F5F0;
  color: #18294C;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 24px #15416933, 0 0 2px #E5B83B22;
  position: relative;
  transition: background 0.18s, box-shadow 0.17s;
}
.testimonial-card p {
  color: #18294C;
  font-weight: 500;
  font-size: 1.1rem;
  margin-right: 10px;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #154169;
}
.testimonial-card:hover {
  background: #fffbe8;
  box-shadow: 0 4px 32px #22355680, 0 0 6px #E5B83B20;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #18294C;
  color: #fff;
  box-shadow: 0 0 28px #154169;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 18px 24px;
  z-index: 2000;
  transition: transform 0.35s cubic-bezier(.77,0,.175,1), opacity 0.33s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner__text {
  font-size: 0.98rem;
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #E5B83B;
  color: #154169;
  box-shadow: 0 1px 18px #E5B83B90;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fff8cc;
}
.cookie-btn.reject {
  background: #154169;
  color: #E5B83B;
  box-shadow: 0 1px 10px #15416980;
  border: 1.2px solid #E5B83B;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #15213B;
}
.cookie-btn.settings {
  background: #223556;
  color: #F5F5F0;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #154169;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 310px;
  max-width: 98vw;
  width: 410px;
  background: #151F2B;
  color: #fff;
  z-index: 3000;
  border-radius: 22px;
  box-shadow: 0 8px 56px #154169BB, 0 0 16px #E5B83B44;
  transform: translate(-50%,-50%);
  opacity: 1;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: opacity 0.25s, box-shadow 0.16s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #E5B83B;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-size: 1rem;
  color: #E5B83B;
}
.cookie-category input[type="checkbox"], .cookie-category input[type="radio"] {
  accent-color: #E5B83B;
  width: 18px; height: 18px;
  background: #223556;
  border-radius: 6px;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* ===========
   BUTTONS
   =========== */
.cta-primary {
  background: #E5B83B;
  color: #154169;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 18px;
  font-size: 1.12rem;
  border: none;
  box-shadow: 0 4px 24px #E5B83B59, 0 0 6px #F5F5F075;
  cursor: pointer;
  text-shadow: none;
  transition: background 0.18s, color 0.14s, box-shadow 0.17s, transform 0.13s;
  display: inline-block;
  margin-top: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #fff7c3;
  color: #154169;
  transform: scale(1.03);
  box-shadow: 0 8px 36px #E5B83BCC, 0 0 10px #F5F5F0;
  outline: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* ===============================
   LISTS & STRUCTURE
   =============================== */
ul, ol {
  padding-left: 1.3em;
  margin: 10px 0 16px 0;
  list-style: disc inside;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #F5F5F0;
}
li strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #E5B83B;
  font-weight: 700;
}

/* Contacts in Kontakt-section */
section ul img {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  filter: drop-shadow(0 0 6px #E5B83B44);
}
section ul a {
  color: #E5B83B;
  font-weight: 500;
}
section ul a:hover {
  text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #151F2B;
  width: 100%;
  min-height: 125px;
  color: #F5F5F0;
  border-top: 2px solid #223556;
  box-shadow: 0 -3px 24px #15416935;
}
footer .container {
  padding-top: 24px;
  padding-bottom: 14px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 42px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #E5B83B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 5px #15416933;
  padding: 2px 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.12s;
}
footer nav a:hover, footer nav a:focus {
  background: #223556;
  color: #F5F5F0;
}
footer p, footer strong {
  font-size: 0.99rem;
  color: #F5F5F0;
}
footer strong {
  color: #E5B83B;
}
footer a {
  color: #E5B83B;
  text-shadow: 0 0 2px #22355690;
}
footer a:hover {
  text-decoration: underline;
}

@media (max-width: 830px) {
  .container {
    padding: 0 6px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* =============================
   RESPONSIVE DESIGN (MOBILE)
   ============================= */
@media (max-width: 768px) {
  h1, .display {font-size: 1.6rem;}
  h2 {font-size: 1.1rem;}
  h3 {font-size: 0.98rem;}
  .section { padding: 26px 7px; margin-bottom: 40px; }
  .hero { min-height: 180px; }
  .hero .container { padding: 26px 0; }
  .feature-grid, .card-container, .content-grid, .card-grid {
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 11px 14px 16px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .category-tabs {gap: 8px;}
  .category-tabs button {
    padding: 9px 12px;
    font-size: 0.95rem;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 9px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-modal {
    width: 97vw;
    padding: 24px 9px 21px 16px;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 6px 10px 6px;
  }
}

@media (max-width: 475px) {
  .hero h1 {font-size: 1.22rem;}
  h2 { font-size: 1rem;}
}

/* ===============
   MICRO-ANIMATIONS
   =============== */
.cta-primary, .category-tabs button, .feature-grid > div, .card, .testimonial-card, .cookie-btn, .mobile-menu {
  transition: box-shadow 0.18s, background 0.16s, transform 0.15s, color 0.12s;
}

.card:active, .category-tabs button:active {
  transform: scale(0.978);
}

/* Loader & accessibility (optional) */
.sr-only {position: absolute !important;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;}

/* ===============
   MODAL OVERLAY (for cookie)
   =============== */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22,28,49,0.70);
  z-index: 2500;
  transition: opacity 0.19s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   PRINT SUPPORT
   ========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {display: none !important;}
  main, .container, .content-wrapper {background: #fff; color: #111 !important;}
}

/* =========================
   Z-INDEX LAYERS
   ========================= */
header { z-index: 50; }
.mobile-menu, .mobile-nav, .mobile-menu-close { z-index: 1001; }
.cookie-banner { z-index: 2000; }
.cookie-modal, .cookie-modal__close { z-index: 3000; }
.cookie-modal-backdrop { z-index: 2500; }

/* =========================
   HIDE CONTENT WHEN MOBILE MENU OPEN
   ========================= */
body.mobile-menu-open {
  overflow: hidden;
}
