/* ================================================================
   CSS RESET & NORMALIZE (mobile-first, Scandinavian Clean Foundation)
================================================================== */
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, main, section, article, aside, footer, header, nav, figure, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #184467;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #3F8C53;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #1A2533;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

/* ===============================
   COLORS & BRAND TOKENS
   =============================== */
:root {
  --primary: #184467;
  --secondary: #F5F7FA;
  --accent: #3F8C53;
  --card-bg: #fff;
  --footer-bg: #F5F7FA;
  --shadow: 0 2px 12px 0 rgba(24, 68, 103, 0.08);
  --radius: 14px;
  --border: 1px solid #E6ECF1;
  --text-main: #1A2533;
  --text-light: #516174;
  --text-dark: #184467;
  --muted: #909CA9;
  --section-gap: 60px;
  --section-padding: 40px 20px;
  --gap-main: 24px;
}

/* =====================
   LAYOUT CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* =====================
   SCANDINAVIAN SECTIONS
   ===================== */
section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--section-gap);
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 26px 8px;
    border-radius: 9px;
  }
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(24, 68, 103, 0.06);
  width: 100%;
  padding: 0;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 991;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  max-width: 1190px;
  margin: 0 auto;
  justify-content: flex-start;
}
.main-nav a {
  color: var(--text-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.main-nav a.cta.primary {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 8px 22px;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(24, 68, 103, .08);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.main-nav a.cta.primary:hover, .main-nav a.cta.primary:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 18px 0 rgba(63,140,83, .13);
}

/* Logo in header */
.main-nav > a:first-child img {
  height: 36px;
  width: auto;
  margin-right: 12px;
}

/* Hamburger Icon for mobile */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 999;
  font-size: 2.1rem;
  background: #fff;
  border-radius: 7px;
  padding: 2px 10px;
  color: var(--primary);
  border: 1px solid #E6ECF1;
  box-shadow: 0 2px 5px rgba(24,68,103,0.06);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1001;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.49,.02,.22,.99);
  box-shadow: 0 4px 26px 0 rgba(24, 68, 103, 0.18);
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  margin: 16px 0 18px 20px;
  font-size: 2.1rem;
  background: #F5F7FA;
  border-radius: 7px;
  border: 1px solid #E6ECF1;
  color: var(--primary);
  padding: 2px 15px;
  align-self: flex-start;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-left: 24px;
}
.mobile-nav a {
  color: var(--text-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  padding: 14px 0 7px 10px;
  border-radius: 7px;
  transition: background 0.18s, color 0.17s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 9px;
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
    font-size: 15px;
  }
}
@media (max-width: 840px) {
  .main-nav {
    gap: 6px;
    padding: 12px 0;
  }
  .main-nav a {
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    /* hide desktop menu on mobile */
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   HERO, FEATURES, CARDS, TESTIMONIALS
   ========================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 18px 18px 18px;
  min-width: 220px;
  flex: 1 1 190px;
}
.feature-item img {
  height: 38px; width: 38px;
  margin-bottom: 7px;
  filter: grayscale(20%);
}
.feature-item h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.feature-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  flex: 1 1 270px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
  margin-top: 16px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 20px 18px;
  margin-bottom: 8px;
  position: relative;
  flex-wrap: wrap;
}
.service-list img {
  height: 36px;
  margin-right: 6px;
  flex-shrink: 0;
}
.service-price {
  display: inline-block;
  color: var(--accent);
  background: #E8F8EC;
  font-weight: 700;
  border-radius: 7px;
  font-size: 15px;
  margin-top: 15px;
  padding: 2px 12px;
}

.faq-list, .team-list, .about-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 18px 0 0 0;
}
.faq-list li, .about-list li, .team-list li {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px 18px;
  color: var(--text-main);
  font-size: 1rem;
}

/* Steps (ol with icons, / & ablauf.html) */
ol {
  padding-left: 0;
  list-style-position: inside;
  margin-bottom: 16px;
}
ol > li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 17px 11px;
  margin-bottom: 13px;
}
ol > li img {
  height: 37px;
  width: 37px;
  margin: 0 8px 0 0;
  flex-shrink: 0;
  border-radius: 7px;
  background: #f5f7fa;
}
ol > li strong {
  margin-right: 3px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 16px rgba(24, 68, 103, 0.07);
  border: 1px solid #E6ECF1;
  padding: 20px 26px 22px 26px;
  margin-bottom: 20px;
  max-width: 480px;
}
.testimonial-card p {
  color: var(--text-main);
  font-size: 1.06rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 9px;
}
.testimonial-card div strong {
  font-size: 1rem;
  color: var(--primary);
}
.testimonial-card div:last-child {
  color: var(--accent);
  font-size: 1.2em;
  margin-top: 6px;
  letter-spacing: 1.1px;
}

@media (max-width: 700px) {
  .testimonial-card {
    padding: 16px 13px 18px 13px;
    max-width: 100%;
  }
}

