/* ===== 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,
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;
  font-size: 16px;
}
body {
  background: #FFFFFF;
  color: #1C263A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1C263A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E3502F;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

/* ===== TYPOGRAPHY SCALE ==== */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1C263A;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1C263A;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1C263A;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1C263A;
}
p, li, span, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2A3246;
}
blockquote {
  font-style: italic;
  color: #1C263A;
  background: #F3F5F7;
  border-left: 4px solid #E3502F;
  padding: 16px 24px;
  margin: 0 0 8px 0;
}
strong {
  font-weight: 600;
  color: #1C263A;
}

/* ==== CONTAINERS / SPACING PATTERNS ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, .hero, .about-preview, .services, .news-preview, .about, .testimonials, .gdpr-section, .terms-of-service, .thank-you-section, .privacy-policy, .cookies-policy, .cta, .contact-cta, .news-list, .contact-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
}
@media (max-width: 768px) {
  .section, .hero, .about-preview, .services, .news-preview, .about, .testimonials, .gdpr-section, .terms-of-service, .thank-you-section, .privacy-policy, .cookies-policy, .cta, .contact-cta, .news-list, .contact-section {
    padding: 24px 8px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
}

/* ==== FLEXBOX UTILITIES ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F3F5F7;
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(60, 60, 75, 0.07);
  padding: 24px;
  min-width: 280px;
  flex: 1 1 300px;
}
.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;
    gap: 20px;
    align-items: stretch;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F3F5F7;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(30, 38, 58, 0.05);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature {
  background: #F3F5F7;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(30,38,58,0.06);
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 24px rgba(30,38,58,0.13);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature {
    min-width: 0;
    width: 100%;
    padding: 18px;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #F3F5F7;
  box-shadow: 0 2px 8px rgba(30, 38, 58, 0.03);
  position: relative;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 0;
  color: #1C263A;
  opacity: 0.92;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.2s;
}
nav a:hover, nav a.active {
  color: #E3502F;
  border-bottom: 2px solid #E3502F;
  opacity: 1;
}
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 28px;
  background: #E3502F;
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(227,80,47,0.07);
  transition: background 0.15s, box-shadow 0.2s, transform 0.15s;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #C13820;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(227,80,47,0.13);
  transform: translateY(-2px);
  outline: none;
}

/* HIDE MOBILE NAV ON DESKTOP */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }
  .btn-primary[href="kontakt.html"] {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #1C263A;
    margin-left: 20px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.15s;
    z-index: 1202;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #F3F5F7;
    color: #E3502F;
    outline: none;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: 0 6px 32px rgba(28,38,58,0.08);
    z-index: 1201;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(.79,.14,.15,.86), opacity 0.2s;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-close {
    align-self: flex-start;
    font-size: 2rem;
    background: none;
    border: none;
    color: #1C263A;
    margin: 24px 0 0 24px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.15s;
    z-index: 1300;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #F3F5F7;
    color: #E3502F;
    outline: none;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
    margin-top: 48px;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    color: #1C263A;
    background: none;
    padding: 16px 0;
    width: 80vw;
    text-align: left;
    border-radius: 6px;
    transition: background 0.2s, color 0.15s;
    letter-spacing: 0.02em;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: #E3502F;
    background: #F3F5F7;
    outline: none;
  }
}

/* Ensure mobile nav overlays everything */
@media (max-width: 980px) {
  body.menu-open {
    overflow: hidden;
  }
}

@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO SECTIONS ==== */
.hero {
  background: #F3F5F7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: left;
  min-height: 320px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 32px rgba(30,38,58,0.045);
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero h1 {
  margin-bottom: 12px;
}
.hero p {
  margin-bottom: 18px;
  color: #4A5268;
}
.hero .btn-primary {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .hero {
    border-radius: 0 0 12px 12px;
    min-height: 180px;
  }
}

/* ==== ABOUT & PREVIEW SECTIONS ==== */
.about-preview, .about {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(60,60,75,0.04);
  border-radius: 20px;
}
.about-preview .text-section a, .about .text-section a {
  color: #E3502F;
  text-decoration: underline;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-top: 8px;
}
.about-preview .text-section a:hover, .about .text-section a:hover {
  color: #C13820;
}

/* ==== TESTIMONIALS ==== */
.testimonials {
  background: #F3F5F7;
  box-shadow: 0 2px 20px rgba(30,38,58,0.07);
  border-radius: 16px;
}
.testimonial-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 1px 12px rgba(28,38,58,0.09);
  margin-bottom: 20px;
  border-left: 5px solid #E3502F;
}
.testimonial-card blockquote {
  color: #1C263A;
  font-size: 1.125rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #6A7286;
}

/* ==== FEATURE & SERVICE SECTIONS ==== */
.services, .features {
  background: #FFFFFF;
  box-shadow: 0 2px 14px rgba(30,38,58,0.04);
  border-radius: 18px;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  opacity: 1;
}
.feature h3 {
  margin-top: 0px;
  margin-bottom: 2px;
  color: #1C263A;
  font-size: 1.15rem;
  font-weight: 600;
}
.feature p {
  color: #4A5268;
  font-size: 1rem;
}

/* ==== CTA, NEWSLETTER, ETC ==== */
.cta, .contact-cta {
  background: #F3F5F7;
  box-shadow: 0 2px 16px rgba(30,38,58,0.07);
  border-radius: 14px;
  text-align: left;
}
.cta .btn-primary, .contact-cta .btn-primary {
  margin-top: 8px;
}

