/* ========================================================== */
/*     RESET & BASE — Scandinavian Clean Quantum Crafters      */
/* ========================================================== */
html, body, div, section, main, header, footer, nav, article,
h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote,
table, thead, tbody, tfoot, tr, th, td, a, img, button, input, textarea, form {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #22405C;
  background-color: #FAFAF9;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #22405C;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #62909B;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: 700;
}
::-webkit-input-placeholder {
  color: #999;
}
::-moz-placeholder {
  color: #999;
}
:-ms-input-placeholder {
  color: #999;
}
::placeholder {
  color: #999;
}


/* ===================================================== */
/*   BRAND COLOR PALETTE — variables and utility classes */
/* ===================================================== */
:root {
  --primary: #22405C;
  --secondary: #62909B;
  --accent: #F2E8D2;
  --neutral-bg: #FAFAF9;
  --card-bg: #FFFFFF;
  --border-color: #E9E6DF;
  --text: #22405C;
  --text-secondary: #46626e;
  --muted: #8e9fa8;
  --shadow-main: 0 4px 20px 0 rgba(34,64,92,0.08);
  --shadow-inner: 0 1.5px 6px rgba(98,144,155,0.09);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
}
.bg-primary {
  background: var(--primary);
}
.bg-accent {
  background: var(--accent);
}
.bg-secondary {
  background: var(--secondary);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  margin-bottom: 22px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p, li, table, th, td, em {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
}
p, ul, ol, .text-section > ul {
  margin-bottom: 16px;
}
.subtitle {
  font-size: 1.1rem;
  color: var(--secondary);
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 32px;
  font-weight: 400;
}
.table th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  background: var(--accent);
}

/* ------------------- Button Styles ------------------- */
.cta-btn,
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-m);
  padding: 13px 30px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 7px;
  margin-bottom: 7px;
  box-shadow: var(--shadow-main);
  transition: background 0.22s, box-shadow 0.2s, transform 0.13s;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(34,64,92,0.13);
  transform: translateY(-2px) scale(1.025);
}
.button-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.button-outline:hover { background: var(--primary); color: #fff; }



/* ============== LAYOUT: CONTAINERS & SECTIONS ============= */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-wrapper.text-section {
  gap: 16px;
}

/* Flexbox grids with specified gap and alignment */
.card-container,
.card-grid,
.feature-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.feature-grid > div,
.card, .service-card {
  background: var(--card-bg);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-inner);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.13s;
  border: 1px solid var(--border-color);
}
.feature-grid > div:hover,
.card:hover, .service-card:hover {
  box-shadow: 0 8px 30px -5px rgba(98,144,155,0.11);
  transform: translateY(-2px) scale(1.01);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* Testimonials layout */
.testimonial-list, .testimonial-slider  {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: 0 3px 12px rgba(98,144,155,0.07);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  gap: 20px;
  min-width: 250px;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
}
.ratings-summary, .star_ratings {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-m);
  background: var(--accent);
  color: var(--primary);
  font-size: 1.08rem;
  box-shadow: var(--shadow-inner);
  font-weight: 500;
}

/* FAQ & Blog Listing Cards */
.faq-list > h3 {
  color: var(--secondary);
  font-size: 1.04rem;
  margin-top: 18px;
  margin-bottom: 5px;
}
.blog-listing article {
  background: var(--card-bg);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-inner);
  padding: 22px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.13s;
  border: 1px solid var(--border-color);
}
.blog-listing article:hover {
  box-shadow: 0 5px 18px -4px rgba(98,144,155,0.14);
}

.privacy-notice {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 1rem;
}

