/* ==========================================================================
   Coordinator Software — Bootstrap 5 theme
   ========================================================================== */

:root {
  --c-navy:        #071c3f;
  --c-primary:     #094693;
  --c-accent:      #066be5;
  --c-accent-2:    #2a7fff;
  --c-sky:         #b0e3f8;
  --c-sky-2:       #e8f6fd;
  --c-warm:        #e8532b;

  --c-ink:         #10192b;
  --c-body:        #4a5568;
  --c-line:        #e4eaf2;
  --c-bg-alt:      #f6f9fc;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-title: 'Catamaran', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-card: 0 20px 45px -20px rgba(9, 70, 147, 0.25);
  --nav-height: 140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-body);
  background: #eaf6fe;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  color: var(--c-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-primary); }

/* Standalone navigational / button-style links are already distinguishable
   by position and visual weight rather than by sitting inline in a
   sentence, so they don't need an inline underline. */
.navbar-brand,
.nav-link,
.dropdown-item,
.btn-brand,
.btn-brand-outline,
.btn-nav-cta,
.btn-footer-submit,
.hero-eyebrow,
.hero-eyebrow-subpage,
.skip-link {
  text-decoration: none;
}

.text-brand { color: var(--c-primary) !important; }
.bg-brand-navy { background: var(--c-navy) !important; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--c-primary); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--c-accent-2);
  outline-offset: 2px;
}

/* ---------- Navbar: transparent on load, white on scroll ---------- */
.site-header {
  padding: 0.65rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 4px 20px -8px rgba(9, 70, 147, 0.25);
}
.site-header .navbar-brand img { height: 92px; transition: height 0.3s ease; }
.site-header.is-scrolled .navbar-brand img { height: 92px; }
.site-header .nav-link {
  font-weight: 500;
  color: var(--c-ink);
  padding: 0.5rem 1rem !important;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--c-accent); }
.site-header .dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
}
.site-header .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
}
.site-header .dropdown-item:hover { background: var(--c-sky-2); color: var(--c-primary); }
.btn-nav-cta {
  background: var(--c-accent);
  color: #fff !important;
  border-radius: 30px;
  padding: 0.55rem 1.3rem !important;
  font-weight: 600;
}
.btn-nav-cta:hover { background: var(--c-primary); }

/* ---------- Mobile nav: solid backdrop so the expanded panel never
   bleeds into the page content underneath the fixed transparent header ---------- */
@media (max-width: 991.98px) {
  .site-header.menu-open {
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 4px 20px -8px rgba(9, 70, 147, 0.25);
  }
  .site-header .navbar-collapse {
    background: #fff;
    border-radius: 12px;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - var(--nav-height) - 1.5rem);
    overflow-y: auto;
  }
  .site-header .navbar-nav .nav-link {
    padding: 0.65rem 0.25rem !important;
    border-bottom: 1px solid var(--c-line);
  }
  .site-header .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
  .site-header .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-shadow: none;
    background: var(--c-bg-alt);
    margin: 0.25rem 0 0.5rem;
  }
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  border-radius: 30px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-brand:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-brand-outline {
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  border-radius: 30px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
}
.btn-brand-outline:hover { background: var(--c-accent); color: #fff; }

/* ---------- Hero: bleeds up under the (transparent) nav ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 2.5rem) 0 3rem;
  background: linear-gradient(180deg, var(--c-sky-2) 0%, #ffffff 65%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: -5% -10% auto -10%;
  height: 110%;
  background: linear-gradient(356deg, var(--c-accent) 0%, var(--c-sky) 55%);
  opacity: 0.9;
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  background: var(--c-sky-2);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}
.hero-eyebrow-subpage {
  display: inline-block;
  background: #eceded;
  color: var(--c-primary);
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1.5rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  margin-top:1rem;
  outline:solid; 
}
.hero-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--c-body);
  max-width: 46ch;
}
.hero-illustration img {
  max-width: 100%;
  filter: drop-shadow(0 25px 40px rgba(9, 70, 147, 0.18));
  transform: rotate(2deg);
}
.hero-carousel .carousel-indicators {
  position: static;
  margin: 1.5rem 0 0;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: #fff;
  width: 8px; height: 8px; border-radius: 50%;
  opacity: 1;
}
.hero-carousel .carousel-indicators .active { background-color: var(--c-accent); }

/* ---------- Section shells ---------- */
.section { padding: 4rem 0; }
.section-spacer { padding: 0; }
.section-alt { background: var(--c-bg-alt); }
.section-alt-2 { background: #fff; }
.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 0.75rem;
}
.section-lead { max-width: 60ch; color: var(--c-body); }

/* ---------- Checkmark list (original icon), used by both
   "Warum Coordinator?" and "Eine Auswahl an Funktionen" ---------- */
.list-item {
  width: auto;
  list-style: none;
  color: var(--c-ink);
  background-image: url('../images/Icon-feather-check-circle.svg');
  background-position: 0 0.15rem;
  background-repeat: no-repeat;
  background-size: 20px;
  margin-bottom: 0.85rem;
  padding-left: 32px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1rem;
}
ul.list, ul.benefit-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }

