/* =============================================================
   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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F7FAFC;
  color: #234265;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
img {
  max-width: 100%;
  vertical-align: middle;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  outline: none;
  color: inherit;
}
:focus {
  outline: 2px solid #60A89B;
  outline-offset: 2px;
}

/* =============================================================
   BRAND FONTS (Montserrat & Roboto, using local fallback)
   ============================================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600|Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  color: #234265;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #234265;
  margin-bottom: 12px;
}
blockquote {
  color: #234265;
  background: #E7EEF3;
  font-size: 1.1rem;
  border-left: 4px solid #60A89B;
  margin: 0 0 8px 0;
  padding: 10px 20px 10px 16px;
  font-style: italic;
}
strong, b {
  font-weight: 700;
}

/* Headings and paragraphs margin tuning for Scandinavian whitespace */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}
p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}

/* =============================================================
   COLOR VARIABLES & ROOT SCHEME
   ============================================================= */
:root {
  --brand-primary: #234265;
  --brand-secondary: #60A89B;
  --brand-accent: #E7EEF3;
  --background: #F7FAFC;
  --text-main: #234265;
  --text-light: #60A89B;
  --neutral-light: #FFFFFF;
  --neutral-medium: #E7EEF3;
  --shadow: 0 2px 12px rgba(35,66,101,0.06), 0 1.5px 6px rgba(96,168,155,0.09);
}

body {
  background: var(--background);
  color: var(--text-main);
}

/* =============================================================
   CONTAINER & GENERIC WRAPPERS
   ============================================================= */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section,
.hero,
.features,
.about-short,
.about-team,
.services,
.contact-section,
.cta-section,
.footer-policy-section,
.thank-you-section,
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 20px;
}

/* =============================================================
   HEADER / NAVIGATION / LOGO
   ============================================================= */
header {
  background: var(--neutral-light);
  box-shadow: 0 1.5px 14px rgba(35,66,101,0.07);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-primary);
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.16s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-secondary);
}
.cta-primary {
  display: inline-block;
  background: var(--brand-secondary);
  color: var(--neutral-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 28px;
  border-radius: 28px;
  margin-left: 12px;
  box-shadow: 0 3px 12px rgba(96,168,155,0.10);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.2s, color 0.15s;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #4b8b7b;
  box-shadow: 0 4px 16px rgba(35,66,101,0.08);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 16px;
  color: var(--brand-primary);
  transition: background 0.15s, color 0.18s;
  border: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--brand-secondary);
  color: #fff;
}

/* =============================================================
   MOBILE MENU (Slide Animated)
   ============================================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,66,101, 0.93);
  z-index: 1090;
  transform: translateX(-110vw);
  transition: transform 0.34s cubic-bezier(.64,1.4,.26,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 44px;
  padding-left: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
  z-index: 1101;
}
nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
  margin-left: 32px;
}
nav.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 6px 2px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
nav.mobile-nav a:hover, nav.mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}

/* Burger menu only on mobile */
@media (max-width: 1024px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================================================
   FLEXBOX LAYOUTS FOR ALL GRIDS AND SECTIONS
   ============================================================= */
.feature-grid,
.tips-grid,
.card-container,
.content-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-item,
.tip-item,
.service-item,
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--neutral-light);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px 22px 24px 22px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.feature-item:hover,.service-item:hover,.tip-item:hover {
  box-shadow: 0 7px 30px rgba(35,66,101,0.13);
  transform: translateY(-3px) scale(1.014);
}

@media (max-width: 768px) {
  .feature-grid,
  .tips-grid,
  .card-container,
  .content-grid,
  .service-list {
    flex-direction: column;
    gap: 20px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--brand-accent);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.22s, background 0.17s;
  flex-wrap: wrap;
  color: #234265;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(35,66,101,0.07);
  background: #d5e2ea;
}
.testimonial-meta {
  font-size: 0.99rem;
  color: var(--brand-secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* .card-container spacing pattern */
.card-container {
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
}
.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;
}

/* =============================================================
   HERO SECTIONS
   ============================================================= */
.hero {
  background: var(--brand-accent);
  box-shadow: 0 2px 22px rgba(35,66,101,0.04);
  border-radius: 22px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero h1, .hero h2 {
  color: var(--brand-primary);
}

/* =============================================================
   SERVICES / CARDS / DETAILS
   ============================================================= */
.service-list {
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
}
.service-item {
  flex: 1 1 320px;
  background: var(--neutral-light);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 26px 28px 26px;
  transition: box-shadow 0.17s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  min-width: 220px;
}
.service-item:hover {
  box-shadow: 0 8px 32px rgba(35,66,101,0.09);
  transform: translateY(-2px) scale(1.012);
}
.service-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: var(--brand-secondary);
  font-weight: 700;
  margin-top: 12px;
}

.tip-item img,
.feature-item img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
}

/* =============================================================
   CTA SECTIONS
   ============================================================= */
.cta-section {
  background: var(--brand-secondary);
  color: white;
  border-radius: 26px;
  box-shadow: 0 2.5px 16px rgba(96,168,155,0.14);
  padding-top: 48px;
  padding-bottom: 48px;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .cta-primary {
  background: #fff;
  color: var(--brand-secondary);
  margin-top: 16px;
}
.cta-section .cta-primary:hover {
  background: #f7fafc;
  color: #234265;
}

/* =============================================================
   FORMATS FOR POLICY PAGES (FOOTER-POLICY-SECTION)
   ============================================================= */
.footer-policy-section {
  background: var(--neutral-light);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--text-main);
}
.footer-policy-section a {
  color: var(--brand-secondary);
  text-decoration: underline;
  transition: color 0.13s;
}
.footer-policy-section a:hover {
  color: #235b46;
}

