/* --- CSS RESET & NORMALIZE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; }
body { min-height: 100vh; color: #22314A; background: #F7F9FB; font-family: 'Open Sans', Arial, Helvetica, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #22314A; text-decoration: none; transition: color .2s; }
a:focus { outline: 2px solid #FABD2F; outline-offset: 2px; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; font-weight: 700; color: #22314A; margin-bottom: 16px; line-height: 1.1; }
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }

/* ---- LAYOUT CONTAINERS ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---- SECTION SPACING PATTERNS ---- */
.section { margin-bottom: 60px; padding: 40px 20px; background: transparent; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(34,49,74,0.09); padding: 32px; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 16px rgba(34,49,74,.16); }
.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; align-items: center; gap: 20px; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(34,49,74,0.10); margin-bottom: 20px; font-size: 1.0625rem; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---- HEADER STYLES ---- */
header { width: 100%; background: #fff; box-shadow: 0 2px 8px rgba(34,49,74,0.04); position: sticky; top: 0; z-index: 100; }
.main-nav { display: flex; align-items: center; gap: 24px; justify-content: flex-start; padding: 18px 0; }
.main-nav > a img { height: 38px; margin-right: 8px; vertical-align: middle; }
.main-nav > a { font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem; font-weight: 500; padding: 7px 10px; border-radius: 6px; transition: background 0.17s, color 0.17s; }
.main-nav > a:hover:not(.cta-btn) { background: #F7F9FB; color: #FABD2F; }
.cta-btn { background: #22314A; color: #fff !important; font-family: 'Montserrat', Arial, sans-serif; border-radius: 7px; font-weight: 600; padding: 8px 22px; font-size: 1rem; box-shadow: 0 1px 4px rgba(34,49,74,0.07); transition: background 0.18s, box-shadow 0.18s, color 0.17s; border: none; display: inline-block; position: relative; margin-left: 10px; }
.cta-btn:hover, .cta-btn:focus { background: #FABD2F; color: #22314A !important; box-shadow: 0 4px 14px rgba(34,49,74,0.17); }

/* --- MOBILE MENU --- */
.mobile-menu-toggle { display: none; background: #22314A; color: #fff; font-size: 2rem; border-radius: 7px; width: 46px; height: 46px; position: absolute; right: 18px; top: 15px; align-items: center; justify-content: center; z-index: 210; transition: background 0.18s; }
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: #FABD2F; color: #22314A; }

.mobile-menu { display: none; position: fixed; z-index: 250; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(34,49,74,0.98); transform: translateX(100%); transition: transform 0.35s cubic-bezier(.77,0,.18,1); flex-direction: column; }
.mobile-menu.open { display: flex; transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 24px; right: 24px; font-size: 2rem; color: #fff; background: none; border: none; z-index: 251; padding: 10px; border-radius: 5px; transition: background 0.16s; }
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #FABD2F; color: #22314A; }
.mobile-nav { margin: 64px 0 0 0; display: flex; flex-direction: column; gap: 30px; align-items: flex-start; padding: 0 36px; }
.mobile-nav a { color: #fff; font-size: 1.2rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 500; padding: 8px 0; border-radius: 6px; transition: background 0.17s, color 0.17s; width: 100%; }
.mobile-nav a:hover, .mobile-nav a:focus { background: #FABD2F; color: #22314A; }

/* --- HERO / HEADLINE AREA --- */
section:first-of-type { background: #F7F9FB; }
section .container { display: flex; flex-direction: column; align-items: stretch; }
.text-section { max-width: 700px; margin: 0 auto; }

/* ---- FEATURES LIST ---- */
.features-list, .services-list { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 10px; margin-bottom: 0; }
.features-list li, .services-list li { 
  background: #FFF; 
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(34,49,74,0.03);
  padding: 20px 18px; 
  flex: 1 1 230px; 
  min-width: 220px; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px; 
  position: relative;
  font-size: 1rem;
}
.features-list img, .services-list img { height: 38px; width: 38px; margin-bottom: 2px; }
.features-list h3 { margin-bottom: 6px; }
.features-list li:hover, .services-list li:hover {
  box-shadow: 0 4px 16px rgba(34,49,74,.11); 
  transform: translateY(-2px) scale(1.02);
  transition: box-shadow 0.18s, transform 0.18s;
}

/* ---- LISTS ---- */
ul, ol { padding-left: 20px; margin-bottom: 20px; }
section ul li { margin-bottom: 10px; }
section ul li:last-child { margin-bottom: 0; }

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  color: #22314A; background: #fff;
  border-left: 4px solid #FABD2F;
  margin-bottom: 20px; box-shadow: 0 1px 8px rgba(34,49,74,.07);
  border-radius: 10px;
  padding: 20px 24px;
  min-width: 220px;
  font-size: 1.07rem;
  transition: box-shadow 0.19s, border-color 0.17s;
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p { margin-bottom: 8px; color: #22314A; }
.testimonial-card span { color: #22314A; opacity: .8; font-size: .99em; font-style: italic; font-family: 'Open Sans', Arial, sans-serif; }
.testimonial-card:hover { box-shadow: 0 8px 30px rgba(34,49,74,0.12); border-left: 4px solid #22314A; }

/* --- CARDS & REUSABLE BOXES --- */
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(34,49,74,0.10); padding: 32px; margin-bottom: 20px; }
.card-content { display: flex; flex-direction: column; justify-content: center; gap: 12px; }

/* --- BUTTONS --- */
.cta-btn, .btn { background: #22314A; color: #fff; font-family: 'Montserrat', Arial, sans-serif; border-radius: 7px; font-weight: 600; padding: 11px 28px; font-size: 1.1rem; box-shadow: 0 1px 6px rgba(34,49,74,0.09); border: none; display: inline-block; margin-top: 8px; transition: background 0.18s, box-shadow 0.18s, color 0.17s; cursor: pointer; text-align: center; }
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus { background: #FABD2F; color: #22314A; box-shadow: 0 4px 16px rgba(34,49,74,0.19); text-decoration: none; }

/* --- FORMS (for kontakt.html future expansion) --- */
input, textarea, select { font: inherit; border: 1px solid #dde0e5; padding: 10px 12px; border-radius: 4px; background: #fff; margin-bottom: 16px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid #FABD2F; border-color: #FABD2F; }

/* --- LOCATION ICON & MISC --- */
.location-icon { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.location-icon img { height: 28px; width: 28px; }
.location-icon span { font-size: 1.1rem; font-family: 'Montserrat', Arial, sans-serif; }

/* --- FOOTER --- */
footer { background: #22314A; color: #fff; padding: 40px 0 0 0; margin-top: 80px; font-size: 1rem; letter-spacing: 0.01em; }
.footer-menu { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-menu a { color: #FABD2F; font-weight: 500; font-family: 'Montserrat', Arial, sans-serif; font-size: 1rem; opacity: 0.88; transition: color 0.17s, opacity 0.17s; }
.footer-menu a:hover { color: #fff; opacity: 1; }
.footer-contact { margin-bottom: 12px; }
.footer-contact a { color: #FABD2F; text-decoration: underline; }
.footer-contact a:hover { color: #fff; }
.footer-copyright { text-align: left; padding: 12px 0 0 0; font-size: .98rem; color: #fff; opacity: 0.85; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 8px; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  color: #22314A;
  box-shadow: 0 -2px 18px rgba(34,49,74,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: cookieSlideUp .33s cubic-bezier(.56,1.42,.56,1);
}
@keyframes cookieSlideUp { from { transform: translateY(100%); opacity: 0;} to {transform: translateY(0); opacity:1;} }
.cookie-banner .cookie-message { flex: 2 1 60%; }
.cookie-banner .cookie-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cookie-banner .cookie-btn { background: #22314A; color: #fff; border: none; border-radius: 6px; padding: 9px 20px; font-size: 1rem; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; transition: background 0.18s, color 0.18s; }
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus { background: #FABD2F; color: #22314A; }
.cookie-banner .cookie-btn.cookie-settings { background: #fff; color: #22314A; border: 1px solid #22314A; }
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus { background: #FABD2F; color: #22314A; border-color: #FABD2F; }

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,49,74,0.48);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 410px;
  width: 95%;
  padding: 34px 28px 30px 28px;
  color: #22314A;
  box-shadow: 0 12px 44px rgba(34,49,74,.12);
  animation: modalPopIn .27s cubic-bezier(.56,1.42,.56,1);
  display: flex; flex-direction: column; gap: 14px;
}
@keyframes modalPopIn { from { transform: translateY(18px) scale(0.94); opacity:0;} to { transform: translateY(0) scale(1); opacity:1;} }
.cookie-modal h3 { font-size: 1.35rem; margin-bottom: 12px; }
.cookie-category { padding: 8px 0 12px 0; display: flex; align-items: center; justify-content: space-between; }
.cookie-category label { font-size: 1rem; }
.cookie-category input[type="checkbox"] { accent-color: #22314A; width: 20px; height: 20px; }
.cookie-category input[type="checkbox"]:disabled { accent-color: #FABD2F; opacity: 0.7; }
.cookie-modal .cookie-modal-actions { display: flex; gap: 10px; margin-top: 12px; }
.cookie-modal .cookie-btn { flex: 1; }
.cookie-modal .close-modal { position: absolute; top: 18px; right: 21px; background: none; border: none; font-size: 1.7rem; color: #22314A; padding: 2px 8px; border-radius: 5px; transition: background 0.17s; }
.cookie-modal .close-modal:hover { background: #FABD2F; color: #22314A; }

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1020px) {
  .main-nav { gap: 14px; }
  .features-list, .services-list { gap: 16px; }
}

@media (max-width: 880px) {
  .main-nav > a:not(:first-child):not(.cta-btn) { font-size: .96rem; }
  .features-list, .services-list { gap: 10px; }
  .features-list li, .services-list li { min-width: 180px; padding: 18px 11px; font-size: .97rem; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 11px; }

  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .content-wrapper { gap: 10px; }
  .features-list, .services-list { flex-direction: column; gap: 13px; }
  .features-list li, .services-list li { min-width: unset; width: 100%; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 18px 12px; }
  .section { padding: 25px 8px; margin-bottom: 38px; }
  .card { padding: 16px; }
  .footer-menu { gap: 11px; flex-direction: column; }
  .footer-contact { font-size: .99rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .cookie-banner { flex-direction: column; gap: 10px; padding: 17px 8px; font-size: .98rem; }
  .cookie-banner .cookie-message { font-size: .98rem; }
}

/* --- ANIMATIONS & INTERACTIONS --- */
a, button, .feature-item, .cta-btn, .card, .card-content, .testimonial-card, .cookie-banner .cookie-btn, .mobile-menu, .mobile-nav a, .mobile-menu-toggle { transition: all .18s cubic-bezier(.54,.34,.17,1); }

/* --- UTILITY: VISIBILITY FOR JS --- */
.hide { display: none !important; }
.open { display: flex !important; }

/* --- MISC (SPACING) --- */
.card:not(:last-child), .testimonial-card:not(:last-child), .section:not(:last-child) { margin-bottom: 60px !important; }
.features-list li:not(:last-child), .services-list li:not(:last-child) { margin-bottom: 20px; }

/* --- PRINT --- */
@media print { * { color: #000 !important; background: #fff !important; box-shadow: none !important; } .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; } }
