.recipe-yield-calculator {
    display: flex;
    align-items: center; /* Vertically center all items */
    gap: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.recipe-yield-calculator span {
    font-size: 1em;
}

.recipe-yield-calculator .portion-input {
    width: 60px; /* A bit wider for larger numbers */
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    font-size: 1.4em; /* Larger font size */
    font-weight: bold; /* Bold font */
    box-sizing: border-box; /* Ensures padding is included in height calculation */
}

/* Hide the default number input arrows */
.recipe-yield-calculator .portion-input::-webkit-outer-spin-button,
.recipe-yield-calculator .portion-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.recipe-yield-calculator .portion-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.recipe-yield-calculator .portion-changer {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.recipe-yield-calculator .portion-changer:hover {
    background-color: #eee;
}

/* Style the buttons with a red background and white text */
.recipe-yield-calculator .portion-changer {
    background-color: #d32f2f; /* Red background */
    color: white;              /* White text for the +/- */
    font-weight: bold;
    border: 1px solid #d32f2f;
}

/* Darken the button slightly on hover for feedback */
.recipe-yield-calculator .portion-changer:hover {
    background-color: #b71c1c; 
    border-color: #b71c1c;
}

/* --- Styling for the Ingredients Table --- */
.recipe-ingredients-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1em;
}

.recipe-ingredients-table th,
.recipe-ingredients-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.recipe-ingredients-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
}

.recipe-ingredients-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Column-specific alignment */
.recipe-ingredients-table td:nth-child(2) { /* Menge */
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
}

.recipe-ingredients-table td:nth-child(3) { /* Hinweise */
    font-style: italic;
    color: #555;
}