/* ==== NEWS PREVIEW/LIST ==== */
.news-preview, .news-list {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(60,60,75,0.04);
  border-radius: 18px;
}
.news-list .filter-options {
  margin-top: 0.5em;
  margin-bottom: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 16px;
  font-size: 0.98rem;
}
.news-list .filter-options a {
  color: #E3502F;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.18s;
}
.news-list .filter-options a:hover {
  color: #C13820;
}

/* ==== FOOTER ==== */
footer {
  background: #1C263A;
  color: #FFFFFF;
  width: 100%;
  padding: 0;
  border-top: 1px solid #E2E7ED;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 30px 20px 16px 20px;
}
footer span {
  color: white !important;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F3F5F7;
  font-size: 1rem;
  opacity: 0.84;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.16s, opacity 0.17s;
}
.footer-nav a:hover {
  color: #E3502F;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #F3F5F7;
  font-size: 0.98rem;
  margin-bottom: 16px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  opacity: 0.75;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  color: #BFC5D2;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  display: inline-block;
  opacity: 0.84;
}
@media (max-width: 768px) {
  .footer-nav {
    gap: 18px;
    font-size: 0.99rem;
  }
  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  footer .container {
    padding: 28px 10px 10px 10px;
    gap: 18px;
  }
}

/* ==== FORMS, NEWSLETTER, ETC ==== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px;
  background: #F3F5F7;
  border: 1px solid #E2E7ED;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #2A3246;
  box-shadow: none;
  width: 100%;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E3502F;
  outline: none;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #1C263A;
  color: #FFFFFF;
  box-shadow: 0 -4px 24px rgba(30,38,58,0.12);
  padding: 24px 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 1400;
  font-size: 1rem;
}
.cookie-consent-banner .cookie-text {
  max-width: 450px;
  color: #F3F5F7;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  font-size: 1rem;
  padding: 10px 22px;
  margin: 0;
  cursor: pointer;
  background: #E3502F;
  color: #FFFFFF;
  transition: background 0.18s, color 0.13s;
}
.cookie-consent-banner .btn-secondary {
  background: #F3F5F7;
  color: #1C263A;
}
.cookie-consent-banner .btn-secondary:hover, .cookie-consent-banner .btn-secondary:focus {
  background: #BFC5D2;
}
.cookie-consent-banner .btn-settings {
  background: #FFFFFF;
  color: #1C263A;
  border: 1px solid #E2E7ED;
}
.cookie-consent-banner .btn-settings:hover, .cookie-consent-banner .btn-settings:focus {
  background: #F3F5F7;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #C13820;
  color: #FFFFFF;
  outline: none;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 10px;
    gap: 14px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,38,58,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #FFFFFF;
  padding: 36px 32px 24px 32px;
  border-radius: 15px;
  box-shadow: 0 4px 34px rgba(30,38,58,0.11);
  max-width: 400px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModal 0.3s cubic-bezier(.72,0,.42,1);
}
.cookie-modal-content h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #E2E7ED;
  border-radius: 16px;
  display: inline-block;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: #E3502F;
}
.cookie-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: #FFF;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.22s;
  box-shadow: 0 1px 2px rgba(28,38,58,0.08);
}
.cookie-toggle:checked::before {
  left: 20px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #BFC5D2;
  background: none;
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  z-index: 10;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #E3502F;
  background: #F3F5F7;
  outline: none;
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 20px 6px 14px 14px;
    border-radius: 10px;
    font-size: 0.97rem;
  }
}

/* ==== THANK YOU SECTION & COMMONS ==== */
.thank-you-section {
  background: #FAFCFF;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(30,38,58,0.06);
}
.thank-you-section h1 {
  color: #1C263A;
}
.thank-you-section .btn-primary {
  margin-top: 18px;
}

/* ==== UTILITIES ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 5px;
}
@media (max-width: 600px) {
  .container {
    padding: 0 4px;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* ==== ANIMATIONS & INTERACTIONS ==== */
.btn-primary, .feature, .testimonial-card, .cookie-consent-banner, .cookie-modal-content {
  transition: box-shadow 0.19s, background 0.17s, color 0.13s, transform 0.13s;
}
.feature:active, .btn-primary:active {
  transform: scale(0.98);
}

::-webkit-selection { background: #FBAA9A; color: #1C263A; }
::selection { background: #FBAA9A; color: #1C263A; }

/* ==== ACCESSIBILITY & Z-INDEX ==== */
:focus-visible {
  outline: 2px dotted #E3502F;
  outline-offset: 2px;
  z-index: 10;
}

/* ==== OVERRIDES FOR SPECIFIC CONTENT SECTIONS, ENSURING SPACING ==== */
.section > *, .about-preview > *, .about > *, .services > *, .features > *,
.news-preview > *, .testimonials > *, .cta > *, .contact-cta > *, .privacy-policy > *, .gdpr-section > *, .terms-of-service > *, .thank-you-section > * {
  margin-bottom: 20px;
}
.section > *:last-child, .about-preview > *:last-child, .about > *:last-child,
.services > *:last-child, .features > *:last-child, .news-preview > *:last-child, .testimonials > *:last-child, .cta > *:last-child, .contact-cta > *:last-child, .privacy-policy > *:last-child, .gdpr-section > *:last-child, .terms-of-service > *:last-child, .thank-you-section > *:last-child {
  margin-bottom: 0;
}

/****** END ******/
