/* ==========================================================================
   PROCHESTRA – Design für Joomla 4/5 (Cassiopeia)
   Wird automatisch NACH dem Template-CSS geladen (user.css).
   Farben stammen aus dem Logo: Teal -> Blau -> Indigo -> Violett.
   ========================================================================== */

:root {
  --pro-navy: #0A1F33;
  --pro-navy-2: #102B4A;
  --pro-night: #161A4A;
  --pro-teal: #1FA59A;
  --pro-blue: #2171B0;
  --pro-indigo: #3A5ED0;
  --pro-violet: #5340D8;
  --pro-ink: #1B2B3F;
  --pro-muted: #5B6B80;
  --pro-bg: #F3F6FB;
  --pro-line: #DCE4EF;
  --pro-grad: linear-gradient(90deg, #23AA98 0%, #2A7FB4 40%, #2F5CC9 72%, #5340D8 100%);
  --pro-radius: 16px;
  --pro-shadow: 0 1px 2px rgba(10, 31, 51, .05), 0 10px 28px rgba(10, 31, 51, .06);

  /* Cassiopeia-Variablen auf Markenfarben setzen */
  --cassiopeia-color-primary: var(--pro-navy);
  --cassiopeia-color-hover: var(--pro-indigo);
  --cassiopeia-color-link: var(--pro-blue);
  --link-color: #2171B0;
  --link-color-rgb: 33, 113, 176;
  --link-hover-color: #3A5ED0;
  --link-hover-color-rgb: 58, 94, 208;
  --bs-link-color: #2171B0;
  --bs-link-color-rgb: 33, 113, 176;
  --bs-link-hover-color: #3A5ED0;
  --bs-link-hover-color-rgb: 58, 94, 208;
}

/* ---------- Grundlayout ---------- */
body.site {
  background: var(--pro-bg);
  color: var(--pro-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  line-height: 1.65;
}
body.site h1, body.site h2, body.site h3, body.site h4 {
  color: var(--pro-navy);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
body.site h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); }
body.site h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); }
body.site .container-component > main > *:last-child { margin-bottom: 0; }

/* ---------- Kopfbereich ---------- */
body.site .container-header {
  position: relative;
  background-color: var(--pro-navy);
  background-image: linear-gradient(120deg, #0A1F33 0%, #0F2A4A 55%, #1B1F5A 100%);
  box-shadow: none;
  border: 0;
  padding-bottom: 6px;
  margin-bottom: 0;
}
body.site .container-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--pro-grad);
}
body.site .container-header .navbar-brand { padding: .5rem 0 .4rem; margin-right: 0; }
@media (min-width: 992px) {
  body.site .container-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: .4rem max(1rem, calc((100% - 79.5rem) / 2)) 10px;
  }
  body.site .container-header .grid-child {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  body.site .container-header .container-nav { flex: 0 1 auto; margin-left: auto; }
}
@media (max-width: 991.98px) {
  body.site .container-header { padding-left: 1rem; padding-right: 1rem; }
}
body.site .container-header .brand-logo img,
body.site .container-header .navbar-brand img {
  height: auto;
  max-height: 76px;
  width: auto;
  background: none;
  border-radius: 0;
}
body.site .container-header .site-description {
  margin-top: .35rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9FC3E8;
}

