/* ----- CSS RESET & NORMALIZATION ----- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #181A24;
  color: #F2F2F6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #fff;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; color: #E5AE64; }

/* --- SPACING & CONTAINER LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --- FLEXBOX LAYOUTS (MANDATORY) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #21243B;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(24,34,54,0.10), 0 0 0 2px #22447A;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  box-shadow: 0 4px 28px 0 rgba(34,68,122,0.18), 0 0 0 2.5px #E5AE64;
  border-color: #E5AE64;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px;
  gap: 14px;
}

.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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FAFAFB;
  color: #222;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 18px 0 rgba(224,174,100,0.09);
  margin-bottom: 20px;
  border-left: 4px solid #22447A;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  border-left: 4px solid #E5AE64;
  box-shadow: 0 4px 28px 0 rgba(34,68,122,0.14);
}
.testimonial-card span {
  margin-top: 10px;
  color: #22447A;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #23284C;
  border-radius: 14px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-shadow: 0 2px 16px 0 rgba(34,68,122,0.07);
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(229,174,100,0.18);
  border: 1.5px solid #E5AE64;
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 4px #E5AE64AD);
}

/* --- BUTTONS & CTA --- */
.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: linear-gradient(90deg,#22447A 80%,#E5AE64 100%);
  color: #fff;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 36px;
  margin-top: 16px;
  box-shadow: 0 2px 16px 0 rgba(34,68,122,0.03);
  letter-spacing: 0.03em;
  border: none;
  transition: background 0.22s, color 0.18s, box-shadow 0.22s, transform 0.13s;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg,#E5AE64 0%,#22447A 100%);
  color: #222;
  box-shadow: 0 4px 24px 0 rgba(229,174,100,0.15);
  transform: translateY(-2px) scale(1.02);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #23284C;
  border-bottom: 2px solid #22447A;
  box-shadow: 0 0.5px 8px 0 rgba(34,68,122,0.05);
  padding: 0 0 0 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  position: relative;
  z-index: 30;
}
header > a {
  display: flex;
  align-items: center;
  height: 64px;
  padding-left: 18px;
}
header img {
  height: 44px;
}
nav {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-right: 30px;
}
nav a {
  position: relative;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 9px 0;
  color: #E5AE64;
  letter-spacing: 0.02em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: color 0.16s;
}
nav a::after {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  width: 0%;
  margin-top: 3px;
  background: #22447A;
  transition: width 0.19s;
}
nav a:hover, nav a:focus {
  color: #fff;
}
nav a:hover::after, nav a:focus::after {
  width: 90%;
  background: #E5AE64;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #E5AE64;
  background: none;
  border: none;
  margin-right: 10px;
  transition: color 0.19s;
  z-index: 41;
}
.mobile-menu-toggle:focus {
  color: #FAFAFB;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,34,54,0.98);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.33s cubic-bezier(.79,0,.14,1);
  transform: translateX(100vw);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #E5AE64;
  margin-top: 28px;
  background: none;
  border: none;
  align-self: flex-end;
  margin-right: 32px;
  transition: color 0.19s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #FAFAFB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #E5AE64;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 0;
  width: 100vw;
  text-align: center;
  transition: background 0.13s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #22447A;
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #181A24;
  color: #E5AE64;
  font-size: 1rem;
  padding: 28px 0 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 30px;
  justify-content: center;
}
.footer-nav a {
  color: #E5AE64;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border 0.21s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  border-bottom: 2px solid #E5AE64;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  font-size: 1rem;
  padding-bottom: 20px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #E5AE64;
  background: rgba(34,68,122,0.09);
  border-radius: 9px;
  padding: 8px 16px;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  filter: brightness(1.06) drop-shadow(0 0 5px #22447A33);
}

/* --- SUBHEADLINE --- */
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.22rem;
  color: #E5AE64;
  margin-bottom: 12px;
}

/* --- FAQ STYLES (dt/dd) --- */
dl {
  margin-top: 10px;
  background: #23284C;
  border-radius: 14px;
  padding: 20px;
  color: #fff;
}
dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #E5AE64;
  font-weight: 600;
  margin-top: 12px;
  font-size: 1rem;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #F2F2F6;
  font-size: 1rem;
}

/* --- UL/OL Styles --- */
ul, ol {
  margin-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  font-size: 1rem;
}
ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 2px;
  background: linear-gradient(90deg, #E5AE64 15%, #22447A 85%);
  border-radius: 1px;
}

