/* =========================================================
   BOTEVO Energy Tool – Main Styles
   Autor: Ideegrafik Kreativagentur GmbH - Dominik Keiner-Görzel
   ======================================================== */

/* ---------- Variablen ---------- */
:root {
  --botevo-green: #59C92E;
  --botevo-delete: #FF6347;

  --bg-body: #000000;
  --bg-area: #151515;
  --bg-card: #121212;
  --bg-child: #282828;

  --border: #3B3B3B;

  --text: #EDEDED;
  --text-dim: #B3B3B3;
  --text-inv: #0E0E0E;

  --radius-xl: 10px;
  --radius-lg: 42px;
  --radius-md: 19px;
  --radius-sm: 8px;

  --space-xxl: 48px;
  --space-xl: 32px;
  --space-lg: 24px;
  --space-md: 16px;
  --space-sm: 12px;
  --space-xs: 8px;

  --shadow-soft: 0 8px 24px rgba(0,0,0,.35);
  --shadow-card: 0 12px 28px rgba(0,0,0,.4);
}

/* ---------- Basis ---------- */
.botevo-wrapper {
  color: var(--text);
  display: block;
  width: 100%;
  max-width: calc(1900px - 8vw);
  margin-inline: auto;
  padding: clamp(16px, 3vw, 28px);
}

.botevo-wrapper .accent { color: var(--botevo-green); }

.sr-only {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Buttons, Inputs ---------- */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, background-color .2s ease, border-color .2s ease;
  background: var(--bg-child);
  color: var(--text);
  border-color: var(--border);
  display: flex;
  align-items: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--botevo-green);
  border-color: var(--botevo-green);
  color: white;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
}
.btn--xl {
  padding: 16px 22px;
  font-size: 1.05rem;
}
.btn__icon { margin-left: 8px; }

.input, .select {
  width: 100%;
  background: var(--bg-child);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  outline: none;
}
.input:focus, .select:focus { border-color: var(--botevo-green); }

.input--small { max-width: 80px; }
.input--xs { max-width: 80px; }

.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: 18px; height: 18px; }

/* ---------- Step 1 ---------- */
.step1 {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.step1 .hero {
  margin-bottom: var(--space-xl);
}
.step1 .hero__title {
  font-size: clamp(26px, 2.6vw, 42px);
  margin: 0 0 8px 0;
}
.step1 .hero__lead {
  color: var(--text-dim);
  margin: 0;
  max-width: 56ch;
}

.step1 .postcode-panel {
  margin-top: var(--space-lg);
  background: var(--bg-area);
  border: 1px solid var(--border);
  border-radius: 90px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  width: 660px;
  position: relative;
  text-align: center;
}


.step1 h1, .step1 .hero__lead {
  text-align: center;
  width: 100%;
  max-width: 100%;
}



.step1 .postcode-panel .hint {
  font-size:14px;
  color: white;
  position: absolute;
  width: 150px;
  left: -75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: rotate(10deg)
}

.plz-hint-icon {
  width: 40px;
}

.step1 .postcode-form {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-md);
  align-items: center;
  background-color: white;
  border-radius: 90px;
}
.postcode-input {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #808080;
  background: white;
  border: none;
  border-radius: 90px;
  padding: 0px 0px;
}

.step1 .postcode-form button {
  color: white;
  border-radius: 90px;
}

.postcode-input .icon { opacity: 1; }
.postcode-input .input { background: transparent; border: none; padding: 8px 6px; }


/* ---------- Step 2 Layout ---------- */
.step2 .page-head {
  margin-bottom: var(--space-lg);
  text-align: left;

}
.step2 .page-head h1 { margin: 0; margin-bottom: 60px;}
.step2 .page-head .btn,
.step3 .page-head .btn {
  width: 220px;
  position: relative;
  display: inline;
}

.step2 .page-head .btn img,
.step3 .back2settings img{
  position: absolute;
  top: -10px;
  left: -30px;
  width: 40px;
}

.heading-location-icon {
  margin-right: 10px;
}

#botevo_city_label {
  color: white;
  text-decoration: underline;
}


.step2 .grid {
  display: grid;
  grid-template-columns: 26vw 60vw;
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .step2 .grid { grid-template-columns: calc(100vw - 16vw); }
}

