* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #0f0f0f; color: #e0e0e0; line-height:1.6; }

nav { display:flex; justify-content:space-between; align-items:center; padding:1rem 2rem; background:#1a1a1a; }
nav .logo { color:#4A9EFF; font-size:1.5rem; font-weight:bold; text-decoration:none; }
nav ul { list-style:none; display:flex; gap:1.5rem; }
nav ul a { color:#aaa; text-decoration:none; }

.hero { display:flex; flex-direction:column; align-items:center; text-align:center; padding:3rem 1rem; }
.custom-widget-container { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; margin-top:2rem; }

.station-card { width:250px; border-radius:16px; overflow:hidden; background:#1a1a1a; box-shadow:0 4px 12px rgba(0,0,0,0.5); padding-bottom:1rem; }
.station-header { padding:1.2rem; }
.station-header h3 { color:#fff; font-size:1.4rem; }
.station-address { color:#ffffff !important; font-size:0.75rem; opacity:0.9; margin-top:4px; font-weight:500; }

/* Header Farben */
.shell { background: linear-gradient(135deg, #FFD700, #FF8C00); }
.esso { background: linear-gradient(135deg, #e11b22, #003399); }
.oil { background: linear-gradient(135deg, #f39c12, #d35400); }
.agip { background: linear-gradient(135deg, #ffcc00, #333); }
.eberhardt { background: linear-gradient(135deg, #2980b9, #1a1a1a); }

/* Preis Farben */
.station-prices { padding: 1rem 0; }
.station-prices p { font-size:1.6rem; font-weight:bold; margin:5px 0; }
.shell-prices p { color: #FFD700; }
.esso-prices p { color: #3399ff; }
.oil-prices p { color: #f39c12; }
.agip-prices p { color: #ffcc00; }
.eberhardt-prices p { color: #3498db; }

/* 🔵 Standard Buttons */
button, .widget-btn {
  background: linear-gradient(135deg, #4A9EFF, #2F6FE4);
  border: 1px solid #2F6FE4;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  margin: 5px;
  box-shadow: 0 4px 10px rgba(74,158,255,0.3);
}

/* ✨ Hover allgemein */
button:hover, .widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* 🟢 Berechnen */
#cta-btn {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: 1px solid #27ae60;
  box-shadow: 0 4px 12px rgba(46,204,113,0.4);
}

#cta-btn:hover {
  background: linear-gradient(135deg, #3eea85, #2ecc71);
  box-shadow: 0 6px 16px rgba(46,204,113,0.6);
}

/* 🔴 Reset */
#reset-btn {
  background: linear-gradient(135deg, #ff5f5f, #c0392b);
  border: 1px solid #c0392b;
}

#reset-btn:hover {
  background: linear-gradient(135deg, #ff7b7b, #e74c3c);
}

#btn-shell.active-btn { box-shadow: 0 0 12px #FFD700; }
#btn-esso.active-btn { box-shadow: 0 0 12px #3399ff; }
#btn-oil.active-btn { box-shadow: 0 0 12px #f39c12; }
#btn-agip.active-btn { box-shadow: 0 0 12px #ffcc00; }
#btn-eberhardt.active-btn { box-shadow: 0 0 12px #3498db; }
#btn-auto.active-btn { box-shadow: 0 0 16px #4A9EFF;  transform: scale(1.08); }

.active-btn {
  transform: scale(1.05);
  border: 2px solid #fff !important;
}

/* Refresh Button Spezial */
.refresh-main-btn { border-color: #4A9EFF; color: white; display: inline-flex; align-items: center; gap: 8px; background: #4A9EFF; }
.refresh-main-btn:hover { background: #4A9EFF; color: #ffffff; border-color: #4A9EFF; }

/* Rechner Layout */
.big { 
  background:#1a1a1a; border:1px solid #333; color:#fff; padding:1rem; 
  border-radius:12px; width:250px; text-align:center; font-size:1.2rem; margin:1rem 0;
}
#mode { padding:0.5rem 1rem; border-radius:8px; border:2px solid #4A9EFF; background:#1a1a1a; color:white; font-size:1rem; appearance:none; background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="10" viewBox="0 0 24 24" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); background-repeat:no-repeat; background-position:right 0.75rem center; background-size:0.65rem; cursor:pointer; transition:all 0.25s ease, transform 0.3s ease; margin-bottom:0.5rem; margin-top:0.5rem;}
#mode:hover, #mode:focus { border-color:#FFD700; transform: scale(1.03); }

.spinner-small { width:14px; height:14px; border:2px solid rgba(255,255,255,0.2); border-top-color:#fff; border-radius:50%; animation:spin 0.8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

#result { font-weight:bold; color:#4A9EFF; margin-top:1rem; font-size:1.5rem; opacity:0; transition:0.4s; }
#result.visible { opacity:1; }

.accordion-btn { margin-top:1.0rem; font-size:0.9rem; opacity:1; }
/* Accordion Button Layout */
.accordion-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Pfeil Animation */
#accordion-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Gedrehter Zustand */
#accordion-arrow.open {
  transform: rotate(180deg);
}

.refresh-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

#rechner {
  scroll-margin-top: 80px;
}

/* Rechner Buttons – gleiche Farben wie Widgets */

#btn-shell {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #ffffff;
}

#btn-esso {
  background: linear-gradient(135deg, #e11b22, #003399);
  color: #fff;
}

#btn-oil {
  background: linear-gradient(135deg, #f39c12, #d35400);
  color: #fff;
}

#btn-agip {
  background: linear-gradient(135deg, #ffcc00, #333);
  color: #ffffff;
}

#btn-eberhardt {
  background: linear-gradient(135deg, #2980b9, #1a1a1a);
  color: #fff;
}

.active-btn {
  transform: scale(1.05);
  border: 2px solid #fff !important;
}

/* 💡 Günstigste */
#btn-auto {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: 1px solid #0072ff;
  box-shadow: 0 4px 12px rgba(0,114,255,0.4);
}

#btn-auto:hover {
  background: linear-gradient(135deg, #33d6ff, #3399ff);
  box-shadow: 0 6px 16px rgba(0,114,255,0.6);
}

/* Accordion Content Animation */
.extra-stations-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease;
}

/* Offener Zustand */
.extra-stations-content.open {
  max-height: 1000px; /* groß genug für Inhalt */
}