/* CSS RESET & NORMALIZE */
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 {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #F4F7F6;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #143A52;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: #143A52;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #79C9D1;
  outline: none;
}

ul, ol {
  list-style: none;
}
strong {
  font-weight: 700;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #143A52;
  margin-bottom: 18px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.38rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

p, li, .footer-contact p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #143A52;
}
.tagline {
  font-size: 1.1rem;
  color: #143A52;
  opacity: 0.85;
  font-style: italic;
  margin-top: 20px;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(20,58,82,0.04);
}

/* HEADER */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #E1EAEA;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 18px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 6px;
  color: #143A52;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #79C9D1;
  color: #143A52;
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #143A52;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(20,58,82,0.07);
  letter-spacing: 0.03em;
  outline: none;
  display: inline-block;
}
.cta-btn:focus, .cta-btn:hover {
  background: #79C9D1;
  color: #143A52;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(121,201,209,0.18);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 2rem;
  color: #143A52;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s;
  margin-left: 8px;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E1EAEA;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .main-nav,
  .cta-btn {
    display: none;
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(244,247,246,0.98);
  box-shadow: 0 8px 36px 0 rgba(20,58,82,0.15);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.72,0.18,0.48,0.72);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  padding-left: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #143A52;
  position: absolute;
  top: 22px;
  right: 22px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 220;
  transition: background 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #E1EAEA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 38px;
  width: min(86vw, 340px);
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #143A52;
  font-size: 1.25rem;
  font-weight: 500;
  background: none;
  padding: 14px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #79C9D1;
  color: #143A52;
}

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

/* HERO SECTION */
.hero {
  background: #F7FAF9;
  min-height: 380px;
  border-bottom: 1px solid #E1EAEA;
  display: flex;
  align-items: center;
  padding: 48px 0 28px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
  gap: 16px;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  color: #143A52;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.2rem;
  color: #355A71;
}
@media (min-width: 700px) {
  .hero {
    padding-top: 70px;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

/* SECTION & CARDS LAYOUT */
.features {
  margin-bottom: 60px;
}
.features .content-wrapper {
  gap: 26px;
}
.features ul,
.services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}
.features ul li, .services ul li {
  flex: 1 1 260px;
  background: #FFF;
  box-shadow: 0 2px 12px 0 rgba(20,58,82,0.04);
  border-radius: 14px;
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  min-width: 220px;
  min-height: 150px;
  border: 1px solid #E1EAEA;
  transition: box-shadow 0.24s, transform 0.18s;
}
.features ul li:hover, .services ul li:hover {
  box-shadow: 0 6px 32px 0 rgba(121,201,209,0.17);
  transform: translateY(-4px) scale(1.015);
}
.features ul li img, .services ul li img {
  width: 38px;
  height: 38px;
}
.features ul li h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

@media (max-width: 900px) {
  .features ul, .services ul {
    flex-direction: column;
    gap: 20px;
  }
  .features ul li, .services ul li {
    width: 100%;
    min-width: unset;
    min-height: 120px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(20,58,82,0.05);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(121,201,209,0.12);
}

.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: 18px;
  }
}

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

/* TESTIMONIALS */
.testimonials {
  margin-bottom: 60px;
  background: #F4F7F6;
  padding-top: 32px;
  padding-bottom: 32px;
}
.testimonials .content-wrapper {
  gap: 22px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #FFF;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(20,58,82,0.07);
  min-width: 250px;
  color: #143A52;
  font-size: 1.06rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-left: 8px solid #79C9D1;
  font-style: italic;
  transition: box-shadow 0.22s;
}
.testimonial-card p {
  flex: 1;
  margin-bottom: 0;
  font-weight: 400;
  color: #143A52;
}
.testimonial-card span {
  color: #143A52;
  font-weight: 700;
  margin-left: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 38px 0 rgba(121,201,209,0.14);
}

/* CARD-LIKE ABOUT/SERVICES/CONTACT */
.about, .services, .contact, .footer {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(20,58,82,0.04);
}
.about ul, .services ul, .contact ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 15px;
}

/* CTA SECTION */
.cta {
  background: linear-gradient(90deg, #F7FAF9 0%, #E9F5F6 100%);
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 44px 20px 44px 20px;
  box-shadow: 0 4px 24px 0 rgba(121,201,209,0.05);
  display: flex;
  align-items: center;
}
.cta .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.cta h2 {
  font-size: 2rem;
}

/* CONTACT SECTION (IN KONTAKT.HTML) */
.contact .content-wrapper {
  gap: 14px;
}
.contact p img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  height: 22px;
}