.card {
  background: var(--bg-area);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  max-width: 1140px;
  width:100%;
}
.card h2 { margin-top: 0; font-size: 28px;}

.card--left .row { margin-bottom: var(--space-md); }
.card--left .inline {
  display: inline-flex; align-items: center; gap: 10px;
}
.card--left .pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md);
}
@media (max-width: 640px) {
  .card--left .pair { grid-template-columns: 1fr; }
}

/* ---------- Tor-Karten + Carousel ---------- */
 
.step2-heading {
  display: flex;
  gap: 2vw
}

.card--right .card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-md);
}
.card--right .actions { display: flex; align-items: center; gap: 10px; }
.card--right .carousel-nav { display: flex; gap: 8px; }
.card--right .circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-child);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
}

.gate-no {
  color: #59C92E;
}

#botevo_gate_carousel {
  overflow-x: auto;
  overflow-y: hidden;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(486px, 360px);
  gap: var(--space-md);
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-padding: 8px;
  -webkit-overflow-scrolling: touch;
}
/* nice Scrollbar  */
#botevo_gate_carousel::-webkit-scrollbar { height: 8px; }
#botevo_gate_carousel::-webkit-scrollbar-thumb { background: #444; border-radius: 8px; }

.gate-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  scroll-snap-align: start;
  box-shadow: 0px 0px 10px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 486px;
}
.gate-card__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.gate_bottom {
  padding: 10px 22px;
  background-color: #282828;
  border-radius: var(--radius-lg);
}
.gate-card__head h3 {
  margin: 0; font-size: 1.05rem;
}
.gate-card .qty {
  display: flex; align-items: center; gap: 8px;
  /*background: var(--bg-child);
  border: 1px solid var(--border);*/
  padding: 6px 8px; border-radius: var(--radius-md);
}
.gate-card .qty .input--xs { width: 64px; }

.gate-card .trash {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--botevo-delete);
  border: 1px solid var(--botevo-delete);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
}
.gate-card .trash:hover { border-color: var(--botevo-delete); color: var(--botevo-delete); }

.gate-card .row { display: grid; gap: 6px; }
.gate-card .row.icons { gap: 10px; }
.gate-card label { color: var(--text-dim); font-size: .95rem; }

.icon-select {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.icon-select .icon {
  border-radius: var(--radius-md);
  background: #1F1F1F;
  color: #818181;
  padding: 8px 10px;
  cursor: pointer;
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.icon-select .icon input{
  appearance: none;
}
.icon-select .icon img{
  width: 40px;
  filter: grayscale(1);
  opacity: 0.5;
}

.icon-select .icon span{
  margin-top: 5px;
}

.icon-select .icon.is-active {
  /*border-color: var(--botevo-green);
  outline: 2px solid color-mix(in srgb, var(--botevo-green) 35%, transparent);*/
  color: var(--botevo-green);
}

.icon-select .icon.is-active img{
  width: 40px;
  filter: grayscale(0);
  opacity: 1;
}

.slider {
  /*background: var(--bg-child);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);*/
  padding: 8px 10px;
  display: flex; align-items: center; gap: 10px;
}
.slider input[type="range"] { 
  width: 100%; 
  accent-color: var(--botevo-green);
}


.slider .value { color: var(--text); min-width: 96px; text-align: right; }





/* ---------- Step 3 (Ergebnis) ---------- */

.botevo-wrapper.step3 {
  position: relative;
}

.step3 .result-head {
  display: flex;
  margin-bottom: var(--space-lg);
      flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.back2settings {
  position: absolute;
  top: 40px;
  left: 4vw
}


.step3 .location {
  font-size: 26px;
  font-weight: 600;
}

.step3 .location a{
  color: white;
  text-decoration: underline;;
}


.step3 .location .heading-location-icon{
  width: 25px;
}

.step3 h1{
  margin-bottom: 60px;
}


.step3 .result-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-lg);
}
@media (max-width: 1024px) {
  .step3 .result-grid { grid-template-columns: 1fr; }
}

.chart-panel {
  /*background: var(--bg-area);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);*/
  padding: var(--space-md);


  height: clamp(320px, 45vh, 560px);
  display: flex;
  flex-direction: column;
}
.chart-panel canvas {
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.chart-panel .caption {
  color: var(--text-dim);
  font-size: .9rem;
  margin-top: 8px;
}

.summary {
  display: grid; gap: var(--space-md);
  background: var(--bg-area);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}


.summary .btn {
  position: relative;
  text-align: center;
  display: inline-block;
}

.arrow-howitworks {
  position: absolute;
  left: 0px;
  bottom: -30px;
  width: 40px;
}


.kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md);
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr; }
}
.kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kpi__label { color: var(--text-dim); margin-bottom: 6px; text-align: center;}
.kpi__value { font-size: 1.6rem; font-weight: 700; text-align: center; }

