/* ---------- General Layout ---------- */
body {
  background-color: #f8f9fa;
  padding: 20px;
}

.form-select,
.btn-check + .btn {
  margin-bottom: 15px;
}

.card {
  margin-top: 30px;
}

/* ---------- Map Container ---------- */
#map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  #map-container iframe {
    height: 300px;
    margin-top: 20px;
  }
}

/* ---------- Charts ---------- */
#chart-wrapper {
  position: relative;
  height: 600px;
  max-width: 100%;
}

#rentChart {
  max-width: 300px;
  height: 180px;
  margin: auto;
}

/* Add spacing between text and gauge */
#gaugeChart {
  margin-top: 30px; !important;
}

/* Optional: make the number inside the gauge smaller for better balance */
#gaugeChart .svg-container .number {
  font-size: 55px !important;
}

/* Optional: reduce gauge thickness a bit */
.js-plotly-plot .main-svg .plotly .gauge .bar {
  stroke-width: 10px !important;
}


.bar-container {
  width: 100%;
  max-height: 500px;  /* reduced for better density */
  overflow-y: auto;
}

.bar-container canvas {
  width: 100% !important;
  height: auto !important; /* allow proportional resizing */
}


.bar-container canvas {
  width: 100% !important;
}

@media (max-width: 768px) {
  .bar-container {
    max-height: 500px;
  }
}

/* ---------- Animation Dots ---------- */
.dot {
  animation: blink 1.5s infinite;
  display: inline-block;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}


/* ---------- FAQ ---------- */
/* Force all open on desktop */

.container.my-5 h2 {
  font-weight: bold;
}

.container.my-5 p, 
.container.my-5 ul {
  font-size: 1rem;
  line-height: 1.6;
}


/* ---------- Footer ---------- */
footer {
  font-size: 0.9rem;
  line-height: 1.5;
  background: #2c3e50; /* schönes dunkles Blau-Grau */
  color: #f8f9fa;
}

footer a:hover {
  text-decoration: underline;
}




/* ---------- Chatbot Styles ---------- */
#ai-toggle-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  cursor: pointer;
}

#chat-side-panel {
  position: fixed;
  top: 20px;
  right: -400px;
  width: 350px;
  height: calc(100% - 75px);
  background: white;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease-in-out;
  z-index: 10000;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat-header {
  background: #f4f4f4;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.chat-close {
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-footer {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-footer input {
  flex-grow: 1;
  padding: 8px;
  font-size: 14px;
}

.chat-footer button {
  padding: 8px 12px;
  margin-left: 8px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

#chat-suggestions button {
  border-radius: 20px;
}

#typing-indicator .dot {
  animation: blink 1.2s infinite;
  font-weight: bold;
}

#typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

#typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* ---- Reset ---- */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
}

/* Navbar fix */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.section-divider-bold {
  border: none;
  height: 3px;
  background: rgba(0, 0, 0, 0.15);
  margin: 2rem auto;
  width: 90%; /* Adds space on the sides */
  border-radius: 4px; /* Slight rounding for a clean look */
}


/* ---- Buttons ---- */
.btn-cta {
    background-color: #0056d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #003d99;
    transform: translateY(-2px);
}

/* Light CTA (z.B. auf buntem Hintergrund) */
.btn-cta-light {
    background: #fff;
    color: #0056d2;
    font-weight: 600;
}

.btn-cta-light:hover {
    background: #f1f1f1;
}

/* ---- Hero & Sections ---- */
section {
    padding: 4rem 1rem;
}

section.bg-light {
    background: #f9fafc;
}

section.bg-info {
    background: linear-gradient(120deg, #0056d2, #007bff);
}

section.bg-secondary {
    background: #3c3f44;
}

/* Headings */
h1, h2, h3 {
    font-weight: 700;
}

/* ---- Screenshot ---- */
img.shadow {
    border-radius: 12px;
    max-width: 90%;
}

/* ---- FAQ Accordion ---- */
.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: #0056d2;
    background-color: #e8f0ff;
}

/* ---- Mobile First Optimierungen ---- */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.8rem;
    }
    section {
        padding: 3rem 1rem;
    }
    img.shadow {
        max-width: 100%;
        margin-top: 1.5rem;
    }
}

/* ---- Animations Ergänzung ---- */
[data-aos] {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* behind content */
}


.chart-box {
  background: #f4f6f8; /* leichtes Grau statt weiß */
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* stärker & weicher */
  margin-bottom: 18px;
}


.chart-caption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 5px;
  text-align: center;
}

@media (max-width: 768px) {
  .chart-box {
    padding: 10px;
  }
  .chart-caption {
    font-size: 0.8rem;
  }
}
.leaflet-container{
  display: none !important;
}

.kpi-box {
  background: linear-gradient(135deg, #007bff, #0056d2);
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.kpi-range {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}
.kpi-comment {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 10px 0 25px 0;
  color: #333;
}

.kpi-comment.positive {
  color: #4fa533;
}

.kpi-comment.negative {
  color: #c44141;
}

.kpi-comment.neutral {
  color: #d6a930;
}

#results {
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(20px);
  opacity: 0;
}

#results.visible {
  opacity: 1;
  transform: translateY(0);
}

#results-placeholder {
  min-height: 800px; /* passt du nach Bedarf an */
  margin-bottom: 50px; /* Abstand zum Footer */
}
