/*
 * SCELARIS AI – Cassiopeia Child Theme
 * Version 0.1
 * All changes live in the child template and remain update-safe.
 */

:root {
  --sc-navy: #0b2e63;
  --sc-navy-deep: #071b33;
  --sc-blue: #1a5faf;
  --sc-cyan: #1fc6d5;
  --sc-slate: #3b4653;
  --sc-gray: #e7ecf2;
  --sc-offwhite: #f5f7fa;
  --sc-orange: #f28c28;
  --sc-white: #ffffff;
  --sc-black: #121820;
  --sc-radius: 0.65rem;
  --sc-shadow: 0 16px 40px rgba(7, 27, 51, 0.12);
  --sc-content: 1280px;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--sc-black);
  background: var(--sc-white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--sc-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--sc-orange);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--sc-navy-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container-component,
.container-sidebar-left,
.container-sidebar-right,
.container-top-a,
.container-top-b,
.container-bottom-a,
.container-bottom-b {
  max-width: var(--sc-content);
  margin-inline: auto;
}

#/* Header */
#.container-header {
#  background: var(--sc-navy-deep);
#  background-image: none;
#  border-bottom: 2px solid var(--sc-orange);
#  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
#}

#.container-header .grid-child {
#  max-width: var(--sc-content);
#  margin-inline: auto;
#}

#.container-header .navbar-brand {
#  margin: 0;
#  padding-block: 0.7rem;
#}

/* Gesamter oberer Header-Bereich in SCELARIS-Dunkelblau */
.container-header {
  background: #010b1d !important;
  background-image: none !important;
  border-top: 2px solid var(--sc-orange);
  border-bottom: 3px solid var(--sc-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Volle Breite des Header-Inhalts */
.container-header .grid-child {
  max-width: 100%;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 0;
  padding-top: 0;
}

/* Logo größer darstellen */
.container-header .navbar-brand img {
    height: 100px !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
}

#.container-header .navbar-brand img {
#  width: min(360px, 62vw);
#  max-height: 72px;
#  object-fit: contain;
#  object-position: left center;
#}

.container-header .mod-menu {
  align-items: center;
  gap: 0.15rem;
  justify-content: flex-end;
  width: 100%;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  position: relative;
  color: var(--sc-white);
  font-weight: 600;
  padding: 1rem 0.72rem;
  text-decoration: none;
}

.container-header .mod-menu > li > a::after {
  content: "";
  position: absolute;
  inset-inline: 0.72rem;
  bottom: 0.45rem;
  height: 3px;
  background: var(--sc-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li > a:hover::after,
.container-header .mod-menu > li > a:focus::after {
  transform: scaleX(1);
}

/* Hero custom module */
.sc-hero {
  position: relative;
  overflow: hidden;
  color: var(--sc-white);
  background:
    radial-gradient(circle at 82% 35%, rgba(31, 198, 213, 0.22), transparent 30%),
    linear-gradient(135deg, #071b33 0%, #0b2e63 65%, #103f75 100%);
  min-height: min(720px, 78vh);
  display: grid;
  align-items: center;
}

.sc-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--sc-orange), transparent);
}

.sc-hero__inner {
  width: min(var(--sc-content), calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(5rem, 10vw, 9rem);
  position: relative;
  z-index: 1;
}

.sc-hero__eyebrow {
  color: var(--sc-cyan);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sc-hero h1 {
  color: var(--sc-white);
  max-width: 850px;
  margin-block: 0.7rem 1.2rem;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 0.98;
}

.sc-hero h1 strong {
  color: var(--sc-cyan);
}

.sc-hero p {
  max-width: 760px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.84);
}

.sc-orange-rule {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 520px;
  margin-block: 1.8rem;
}

.sc-orange-rule::before,
.sc-orange-rule::after {
  content: "";
  height: 2px;
  flex: 1;
  background: var(--sc-orange);
}

.sc-orange-rule span {
  width: 12px;
  height: 12px;
  background: var(--sc-orange);
}

.sc-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.sc-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  background: var(--sc-orange);
  color: var(--sc-white);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(242, 140, 40, 0.25);
}

.sc-btn:hover,
.sc-btn:focus,
.btn-primary:hover,
.btn-primary:focus {
  background: #db7415;
  color: var(--sc-white);
}

.sc-btn--secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  box-shadow: none;
}

/* Generic sections/cards */
.sc-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.sc-section--muted {
  background: var(--sc-offwhite);
}

.sc-section__inner {
  width: min(var(--sc-content), calc(100% - 2rem));
  margin-inline: auto;
}

.sc-kicker {
  color: var(--sc-orange);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sc-card {
  position: relative;
  background: var(--sc-white);
  border: 1px solid var(--sc-gray);
  border-radius: var(--sc-radius);
  padding: 1.6rem;
  box-shadow: var(--sc-shadow);
}

.sc-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 72px;
  height: 4px;
  background: var(--sc-orange);
  border-radius: var(--sc-radius) 0 0 0;
}

/* Footer */
.container-footer,
.footer {
  background: var(--sc-navy-deep);
  color: rgba(255,255,255,0.78);
  border-top: 3px solid var(--sc-orange);
}

.container-footer .grid-child,
.footer .grid-child {
  max-width: var(--sc-content);
  margin-inline: auto;
  padding-block: 3rem;
}

.container-footer h2,
.container-footer h3,
.container-footer h4,
.footer h2,
.footer h3,
.footer h4 {
  color: var(--sc-white);
  font-size: 1.05rem;
}

.container-footer a,
.footer a {
  color: rgba(255,255,255,0.82);
}

.container-footer a:hover,
.footer a:hover {
  color: var(--sc-orange);
}

.sc-footer-grid {
  width: min(var(--sc-content), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-block: 3.2rem 2rem;
}

.sc-footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-footer-grid li + li {
  margin-top: 0.45rem;
}

.sc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 1rem;
  color: rgba(255,255,255,0.58);
  font-size: 0.9rem;
}

/* Article/content polish */
.com-content-article {
  max-width: 980px;
  margin-inline: auto;
}

.com-content-article__body > p:first-of-type {
  font-size: 1.15rem;
  color: var(--sc-slate);
}

/* Mobile */
@media (max-width: 991px) {
  .sc-grid,
  .sc-footer-grid {
    grid-template-columns: 1fr;
  }

  .container-header .mod-menu > li > a::after {
    display: none;
  }

  .container-header .mod-menu > li > a {
    padding: 0.65rem 0.2rem;
  }
}

@media (max-width: 640px) {
  .sc-hero {
    min-height: auto;
  }

  .sc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-btn {
    width: 100%;
  }
}

/* Fix: In Practice toggle retained (menu children reachable) - only spacing adjusted */

.nav-item.item-108 > a {
    padding-right: 0.72rem !important;
}
/* Consulting & Coaching Page Styles */
.scelaris-service-page {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--foreground);
}

