body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #f5f5f5;
}

#piano {
  position: relative;
  width: 400px;
  height: 180px;
  margin: 40px auto;
  border: 2px solid #333;
  background: white;
  font-size: 0;
  overflow:hidden;
}

/* Weiße Tasten */
.key.white {
  display: inline-flex;
  justify-content: center;
  align-items:flex-end; 
  width: 50px;
  height: 180px;
  background: white;
  border-right: 2px solid #333;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 20px;
  align-items: flex-end;
  padding-bottom: 10px;
  color: black;
}

.key.white:last-child {
	border-right:none;
}
/* Schwarze Tasten */
.key.black {
  position: absolute;
  width: 32px;
  height: 100px;
  background: black;
  top: 0;
  z-index: 10;
  border-radius: 0 0 4px 4px;
  cursor: pointer;
  display: flex;
  justify-content: center; 
  align-items: flex-end; 
  padding-bottom: 10px;
  color: white;
}

/* Perfekte Positionierung der schwarzen Tasten */
.Cs { left: calc(50px * 1 - 16px); }
.Ds { left: calc(50px * 2 - 16px); }
.Fs { left: calc(50px * 4 - 16px); }
.Gs { left: calc(50px * 5 - 16px); }
.As { left: calc(50px * 6 - 16px); }

/* Animation */
.key.active {
  background: #ffeb3b;
}

.key.black.active {
  background: #ff9800;
}
.key {
    position: relative;
}

.key::after {
    content: attr(data-note);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-size: 16px;
}

.key.white::after {
    color: black;
}

.key.black::after {
    color: white;
    font-size: 12px;
}
#notenbild {
  display: block;
  margin: 0 auto 20px auto;
  border-color:black;  
  width: 400px;            
}
.anleitung {
    font-size: 18px;
    color: black;
    margin-bottom: 20px;
}
