/* ==========================================================
   KunstImpulse MQ – Elegant Classic Flexbox CSS
   ----------------------------------------------------------
   - Strict mobile-first, flexbox-only layouts
   - Montserrat (display), Lato (body) as fallbacks
   - Elegante Serif-Stimmung via font-family, spacing, muted palette
   - Cookie consent banner & mobile menu
   - Consistent, classic proportioned spacing and hierarchy
   ========================================================== */

/* =====================
   CSS RESET & BASELINE
   ===================== */
html {
  box-sizing: border-box;
  font-family: 'Lora', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
  background: #FAF9F6;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  color: #273146;
  background: #FAF9F6;
  font-family: 'Lora', Georgia, 'Times New Roman', Times, serif;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: #E0583E;
  text-decoration: none;
  transition: color .22s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #b8351d;
  text-decoration: underline;
}
strong, b {
  font-weight: 600;
}

/* Selection */
::selection {
  background: #EAE6DF;
  color: #273146;
}

/* Typography scale & hierarchy */
h1, .h1 {
  font-family: 'Montserrat', 'Lora', Georgia, serif;
  font-size: 2.6rem;
  line-height: 1.13;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #273146;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Lora', Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 18px;
  color: #273146;
}
h3, .h3 {
  font-family: 'Montserrat', 'Lora', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 10px;
  color: #273146;
}
h4, .h4,
h5, .h5,
h6, .h6 {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #273146;
}
p, ul, ol, li, dl, dt, dd {
  margin-bottom: 12px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: #273146;
}

/* =============================
   CONTAINER & FLEXBOX PATTERNS
   ============================= */
.container {
  width: 100%;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin-bottom: 0;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(39,49,70,0.07);
  padding: 26px 24px 22px 24px;
  position: relative;
  min-width: 240px;
  transition: box-shadow .25s cubic-bezier(.4,0,.2,1),
              transform .18s cubic-bezier(.5,.2,.2,1);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(39,49,70,0.15);
  transform: translateY(-5px);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.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;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(39,49,70,0.09);
  padding: 24px 30px 20px 30px;
  margin-bottom: 20px;
  border-left: 5px solid #E0583E;
  max-width: 550px;
  transition: border-color .2s;
}
.testimonial-card:hover {
  border-color: #273146;
  box-shadow: 0 8px 32px 0 rgba(39,49,70,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Layout for features/services (icon list style) */
.features ul, .services-overview ul, .services ul, .values ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  padding: 0;
  margin-bottom: 0;
}
.features ul li, .services-overview ul li, .services ul li, .values ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  background: #FAF9F6;
  border-radius: 8px;
  padding: 13px 19px;
  box-shadow: 0 1px 6px 0 rgba(39,49,70,0.06);
  min-width: 230px;
  gap: 13px;
  margin-bottom: 8px;
  line-height: 1.55;
}
.features ul li img {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  flex-shrink: 0;
}
.services-overview ul li h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
  color: #E0583E;
  font-weight: 600;
}
.services-overview ul li span {
  display: inline-block;
  margin-top: 7px;
  font-size: 1rem;
  color: #273146;
  font-family: 'Montserrat', 'Lora', serif;
  font-weight: 500;
}

/* =======================
   HERO and SECTION HEADER
   ======================= */