/* Hauptmenue (Position "menu") im Kopf */
body.site .container-header .mod-menu li,
body.site .container-header .mod-menu li > a,
body.site .container-header .mod-menu li > span {
  border-bottom: 0 !important;
  box-shadow: none !important;
}
body.site .container-header .container-nav .mod-menu,
body.site .container-header .container-nav ul.nav { gap: .25rem; }
body.site .container-header .container-nav a,
body.site .container-header .mod-menu > li > a,
body.site .container-header .mod-menu > li > span {
  position: relative;
  color: #D4E4F6;
  font-weight: 500;
  padding: .85rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background-color .15s;
}
body.site .container-header .container-nav a:hover,
body.site .container-header .mod-menu > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}
body.site .container-header .mod-menu > li.active > a,
body.site .container-header .mod-menu > li.current > a {
  color: #fff;
}
body.site .container-header .mod-menu > li.active > a::after,
body.site .container-header .mod-menu > li.current > a::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: .35rem;
  height: 3px;
  border-radius: 3px;
  background: var(--pro-grad);
}
body.site .container-header .navbar-toggler {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

/* Bearbeiten-Schaltflaechen (nur sichtbar fuer angemeldete Admins) */
body.site .jmodedit.btn,
body.site .jmoddiv .btn {
  padding: .25rem .55rem;
  border-radius: 8px;
  color: var(--pro-muted);
  background: #fff;
  border: 1px solid var(--pro-line);
  box-shadow: none;
  opacity: .75;
}
body.site .jmodedit.btn:hover { opacity: 1; color: var(--pro-indigo); }
body.site .container-header .jmodedit.btn {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
}

/* ---------- Inhalt ---------- */
body.site .container-component,
body.site .container-sidebar-left,
body.site .container-sidebar-right { margin-top: 1.5rem; }

body.site .container-component {
  align-self: start;
  background: #fff;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow);
  padding: 1.75rem 2rem;
}
body.site .container-component .mod-breadcrumbs__wrapper,
body.site .container-component nav[aria-label="Breadcrumbs"] { margin-bottom: 1.25rem; }
body.site .breadcrumb {
  background: #EEF3F9;
  border-radius: 10px;
  padding: .55rem .95rem;
  font-size: .88rem;
  color: var(--pro-muted);
}
body.site .page-header h1,
body.site .com-content-article__body > h1:first-child { margin-top: .25rem; }
body.site .page-header { border: 0; }
body.site .container-component p { max-width: 70ch; }

/* ---------- Module / Karten (z.B. Login, Navigation) ---------- */
body.site .card {
  background: #fff;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow);
  overflow: hidden;
}
body.site .card-header {
  position: relative;
  background: transparent;
  border: 0;
  padding: 1.15rem 1.35rem .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pro-navy);
  letter-spacing: -.01em;
}
body.site .card-header::after {
  content: "";
  display: block;
  width: 38px; height: 3px;
  margin-top: .5rem;
  border-radius: 3px;
  background: var(--pro-grad);
}
body.site .card-body { padding: .6rem 1.35rem 1.35rem; }

/* ---------- Formulare & Buttons ---------- */
body.site .form-control,
body.site .form-select,
body.site .input-group-text {
  border-color: #C5D2E3;
  border-radius: 10px;
}
body.site .input-group > .form-control { border-radius: 10px 0 0 10px; }
body.site .input-group > .btn,
body.site .input-group > .input-group-text,
body.site .input-group > .input-password-toggle { border-radius: 0 10px 10px 0; }
body.site .form-control:focus,
body.site .form-select:focus {
  border-color: var(--pro-indigo);
  box-shadow: 0 0 0 .22rem rgba(58, 94, 208, .2);
}
body.site .btn { border-radius: 10px; font-weight: 600; padding: .6rem 1.15rem; }
body.site .btn-primary,
body.site .btn-primary:visited {
  color: #fff;
  background: linear-gradient(135deg, var(--pro-indigo) 0%, var(--pro-violet) 100%);
  border: 0;
  box-shadow: 0 6px 16px rgba(58, 94, 208, .28);
}
body.site .btn-primary:hover,
body.site .btn-primary:focus {
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 8px 20px rgba(83, 64, 216, .34);
}
body.site .btn-secondary,
body.site .btn-outline-secondary {
  color: var(--pro-navy);
  background: #fff;
  border: 1px solid #C5D2E3;
}
body.site .btn-secondary:hover,
body.site .btn-outline-secondary:hover {
  color: var(--pro-indigo);
  background: #F5F8FF;
  border-color: var(--pro-indigo);
}