/* =============== TABLES (Preise) ================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 30px 0 18px 0;
  background: #fff;
  box-shadow: var(--shadow-inner);
  border-radius: var(--radius-s);
  overflow: hidden;
}
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
th {
  background: var(--accent);
  font-weight: 600;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
}
tbody tr:last-of-type td {
  border-bottom: none;
}

/* ================= HEADER (Desktop & Mobile) ================ */
header {
  background: #fff;
  box-shadow: 0 1.5px 6px rgba(34,64,92,0.07);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 900;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px 20px 24px;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 1rem;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 5px;
  border-radius: 6px;
  transition: background 0.18s, color 0.15s;
}
.main-nav a.cta-btn {
  margin-left: auto;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 26px;
  font-size: 1rem;
  min-width: 165px;
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
  background: var(--secondary);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.main-nav img, .footer-content img {
  height: 35px; width: auto;
  margin-right: 10px;
}

/* ========== MOBILE MENU (Burger navigation) ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-s);
  width: 48px;
  height: 44px;
  font-size: 2rem;
  position: absolute;
  right: 18px;
  top: 22px;
  z-index: 1002;
  transition: background 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow-main);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 2px 32px rgba(34,64,92,0.13);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.79,.14,.15,.86);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 40px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 26px;
  top: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 2050;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
  width: 100%;
  padding-left: 30px;
}
.mobile-nav a {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  padding: 13px 8px;
  border-radius: var(--radius-s);
  transition: background 0.18s, color 0.14s;
  width: 90%;
  max-width: 370px;
  margin-bottom: 5px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

/* Hide desktop nav, show burger on mobile */
@media (max-width: 1050px) {
  .main-nav a.cta-btn { min-width: 110px; font-size: .98rem; }
}
@media (max-width: 875px) {
  .main-nav { gap: 12px; font-size: .98rem; }
}
@media (max-width: 800px) {
  .main-nav { gap: 6px; }
  .main-nav img { height: 28px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ================= HERO SECTION ==================== */
.hero {
  background: linear-gradient(100deg, var(--accent) 20%, #fff 100%);
  min-height: 350px;
  display: flex;
  align-items: center;
  padding: 70px 0 58px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}
.hero .content-wrapper {
  gap: 0;
  max-width: 600px;
}

/* ======================= FOOTER ==================== */
footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  margin-top: 70px;
  font-size: .95rem;
}
.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 40px 24px;
  gap: 28px;
}
.footer-content > div:first-child img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 160px;
}
.footer-nav a {
  color: var(--secondary);
  transition: color 0.14s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a:hover { color: var(--primary); }
.brand-short {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
}
.contact-summary {
  color: var(--muted);
  line-height: 1.7;
}
.contact-summary img {
  vertical-align: middle;
  margin-bottom: 4px;
  margin-right: 7px;
  height: 20px;
}

/* ============== RESPONSIVE: FLEX CONTAINERS ETC ============== */
@media (max-width: 1050px) {
  .container { max-width: 92vw; }
  .feature-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .footer-content { flex-direction: column; gap: 14px; }
  .footer-content > div { margin-bottom: 5px; }
}
@media (max-width: 768px) {
  .container { padding-left: 13px; padding-right: 13px; }
  .content-wrapper, .content-wrapper.text-section, .footer-content {
    gap: 12px !important;
  }
  .card-container, .card-grid, .feature-grid, .content-grid, .testimonial-list, .testimonial-slider {
    flex-direction: column;
    gap: 20px !important;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: unset;
    width: 100%;
    flex: 1 1 100%;
  }
  .section, section {
    padding: 32px 6px;
    margin-bottom: 32px;
  }
  .hero {
    min-height: 200px;
    padding: 36px 0 30px 0;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.33rem; }
  .hero .content-wrapper { max-width: 96vw; }
}


/* =================== MICRO-INTERACTIONS & TRANSITIONS ===================== */
.card, .testimonial-card, .blog-listing article, .faq-list > h3 {
  transition: box-shadow 0.17s, transform 0.13s;
}
a, .footer-nav a, .main-nav a, .mobile-nav a,
.cta-btn, button, .button {
  transition: color 0.14s, background 0.17s, box-shadow 0.14s, transform 0.12s;
}

/* ------------------------------- Utility Spacing -------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }

/* ================ COOKIE CONSENT / MODAL BANNER ================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 -3px 24px rgba(34,64,92,0.09);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 22px 18px;
  gap: 13px;
  font-size: 1rem;
  animation: fadeInCookieBanner 0.9s cubic-bezier(.7,0,.3,1);
}
@keyframes fadeInCookieBanner {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
  justify-content: center;
}
.cookie-btn,
.cookie-banner button {
  padding: 10px 24px;
  border-radius: var(--radius-m);
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.cookie-btn:hover, .cookie-banner button:hover, .cookie-btn:focus {
  background: var(--secondary);
}
.cookie-btn.cookie-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.cookie-outline:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    font-size: .97rem;
    padding: 17px 2px 15px 2px;
  }
  .cookie-banner .cookie-btn-wrapper {
    gap: 8px; flex-direction: column;
  }
}

/* ========== COOKIE PREFERENCES MODAL POPUP ========== */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,64,92,0.16);
  z-index: 4100;
  animation: fadeInBg 0.4s;
}
@keyframes fadeInBg {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;  transform: translate(-50%,-56%);
  min-width: 320px; max-width: 98vw;
  max-width: 420px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-m);
  box-shadow: 0 6px 32px rgba(34,64,92,0.25);
  z-index: 4200;
  padding: 38px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  animation: fadeInPop 0.25s .05s backwards cubic-bezier(.7,0,.35,1.3);
}
@keyframes fadeInPop {
  0% { opacity: 0; transform: translate(-50%,-80%); }
  100% { opacity: 1; transform: translate(-50%,-56%); }
}
.cookie-modal h2 {
  margin-bottom: 0; font-size: 1.25rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 8px 0 16px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
/* Custom toggle switch for Analytics/Marketing */
.cookie-toggle {
  width: 38px; height: 22px;
  background: var(--accent);
  border-radius: 14px;
  border: 1.5px solid var(--secondary);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  margin-right: 7px;
  flex-shrink: 0;
}
.cookie-toggle.checked {
  background: var(--secondary);
}
.cookie-toggle .toggle-knob {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0.5px 1.5px rgba(34,64,92,0.11);
  transition: left 0.18s cubic-bezier(.60,.14,.28,1);
}
.cookie-toggle.checked .toggle-knob { left: 18px; }
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  border-width: 1.5px;
  padding: 9px 19px;
}