.kpis:first-child {
  color: var(--botevo-delete)
}

.kpi-separator {
  width: 100%;
}

.delta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  line-height: 1;
}
.delta__value { font-size: 56px; font-weight: 800; }
.delta__hint { color: var(--text-dim); margin-top: 6px; }

/* ---------- Modal (Step 3) ---------- */
.modal {
  border: none;
  padding: 0;
  background: transparent;
}
.modal::backdrop { background: rgba(0,0,0,.6); }

.modal__card {
  width: min(680px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  color: var(--text);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.modal__head h3 { margin: 0; }
.modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-child);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.modal__body {
  padding: var(--space-lg);
  display: grid; gap: var(--space-md);
}

/* ---------- Fehlerhinweise ---------- */
.botevo-error {
  background: #2a0000;
  color: #ffdbdb;
  border: 1px solid #5a1b1b;
  border-radius: var(--radius-md);
  padding: var(--space-md);
}


#botevo_t_in {
  width: 120px;
}

#botevo_base_form .btn--ghost {

  width: 50px;
  height: 50px;
}

.card--right .carousel-nav .circle {
  width: 53px;
  height: 53px;
  font-size: 24px;
}

/* ---------- Kleinigkeiten ---------- */
.row + .row { margin-top: var(--space-sm); }

/* ---------- Chart Override  ---------- */
.step3 #botevo_chart {

  height: clamp(340px, 48vh, 560px) !important;
  width: 100% !important;
  display: block;
}




/* Monats-Filter Chips */
.month-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
  margin-bottom: 30px;
}
.month-chip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-child);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  user-select: none;
  cursor: pointer;
  font-size: .95rem;
  color: var(--text);
  
}
.month-chip input { appearance: none; width:0; height:0; margin:0; }
.month-chip input:checked + span { color: white!important; }
.month-chip input:checked + span::before {
  content: "●";
  color: var(--botevo-green);
  margin-right: 8px;
}



/* Icons / grafiken */

.search-location-icon {
  width: 20px;
  margin-left: 20px;
}

.btn-calc-icon {
  width: 32px;
  margin-top: -10px;
  margin-bottom: -10px;
  margin-left: 15px;
  margin-right: -10px;
}

.basedata-energy-icon, .basedata-cost, .basedata-co2 {
  width: 21px;
  margin-right: 10px;
}

/* STep 1 - Feinjustierung */
.postcode-input .input {
  color: var(--bg-card)
}

/* Step 2 - Feinjustierung, Umbrüche, etc. */

.step2 h2 {
margin-bottom: 20px;
}

.basedata-wrapper {
  padding: 20px;
  background-color: #282828;
  border-radius: var(--radius-lg);
  margin-bottom: 25px;
}

.row.pair > div {
  display: flex;
  flex-direction: column;
}

.row.pair label {
  width: 100%;
}

.row.pair .inline {
  width: 100%;
  background-color: #1F1F1F;
  border-radius: var(--radius-lg);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

 .row.pair .inline input{
  appearance: none;
  border: none;
  background-color: transparent;
  height: 31px;
  font-size: 15px;
  width: 100%;
    max-width: 100%;
    text-align: center;
}

.row.pair .inline span{
  margin-left: auto;
  margin-right: 10px;
  white-space: nowrap;
}

#botevo_base_form  {
  height: 100%;
}

#botevo_base_form button {
  width: 100%;
  margin-top: auto;
  line-height: 2;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#botevo_base_form button  img{
  width: 44px;
  margin-left: 20px;
  margin-bottom: -10px;
}

#botevo_weekend {
  margin-left: auto;
}

.step2 .btn__icon {
  margin-bottom: -20px;
}




a[href="#so-funktionierts"] {
  display: none!important;
}