/* =====================
   CTA BUTTONS & LINKS
   ===================== */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  background: var(--primary);
  color: #fff !important;
  padding: 11px 32px;
  border-radius: 28px;
  border: none;
  min-width: 180px;
  transition: all 0.18s cubic-bezier(.5,.13,.25,1);
  box-shadow: 0 3px 18px rgba(24,68,103,0.11);
  margin: 16px 0 0 0;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus, .cta:hover, .cta:focus {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 6px 19px 0 rgba(63,140,83, .17);
  outline: none;
  filter: brightness(1.04);
  transform: translateY(-2px) scale(1.017);
}

/* For 'cta' links inside mobile-nav */
.mobile-nav a.cta {
  background: var(--primary);
  color: #fff;
  font-size: 17px;
}

/* =================
   FORMS / CONTACT
   ================= */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--footer-bg);
  border-top: 1px solid #E6ECF1;
  padding: 0;
  box-shadow: 0 0px 18px 0 rgba(24,68,103,0.03);
  font-size: 1rem;
  width: 100%;
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0 12px 0;
}
.footer-logo img {
  height: 54px;
  width: auto;
  margin-bottom: 13px;
}
.footer-nav {
  display: flex;
  gap: 12px;
  flex-direction: column;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 7px;
  transition: color 0.12s, background 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}
.footer-contact p, .footer-contact a {
  color: var(--text-light);
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.footer-legal {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 10px;
}
.footer-legal a {
  color: var(--muted);
  transition: color 0.12s;
  margin: 0 2px;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: var(--primary);
}
@media (max-width: 780px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    padding: 24px 0 10px 0;
    align-items: flex-start;
  }
}

/* ==========================
   COOKIE CONSENT BANNER
   ========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 -2px 18px 0 rgba(24,68,103,0.15);
  border-top: 1px solid #E6ECF1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1100;
  padding: 24px 12px 18px 12px;
  gap: 13px;
  animation: cookie-banner-fadein 0.7s;
}
@keyframes cookie-banner-fadein {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text {
  color: var(--text-main);
  font-size: 1rem;
  max-width: 750px;
  text-align: center;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cookie-btn {
  padding: 9px 23px;
  border-radius: 21px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: background 0.15s, color 0.14s, box-shadow 0.15s;
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 11px rgba(63,140,83,.11);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #227142;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: #227142;
  border-color: var(--accent);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid #d5dee7;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Cookie category modal */
.cookie-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,68,103,0.23);
  animation: cookie-modal-fadein 0.33s;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 44px rgba(24, 68, 103, 0.21);
  padding: 34px 22px 22px 22px;
  max-width: 380px;
  min-width: 260px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 7px 0 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-category .always {
  color: var(--muted);
  font-style: italic;
  font-size: 0.97rem;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 16px;
  font-size: 1.3rem;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--primary);
  background: #eee;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .cookie-modal {
    width: 100vw;
    min-width: 0;
    max-width: 97vw;
    padding: 18px 8px 16px 8px;
  }
}

/* ========================
   UTILITIES
   ======================== */
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
@media (max-width: 600px) {
  .gap-16, .gap-20, .gap-24 { gap: 10px !important; }
}
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* Required flexbox spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===================
   TYPOGRAPHY SCALE
   =================== */
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
  .cta, .cta.primary { font-size: 15px; min-width: 120px; padding: 10px 18px; }
}

/* ===================
   MICRO-INTERACTIONS
   =================== */
.card, .feature-item, .service-list li, .testimonial-card, .faq-list li, .about-list li, ol > li {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .feature-item:hover, .service-list li:hover, .testimonial-card:hover, .faq-list li:hover, .about-list li:hover, ol > li:hover {
  box-shadow: 0 9px 37px rgba(24,68,103,0.14);
  transform: translateY(-2px) scale(1.018);
}

/* =============================
   CUSTOM SCROLLBAR (web only)
   ============================= */
::-webkit-scrollbar {
  width: 8px;
  background: #EFF2F6;
}
::-webkit-scrollbar-thumb {
  background: #D7E3F1;
  border-radius: 9px;
}

/* =====================================
   ENSURE NO OVERLAPS & SPACING RULES
   ===================================== */
section, .card, .testimonial-card, .feature-item, .service-list li, .faq-list li {
  margin-bottom: 20px;
}
.card-container > *, .feature-grid > *, .faq-list > *, .service-list > *, .content-grid > * {
  margin-bottom: 0 !important;
}
section:last-child, .card:last-child, .feature-item:last-child, .service-list li:last-child {
  margin-bottom: 0;
}

/* =====================
   ACCENT ELEMENTS
   ===================== */
.service-list img,
.feature-item img,
ol > li img {
  background: #F5F7FA;
  border-radius: 7px;
  padding: 2px;
  border: 1px solid #E6ECF1;
}

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

/* =================
   ACCESSIBILITY
   ================= */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  .card, .section, .feature-item, .testimonial-card, .faq-list li, .about-list li, .service-list li {
    padding-left: 8px; padding-right: 8px;
  }
}
