/* ====================================================================
   Apps section trust subtitle ("2500+ Shopify merchants trust our apps")
   Small line under the main paragraph in the #apps section.
   ==================================================================== */
.ccl-apps-trust {
  margin-top: 14px;
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  font-size: 1rem;
  color: var(--_primitives---colors--blue, #1a1e4f);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ccl-apps-trust::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 8px;
  height: 8px;
  margin: -2px 8px 0 0;
  border-radius: 50%;
  background: var(--_primitives---colors--green, #00f5c9);
  box-shadow: 0 0 12px var(--_primitives---colors--green, #00f5c9);
}

/* ====================================================================
   Globally: visited links should look like unvisited.
   Browser defaults (purple/maroon) clash with both dark navbar and dark footer.
   ==================================================================== */
a:visited,
.navbar a:visited,
.footer a:visited,
.ccl-flag:visited,
.ccl-legal a:visited,
.ccl-app-card:visited,
.shopify-floating-badge:visited { color: inherit; }
/* Specifically for the language flag pill - keep its inactive style intact post-visit */
.ccl-flag:visited { color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.15); }
.ccl-flag-active:visited { color: #1a1e4f; border-color: #00f5c9; }

/* ====================================================================
   Built for Shopify badge - two HTML instances, exactly one visible per breakpoint.
   - .ccl-bfs-desktop  lives in .navbar_button-wrapper (topbar). Desktop only.
   - .ccl-bfs-mobile   lives in .navbar_menu (drawer) after "Unsere Apps". Mobile only.
   Webflow's data-collapse="medium" collapses the nav at <=991px, so 992px is the cutoff.
   ==================================================================== */

.ccl-bfs-link { align-items: center; text-decoration: none; }
.ccl-bfs { height: 26px; width: auto; display: block; transition: opacity .2s ease, transform .2s ease; }
.ccl-bfs-link:hover .ccl-bfs { opacity: 0.85; transform: translateY(-1px); }

/* DESKTOP (>= 992px): topbar BFS visible, drawer BFS hidden */
@media (min-width: 992px) {
  .ccl-bfs-desktop { display: inline-flex !important; }
  .ccl-bfs-mobile  { display: none !important; }
}

/* MOBILE (<= 991px): topbar BFS hidden, drawer BFS visible full-size + centred */
@media (max-width: 991px) {
  .ccl-bfs-desktop { display: none !important; }
  .ccl-bfs-mobile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 0 .5rem;
    width: 100%;
  }
  .ccl-bfs--lg { height: 36px; }
  /* Mobile topbar logo - sized to leave room for hamburger, not overpower the layout. */
  .navbar_logo { max-width: 80px !important; }
}

/* ====================================================================
   Nav link colors: visible on both breakpoints + turquoise hover.
   Webflow's hover rule (.navbar_link:hover { color: green }) is unscoped and gets
   beaten by .w--current's color override. We re-establish hover with !important
   so it always wins. Same for the language flag pills.
   ==================================================================== */

/* DESKTOP (black navbar) -------------------------------------------------- */
@media (min-width: 992px) {
  /* All links white by default - Webflow inherits from .navbar but we make it explicit */
  .navbar .navbar_link { color: #fff !important; }
  /* w--current also white - else Webflow's "color: neutral-darkest" makes it black-on-black */
  .navbar .navbar_link.w--current { color: #fff !important; }
  /* Hover wins over both above with !important */
  .navbar .navbar_link:hover,
  .navbar .navbar_link.w--current:hover { color: #00f5c9 !important; }
}

/* MOBILE drawer ------------------------------------------------------------
   Make the drawer dark (like the topbar) so white nav text reads cleanly.
   Webflow's default drawer bg is white, which forced us to use navy text - that
   then made visited links navy too, which the user disliked. Going dark fixes both. */
@media (max-width: 991px) {
  .navbar_menu {
    background-color: #000 !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  }
  .navbar_menu .navbar_link,
  .navbar_menu .navbar_link.w--current,
  .navbar_menu .navbar_link:visited { color: #fff !important; }
  .navbar_menu .navbar_link:hover { color: #00f5c9 !important; }
}

/* Small overlay layer for our injected app cards section. */
.ccl-apps-section { background: var(--_primitives---colors--white, #fff); }
.ccl-apps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ccl-app-card {
  display: flex; flex-direction: column; padding: 36px 32px; border-radius: 24px;
  background: var(--_primitives---colors--blue, #1a1e4f); color: var(--_primitives---colors--white, #fff);
  text-decoration: none; gap: 14px; transition: transform .2s ease;
  font-family: var(--_typography---font-styles--body, "DINPro", Verdana, sans-serif);
  cursor: pointer;
}
.ccl-app-card:hover { transform: translateY(-4px); }
/* The whole card is one link; let the parent <a> catch every click so children
   (including the "Zur App ->" span) can't intercept events. */
.ccl-app-card > * { pointer-events: none; }
.ccl-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.ccl-app-tag {
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  color: var(--_primitives---colors--green, #00f5c9); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.ccl-app-card h3 {
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  color: var(--_primitives---colors--white, #fff); font-size: 1.6rem; line-height: 1.1; margin: 0;
}
.ccl-app-card p { color: rgba(255,255,255,.78); margin: 0; flex-grow: 1; line-height: 1.45; }
.ccl-app-cta {
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  color: var(--_primitives---colors--green, #00f5c9); font-weight: 600;
}
@media (max-width: 991px) { .ccl-apps-grid { grid-template-columns: 1fr; } }

/* ====================================================================
   Legal pages (imprint / privacy / cookies)
   Mirrors flow-* sites: slim container, clean type hierarchy, no marketing chrome.
   ==================================================================== */
.ccl-legal-page {
  background: var(--_primitives---colors--white, #fff);
  padding: clamp(48px, 7vw, 96px) 5% clamp(64px, 9vw, 112px);
}
.ccl-legal-container {
  max-width: 760px;
  margin: 0 auto;
}
.ccl-legal {
  font-family: var(--_typography---font-styles--body, "DINPro", Verdana, sans-serif);
  color: var(--_primitives---colors--neutral-darkest, #0d0d12);
  line-height: 1.7;
  font-size: 1rem;
}
.ccl-legal h1 {
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--_primitives---colors--blue, #1a1e4f);
  margin: 0 0 .75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.ccl-legal h2 {
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  font-size: 1.4rem;
  color: var(--_primitives---colors--blue, #1a1e4f);
  margin: 2.5rem 0 .75rem;
  letter-spacing: -0.005em;
}
.ccl-legal h3 {
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  font-size: 1.1rem;
  color: var(--_primitives---colors--blue, #1a1e4f);
  margin: 1.75rem 0 .5rem;
}
.ccl-legal p, .ccl-legal li { margin: 0 0 1rem; }
.ccl-legal ul { padding-left: 1.25rem; margin: 0 0 1.5rem; }
.ccl-legal li { margin-bottom: .4rem; }
.ccl-legal a {
  color: var(--_primitives---colors--blue, #1a1e4f);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ccl-legal a:hover { color: var(--_primitives---colors--green, #00f5c9); }
.ccl-legal strong { font-weight: 700; color: var(--_primitives---colors--blue, #1a1e4f); }
.ccl-legal-scope {
  margin: 0 0 2rem;
  padding: 14px 18px;
  background: var(--_primitives---colors--beige, #f2f2e4);
  border-left: 4px solid var(--_primitives---colors--green, #00f5c9);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--_primitives---colors--neutral-darkest, #0d0d12);
}
.ccl-legal-scope strong { color: var(--_primitives---colors--blue, #1a1e4f); }

.ccl-legal .date {
  color: #6b6b78;
  font-size: .9rem;
  margin: -.25rem 0 2.5rem;
}
.ccl-legal code {
  background: var(--_primitives---colors--beige, #f2f2e4);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ====================================================================
   Language switcher (flag pills) - sits at the top of the footer-bottom area
   ==================================================================== */
.ccl-lang-switcher {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 0 24px;
}
.ccl-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  font-family: var(--_typography---font-styles--heading, "Mantul", Arial, sans-serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.ccl-flag:hover {
  border-color: #00f5c9 !important;
  color: #00f5c9 !important;
  background: transparent !important;
}
.ccl-flag-active {
  background: var(--_primitives---colors--green, #00f5c9);
  color: var(--_primitives---colors--blue, #1a1e4f) !important;
  border-color: var(--_primitives---colors--green, #00f5c9);
  pointer-events: none;
}
.ccl-flag-img {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
/* German flag: black / red / gold horizontal stripes */
.ccl-flag-de {
  background:
    linear-gradient(to bottom,
      #000 0 33.33%,
      #DD0000 33.33% 66.66%,
      #FFCE00 66.66% 100%);
}
/* US flag: red/white stripes + blue canton */
.ccl-flag-us {
  background:
    linear-gradient(to right, #3C3B6E 0 40%, transparent 40%),
    repeating-linear-gradient(
      to bottom,
      #B22234 0 1px,
      #B22234 calc(100% / 13),
      #FFF calc(100% / 13),
      #FFF calc(2 * 100% / 13));
  background-color: #B22234;
}

/* The blue canton needs to cover the top portion only; layer a div via ::before on the img span */
.ccl-flag-us {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      #B22234 0,
      #B22234 calc(100% / 13),
      #FFF calc(100% / 13),
      #FFF calc(2 * 100% / 13));
}
.ccl-flag-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 53.85%; /* 7 stripes worth */
  background: #3C3B6E;
}

/* Desktop BFS sizing - bigger than the default 26px so it sits with more presence
   next to the hamburger and visually matches the floating Shopify App Store badge. */
.ccl-bfs-desktop .ccl-bfs { height: 36px; }
