/* ──────────────────────────────────────────────────────────────
   Tariff Calculator • full style sheet (v2025-06-final)
   Brand: yellow #ffd000 | dark-blue #003366 / #0053a6
   ------------------------------------------------------------- */

/* ========== 1. Input / Button reset ========================= */
#tariff-bar input,
#tariff-bar select,
#tariff-bar button {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  padding: .55rem 1.1rem;
  border-radius: 30px;
  border: 1px solid #c9c9c9;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#tariff-bar input:focus,
#tariff-bar select:focus {
  border-color: #0053a6;
  box-shadow: 0 0 0 2px rgba(0, 83, 166, .15);
}
#tariff-bar select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg fill='%230053a6' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7l4.5 5 4.5-5h-9z'/%3E%3C/svg%3E") no-repeat right 1rem center/0.7rem;
  padding-right: 2.3rem;
}

/* ========== 2. BAR LAYOUT =================================== */
#tariff-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  max-width: 980px;
  margin: 2rem auto;
  padding: 1rem 1.2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
#tariff-bar .frm_form_field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
#tariff-bar .frm_form_field label {
  font-size: .8rem;
  font-weight: 600;
  color: #4a4a4a;
}
#calc-container {
  display: flex;
  justify-content: center;
  margin: .8rem auto 0;
}
#calc-button {
  background: #ffd000;
  color: #003366;
  font-weight: 700;
  padding: .8rem 2.4rem;
  border: none;
  border-radius: 30px;
  transition: background .18s, transform .15s;
}
#calc-button:hover:not([disabled]) {
  background: #ffbe00;
  transform: translateY(-2px);
}
#calc-button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* ========== DESKTOP (≥640 px): grid layout ================= */
@media (min-width: 640px) {
  #tariff-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* PLZ | Ort | Verbrauch */
    grid-template-rows: auto auto auto;
    column-gap: 1.2rem;
    row-gap: 1rem;
    align-items: end;
  }

  #tariff-bar .frm_form_field {
    flex: none;
  }

  /* NEW: Properly place the Berechnen button under Ort */
  #calc-button-wrapper {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: center;
  }

  #calc-button {
    background: #ffd000;
    color: #003366;
    font-weight: 700;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
    border: none;
    border-radius: 30px;
    transition: background 0.2s ease;
  }

  #calc-button:hover:not([disabled]) {
    background: #ffbe00;
    transform: translateY(-2px);
  }

  #calc-button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
  }

  /* NEW: Place result below the full input row */
  #calc-result {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
    margin-top: 1.2rem;
  }

  .tariff-box {
    max-width: 100%;
  }
}

/* ========== MOBILE (<640 px) ================================ */
@media (max-width: 639px) {
  #tariff-bar {
    flex-direction: column;
    gap: 1rem;
  }
  #calc-container {
    margin: .8rem auto 0;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* ========== 3. RESULT / ERROR CARD ========================== */
.tariff-card {
  margin: 1.4rem auto 0;
  max-width: 420px;
  background: #f5faff;
  border: 2px solid #0053a6;
  border-radius: 14px;
  padding: 1.5rem 1rem;
}
.tariff-header {
  font: 700 .9rem/1.3 inherit;
  text-transform: uppercase;
  color: #0053a6;
  margin-bottom: .8rem;
}
.tariff-price {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0053a6;
}
.tariff-price span {
  font-size: .95rem;
  font-weight: 500;
  color: #003366;
}
.tariff-annual {
  margin-top: .6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #003366;
}
#calc-result p {
  color: #b00000;
  font-weight: 600;
  margin-top: 1rem;
}

/* ========== 4. HERO BANNER ================================= */
.hero-banner {
  position: relative;
  height: 340px;
  background: url('/wp-content/uploads/2025/06/happy_family_v2.jpg') top center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}
.hero-inner {
  position: relative;
  text-align: center;
}
.hero-inner h1 {
  color: #fefeff;
  font-size: 3rem;
  margin: 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .45);
}

/* ========== 5. FULL-WIDTH RESULT BOX ========================== */
.tariff-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  gap: 1rem;
}
.tariff-col {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Left column */
.tariff-info .tariff-badge {
  background: #ffd000;
  color: #003366;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.tariff-info .tariff-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #003366;
}
.tariff-info .tariff-sub {
  font-size: 0.9rem;
  color: #666;
}

/* Center column */
.tariff-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.tariff-features ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.tariff-meta div {
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* Tarif Details (new) */
.tariff-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tariff-details li {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.tariff-details strong {
  color: #003366;
}

/* Right column */
.tariff-price {
  text-align: center;
}
.tariff-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #003366;
}
.tariff-desc {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.tariff-month {
  font-size: 0.85rem;
  color: #4a4a4a;
  margin-top: 0.25rem;
}
.btn-order {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1.2rem;
  background: #ffd000;
  color: #003366;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-order:hover {
  background: #ffbe00;
}