.service-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.service-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-axiom {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    padding: 1rem;
    border-left: 4px solid var(--sc-orange);
    background: #f9f9f9;
    display: inline-block;
}

.service-section {
    margin-bottom: 3rem;
}

.service-section h3 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--card);
    transition: border-color 0.2s ease;
}

.service-card:hover {
    border-color: var(--sc-orange);
}

.service-card h4 {
    margin-top: 0;
    color: var(--sc-orange);
    font-size: 1.3rem;
}

.progression-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    font-weight: bold;
    color: var(--muted-foreground);
}

.progression-flow span {
    background: var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .service-intro h2 { font-size: 2rem; }
    .progression-flow { flex-direction: column; gap: 0.5rem; }
    .progression-flow span { width: 100%; text-align: center; }
}

/* Coaching Highlight Styles */
.service-highlight {
    background: #fdfdfd;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.highlight-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.highlight-header h3 {
    font-size: 2rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.highlight-subtitle {
    font-size: 1.2rem;
    color: var(--sc-orange);
    font-weight: 600;
    margin-bottom: 0;
}

.coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.coach-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.coach-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--foreground);
}

.coach-role {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-style: italic;
}

.coach-question {
    font-weight: 600;
    color: var(--sc-orange);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fff8f2;
    border-radius: 4px;
}

.coach-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.coach-list li {
    margin-bottom: 0.4rem;
}

.coaching-format {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.coaching-format h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.day-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.day-box {
    padding: 1.2rem;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.day-number {
    font-weight: bold;
    color: var(--sc-orange);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.day-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.coaching-outcome {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px dashed var(--sc-orange);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .day-grid { grid-template-columns: 1fr; }
    .coach-grid { grid-template-columns: 1fr; }
}

/* Service Principle Style */
.service-principle {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--sc-orange);
    border-radius: 6px;
    background: #fffcfb;
}

.principle-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.principle-text {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* Service CTA Style */
.service-cta {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    color: var(--muted-foreground);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--sc-orange);
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Header dropdowns: anchor to parent item, navy background, readable links */
.container-header .mod-menu .mod-menu__sub {
    background-color: var(--sc-navy-deep);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 0.4rem 0;
}
.container-header .mod-menu .mod-menu__sub a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1.2rem;
    display: block;
}
.container-header .mod-menu .mod-menu__sub a:hover,
.container-header .mod-menu .mod-menu__sub a:focus {
    color: var(--sc-orange);
    background: rgba(242, 140, 40, 0.08);
}
.container-header .mod-menu .mod-menu__sub li.current.active > a {
    color: var(--sc-orange);
}

/* Compact active underline: suppress Cassiopeia's full-width white li::after in the header;
   the orange <a>::after (inset-inline 0.72rem) remains the single underline. */
.container-header .mod-menu > li:after {
    display: none;
}