/* ---------- Fussbereich ---------- */
body.site .container-footer {
  --bs-code-color: currentColor;
  margin-top: 3rem;
  background: var(--pro-navy);
  border-top: 4px solid transparent;
  border-image: var(--pro-grad) 1;
  color: #9FB3C8;
  padding: 1.5rem max(1rem, calc((100% - 79.5rem) / 2));
  font-size: .92rem;
}
body.site .container-footer .grid-child { max-width: none; margin: 0; padding: 0; }
body.site .container-footer p { margin: 0; color: inherit; }
body.site .container-footer a { color: #CFE0F3; }
body.site .container-footer a:hover { color: #fff; }
/* Text, der im Editor als "Code"/"Vorformatiert" gesetzt wurde (Bootstrap: pink + Monospace) */
body.site .container-footer code,
body.site .container-footer pre,
body.site .container-footer kbd,
body.site .container-footer samp {
  color: inherit;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  margin: 0;
  white-space: normal;
}

/* ==========================================================================
   Startseiten-Bausteine (Module "Hero" und "Karten", siehe module-*.html)
   ========================================================================== */
.prochestra-hero {
  position: relative;
  display: flow-root;
  margin: 1.5rem 0 0;
  padding: clamp(2.5rem, 2rem + 3vw, 4.75rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: 22px;
  color: #E7F0FA;
  background:
    linear-gradient(90deg, rgba(10, 31, 51, .95) 0%, rgba(10, 31, 51, .86) 48%, rgba(10, 31, 51, .3) 78%, rgba(10, 31, 51, 0) 100%),
    url(../images/hero-bg.jpg) right center / cover no-repeat;
  background-color: #0A1F33;
  box-shadow: 0 18px 44px rgba(10, 31, 51, .22);
}
.prochestra-hero__inner { max-width: 34rem; }
body.site .container-component .prochestra-hero { margin-top: 0; }
.prochestra-hero__eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: .3rem .85rem;
  border: 1px solid rgba(159, 216, 255, .35);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9FE3DA;
  background: rgba(10, 31, 51, .45);
}
body.site .prochestra-hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.1;
}
body.site .prochestra-hero h1 span {
  background: linear-gradient(90deg, #34C3B2 0%, #4A9AE0 55%, #8E80FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.prochestra-hero p { margin: 0 0 1.75rem; font-size: 1.12rem; color: #C5D7EA; }
.prochestra-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.prochestra-btn {
  display: inline-block;
  padding: .75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform .15s, filter .15s, background-color .15s;
}
.prochestra-btn:hover { transform: translateY(-1px); }
.prochestra-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #2F5CC9 0%, #5340D8 100%);
  box-shadow: 0 8px 22px rgba(83, 64, 216, .4);
}
.prochestra-btn--primary:hover { filter: brightness(1.1); }
.prochestra-btn--ghost {
  color: #E7F0FA !important;
  border: 1px solid rgba(159, 216, 255, .45);
  background: rgba(255, 255, 255, .05);
}
.prochestra-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.prochestra-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}
.prochestra-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow);
  transition: transform .2s, box-shadow .2s;
}
.prochestra-card::before {
  content: "";
  position: absolute;
  left: 1.5rem; top: 0;
  width: 44px; height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--pro-grad);
}
.prochestra-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 31, 51, .06), 0 18px 36px rgba(10, 31, 51, .1); }
.prochestra-card img { width: 52px; height: 52px; margin-bottom: 1rem; }
.prochestra-card h3 { margin: 0 0 .45rem; font-size: 1.2rem; }
.prochestra-card p { margin: 0; color: var(--pro-muted); font-size: .98rem; }

@media (max-width: 767.98px) {
  .prochestra-hero {
    background-image: linear-gradient(rgba(10, 31, 51, .78), rgba(10, 31, 51, .78)), url(../images/hero-bg.jpg);
  }
}
@media (max-width: 575.98px) {
  body.site .container-component { padding: 1.25rem 1.1rem; }
}
