.starselection {
  position: relative;
  margin-bottom: 20px;
  min-height: 60px;
  border: none;
  padding: 0;
}

.starselection legend {
  margin-bottom: 10px;
}

.starselection input {
 position:absolute;
 margin-right:-100%;
 opacity:0;
}
.starselection input:checked ~ label,
.starselection input:focus ~ label {
  background-position: 0 -30px;
}

.starselection label {
  position: relative;
  float: left;
  width: 30px;
  font-size: .1em;
  color: transparent;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: 0 -30px;
}

.starselection label,
.starselection label:before {
 height:30px;
 background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII=");
}

.starselection label:before {
 content:'';
 position:absolute;
 display:block;
 pointer-events:none;
 opacity:0;
 background-position: 0 30px;
}

/* Fokusmarkierung per Tastatur */
.starselection .starselection__focus-ring {
    position:absolute;
    left:0;
    width:100%;
    height:30px;
    outline:2px dotted #999;
    pointer-events:none;
    opacity:0;
}
.starselection .input-no-rate:focus ~ .starselection__focus-ring {
    opacity:1;
}

/* Sternentausch */

.starselection input:checked ~ label {
 background-position:0 0;
}
.starselection input:checked + label,
.starselection input:focus + label {
 background-position:0 -30px;
}
.starselection input:hover ~ label,
.starselection input:focus ~ label{
 background-position:0 0;
}
.starselection input:hover + label,
.starselection input:focus + label {
 background-position:0 -30px;
}
.starselection input:hover + label:before,
.starselection input:focus + label:before {
 opacity:1;
}

/* Breite und Positionierung */
.starselection label:nth-of-type(5):before {
 width:120px;
 left:-120px;
}
.starselection label:nth-of-type(4):before {
 width:90px;
 left:-90px;
}
.starselection label:nth-of-type(3):before {
 width:60px;
 left:-60px;
}
.starselection label:nth-of-type(2):before {
 width:30px;
 left:-30px;
}
.starselection label:nth-of-type(1):before {
 width:0;
 left:0;
}

/* Effekt 1: grow */

.starselection--grow label:after,
.starselection--growrotate label:after {
 content:' ';
 position:absolute;
 bottom:0;
 left:0;
 opacity:0;
 width:30px;
 height:30px;
 background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII=");
 background-repeat:no-repeat;
}

.starselection--grow input:checked + label:after,
.starselection--growrotate input:checked + label:after {
 background-position:0 -30px;
 opacity:1;
 animation-duration:1s;
 animation-fill-mode:forwards;
}

.starselection--grow input:checked + label:after {
 animation-name:stargrow;
}

.starselection--growrotate input:checked + label:after {
 animation-name:stargrowrotate;
}

@keyframes stargrow {
 0% {
  transform:scale(1);
 }
 70% {
  transform:scale(3);
  opacity:0;
 }
 to {
  transform:scale(1);
  opacity:0;
 }
}

@keyframes stargrowrotate {
 0% {
  transform:scale(1) rotate(0deg)
 }
 99% {
  transform:scale(4) rotate(90deg);
  opacity:0
 }
 to {
  transform:scale(1) rotate(0deg);
  opacity:0
 }
}

body {
	font-family: Arial, sans-serif;
	background-color: #f5f5f5;
	margin: 0;
	padding: 0 0 70px 0;
}
.wrap {
	max-width: 800px;
	margin: 20px auto;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
input[type="text"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    margin: 5px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: #007BFF;
    outline: none;
}

.input-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.12);
}

.field-invalid {
    border: 1px solid #b00020;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 6px 0 12px 0;
    box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.08);
}

.form-info {
    margin: 10px 0 12px 0;
    padding: 10px 12px;
    background: #f5f7fa;
    border-left: 3px solid #aeb7c2;
    border-radius: 6px;
    color: #223;
    white-space: pre-wrap;
    font-size: 13px;
}

.validation-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #ededed;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-width: 92vw;
    text-align: center;
}

.upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.upload-item {
    position: relative;
    width: 160px;
    height: 120px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
}

.upload-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-placeholder,
.upload-pdf {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
    letter-spacing: 0.2px;
}

.upload-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #444;
    font-size: 18px;
    line-height: 24px;
    padding: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-remove:hover {
    background: rgba(255, 255, 255, 1);
}

/* Ensure radio inputs don't get affected by the 100% width */
input[type="radio"] {
    width: auto;
    margin: 0 10px 0 15px;
}

button {
	background-color: #005ea8;
	color: white;
	border: none;
	padding: 10px 15px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	margin: 5px;
}

button:hover {
	background-color: #004b87;
}

legend {
	font-weight: bold;
	color: #005ea8;
}
input, textarea {
	width: 100%;
	padding: 8px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
hr {
	border: 1px solid #ff0000;
	margin: 15px 0;
}

.logo {
    width: 30%;
    display: block;
    margin: 20px auto;
}

/* Add container styles for better organization */
.general-area,
.main-area,
.end-area {
    background-color: #f0f0f0;
    border: 1px solid #dcdcdc;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Ensure proper spacing between questions */
.general-area > div,
.main-area > div,
.end-area > div {
    margin-bottom: 15px;
    padding: 0 15px;
}

/* Add proper spacing for labels */
label {
    display: inline-block;
    margin-bottom: 5px;
}

.radio-textarea-container {
    margin: 0 15px 20px 15px;
}

.radio-textarea-container .radio-group {
    margin-bottom: 10px;
}

.radio-textarea-container .radio-option {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.radio-textarea-container textarea {
    margin: 10px 0;
}

/* Override the general input styles for specific cases */
.radio-textarea-container input[type="radio"] {
    margin: 0 10px 0 15px;
}

.dsj-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(245, 245, 245, 0.98);
    border-top: 1px solid #e9e9e9;
    font-size: 11px;
    color: #8a8a8a;
}

.dsj-footer__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: left;
}

.dsj-footer a,
.dsj-footer a:visited {
    color: #8a8a8a;
    text-decoration: none;
}

.dsj-footer a:hover {
    text-decoration: underline;
}

.dsj-footer__sep {
    margin: 0 10px;
    opacity: 0.55;
}