.hero {
  background: #EAE6DF;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 36px 0 rgba(39,49,70,0.09);
  margin-bottom: 44px;
  padding: 38px 0 36px 0;
}
.hero h1 {
  font-size: 2.1rem;
  color: #273146;
  margin-bottom: 12px;
}
.hero p {
  max-width: 680px;
  margin-bottom: 22px;
  color: #3a3a3a;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}

/* ===================
   BUTTONS AND LINKS
   =================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E0583E;
  color: #fff;
  font-family: 'Montserrat', 'Lora', serif;
  font-size: 1.06rem;
  font-weight: 600;
  border-radius: 24px;
  padding: 11px 32px;
  min-width: 140px;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 8px 0 rgba(224,88,62,0.13);
  border: none;
  transition: background .2s, box-shadow .22s, transform .12s;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  margin-top: 14px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #273146;
  color: #fff;
  box-shadow: 0 10px 32px 0 rgba(39,49,70,0.14);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  display: inline-flex;
  border-radius: 24px;
  background: transparent;
  color: #273146;
  border: 2px solid #E0583E;
  font-family: 'Montserrat', 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 28px;
  transition: background .18s, border-color .18s, color .18s;
  margin-left: 8px;
  margin-top: 0;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #E0583E;
  color: #fff;
  border-color: #E0583E;
}

/* Inline links for footers/menus */
.footer-menu a {
  color: #273146;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  margin: 0 18px 0 0;
  opacity: 0.9;
  transition: color .18s, opacity .18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #E0583E;
  opacity: 1;
}

/* =========================
   HEADER & NAVIGATION BAR
   ========================= */

header {
  background: #fff;
  box-shadow: 0 2px 22px 0 rgba(39,49,70,0.07);
  position: sticky;
  top: 0; left: 0;
  width: 100%;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  max-width: 1140px;
  margin: 0 auto;
}
.main-nav > a img {
  width: 133px;
  margin-right: 20px;
  height: auto;
}
.main-nav ul {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 20px;
  margin-bottom: 0px;
}
.main-nav ul li {
  list-style: none;
}
.main-nav ul li a {
  color: #273146;
  font-family: 'Montserrat', 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.92;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background .16s, color .16s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus, .main-nav ul li.active a {
  background: #EAE6DF;
  color: #E0583E;
  opacity: 1;
}
.main-nav .btn-primary {
  margin-left: 28px;
  margin-top: 0;
}

/* Hide hamburg on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ============
   MOBILE MENU
   ============ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,49,70,0.97);
  z-index: 120;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.5,1);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  border: none;
  cursor: pointer;
  margin: 20px 0 0 25px;
  align-self: flex-start;
  transition: color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E0583E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Lora', serif;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 18px 35px;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(234,230,223,0.04);
  transition: background .16s, color .13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(224,88,62,0.19);
  color: #E0583E;
}

/* Hamburger Icon */
@media (max-width: 1050px) {
  .main-nav ul,
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #273146;
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: color .14s, background .14s;
    z-index: 999;
    margin-left: auto;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    color: #E0583E;
    background: #f2e7de;
    border-radius: 9px;
  }
}

/* ===============
   CARDS & BLOCKS
   =============== */
.about-short, .about, .contact-short, .contact-block, .legal, .team, .faq {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 12px 0 rgba(39,49,70,0.07);
  margin-bottom: 46px;
  padding: 38px 22px 34px 22px;
}
.services-overview {
  background: #EAE6DF;
  border-radius: 22px;
  box-shadow: 0 4px 18px 0 rgba(39,49,70,0.07);
  margin-bottom: 60px;
  padding: 38px 20px 32px 20px;
}
.services {
  background: #f4f2ee;
  border-radius: 18px;
  margin-bottom: 48px;
  padding: 36px 22px 32px 22px;
}
.values {
  background: #FAF9F6;
  border-radius: 18px;
}

/* FAQ */
.faq dl {
  width: 100%;
  padding: 0;
}
.faq dt {
  font-weight: 600;
  font-family: 'Montserrat', 'Lora', serif;
  font-size: 1.09rem;
  color: #273146;
  margin-top: 17px;
}
.faq dd {
  margin: 4px 0 15px 0;
  color: #3a3a3a;
}

/* =============
   TESTIMONIALS
   ============= */
.testimonials {
  background: #EAE6DF;
  border-radius: 16px;
  padding: 38px 22px 32px 22px;
  margin-bottom: 44px;
}
.testimonials h2, .testimonials .h2 {
  color: #273146;
}
.testimonial-card p {
  color: #222;
  font-style: italic;
  margin-bottom: 8px;
  font-size: 1.11rem;
}
.testimonial-card span {
  color: #7B6D5D;
  font-size: 0.95rem;
  font-family: 'Lora', Georgia, serif;
}
.star-rating {
  color: #E0583E;
  font-size: 1.17rem;
  font-family: 'Montserrat', 'Lora', serif;
  letter-spacing: 0.07em;
  margin-top: 7px;
}

/* =============
   FOOTER
   ============= */
footer {
  background: #273146;
  color: #fff;
  padding: 38px 0 16px 0;
  margin-top: 48px;
}
footer .container {
  max-width: 1160px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  width: 100%;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 0;
  font-family: 'Montserrat', 'Lora', serif;
  font-size: 1.19rem;
  font-weight: 600;
}
.footer-brand img {
  width: 38px;
  height: 38px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 13px;
}
.footer-social {
  display: flex;
  gap: 17px;
}
footer .footer-menu a {
  color: #fff;
  opacity: 0.85;
  font-size: 1rem;
  font-family: 'Lora', Georgia, serif;
}
footer .footer-menu a:hover {
  color: #E0583E;
  opacity: 1;
}

@media (min-width: 700px) {
  footer .content-wrapper {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0;
  }
  .footer-brand {
    margin-bottom: 0;
  }
}

/* =============
   Cookie Consent
   ============= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fffbe8;
  border-top: 1px solid #EAE6DF;
  box-shadow: 0 -2px 14px 0 rgba(39,49,70,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 16px 22px 16px;
  z-index: 500;
  transition: transform .37s cubic-bezier(.4,0,.6,1);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #273146;
  max-width: 720px;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.cookie-consent-banner .btn-primary, .cookie-consent-banner .btn-secondary {
  font-size: 0.97rem !important;
  padding: 8px 20px !important;
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #273146;
  border-radius: 16px;
  box-shadow: 0 12px 32px 0 rgba(39,49,70,0.17);
  max-width: 435px;
  width: 92vw;
  z-index: 1201;
  padding: 30px 28px 23px 28px;
  display: none;
  flex-direction: column;
  gap: 19px;
  animation: fadeIn .28s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal h2 {
  color: #273146;
  font-size: 1.22rem;
  margin-bottom: 13px;
  font-family: 'Montserrat', 'Lora', serif;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-category label {
  cursor: pointer;
}
.cookie-toggle {
  width: 38px;
  height: 19px;
  border-radius: 18px;
  background: #EAE6DF;
  position: relative;
  transition: background .18s;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle span {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #bbb;
  border-radius: 100%;
  transition: left .19s, background .18s;
}
.cookie-toggle input:checked + span {
  left: 20px;
  background: #E0583E;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  margin-top: 16px;
  width: auto;
}
.cookie-modal .cookie-disclaimer {
  font-size: 0.93rem;
  color: #7B6D5D;
  margin-top: 7px;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.95) translate(-50%, -44%); }
  100% { opacity: 1; transform: scale(1) translate(-50%, -50%); }
}

/* =================
   RESPONSIVE DESIGN
   ================= */
@media (max-width: 1050px) {
  .main-nav {
    padding: 13px 0;
  }
}
@media (max-width: 920px) {
  .footer-menu {
    flex-direction: column;
    gap: 9px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .features ul, .services-overview ul, .services ul, .values ul {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2.1rem; }
  h2, .h2 { font-size: 1.37rem; }
  .section, .about-short, .about, .contact-short, .contact-block, .legal, .team, .faq, .services-overview, .services, .values, .testimonials {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    padding: 19px 14px 15px 17px;
    max-width: 100%;
    border-radius: 7px;
  }
  .footer-brand img {
    width: 30px; height: 30px;
  }
  .hero {
    border-radius: 0 0 22px 22px;
    padding-top: 26px; padding-bottom: 22px;
  }
  .main-nav > a img {
    width: 99px;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  .footer-brand {
    font-size: 1.02rem;
  }
}

/*
 * Utilities
 */
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }


/* Accessibility: Hide outline except for keyboard nav */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #E0583E;
  outline-offset: 2px;
}

/* Hide scrollbars for mobile menu */
.mobile-menu::-webkit-scrollbar {
  display: none;
}
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ----- END ---- */