/* --- CONTACT INFO BLOCK (kontakt.html) --- */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.contact-info-block div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  background: #23284C;
  border-radius: 10px;
  color: #E5AE64;
  font-size: 1.08rem;
}
.contact-info-block img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0px 0px 4px #E5AE6450);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #23284C;
  color: #fff;
  box-shadow: 0 -2px 28px 0 rgba(34,68,122,0.12);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1200;
  gap: 18px;
  animation: cbanner-slide-in 0.6s cubic-bezier(0.645,0.045,0.355,1);
}
@keyframes cbanner-slide-in {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  text-align: center;
  color: #fff;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  min-width: 120px;
  padding: 11px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.19s, color 0.19s, box-shadow 0.17s;
  box-shadow: 0 1.5px 7px 0 rgba(34,68,122,0.06);
}
.cookie-btn.accept {
  background: #E5AE64;
  color: #23284C;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #22447A;
  color: #E5AE64;
}
.cookie-btn.reject {
  background: #22447A;
  color: #E5AE64;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E5AE64;
  color: #222;
}
.cookie-btn.settings {
  background: #222;
  color: #E5AE64;
  border: 1.5px solid #E5AE64;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E5AE64;
  color: #22447A;
}

/* --- Cookie Settings Modal --- */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,24,35,0.92);
  z-index: 1300;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  width: 94vw;
  max-width: 400px;
  background: #23284C;
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px 18px 24px;
  box-shadow: 0 2px 20px 0 rgba(34,68,122,0.13);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-slidein 0.43s cubic-bezier(0.68,-0.55,0.27,1.55);
}
@keyframes modal-slidein {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: #E5AE64;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #22447A44;
}
.cookie-modal .category-row:last-child {
  border-bottom: none;
}
.cookie-modal .category-row span {
  color: #fff;
}
.cookie-modal .switch {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #22447A;
  border-radius: 22px;
  transition: background 0.18s;
}
.cookie-modal .switch input:checked + .slider {
  background-color: #E5AE64;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1.5px 8px 0 rgba(229,174,100,0.10);
  transition: transform 0.19s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .modal-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  padding: 10px 24px;
}

.cookie-modal .always-on {
  background: #22243B;
  color: #E5AE64;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 6px;
}

@media (max-width: 900px) {
  header nav {
    gap: 16px;
    margin-right: 4px;
  }
}

/* --- RESPONSIVE & MOBILE LAYOUTS --- */
@media (max-width: 900px) {
  .container {
    padding: 0 12px;
  }
  .feature-grid > div {
    min-width: 160px;
    padding: 20px 12px;
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.3rem;
    margin-bottom: 9px;
  }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline;
  }
  .feature-grid {
    gap: 14px;
  }
  .feature-grid > div {
    min-width: 98vw;
    flex: 1 1 98vw;
    padding: 18px 8px;
  }
  .testimonial-card {
    margin-bottom: 15px;
    padding: 15px;
  }
  .footer-nav, .footer-contact {
    gap: 15px;
    font-size: 0.93rem;
    flex-direction: column;
    align-items: center;
  }
  .footer-contact{
    padding-bottom: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
  }
}

/* --- Micro-interactions --- */
.feature-grid > div,
.card,
.cta-primary, .footer-nav a, nav a,
.mobile-nav a,
.cookie-btn {
  transition: box-shadow 0.2s, background 0.18s, color 0.16s, border-color 0.18s, transform 0.14s;
}
.feature-grid > div:hover, .card:hover {
  transform: translateY(-3px) scale(1.02);
}

.cta-primary:active, .cookie-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0.5px 4px 0 rgba(34,68,122,0.07);
}

/* --- SCROLLBAR --- */
body {
  scrollbar-width: thin;
  scrollbar-color: #22447A #181A24;
}
::-webkit-scrollbar {
  width: 10px;
  background: #181A24;
}
::-webkit-scrollbar-thumb {
  background: #22447A;
  border-radius: 6px;
}

/* --- OTHER UTILITY CLASSES --- */
.muted { color: #bbb!important; }
.text-center { text-align: center; }

/* --- Z-INDEXes: header 30, mobile-menu 100+, cookie-banner 1200+ --- */

/* --- FONT FACE FALLBACKS (if not imported externally) --- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'),
    url('https://fonts.gstatic.com/s/montserrat/v25/JTUQjIg1_i6t8kCHKm45_QphziTn89dtpQ.ttf') format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: bold;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
    url('https://fonts.gstatic.com/s/montserrat/v25/JTURjIg1_i6t8kCHKm45xW5rygbi49c9OeU.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/v29/mem8YaGs126MiZpBA-UFVZ0e.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: bold;
  font-weight: 700;
  src: local('Open Sans Bold'), local('OpenSans-Bold'),
    url('https://fonts.gstatic.com/s/opensans/v29/mem5YaGs126MiZpBA-UN_r8OUuhs.ttf') format('truetype');
}
