/* ================================
   Condipity Theme — main.css
   Dark‑blue palette, de‑bootstrap styling
   ================================ */

:root{
  --c-bg:#08142A;             /* page bg (deep blue) */
  --c-card:#0D1B3A;           /* card bg */
  --c-glass:rgba(255,255,255,.06);
  --c-border:rgba(255,255,255,.12);
  --c-text:#E7E9EE;
  --c-muted:#AEB4C0;
  --c-accent:#0098C6;         /* cyan/blue accent */
  --c-accent-2:#3E6EFF;       /* indigo/blue accent 2 */
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}

body.theme-condipity{
  background-color: #08142A;
  background-image:
    /* top-left wave */
    radial-gradient(ellipse 100% 60% at 0% 0%, rgba(62, 110, 255, 0.20), transparent 70%),
    /* bottom-right wave */
    radial-gradient(ellipse 100% 60% at 100% 100%, rgba(0, 152, 198, 0.18), transparent 70%),
    /* subtle central soft blend */
    radial-gradient(circle at 50% 50%, rgba(62, 110, 255, 0.08), transparent 80%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color:var(--c-text);
  font-family:'Noto+Sans',Arial,Helvetica,sans-serif;
}


/* ---------------- HERO ---------------- */
.hero{
  position:relative; min-height:54vh; display:flex; align-items:center; isolation:isolate;
}
.hero-image{
  position:absolute; inset:0; background-size:cover; background-position:center;
  transform:scale(1.03);
  filter:grayscale(.05) contrast(1.05) brightness(.9);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 500px at 20% 10%, rgba(62,110,255,.55), transparent 60%),
    radial-gradient(1200px 700px at 90% 120%, rgba(0,152,198,.45), transparent 60%),
    linear-gradient(180deg, rgba(8,20,42,.55), rgba(8,20,42,.85));
}
.hero-inner{position:relative; z-index:1; padding:4rem 0}
.gradient-text{
  background:linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.opacity-85{opacity:.85}

/* ---------------- BUTTONS ---------------- */
.btn{border-radius:12px; font-weight:600}
.btn-cta{
  background:linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
  border:0; color:#fff; box-shadow:var(--shadow);
}
.btn-cta:hover{filter:brightness(1.05)}
.btn-ghost{
  background:transparent; border:1px solid var(--c-border); color:var(--c-text);
}
.btn-outline-cta{
  border:2px solid var(--c-accent); color:#fff; background:transparent;
}
.btn-outline-cta:hover{background:rgba(0,152,198,.12)}

/* Stelle sicher, dass der Hero voll breit ist und nix seitlich rausläuft */
.hero{
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  width: 100%;
  overflow: hidden; /* verhindert, dass die skalierte BG übersteht */
}

/* Erzwinge Container-Padding im Hero (falls woanders überschrieben) */
.hero .container{
  padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
}

/* Auf Mobile etwas großzügiger und smooth (ohne harte Kanten) */
@media (max-width: 991.98px){
  .hero .container{
    padding-inline: clamp(16px, 4vw, 24px) !important;
  }
}

/* ---------------- FONTS ---------------- */

.h5, h5 {
    font-size: 1.55rem;
    font-weight: 500;
}

/* ---------------- SECTIONS & CARDS ---------------- */
.section-title{display:flex; align-items:center; gap:.4rem; margin-bottom:1rem}

.card{
  background:var(--c-card);
  border:1px solid var(--c-border);
  border-radius:var(--radius);
  color:var(--c-text);
}
.card.glass{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  backdrop-filter: blur(8px);
  border:1px solid var(--c-border);
}
.card .card-header{
  background:transparent;
  border-bottom:1px dashed var(--c-border);
  font-weight:600;
}

.card-project{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  transition:transform .12s ease, box-shadow .12s ease;
  cursor:pointer;
}
.card-project:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }

.list-group-item{
  background:transparent;
  color:var(--c-text);
  border-color:var(--c-border);
}

.text-muted {
    --bs-text-opacity: 1;
    color: rgb(176 198 200 / 75%) !important;
}

/* ---------------- BADGES & LABELS ---------------- */
.badge-status{text-transform:capitalize}
.badge.bg-success, .badge.bg-danger, .badge.bg-secondary{
  border-radius:999px; padding:.4rem .6rem; letter-spacing:.2px;
}

/* ---------------- SUGGESTIONS & COMMENTS ---------------- */
#commentsList .comment, #suggestionsList .suggest{
  background:rgba(255,255,255,.03);
  border:1px solid var(--c-border);
  border-radius:12px;
  padding:.6rem .8rem;
  margin-bottom:.6rem;
}

/* ---------------- MODALS ---------------- */
.modal-content{
  background:linear-gradient(180deg, rgba(13,27,58,.98), rgba(13,27,58,.96));
  color:var(--c-text);
  border:1px solid var(--c-border);
  border-radius:16px;
}

/* ---------------- FORMS ---------------- */
.form-control, .form-select{
  background:#16377c; 
  border:1px solid var(--c-border);
  color:var(--c-text);
  border-radius:12px;
}
.form-control::placeholder{color:#97a1b5}
.form-control:focus{
  border-color:var(--c-accent);
  box-shadow:0 0 0 .15rem rgba(0,152,198,.25);
}

/* ---------------- UTILITIES ---------------- */
.small-muted{color:var(--c-muted); font-size:.9rem}
.opacity-75{opacity:.75}

/* ---------------- TOOLTIPS (bootstrap) ---------------- */
.tooltip-inner{
  background:#0D1B3A; color:var(--c-text); border:1px solid var(--c-border);
}
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before{ border-top-color:#0D1B3A; }

/* ---------------- MEDIA ---------------- */
@media (max-width: 576px){
  .hero-inner{padding:3rem 0}
  .display-5{font-size:2rem}
}

@media (min-width: 992px) {
  .hero .lead.opacity-85 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}