/*==============================================================
  KryptoVertrauen Creative Artistic CSS (Flexbox-Only)
  Brand Colors: #274C77 (primary), #F2E9E4 (secondary light), #A65300/#B86B25 (accent)
  Fonts: Montserrat (display), Roboto (body)
  Design: Creative, artistic, vibrant, unique elements
==============================================================*/

/* ------- CSS RESET & BASE ------- */
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: #FFFFFF;
  color: #274C77;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #A65300;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
a:hover, a:focus {
  color: #B86B25;
  text-shadow: 0 1px 5px rgba(166,83,0,0.10);
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
}

/* ------- TYPOGRAPHY SCALES ------- */
h1, .hero h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.13;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 #F2E9E4;
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #A65300;
  letter-spacing: 0.5px;
}
h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #274C77;
}
h4,h5,h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: #B86B25;
}
p, li, span, label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #2b2b2b;
}

/* Typography Responsive */
@media (max-width: 600px) {
  h1, .hero h1 { font-size: 2rem; }
  h2        { font-size: 1.35rem; }
  h3        { font-size: 1.05rem; }
}

/* ------- FLEX LAYOUTS & CONTAINERS ------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F2E9E4;
  border-radius: 18px;
  box-shadow: 0 4px 22px 0px rgba(39,76,119,0.13);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  transition: box-shadow 0.3s;
}
.card:hover {
  box-shadow: 0 16px 32px rgba(39,76,119,0.16), 0 1.5px 8px #A6530060;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(39,76,119,0.08),0 1px 3px 0px #A6530015;
  border-left: 6px solid #A65300;
  position: relative;
  min-width: 220px;
  max-width: 400px;
  flex: 1 1 260px;
  transition: box-shadow .22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(39,76,119,0.15);
  transform: translateY(-3px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Features grid, team-intros, values, blog grid, services, etc. */
.features-grid, .values-list, .services-list, .blog-grid, .team-intros {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature, .value, .service, .blog-teaser, .team-member {
  background: #F2E9E4;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(166,83,0,0.07), 0 1.5px 5px #274C7711;
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 350px;
  position: relative;
  transition: box-shadow .24s, transform .21s;
  border-left: 4px solid #B86B25;
}
.feature:hover, .value:hover, .service:hover, .blog-teaser:hover, .team-member:hover {
  box-shadow: 0 6px 20px rgba(166,83,0,0.16);
  transform: scale(1.02) translateY(-2px);
}

/* Blog-special grid - responsive */
@media(max-width: 980px){
  .features-grid, .values-list, .services-list, .blog-grid, .team-intros {
    flex-direction: column;
    gap: 18px;
  }
}

/* Lists - Feature/Contact Info */
.feature-list, .contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
  padding-left: 0;
}
.feature-list li, .contact-info-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F2E9E4;
  border-radius: 10px;
  padding: 14px 16px;
  color: #274C77;
  transition: box-shadow .18s;
  font-size: 1rem;
}
.feature-list li img, .contact-info-list li img {
  width: 28px; height: 28px; margin-right: 2px;
}
.feature-list li:hover, .contact-info-list li:hover {
  box-shadow: 0 2px 14px #B86B2555;
}

/* ------- HEADER ------- */
header {
  padding: 0 0 0 0;
  background: #F2E9E4;
  border-bottom: 2.5px solid #274C7755;
}
.logo img {
  height: 48px;
  display: block;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat';
  font-weight: 600;
  color: #274C77;
  padding: 8px 16px;
  border-radius: 20px;
  background: none;
  font-size: 1rem;
  transition: background .2s, color .18s;
}
.main-nav .cta-primary {
  background: #A65300;
  color: #fff;
  border-radius: 24px;
  font-weight: 800;
  padding: 10px 24px;
  font-size: 1.05rem;
  margin-left: 8px;
  box-shadow: 0px 2px 8px #a6530020;
  letter-spacing: 0.8px;
  transition: background .19s, box-shadow .19s, transform .14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #274C7712;
  color: #B86B25;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #B86B25;
  color: #fff;
  transform: scale(1.045);
  box-shadow: 0 2px 22px #a6530060;
}

