/* 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,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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background-color: #F8FAFB;
  color: #223044;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Brand Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

/*::-webkit-scrollbar {width: 8px;background:#F0F2F5;}*/
*:focus {
  outline: 2px solid #22409A;
  outline-offset: 2px;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

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

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Flex-based Spacing Patterns per Spec */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34, 64, 154, 0.05);
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 24px rgba(34, 64, 154, 0.12);
  transform: translateY(-2px) scale(1.01);
}
.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;
  padding: 20px 28px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34, 64, 154, 0.08);
  border: 1px solid #e6eaf3;
  color: #223044;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Headers & Typography */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22409A;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.12;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

p, ul, ol, li {
  color: #223044;
  font-size: 1rem;
  line-height: 1.7;
  font-family: 'Roboto', Arial, sans-serif;
}
ul, ol {
  margin-left: 24px;
}
strong {
  font-weight: 600;
  color: #22409A;
}

/* Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(34, 64, 154, 0.04);
  position: sticky;
  top: 0;
  z-index: 200;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  text-decoration: none;
  color: #223044;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 0;
  position: relative;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #11B57B;
  background: #F0F4F6;
}
.main-nav .cta-primary {
  color: #fff;
  background: #22409A;
  border-radius: 24px;
  padding: 8px 20px;
  margin-left: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 12px rgba(34,64,154,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: #11B57B;
  color: #fff;
  box-shadow: 0 4px 16px rgba(34,64,154,0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 14px 0;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #22409A;
  cursor: pointer;
  display: none;
}

@media (max-width: 1024px) {
  .main-nav { gap: 14px; }
  header .container { gap: 14px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 8px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f8fafb;
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.5,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 4px 32px rgba(34,64,154,0.11);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  margin: 20px 20px 0 0;
  color: #22409A;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav {
  margin: 50px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #22409A;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 13px;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #11B57B;
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none!important;
  }
}

/* General Buttons */
.cta-primary, .btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #22409A;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 32px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(34,64,154,0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.13s;
}
.cta-primary:hover, .cta-primary:focus,
.btn:hover, .btn:focus {
  background: #11B57B;
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,64,154,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* Lists & Details */
ul, ol {
  margin-bottom: 14px;
  margin-top: 6px;
}
ul li, ol li {
  margin-bottom: 6px;
  padding-left: 0;
}
li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
li img {
  height: 22px;
  width: auto;
  flex-shrink: 0;
  margin-top: 3px;
  filter: brightness(0) saturate(0) opacity(0.7);
}

ol {
  list-style: decimal inside;
}
ul {
  list-style: disc inside;
}

/* Feature Grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 14px 0;
  align-items: stretch;
}
.feature-grid > div {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34, 64, 154, 0.04);
  padding: 24px 18px 20px;
  min-width: 230px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.feature-grid > div img {
  height: 40px;
  width: auto;
  margin-bottom: 2px;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 5px 32px rgba(34,64,154,0.13);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 992px) {
  .feature-grid { gap: 18px; }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    min-height: 120px;
  }
}

/* Testimonial Cards */
.testimonial-card {
  background: #fff;
  color: #223044;
  border-left: 4px solid #11B57B;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34, 64, 154, 0.08);
  font-size: 1.1rem;
  margin-bottom: 22px;
  margin-right: 0;
  padding: 20px 26px;
  min-width: 220px;
  transition: box-shadow 0.15s, transform 0.14s;
  position: relative;
}
.testimonial-card p {
  color: #223044;
  font-style: italic;
  margin-bottom: 5px;
}
.testimonial-card span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.95rem;
  color: #22409A;
  letter-spacing: 0.5px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(34,64,154,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* CTA / Highlighted Actions */
.cta-primary {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 13px 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  background: #22409A;
  color: #fff;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 18px rgba(34,64,154,0.10);
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.15s, transform 0.13s;
}
.cta-primary:active, .cta-primary:focus {
  background: #11B57B;
  color: #fff;
}

/* Footer */
footer {
  background: #F0F4F6;
  border-top: 1px solid #e6eaf3;
  padding: 32px 0 24px 0;
  margin-top: 32px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #22409A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  padding: 2px 0;
  transition: text-decoration 0.18s, color 0.2s;
}
.footer-links a:hover {
  color: #11B57B;
  text-decoration: underline;
}
.footer-contact p, .footer-contact a {
  color: #223044;
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-contact a:hover { color: #11B57B; }

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-left: 0; padding-right: 0;  
  }
  .footer-contact { margin-top: 10px; }
}

/* Responsive - Mobile-first */
@media (max-width: 900px) {
  .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 768px) {
  .container { max-width: 100%; }
  .section { padding: 24px 6px; margin-bottom: 40px; }
  .content-wrapper { gap: 20px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .card-container, .content-grid, .footer .container { gap: 16px; }
}

/* Forms (optional, for kontakt or proberaining) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e7ef;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #223044;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #22409A;
  background: #f5f8fa;
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22409A;
  margin-bottom: 8px;
  display: block;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #223044;
  box-shadow: 0 -4px 24px rgba(34,64,154,0.09);
  border-top: 1px solid #e6eaf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px 22px 20px;
  gap: 18px;
  z-index: 10001;
  animation: banner-slideup 0.32s ease forwards;
}
@keyframes banner-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 auto;
  font-size: 1rem;
  line-height: 1.6;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-size: 0.99rem;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(34,64,154,0.05);
  transition: background 0.17s, color 0.18s;
  margin: 0 2px;
}
.cookie-accept {
  background: #11B57B;
  color: #fff;
}
.cookie-accept:hover,
.cookie-accept:focus {
  background: #22409A;
}
.cookie-reject {
  background: #e6eaf3;
  color: #22409A;
}
.cookie-reject:hover,
.cookie-reject:focus {
  background: #22409A;
  color: #fff;
}
.cookie-settings {
  background: #fff;
  color: #22409A;
  border: 1px solid #22409A;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #F0F4F6;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 14px 9px;
  }
  .cookie-actions { gap: 7px; }
  .cookie-banner-text { font-size: 0.95rem; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,64,154,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  width: 98vw; max-width: 390px;
  padding: 28px 24px 18px 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 42px rgba(34,64,154,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: modal-fadein 0.25s cubic-bezier(0.6, 0.1, 0.4, 1.35);
}
@keyframes modal-fadein {
  from { transform: scale(0.97); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
  color: #22409A;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #11B57B;
  width: 20px; height: 20px;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #223044;
}
.cookie-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #11B57B;
  font-size: 1.5rem;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
}

@media (max-width: 400px) {
  .cookie-modal { padding: 14px 7px 12px 7px; }
}

/* Micro-animations */
.card, .feature-grid > div, .testimonial-card, .cta-primary, .btn {
  will-change: transform, box-shadow;
  transition: box-shadow 0.18s, transform 0.12s, background 0.13s;
}

/* Clean Section Divider / Visuals */
.section:not(:last-child)::after {
  content: '';
  display: block;
  margin: 42px auto 0 auto;
  width: 80px;
  height: 2px;
  background: #e6eaf3;
  border-radius: 2px;
  opacity: 0.44;
}
/* On last section: no divider */
.section:last-child::after { display: none; }

/* Supporting Natural Material Look */
.feature-grid > div, .testimonial-card, .card {
  background: #fff url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="30" cy="30" r="29.5" stroke="%23e6eaf3" stroke-dasharray="2 6"/%3E%3C/svg%3E') right bottom no-repeat;
  background-size: 68px 68px;
  background-blend-mode: lighten;
}

/* Utilities */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 16px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 16px; }

/* Hide visually but maintain accessible*/
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Scandinavian Clean: Extra White Space & Rounded Corners */
main { padding-bottom: 36px; }

@media (max-width: 768px) {
  .section:not(:last-child)::after {
    margin: 24px auto 0 auto;
    width: 44px;
  }
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Explicit Flexbox Only for ALL wrappers */
body > *:not(script):not(style) {
  box-sizing: border-box;
}
main, header, footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Fallback BG and variable (CSS vars as fallback support) */
:root {
  --primary: #22409A;
  --secondary: #11B57B;
  --accent: #FFFFFF;
}

/* Responsive image */
img {
  max-width: 100%;
  display: block;
}

/* Icon styling natural effect (subtle green/blue tint) */
.feature-grid > div img, ul li img {
  filter: invert(18%) sepia(45%) saturate(625%) hue-rotate(185deg) brightness(88%) contrast(90%);
}

/* End of CSS */
