/* ========================
   Colastrari Finanzberatung
   Warm Friendly CSS Theme
   ======================== */

/* CSS RESET & BASELINE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F9F6F3;
  color: #23476A;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
a {
  color: #49736B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #dc8222;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 25px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
}
strong {
  color: #23476A;
  font-weight: bold;
}

/* ========== LAYOUT CONTAINERS ==========
   Flexbox ONLY for all layouts
   No CSS Grid or columns! */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffdfc;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(241, 184, 104, 0.07), 0 1.5px 4px rgba(0,0,0,0.04);
}

/**** FLEXGROUPS & CARDS ****/
.features-grid, .team-bios, .blog-teaser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  align-items: stretch;
}
.feature-item, .team-member, .text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(244, 213, 137, 0.13), 0 1px 3px rgba(0,0,0,0.03);
  padding: 22px 20px;
  min-width: 225px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.feature-item:hover, .team-member:hover {
  box-shadow: 0 6px 22px rgba(241, 184, 104, 0.18), 0 2px 7px rgba(0,0,0,0.06);
  transform: translateY(-3px) scale(1.025);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffdfc;
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(241, 184, 104, 0.1);
  padding: 28px 22px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F4F6F8;
  border-radius: 18px;
  box-shadow: 0 2px 11px rgba(244, 213, 137, 0.12), 0 1px 3px rgba(0,0,0,0.02);
  padding: 20px 24px;
  color: #23476A;
  font-size: 1.08rem;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 550px;
}
.testimonial-card p {
  color: #23476A;
  font-style: italic;
  font-size: 1.11rem;
}
.testimonial-card strong {
  color: #49736B;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/**** SPECIAL FLEX GROUPS ****/
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.category-tags span {
  background: #f7e1c5;
  color: #23476A;
  border-radius: 16px;
  font-size: 0.98rem;
  padding: 7px 18px 6px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.feature-icons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin: 10px 0 0 0;
  list-style: none;
}
.feature-icons li {
  margin: 0;
}
.faq-list {
  background: #F9F4EC;
  border-radius: 16px;
  padding: 18px 15px;
  margin-bottom: 18px;
}
.brief-guide {
  background: #fff5ea;
  border-radius: 16px;
  padding: 18px 15px;
  margin-bottom: 18px;
}

/* ========== TYPOGRAPHY ==========
   Warm friendly font scale */
h1, .h1 {font-family: 'Montserrat', sans-serif; color: #23476A; font-size: 2.375rem; font-weight: 800; line-height: 1.13; margin-bottom: 12px;}
h2, .h2 {font-family: 'Montserrat', sans-serif; color: #23476A; font-size: 1.5rem; font-weight: 700; margin-bottom: 10px;}
h3, .h3 {font-family: 'Montserrat', sans-serif; color: #49736B; font-size: 1.19rem; font-weight: 700; margin-bottom: 7px;}
.subtitle {
  color: #49736B;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  margin-bottom: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.04rem;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
}
p {
  margin-bottom: 12px;
  color: #23476A;
}

/* Headings inside .text-section */
.text-section h1, .text-section h2, .text-section h3, .text-section h4 {
  margin-bottom: 7px;
}

/**** BUTTONS & CTA ****/
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc8222;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 13px 35px;
  margin: 3px 0 3px 0;
  transition: background 0.18s, box-shadow 0.19s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(241, 184, 104, 0.18);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #d07304;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(241,184,104,.21);
  color: #fff;
  outline: none;
}

/**** HEADER & NAVIGATION ****/
header {
  background: #F4F6F8;
  box-shadow: 0 2px 14px rgba(241, 184, 104, 0.11);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
header img {
  height: 48px;
  width: auto;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  color: #23476A;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 18px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f6e4c4;
  color: #dc8222;
}

/**** MOBILE NAVIGATION ****/
.mobile-menu-toggle {
  display: none;
  background: #dc8222;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.14s;
  cursor: pointer;
  position: absolute;
  top: 13px;
  right: 18px;
  z-index: 110;
  box-shadow: 0 1px 8px rgba(244, 213, 137, 0.17);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #d07304;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  z-index: 210;
  background: #fffefb;
  box-shadow: 0 8px 44px rgba(241, 184, 104, 0.18);
  transform: translateX(-110vw);
  transition: transform 0.31s cubic-bezier(0.5,1,0.89,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #dc8222;
  color: #fff;
  border: none;
  border-radius: 100%;
  font-size: 2.2rem;
  width: 46px;
  height: 46px;
  align-self: flex-end;
  margin: 20px 20px 20px 0;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(244, 213, 137, 0.13);
  transition: background 0.2s, transform 0.13s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #d07304;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
  padding: 8px 35px 35px 35px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  color: #23476A;
  font-weight: 600;
  padding: 13px 12px;
  border-radius: 18px;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f6e4c4;
  color: #dc8222;
}

/**** HERO SECTION (/) ****/
.hero {
  background: linear-gradient(95deg, #ffe8d5 0%, #f9f6f3 97%);
  border-radius: 0 0 34px 34px;
  box-shadow: 0 8px 22px rgba(244, 213, 137, 0.07);
  margin-bottom: 44px;
  padding-top: 50px;
  padding-bottom: 55px;
  display: flex;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #23476A;
}
.hero .subtitle {
  font-size: 1.25rem;
  color: #49736B;
}

/* ========== FOOTER ========== */
footer {
  background: #23476A;
  color: #fff;
  padding: 38px 0 28px 0;
  border-radius: 29px 29px 0 0;
  margin-top: 50px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 35px;
  justify-content: space-between;
}
.footer-inner img {
  height: 46px;
  border-radius: 8px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  font-size: 1.01rem;
  color: #ffe8d5;
  padding: 7px 14px;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: background 0.16s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #dc8222;
  color: #fff;
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px;
  font-size: 1rem;
}
.footer-info .text-section {
  background: transparent;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-size: 1rem;
}
.footer-info img {
  display: inline-block;
  height: 18px;
  width: auto;
  margin-right: 7px;
  vertical-align: middle;
  border-radius: 6px;
}

/**** BLOG TEASERS ****/
.blog-teaser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}

.blog-teaser-list .text-section {
  flex: 1 1 275px;
  min-width: 220px;
  margin-bottom: 0;
  background: #fef7ec;
  border: 1.5px solid #f0e1d1;
}
.blog-teaser-list a {
  font-size: 1.02rem;
  font-weight: bold;
  color: #dc8222;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.2s;
}
.blog-teaser-list a:hover, .blog-teaser-list a:focus {
  color: #23476A;
}

/**** TEAM BIOS */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.team-member {
  flex: 1 1 250px;
  min-width: 220px;
  background: #fffefd;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 2px 8px rgba(244, 213, 137, 0.10);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.team-member:hover {
  box-shadow: 0 5px 18px rgba(241, 184, 104, 0.15), 0 1.5px 3px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}
.team-member h3 {
  font-size: 1.18rem;
  color: #dc8222;
  margin-bottom: 4px;
}

/**** MODAL & ANIMATIONS ****/
@keyframes bounce-in {
  0%   {transform: scale(0.98) translateY(40px); opacity: 0;}
  65%  {transform: scale(1.05) translateY(-10px); opacity: 1;}
  100% {transform: scale(1) translateY(0px); opacity: 1;}
}

@keyframes slideUp {
  0% {transform: translateY(80px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}

/**** COOKIE BANNER & MODAL ****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: #fff4e6;
  color: #23476A;
  box-shadow: 0 -2px 24px rgba(244, 213, 137, 0.16);
  padding: 22px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  font-size: 1.02rem;
  animation: slideUp 0.48s cubic-bezier(0.75,0.0,0.55,1.0);
  border-radius: 18px 18px 0 0;
}
.cookie-banner p {
  flex: 1 1 250px;
  margin-bottom: 0;
  color: #23476A;
  font-size: 1.04rem;
}
.cookie-btn {
  background: #dc8222;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.01rem;
  font-weight: 700;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.16s, transform 0.12s;
  box-shadow: 0 1px 7px rgba(244, 213, 137, 0.11);
}
.cookie-btn.cookie-settings {
  background: #23476A;
  color: #fff6e5;
}
.cookie-btn.cookie-reject {
  background: #f6e4c4;
  color: #ba7717;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #d07304;
  color: #fff;
  outline: none;
  transform: translateY(-1px) scale(1.03);
}
.cookie-modal-overlay {
  position: fixed;
  z-index: 2030;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,71,106,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in 0.39s cubic-bezier(0.6,0.0,0.6,1.0);
}
.cookie-modal {
  background: #fff6e5;
  color: #23476A;
  border-radius: 22px;
  box-shadow: 0 6px 30px rgba(241, 184, 104, 0.19);
  padding: 36px 31px 30px 31px;
  max-width: 420px;
  width: 95%;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.06rem;
}
.cookie-modal h2 {
  font-family: 'Montserrat', sans-serif;
  color: #23476A;
  font-size: 1.32rem;
  margin-bottom: 14px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-modal-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}
.cookie-switch input[type='checkbox'] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f6e4c4;
  border-radius: 27px;
  transition: background 0.17s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #dc8222;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(35,71,106,0.08);
  transition: transform 0.18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}

.cookie-modal-btn-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: #dc8222;
  font-size: 2rem;
  position: absolute;
  right: 18px;
  top: 10px;
  cursor: pointer;
  z-index: 4;
  padding: 2px;
  border-radius: 8px;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f7e1c5;
}

/* ========= SPACING FOR SECTIONS ========= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/**** MISCELLANEOUS ****/
a:active {color:#b75200;}
hr {
  border: none;
  background: #f7e1c5;
  height: 2px;
  border-radius: 2px;
  margin: 32px 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1170px) {
  .footer-inner, .header-inner {
    max-width: 98vw;
    gap: 20px;
  }
  .container {
    max-width: 95vw;
  }
}

@media (max-width: 990px) {
  .features-grid, .team-bios, .blog-teaser-list {
    gap: 16px;
  }
  .footer-inner, .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .main-nav {
    gap: 7px;
  }
}

@media (max-width: 768px) {
  html {font-size:15px}
  section {
    padding: 22px 7px;
    margin-bottom: 35px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .hero {
    padding-top: 24px; padding-bottom: 26px;
    border-radius: 0 0 19px 19px;
  }
  .features-grid, .team-bios, .blog-teaser-list {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .team-member, .card, .text-section, .blog-teaser-list .text-section {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-info {
    flex-direction: column;
    gap: 13px;
  }
  .category-tags {
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
}

@media (max-width: 520px) {
  html {font-size:14px;}
  header img, .footer-inner img {
    height: 36px;
  }
  .main-nav a, .footer-nav a {
    padding: 8px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    font-size: 0.98rem;
    padding: 12px 5px;
  }
}

/* SYSTEM FONTS FALLBACKS */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  src: local('Montserrat'), local('Arial'), local('Helvetica Neue'), local('sans-serif');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  src: local('Roboto'), local('Arial'), local('Helvetica Neue'), local('sans-serif');
  font-display: swap;
}