/* ------- HERO ------- */
.hero {
  background: #F2E9E4;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 44px 0 34px 0;
  border-bottom: 3.5px solid #B86B25;
}
.hero .container {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1, .hero h2 {
  text-align: center;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.22rem;
  color: #274C77;
  margin-bottom: 22px;
}
.hero .cta-primary {
  margin-top: 12px;
}

/* ------- CTA BUTTONS ------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat';
  font-weight: 800;
  background: #A65300;
  color: #fff;
  border-radius: 28px;
  padding: 13px 32px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px #A6530031;
  border: none;
  transition: background .17s, color .14s, transform .14s, box-shadow .2s;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #B86B25;
  color: #fff;
  box-shadow: 0 8px 22px #a653006b;
  transform: translateY(-2.5px) scale(1.045);
}

/* ------- CTA SECTIONS ------- */
.cta {
  background: #274C77;
  color: #fff;
  border-radius: 32px;
  margin-top: 30px;
  margin-bottom: 60px;
  box-shadow: 0 3px 16px #274c7733;
}
.cta h2 {
  color: #F2E9E4;
  margin-bottom: 14px;
}
.cta .cta-primary {
  margin-top: 14px;
  background: #F2E9E4;
  color: #A65300;
}
.cta .cta-primary:hover, .cta .cta-primary:focus {
  background: #A65300;
  color: #F2E9E4;
  box-shadow: 0 8px 22px #274C7718;
}

/* ------- SLIDER/TESTIMONIALS ------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card p {
  color: #21384c;
  font-size: 1.12rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: 'Montserrat';
  font-size: 1rem;
  color: #A65300;
}

/* ------- FOOTER ------- */
footer {
  background: #274C77;
  color: #F2E9E4;
  padding-top: 36px;
  padding-bottom: 32px;
  border-top: 3.5px solid #A65300;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Montserrat';
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #F2E9E4;
  font-family: 'Montserrat';
  font-size: 1rem;
  border-radius: 20px;
  padding: 6px 18px;
  font-weight: 600;
  transition: background .16s, color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #A65300;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  flex-direction: row;
  font-size: 0.97em;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #F2E9E4;
}
.footer-contact img {
  width: 20px;
}

/* ------- LEGAL SECTIONS ------- */
.legal {
  background: #F2E9E4;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.legal h1, .legal h2 {
  color: #274C77;
}
.legal ul li {
  background: #fff;
  margin-bottom: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  color: #2b2b2b;
}

/* ------- SPECIAL PAGES (about/team/values) ------- */
.team-intros, .values-list {
  gap: 22px;
}
.team-member h3 {
  color: #A65300;
  margin-bottom: 8px;
  font-size: 1.12rem;
}
.values-list img {
  width: 32px;
}

/* ------- BLOG TEASERS ------- */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.blog-teaser {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 12px #274C771a;
  padding: 28px 22px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 350px;
  transition: box-shadow .21s, transform .17s;
}
.blog-teaser:hover {
  box-shadow: 0 8px 34px #A6530044;
  transform: scale(1.011) translateY(-2px);
}

/* ------- SERVICES SECTION ------- */
.services-list {
  gap: 22px;
}
.service h3 {
  color: #274C77;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

/* ------- CONTACT INFO SECTION ------- */
.contact-info-list {
  gap: 18px;
}


/* ------- MOBILE MENU STYLES ------- */
.mobile-menu-toggle {
  display: none;
  background: #274C77;
  color: #fff;
  padding: 11px 16px 12px 16px;
  font-size: 1.6rem;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: background .22s;
  z-index: 120;
  margin-left: 12px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A65300;
  background: #B86B25;
}
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F2E9E4;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,1.0,.4,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 34px;
  padding-left: 0;
  padding-right: 0;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -2px 0 24px #274C7745;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #A65300;
  color: #fff;
  font-size: 2rem;
  border: none;
  margin-right: 28px;
  margin-bottom: 20px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background .18s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #B86B25;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 18px;
  padding-left: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat';
  font-size: 1.19rem;
  color: #274C77;
  background: none;
  padding: 12px 0;
  border-bottom: 1px solid #B86B2510;
  border-radius: 0;
  transition: color .17s, background .15s, box-shadow .21s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B86B25;
  background: #274C7711;
  text-indent: 4px;
}
.mobile-nav .cta-primary {
  background: #A65300;
  color: #fff;
  border-radius: 25px;
  margin-top: 15px;
  padding: 14px 0;
  font-size: 1.1rem;
  text-align: center;
  width: 90%;
  box-shadow: 0px 3px 10px #A6530032;
}

/* ------- COOKIE CONSENT BANNER ------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #274C77;
  color: #F2E9E4;
  padding: 20px 14px 20px 14px;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  z-index: 8000;
  box-shadow: 0px -4px 22px #274C773a;
  font-size: 1.11rem;
  animation: cookieBannerIn .7s cubic-bezier(.65,.004,.7,1.07);
}
@keyframes cookieBannerIn {
  from { transform: translateY(120px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1;}
}
.cookie-consent-banner .cookie-message {
  flex: 1 1 180px;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat';
  font-weight: 700;
  border: none;
  outline: none;
  border-radius: 9px;
  padding: 9px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .16s, color .14s, box-shadow .18s;
  margin-right: 0;
}
.cookie-consent-banner .cookie-accept {
  background: #A65300;
  color: #fff;
}
.cookie-consent-banner .cookie-accept:hover, .cookie-consent-banner .cookie-accept:focus {
  background: #B86B25;
}
.cookie-consent-banner .cookie-reject {
  background: #fff;
  color: #A65300;
  border: 1.5px solid #A65300;
}
.cookie-consent-banner .cookie-reject:hover, .cookie-consent-banner .cookie-reject:focus {
  background: #A65300;
  color: #fff;
}
.cookie-consent-banner .cookie-settings {
  background: #F2E9E4;
  color: #A65300;
  border: 1.5px solid #A65300;
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  background: #A65300;
  color: #F2E9E4;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,76,119,0.72);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalAppear .5s cubic-bezier(.68,0,0.55,1.04);
}
@keyframes cookieModalAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #274C77;
  border-radius: 18px;
  box-shadow: 0 8px 38px #274C7765;
  padding: 38px 28px 30px 28px;
  min-width: 310px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #A65300;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #B86B25;
}
.cookie-modal-content h2 {
  margin-bottom: 8px;
  color: #A65300;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F2E9E4;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 1.05em;
}
.cookie-category input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  accent-color: #A65300;
}
.cookie-category .cookie-switch {
  margin-left: auto;
  pointer-events: auto;
}
.cookie-category .cookie-essential {
  color: #A65300;
  font-weight: 700;
  margin-left: auto;
  font-size: 0.97em;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-actions .cta-primary {
  font-size: 1rem;
  padding: 8px 22px;
}

/* ------- INFO SECTION (THANK YOU, etc) ------- */
.info-section {
  background: #F2E9E4;
  border-radius: 20px;
  margin-bottom: 32px;
  padding: 48px 20px;
  text-align: center;
}
.info-section h1 {
  font-size: 2.1rem;
}

/* ----------- RESPONSIVE DESIGN ----------- */
@media (max-width: 960px) {
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  .hero {
    min-height: 200px;
    padding-top: 28px; padding-bottom: 22px;
  }
}
@media (max-width: 768px) {
  .container, .footer .container {
    padding-left: 8px; padding-right: 8px;
  }
  .section { padding: 28px 6px; }
  .cta { border-radius: 7vw; margin-bottom:30px; }
  .content-wrapper {
    gap: 16px;
  }
  .features-grid, .values-list, .services-list, .blog-grid, .team-intros {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
  }
  .text-image-section { flex-direction: column; gap: 22px; }
}
@media (max-width: 540px) {
  .logo img { height: 36px; }
  .testimonial-card, .card, .feature, .value, .service, .blog-teaser {
    padding: 17px 10px;
  }
  .hero {
    padding: 14px 0 10px 0;
  }
  .cta-primary {
    font-size: 0.97rem;
    padding: 10px 15px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-radius: 14px 14px 0 0;
    font-size: 0.97rem;
  }
  .cookie-buttons { gap: 8px; }
  .cookie-modal-content {
    padding: 17px 6px 17px 10px;
    min-width: 90vw;
    gap: 13px;
  }
}

/* ------------- MICROLEVEL EFFECTS & CUSTOM ARTISTIC ELEMENTS ------------- */
.card, .feature, .service, .testimonial-card, .blog-teaser, .value, .info-section {
  box-shadow: 0px 2px 15px #A6530022;
}
.card:before, .feature:before, .service:before, .blog-teaser:before, .testimonial-card:before, .value:before {
  content: '';
  display: block;
  position: absolute;
  top: -14px; right: -14px;
  width: 44px; height: 44px;
  border-radius: 44px;
  background: #B86B2528;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}
.card:after, .feature:after, .service:after, .blog-teaser:after, .testimonial-card:after, .value:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -20px; left: -16px;
  width: 32px; height: 32px;
  border-radius: 22px;
  background: #274C7718;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

/* Remove before/after on mobile for more space */
@media(max-width:540px){
  .card:before, .feature:before, .service:before, .blog-teaser:before, .testimonial-card:before, .value:before,
  .card:after, .feature:after, .service:after, .blog-teaser:after, .testimonial-card:after, .value:after {
    display: none;
  }
}

/* ----------- FORM BASE (if any used) ------------ */
input, textarea, select {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 12px 12px;
  border-radius: 8px;
  border: 1.5px solid #274C7711;
  margin-bottom: 16px;
  width: 100%;
}
input:focus, textarea:focus {
  outline: 2px solid #A65300;
  border-color: #A65300;
}
button, input[type="submit"] {
  cursor: pointer;
  font-family: inherit;
}

/* Utilities (spacing, alignment) */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.center { text-align: center; align-items: center; justify-content: center; }

/* Accessibility: Clearly visible focus states */
a:focus, button:focus, .cta-primary:focus, .main-nav a:focus, .cookie-consent-banner button:focus {
  outline: 2px solid #B86B25;
  outline-offset: 2px;
}

/* ------------------------------
   END KryptoVertrauen Flexbox CSS
------------------------------ */
