.eeg-entry {
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	border-left: 10px solid #005980;
}

.eeg-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f9f9f9;
  flex-wrap: wrap;
}

.eeg-summary > div {
  flex: 1;
  min-width: 150px;
  text-align: center;
  margin: 5px;
}

.eeg-entry .value-box p,
.eeg-summary > div > p{
	margin: 0px;
}

.eeg-entry .value-box{
	display: flex;
	flex-direction: column;
	align-items: center;
}



.eeg-entry .value{
	font-size: 1.1em;
	font-weight: 700;
}

.eeg-entry .box {
	border-radius: 10px;
	padding: 0px 10px;
	color: #ffffff;
	background-color: #dddddd;
}

.eeg-entry .box.green {
  background-color: #7abf3a;
}

.eeg-entry .box.red {
  background-color: #ff0000;
}

.eeg-logo img {
  max-width: 60px;
  display: block;
  margin: 0 auto 5px;
}

.eeg-name{
	font-size: 0.8em;
}

.eeg-actions button, .eeg-actions a {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.abschluss-btn { background: #005980; color: #fff !important; }
.abschluss-btn:hover { background: rgba(6, 83, 120, 0.8); color: #fff !important; }
.toggle-info { background: #eee; }
.toggle-info:hover { background: #ddd; }

.eeg-details {
	display: none;
	padding: 20px;
	background: #fff;
	
	
	max-height: 0;
	overflow: hidden;
	
	transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;

}

.eeg-details.open { 
	display: flex; 
	flex-direction: column; 
	flex-wrap: nowrap; 
	gap: 20px; 
	
	max-height: 1000px; /* größer als die voraussichtliche Höhe */
	transform: scaleY(1);
  	opacity: 1;
}

.eeg-description { 
	flex: 1 1; 
    font-size: 0.7em;
    color: #888;
    text-align: center;
}

.eeg-chart { 
	height: 200px;
}
.eeg-totals {
	display: flex;
	justify-content: space-evenly;
	align-items: flex-end;
}

.total-box {
  padding: 10px;
  margin-bottom: 10px;
      text-align: center;
}

.total-box.green {
  background: #d4f7d4;
  border: 1px solid #5cb85c;
  color: #2c662d;
  font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
	.eeg-summary { flex-direction: column; }
	.eeg-totals { 
		flex-direction: column; 
	    align-items: center;
	}
}