.map-embed {
  background: #e1eaea;
  color: #143A52 !important;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  letter-spacing: 0.01em;
}

/* FOOTER */
footer {
  background: #143A52;
  color: #FFFFFF;
  padding: 46px 0 30px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 38px;
  filter: brightness(120%);
}
.footer-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #FFFFFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
  border-radius: 6px;
  padding: 5px 8px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #79C9D1;
  opacity: 1;
  background: rgba(121,201,209,0.07);
}
.footer-contact {
  font-size: 0.95rem;
  color: #FFFFFF;
  opacity: 0.9;
  max-width: 320px;
}
.footer-contact a { color: #79C9D1; }

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* BUTTONS & INTERACTIVE */
button, .cta-btn {
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.14s;
  outline: none;
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 2px #79C9D1;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  color: #143A52;
  border-top: 2px solid #E1EAEA;
  box-shadow: 0 -2px 24px 0 rgba(20,58,82,0.13);
  z-index: 2400;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 6vw 22px 6vw;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: transform 0.25s;
}
.cookie-banner.hide { transform: translateY(120%); }
.cookie-banner__text { flex: 1 1 240px; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner .banner-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  background: #143A52;
  color: #FFF;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .banner-btn:hover, .cookie-banner .banner-btn:focus {
  background: #79C9D1;
  color: #143A52;
}
.cookie-banner .banner-btn.reject {
  background: #fff;
  color: #143A52;
  border: 1.5px solid #143A52;
}
.cookie-banner .banner-btn.reject:hover {
  background: #E1EAEA; color: #143A52;
}
.cookie-banner .banner-btn.prefs {
  background: #79C9D1; color: #143A52;
}
.cookie-banner .banner-btn.prefs:hover {
  background: #143A52; color: #FFF;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20,58,82,0.22);
  z-index: 2450;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.13s, opacity 0.18s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal__panel {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 12px 44px rgba(20,58,82,0.18);
  width: 96vw;
  max-width: 400px;
  padding: 34px 30px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #143A52;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  transition: background 0.2s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #E1EAEA;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal__category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F4F7F6;
  border-radius: 8px;
  padding: 12px 10px 10px 10px;
}
.cookie-modal__category-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.cookie-modal__category-desc {
  font-size: 0.92rem;
  color: #355A71;
}
.cookie-modal__category-actions {
  margin-top: auto;
}
.cookie-modal__toggle {
  width: 44px;
  height: 24px;
  background: #E1EAEA;
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.21s;
}
.cookie-modal__toggle[data-enabled="true"] {
  background: #79C9D1;
}
.cookie-modal__toggle-handle {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #FFF;
  border-radius: 50%;
  transition: left 0.22s;
}
.cookie-modal__toggle[data-enabled="true"] .cookie-modal__toggle-handle {
  left: 22px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .banner-btn { min-width: 80px; }
.cookie-modal__category[data-essential="true"] .cookie-modal__toggle {
  filter: grayscale(0.7) contrast(0.9) brightness(0.98);
  cursor: not-allowed;
  opacity: 0.7;
}

/* RESPONSIVE SPACING */
@media (max-width: 650px) {
  .section,
  .about, .services, .contact, .footer, .cta {
    padding: 28px 7px;
    margin-bottom: 32px;
  }
  .footer-contact { max-width: 100%; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 12px;
    gap: 12px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* HIERARCHY & MICRO-ANIMATION */
h1, h2 {
  letter-spacing: 0.01em;
}
h1 {
  animation: fadeInDown 0.7s cubic-bezier(.61,.27,.41,.84);
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cta-btn, .card, .testimonial-card, .features ul li {
  will-change: transform, box-shadow;
}

/* ACCESSIBILITY: OUTLINE ON FOCUS VISIBLE */
:focus-visible {
  outline: 2px dashed #79C9D1;
  outline-offset: 2px;
}

/* UTILITIES */
.mb-2 { margin-bottom: 16px !important; }
.mt-2 { margin-top: 16px !important; }

/* PRINT */
@media print {
  .mobile-menu, 
  .mobile-menu-toggle, 
  .cookie-banner, 
  .cookie-modal, 
  header, 
  footer { display: none !important; }
  .section, .about, .services, .footer {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #FFF !important;
  }
}
