
input,
textarea {
    border: 1px solid black;
    border-radius: 4px;
}

span,
p,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

div[class^="sternebewertung-"] {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

div[class^="sternebewertung-"] input {
    display: none;
}

div[class^="sternebewertung-"] label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}

div[class^="sternebewertung-"] input:checked ~ label,
div[class^="sternebewertung-"] label:hover,
div[class^="sternebewertung-"] label:hover ~ label {
    color: gold;
}


.aromen-auswahl-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.aroma-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 140px;
    height: 70px;

    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;

    font-family: sans-serif;
    user-select: none;

    transition: 0.2s;
}

/* hide actual checkbox */
.aroma-option input {
    display: none;
}

/* hover effect */
.aroma-option:hover {
    border-color: #888;
}

/* checked state */
.aroma-option:has(input:checked) {
    background-color: hsl(133, 95%, 30%);
}

/* tick mark */
.aroma-option::after {
    content: "✔";
    position: absolute;
    top: 6px;
    right: 8px;

    font-size: 14px;
    color: transparent;
}

/* show tick when checked */
.aroma-option input:checked + span + .tick {
    color: green;
}

/* layout trick: text span + tick element */
.aroma-option span {
    pointer-events: none;
}

.tick {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 14px;
    color: transparent;
}

/* make tick visible when checked */
.aroma-option input:checked ~ .tick {
    color: green;
}

.kategorie {
    padding-left: 40px;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.range-wrapper input[type="range"] {
    flex: 1;
}

.label-left,
.label-right {
    font-family: sans-serif;
    font-size: 14px;
    color: #555;
    width: 20px;
    text-align: center;
}

a.button {
    padding: 1px 6px;
    border: 1px outset buttonborder;
    border-radius: 3px;
    color: buttontext;
    background-color: buttonface;
    text-decoration: none;
}