/* Data management / feature cards */
.feature-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, rotate 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-sky-2);
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.feature-icon img { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Functionality section: image left (padded), list right ---------- */
.functionality-image-left {
  max-width: 80%;
  padding-left: 100px;
  border-radius: 16px;
}
@media (max-width: 991.98px) {
  .functionality-image-left { padding-left: 0; max-width: 60%; }
}

/* ---------- Sub-page header (new look, replaces the old Webflow wave banner) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 0 3.5rem;
  background: linear-gradient(180deg, var(--c-sky-2) 0%, #ffffff 75%);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 75%;
  background: linear-gradient(356deg, var(--c-accent) 0%, var(--c-sky) 60%);
  opacity: 0.85;
  z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.page-header .lead {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--c-body);
}

/* ---------- Functionality detail cards (sub-page) ---------- */
.func-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.func-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.func-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.func-card ul.list { margin-top: 0; }
.func-card .list-item strong { color: var(--c-ink); }


.cta-section {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #fff;
  box-shadow: 0 8px 30px -6px var(--c-accent);
  border-radius: 16px;
  max-width: 998px;
  margin: 32px auto 4rem;
}
.light-title-section {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 300;
  line-height: 46px;
  margin-top: 0;
  padding-bottom: 10px;
}
.light-title-subpage {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 300;
  line-height: 50px;
  margin-top: 0;
  padding-bottom: 10px;
}
.light-title-cta {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 300;
  line-height: 46px;
  text-align: center;
  margin-top: 0;
}
.light-title-cta-sm {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 300;
  line-height: 36px;
  text-align: center;
  color: var(--c-body);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #084796;
  color: #fff;
  padding: 3.5rem 0 1.5rem;
  margin-top: 24px;
}
.site-footer h3, .site-footer .footer-title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.footer-logo-spacer { height: calc(34px + 1rem); }
.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 2px;
}
.site-footer a:hover { color: #fff; text-decoration-color: currentColor; }
.site-footer .footer-link { display: block; margin-bottom: 0.5rem; }
.site-footer .form-control {
  background: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.18);
  color: #10192b;
  border-radius: 10px;
}
.site-footer .form-control::placeholder { color: #8a95a6; }
.site-footer .form-control:focus {
  background: #fff;
  border-color: var(--c-accent-2);
  color: #10192b;
  box-shadow: none;
}
.site-footer label { font-size: 0.85rem; margin-bottom: 0.3rem; color: rgba(255,255,255,0.9); }

/* New footer submit button — high contrast against the dark footer + light fields */
.btn-footer-submit {
    background: #066be5;
    color: #fff;
    border: solid;
    border-radius: 30px;
    padding: 0.75rem 1.9rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-footer-submit:hover {
  background: #084796;
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.paddingheader {
  margin-top: 0;
  padding-top: calc(var(--nav-height) + 2rem);
}

@media (max-width: 767.98px) {
  .cta-section { border-radius: 0; margin-bottom: 3rem; padding: 3rem 1.2rem; }
  .hero-section { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