@media (max-width: 450px) {
  .cookie-modal {
    padding: 18px 7px 16px 7px;
    min-width: 95vw;
    max-width: 99vw;
  }
  .cookie-modal h2 { font-size: 1.1rem; }
}

/* ================================== MISC UTILITY =================================== */
::-webkit-scrollbar {
  width: 12px;
  background: #ebe6d4;
}
::-webkit-scrollbar-thumb {
  background: #d5dadf;
  border-radius: 9px;
}

/* Hide visually */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* ==================== INTERACTIVE/STATE STYLES =================== */
a:active, button:active, .cta-btn:active {
  opacity: .89;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary);
  border-radius: var(--radius-s);
  border: 1.5px solid var(--border-color);
  padding: 10px 12px;
  outline: none;
  background: #fff;
  transition: box-shadow 0.17s, border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 16px rgba(98,144,155,0.10);
}

/* ================== FORMS (if present) ================ */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}
label {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 500;
}

/* ================ MISC ELEMENTS (e.g., icons etc.) ================== */
ul > li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
ul > li > img {
  height: 22px;
  margin-right: 9px;
}

/* SCANDINAVIAN MATERIAL FEEL, SUBTLE SHADOWS, ROUNDED CORNERS */
.card, .testimonial-card, .blog-listing article, .service-card {
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-inner);
  background: #fff;
  border: 1.5px solid var(--border-color);
}

/* ========================================== */
/*  END — Scandinavian Clean for Quantum Crafters
/* ========================================== */