/* =============================================================
   THANK YOU SECTION
   ============================================================= */
.thank-you-section {
  background: var(--brand-accent);
  border-radius: 20px;
  padding: 42px 20px 48px 20px;
  box-shadow: var(--shadow);
}
.thank-you-section ul {
  margin-bottom: 28px;
  padding-left: 20px;
}
.thank-you-section li {
  color: var(--text-main);
  font-size: 1.01rem;
  margin-bottom: 7px !important;
  list-style-type: disc;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--brand-accent);
  padding: 40px 0 16px 0;
  margin-top: 80px;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-direction: row;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.88;
  border-radius: 4px;
  padding: 3px 8px;
  transition: background 0.11s, color 0.13s, opacity 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
  opacity: 1;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brand-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  opacity: 0.76;
}
.footer-brand img {
  height: 32px;
  width: auto;
}

/* =============================================================
   COOKIE CONSENT BANNER & MODAL
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fff;
  box-shadow: 0 -2.5px 18px rgba(35,66,101,0.12);
  border-radius: 18px 18px 0 0;
  padding: 24px 20px 20px 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  animation: cookieSlideUp 0.48s cubic-bezier(.64,1.5,.26,1) 1;
  font-size: 1rem;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-text {
  color: var(--brand-primary);
  flex: 1 1 auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  background: var(--brand-secondary);
  color: #fff;
  padding: 8px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(96,168,155,0.09);
  transition: background 0.18s, color 0.14s;
}
.cookie-btn.reject {
  background: #B0C7BC;
  color: var(--brand-primary);
}
.cookie-btn.settings {
  background: #E7EEF3;
  color: var(--brand-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.94);
}
.cookie-btn.settings:hover {
  background: #e3ecec;
  color: #234265;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1300;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,66,101,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  max-width: 400px;
  border-radius: 18px;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 8px 48px rgba(35,66,101,0.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.32s cubic-bezier(.7,1.5,.26,.98) 1;
  position: relative;
}
@keyframes cookieModalIn {
  from { transform: scale(0.85) translateY(30px); opacity:0; }
  to   { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 17px;
  font-size: 1.6rem;
  border: none;
  background: transparent;
  color: #60A89B;
  cursor: pointer;
  padding: 2px 6px;
}
.cookie-categories {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-category label {
  font-weight: 600;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 22px;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--brand-accent);
  border-radius: 18px;
  transition: background 0.16s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--brand-secondary);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(35,66,101,0.08);
  transition: transform 0.16s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(22px);
}
.cookie-category.essential label { color: #aaa; }
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
  opacity: 0.5;
}

/* =============================================================
   SPACING & WHITESPACE / CONSISTENCY
   ============================================================= */
.section, .hero, .features, .about-short, .about-team, .services, .contact-section, .cta-section, .footer-policy-section, .thank-you-section, .testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.feature-grid, .tips-grid, .card-container, .content-grid, .service-list {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

/* Prevent overlap, enforce whitespace */
* + .testimonial-card, * + .feature-item, * + .card, * + .service-item, * + .tip-item {
  margin-top: 20px;
}

/* List styles Scandinavian */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  padding-left: 4px;
  margin-bottom: 8px;
}

/* =============================================================
   RESPONSIVE DESIGN
   ============================================================= */
@media (max-width: 1024px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section, .hero, .features, .about-short, .about-team, .services, .contact-section, .cta-section, .footer-policy-section, .thank-you-section, .testimonials {
    padding: 36px 8px;
  }
}
@media (max-width: 920px) {
  .feature-grid,
  .tips-grid,
  .service-list {
    flex-direction: column;
    gap: 22px;
  }
  .feature-item,
  .service-item {
    min-width: 175px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer-nav {
    gap: 16px;
  }
  .section, .hero, .features, .about-short, .about-team, .services, .contact-section, .cta-section, .footer-policy-section, .thank-you-section, .testimonials {
    padding: 30px 2px;
    margin-bottom: 44px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.39rem;
  }
  .cta-section {
    padding: 36px 0 !important;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .cta-primary {
    font-size: 0.98rem;
    padding: 9px 18px;
  }
  .feature-item, .service-item, .tip-item {
    padding: 18px 9px 13px 9px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 8px 12px 8px;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .cookie-modal {
    padding: 18px 8px 18px 8px;
    max-width: 95vw;
  }
}

/* Hide scroll on mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* =============================================================
   MICROINTERACTIONS & TRANSITIONS
   ============================================================= */
a, .cta-primary, .service-item, .feature-item, .tip-item, .card, nav a, .cookie-btn {
  transition: background 0.22s, color 0.18s, box-shadow 0.24s, transform 0.17s;
}
.card:hover, .service-item:hover, .feature-item:hover, .tip-item:hover {
  box-shadow: 0 8px 36px rgba(60,130,110,0.14);
  transform: translateY(-3px) scale(1.012);
}
a:focus-visible, .cta-primary:focus-visible, nav a:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* =============================================================
   ACCESSIBILITY - REDUCED MOTION (optional for animations)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important; 
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/*
  END OF SCANDINAVIAN CLEAN STYLE FOR FINANZKOMPASS 2024
*/