/* Basis-Styles für CO₂-Tool */
body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

/* Container für das gesamte Tool */
.esb-co2-tool {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
}

/* Box für Inhalte */
.esb-co2-box {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 480px;
}

.esb-co2-box h2 {
  text-align: center;
  color: #90ee90;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.esb-co2-box p {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ccc;
}

/* Formularelemente */
.esb-co2-box form {
  display: flex;
  flex-direction: column;
}

.esb-co2-box label {
  margin: 1rem 0 0.3rem;
  font-weight: bold;
  color: #e0e0e0;
}

.esb-co2-box input,
.esb-co2-box select,
.esb-co2-box textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #2ac9b6;
  background-color: #121212;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.esb-co2-box input:focus,
.esb-co2-box select:focus,
.esb-co2-box textarea:focus {
  outline: none;
  border-color: #90ee90;
}

.esb-co2-box button {
  margin-top: 1.5rem;
  padding: 12px;
  background-color: #2ac9b6;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.esb-co2-box button:hover,
.esb-co2-box button:focus {
  background-color: #24b2a3;
  outline: none;
}

/* Ergebnisbereich */
.esb-co2-result {
  margin-top: 2rem;
  background-color: #1a1a1a;
  border-left: 4px solid #2ac9b6;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1rem;
}

.esb-co2-result p {
  margin: 0.25rem 0;
}

/* Embed-Code Textarea */
.esb-co2-embed label {
  margin-top: 2rem;
  font-weight: bold;
}

.esb-co2-embed textarea {
  height: 4rem;
  resize: none;
  background: #1a1a1a;
  color: #fff;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* Badge */
.esb-co2-badge {
  position: fixed;
  padding: 10px 16px;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  background-color: #2ac9b6;
}

.esb-co2-badge::before {
  content: '✔';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  color: #2ac9b6;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .esb-co2-badge {
    position: static;
    margin-top: 2rem;
  }
}

/* Generische Aktions-Button */
.esb-co2-button {
  display: inline-block;
  text-decoration: none;
  background-color: #2ac9b6;
  color: #000;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.esb-co2-button:hover {
  background-color: #24b2a3;
}

/* Admin-Statistiken Container */
.admin-stats-container {
  background-color: #121212;
  border: 1px solid #2ac9b6;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.admin-stats-container h2 {
  color: #90ee90;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121212;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2ac9b6;
}

.navbar__brand h1 {
  color: #3df5c8;
  margin: 0;
  font-size: 1.5rem;
}

.navbar__brand .sub-title {
  color: #e0e0e0;
  font-size: 0.9rem;
  margin: 0;
}

.navbar__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.navbar__links li {
  margin: 0;
}

.navbar__links .user-name {
  font-weight: 600;
  color: #aaa;
}

.navbar__links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: #3df5c8;
}

.navbar__links .btn--primary {
  background: #3df5c8;
  color: #121212;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.navbar__links .btn--primary:hover {
  background: #2abb9e;
}

/* Slider & Stats */
.slider-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.co2-stats p,
.co2-comparison p {
  margin: 0.5rem 0;
}
.co2-comparison h4 {
  margin-top: 2.5rem;
  margin-bottom: -0.25rem;
  text-align: center;
}

/* Footer */
.footer {
  background: #1a1a1a;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #2ac9b6;
}

.footer__container p {
  margin: 0;
  font-size: 0.875rem;
  color: #888;
}