/* Box-Model-Fix für alle Elemente */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Hauptcontainer */
#mining-kalkulator-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(255,153,0,0.07), 0 1.5px 5px rgba(0,0,0,0.03);
  padding: 2.5em 2em 2.5em 2em;
  max-width: 520px;
  margin: 3em auto;
  border-top: 5px solid #ff9900;
}

#mining-kalkulator-section h3 {
  color: #ff9900;
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 1.5em;
  letter-spacing: 0.01em;
}

.mining-calc-form {
  margin-bottom: 2em;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em 1em;
  margin-bottom: 1.2em;
  width: 100%;
}

.calc-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Label */
.calc-field label {
  font-size: 1em;
  font-weight: 500;
  color: #444;
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
}

/* Input-Felder */
.calc-field input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 0.55em 0.7em;
  border-radius: 6px;
  border: 1.5px solid #ff9900;
  background: #fff8e1;
  color: #222;
  font-size: 1.08em;
  font-weight: 500;
  transition: border 0.2s;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
}

.calc-field input[type="number"]:focus {
  border-color: #ff6600;
  outline: none;
}

/* Dropdown-Design für Mining-Kalkulator */
.calc-field select {
  width: 100%;
  min-width: 0;
  padding: 0.55em 0.7em;
  border-radius: 6px;
  border: 1.5px solid #ff9900;
  background: linear-gradient(90deg, #fff8e1 0%, #ffe0b2 100%);
  color: #222;
  font-size: 1.08em;
  font-weight: 500;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  appearance: none;
  cursor: pointer;
  background-image:
    url("data:image/svg+xml;utf8,<svg fill='orange' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 7l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 1.2em;
}

/* Fokus- und Hover-Effekt */
.calc-field select:focus, .calc-field select:hover {
  border-color: #ff6600;
  outline: none;
  box-shadow: 0 0 0 2px #ffe0b2;
}

/* Dropdown in flex-Container kompakt halten */
.calc-field > div {
  gap: 0.4em !important;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #ff9900 0%, #ffd700 100%);
  color: #fff;
  padding: 0.85em 2.5em;
  border-radius: 30px;
  font-size: 1.13em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin: 1.6em auto 0 auto;
  box-shadow: 0 2px 12px rgba(255,153,0,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  background: linear-gradient(90deg, #ffd700 0%, #ff9900 100%);
  box-shadow: 0 6px 24px rgba(255,153,0,0.16);
}

#result {
  margin-top: 2em;
  overflow-x: auto;
  width: 100%;
}

#result table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  background: #fff8e1;
  color: #222;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1.5px 5px rgba(0,0,0,0.04);
  font-size: 1em;
}

#result th, #result td {
  padding: 10px 12px;
  text-align: left;
  font-size: 1em;
  border-bottom: 1px solid #ffe0b2;
}

#result th {
  background: #ffe0b2;
  color: #ff9900;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#result tr:last-child th, #result tr:last-child td {
  border-bottom: none;
}

#result tr:nth-child(even) td {
  background: #fff3e0;
}

#result tr.solo-header th {
  background: #ff9900;
  color: #fff;
  font-size: 1.09em;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Gewinn/Verlust/Breakeven als Box untereinander */
.profit-list {
  background: #fff8e1;
  border: 1.5px solid #ff9900;
  border-radius: 8px;
  padding: 1em 1.1em;
  margin-top: 0.7em;
  font-size: 1.08em;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  box-shadow: 0 2px 10px rgba(255,153,0,0.07);
}
.profit-list strong {
  color: #ff9900;
  font-weight: 600;
}

/* Solo-Mining-Chancen als Box untereinander */
.chance-list {
  background: #fff8e1;
  border: 1.5px solid #ff9900;
  border-radius: 8px;
  padding: 1em 1.1em;
  margin-top: 0.7em;
  font-size: 1.08em;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  box-shadow: 0 2px 10px rgba(255,153,0,0.07);
}
.chance-list strong {
  color: #ff9900;
  font-weight: 600;
}

.profit-table {
  width: 100%;
  margin-top: 1.5em;
  border-collapse: collapse;
  background: #fff;
  font-weight: bold;
}
.profit-table th, .profit-table td {
  border: 1px solid #ff9900;
  padding: 9px 10px;
  text-align: center;
  font-size: 1.08em;
}
.profit-table th {
  background: #ff9900;
  color: #fff;
}

/* --- Mobile Optimierung --- */
@media (max-width: 700px) {
  #mining-kalkulator-section {
    padding: 1em 0.2em 1.5em 0.2em;
    max-width: 99vw;
    border-radius: 12px;
    margin: 1.2em 0.2em;
  }

  .mining-calc-form {
    margin-bottom: 1em;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 0.7em 0;
    margin-bottom: 0.8em;
  }

  .calc-field label {
    font-size: 0.98em;
    margin-bottom: 0.18em;
  }

  .calc-field input[type="number"],
  .calc-field select {
    font-size: 1em;
    padding: 0.5em 0.55em;
    border-radius: 5px;
  }

  .calc-field > div {
    gap: 0.25em !important;
  }

  .cta-button {
    font-size: 1em;
    padding: 0.7em 1.2em;
    border-radius: 22px;
    margin-top: 1em;
  }

  #result {
    overflow-x: auto;
    width: 100%;
  }

  #result table {
    font-size: 0.98em;
    min-width: 240px;
    border-radius: 6px;
  }

  #result th, #result td {
    padding: 7px 6px;
  }

  .mining-explanation {
    font-size: 0.99em;
    padding: 1em 0.5em;
    border-radius: 8px;
  }

  .profit-list,
  .chance-list {
    font-size: 1em;
    padding: 0.7em 0.6em;
    border-radius: 6px;
    gap: 0.4em;
  }
}

/* --- Tabellen-Scrollbarkeit auf kleinen Geräten --- */
#result {
  overflow-x: auto;
  width: 100%;
}
#result table {
  width: 100%;
  min-width: 320px;
  font-size: 1em;
}
