/* Algemene reset en basisstijlen | V=75 | Toegevoegde CSS-variabele voor header hoogte | Header stijlen | Main content container | Specifieke styling voor main op recept.html | --- Zoekbalk stijl --- | --- Recept van de week sectie --- | --- Categorie secties (h2's) en grids --- | Stijl voor H2's met een link (RijstWijzer Pro en Over de website) | Specifieke styling voor de "Alle Recepten Tonen" grid om tegels onder elkaar te zetten in een raster | Stijl voor individuele recepttegels binnen de grids | Stijl voor de "Terug naar overzicht" tile | --- Recept.html specifieke stijlen --- | Voedingswaarden tabel | Portie aanpassing sectie | --- Footer stijlen --- | Mobiel (max 600px) | Knoppen binnen de rij krijgen een aangepaste breedte | Styling voor de boodschappenlijst container | Styling voor de boodschappenlijst | Styling voor de titel | Styling voor lijstitems | BLOK: ShoppingListStyles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --header-height: 100px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F8F8F8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #A6192E;
    color: #F4E4BC;
    padding: 8px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    height: var(--header-height);
}

header a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

header .logo {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: #F4E4BC;
}

header p {
    width: 100%;
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 5px;
}

.back-button {
    background-color: #F4E4BC;
    color: #A6192E;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.back-button:hover {
    background-color: #DA4;
}

main {
    flex-grow: 1;
    max-width: 768px;       /* maximaal 768px breed */
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding-bottom: 70px;
}


main.recipe-page-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.search-bar {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #A6192E;
    color: #F4E4BC;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #DA4;
}

.search-bar input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.1em;
    box-sizing: border-box;
    min-width: 0;
    color: #333;
}

.search-bar input::placeholder {
    color: #aaa;
}

.recipe-week {
    background-color: #A6192E;
    color: #F4E4BC;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.recipe-week h2 {
    color: #F4E4BC;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.recipe-week .recipe-tile {
    background-color: #F4E4BC;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-image: url(../assets/bamboo-line.png);
    background-size: cover;
    background-position: center;
}

.recipe-week .recipe-tile:hover {
    transform: translatey(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.recipe-week .recipe-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 4px;
}

.recipe-week .recipe-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.recipe-week .recipe-tile h3 {
    color: #A6192E;
    font-size: 1.4em;
    margin: 5px 10px 0;
    height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-section {
    margin-bottom: 10px;
}

.category-section h2 {
    background-color: #A6192E;
    color: #A6192E;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url(../assets/bamboo-line-desktop.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #DA4;
    scroll-margin-top: var(--header-height);
}

.category-section h2:hover {
    background-color: #8C1525;
    transform: translatey(-2px);
}

.category-section h2:focus {
    outline: none;
}

.category-section h2 a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 1.4;
    padding: 5px 0;
}

.recipe-grid {
    display: none;
    padding: 10px 0;
    gap: 20px;
    transition: all 0.3s ease-in-out;
    outline: none;
}

.recipe-grid.active {
    display: grid;
}

.recipe-grid.all-recipes {
}

.recipe-tile {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    background-image: url(../assets/bamboo-line.png);
    background-size: cover;
    background-position: center;
}

.recipe-tile:hover {
    transform: translatey(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.recipe-tile .recipe-image-container {
    width: 100%;
    height: 140px;
    overflow: hidden;
    padding: 4px;
}

.recipe-tile .recipe-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.recipe-tile h3 {
  font-size: 0.8em;          /* nog wat kleiner */
  margin: 0 1px;
  color: #A6192E;
  height: 6em;
  display: flex;
  align-items: center;     /* tekst tegen onderkant */
  justify-content: center;   /* horizontaal centreren */
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipe-tile .reset-image-container {
    background: #F4E4BC;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
}

.recipe-tile .reset-image-container p {
    color: #A6192E;
    font-size: 1.1rem;
    text-align: center;
}

main.recipe-page-main #recipe-title {
    color: #A6192E;
    font-size: 2.2em;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    scroll-margin-top: var(--header-height);
}

.recipe-main-image-container {
    background: #F4E4BC;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 4px;
}

#recipe-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;        /* zorgt dat de hele foto zichtbaar blijft */
    object-position: center;
}

.recipe-main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
}

.recipe-section {
    background-color: #F4E4BC;
    padding: 20px;
    margin-bottom: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0D0A8;
    width: 100%;
}

.recipe-section h2 {
    color: #A6192E;
    font-size: 1.6em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #DA4;
    background-image: none;
    cursor: default;
    transform: none;
}

.recipe-section ul {
    list-style: none;
    padding: 0;
}

.recipe-section ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 1.1em;
    color: #333;
}

.recipe-section ul li::before {
    content: "•";
    color: #A6192E;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

#nutrition-info {
    width: 100%;
}

#nutrition-info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#nutrition-info th, #nutrition-info td {
    padding: 10px;
    border: 1px solid #DA4;
    text-align: left;
}

#nutrition-info th {
    background-color: #A6192E;
    color: #F4E4BC;
    font-weight: bold;
}

#nutrition-info td {
    background-color: #fff;
}

#portion-controls-container {
    width: 100%;
}

.portion-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

.portion-controls input[type="number"] {
    flex-grow: 1;
    min-width: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
}

.portion-controls button {
    background-color: #A6192E;
    color: #F4E4BC;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.portion-controls button:hover {
    background-color: #8C1525;
}

footer {
    background-color: #A6192E;
    color: #F4E4BC;
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    margin-top: auto;
}

#copyright-info p {
    margin: 0;
    font-size: 0.9em;
}

#generate-shopping-list:hover, #clear-planner:hover, #export-shopping-list:hover, #add-custom-item-button:hover {
    background: #F4E4BC;
    color: #fff;
}

#list-actions-row {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    justify-content: center; 
    max-width: 340px;
    margin: 0 auto 1rem auto;
}

#list-actions-row button {
    flex: 1 1 45%;
    margin: 0.5rem 0;
    width: auto;
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    background-color: #A6192E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 45px;
}

.recipe-checkbox {
    margin-left: 0.5rem;
}

.remove-ingredient {
    margin-left: 1rem;
    padding: 0.3rem 0.6rem;
    background: #dc3545;
    color: #F4E4BC;
    border: none;
    cursor: pointer;
}

.remove-ingredient:hover {
    background: #c82333;
}

.strikethrough {
    text-decoration: line-through;
}

.ingredient-checkbox {
    margin-right: 0.5rem;
}

#selected-recipes-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

#selected-recipes-list li {
    padding: 0.5rem 0;
}

#selected-recipes-list a {
    color: #dc3545;
    text-decoration: none;
    margin-left: 0.5rem;
}

#selected-recipes-list a:hover {
    text-decoration: underline;
}

.portion-input {
    width: 80px;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.remove-day {
    padding: 0.3rem 0.6rem;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
}

.remove-day:hover {
    background: #c82333;
}

#selected-recipes.scrollmenu {
    width: 100%;
    max-width: 280px;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0 auto;
    display: none;
}

.scrollmenu {
    display: block;
    white-space: normal;
    max-width: 280px;
}

.recipe-scrollbox li {
    padding: 5px;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4;
    max-width: 100%;
}

.divider {
    height: 2px;
    background-color: #A6192E;
    margin: 20px auto;
    border-radius: 3px;
}

.shopping-list-container {
    border: 2px solid #A6192E;
    padding: 1rem;
    background-image: url(../assets/bamboo-line.png);
    border-radius: 10px;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#shopping-list {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    box-sizing: border-box;
}

#shopping-list.active {
    display: flex;
    flex-direction: column;
}

#shopping-list.fullscreen {
    padding: 10px;
}

#shopping-list h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: #A6192E;
    text-align: center;
}

#shopping-list-items {
    flex: 1;
    width: 100%;
    max-width: 340px;
    overflow-y: auto;
    padding-bottom: 70px;
}

#shopping-list-items li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    justify-content: space-between;
}

#shopping-list-items .ingredient-checkbox {
    width: 20px;
    height: 20px;
}

#shopping-list-items .ingredient-amount {
    width: 50px;
    padding: 0.3rem;
    font-size: 0.9rem;
    border: 1px solid #A6192E;
    border-radius: 5px;
}

#shopping-list-items .remove-ingredient {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    background-color: #A6192E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#shopping-list-items .clickable {
    cursor: pointer;
}

#page-title {
    font-size: 1.5rem;
    color: #A6192E;
    text-align: center;
    margin: 1rem 0;
}

#back-to-planner {
    display: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #A6192E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 auto 1rem auto;
    width: fit-content;
}

#shopping-list.fullscreen #back-to-planner {
    display: block;
}

.input-row {
    display: flex;
    max-width: 340px;
    margin: 0 auto 1rem auto;
    gap: 3px;
}

.input-row input#custom-item-amount {
    width: 40px;
    padding: 0.3rem;
    font-size: 0.9rem;
    border: 1px solid #A6192E;
    border-radius: 5px;
    text-align: left;
}

.input-row input#custom-item-unit {
    width: 65px;
    padding: 0.3rem;
    font-size: 0.9rem;
    border: 1px solid #A6192E;
    border-radius: 5px;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.input-row input#custom-item-name {
    flex: 1;
    padding: 0.3rem;
    width: auto;
    font-size: 0.9rem;
    border: 1px solid #A6192E;
    border-radius: 5px;
    -webkit-appearance: none;
    outline: none;
    pointer-events: auto !important;
}

.input-row input#custom-item-name:focus {
    border-color: #A6192E;
    box-shadow: 0 0 5px rgba(166, 25, 46, 0.5);
    -webkit-tap-highlight-color: transparent;
}

.input-row input::placeholder {
    color: #A6192E;
    opacity: 0.6;
}

#list-actions-row button:hover {
    background-color: #8B1626;
}

#generate-shopping-list, #clear-plan {
    display: block;
    margin: 0.5rem auto;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #A6192E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#generate-shopping-list:hover {
    background-color: #F4E4BC;
}

#back-to-planner:hover {
    background-color: #F4E4BC;
}

#custom-item-amount {
    text-align: right;
    width: 60px;
}

/* ====================== MAALTIJDPLANNER SPECIFIEKE STIJLEN ====================== */
#meal-planner {
    margin: 2rem 0;
    padding: 1rem;
    margin-top: 10px;
    margin-left: 2px;
}

#week-select {
    width: 100%;
    margin-top: 16px;
    max-width: 350px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 18px;
    font-weight: bold;
    background-image: url(../assets/bamboo-line.png);
    border-radius: 10px;
    border: 2px solid #A6192E;
}

#week-select:focus {
    border: 2px solid #A6192E;
    outline: none;
}

#week-planner {
    max-width: 100%;
    display: grid;
    gap: 1rem;
}

.day {
  border: 2px solid #A6192E;
  padding: 1rem;
  background-image: url(../assets/bamboo-line.png);
  background-size: cover; /* optioneel, zodat de afbeelding netjes schaalt */
  border-radius: 10px;
  max-width: 768px;       /* maximaal 768px breed */
  width: 100%;            /* vult altijd de beschikbare ruimte */
  margin: 0 auto;         /* centreert op grotere schermen */
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recipe-select {
    width: 100% !important;
    max-width: 320px !important;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    box-sizing: border-box;
    font-size: 0.9em;
}

select.recipe-select option {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    max-width: 150px !important;
    font-size: 0.9em;
}

.portions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portions-group label {
    font-size: 0.9em;
    color: #A6192E;
}

.portions-input {
    width: 100% !important;
    max-width: 80px !important;
    padding: 0.5rem;
    font-size: 0.9em;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.selected-recipe a {
    color: #007bff;
    text-decoration: none;
    width: 200px;
}

.recipe-tile input[type="checkbox"] {
  vertical-align: middle;   /* zet checkbox in het midden van de tekstlijn */
  margin-right: 0.4em;      /* optioneel: ruimte tussen boxje en tekst */
}

/* ====================== MOBIEL ====================== */
@media (max-width: 600px) {
    :root {
        --header-height: 100px;
    }

    header {
        height: var(--header-height);
        padding: 8px 10px;
        flex-direction: row;
        justify-content: center;
        gap: 5px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header .logo {
        height: 50px;
        margin-right: 10px;
    }

    .back-button {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .ingredient-amount {
        width: 40px;
        padding: 2px;
        box-sizing: border-box;
    }

    main {
        padding: 10px;
    }

    .search-bar {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
        background-color: #A6192E;
        color: #F4E4BC;
    }

    .search-bar input {
        padding: 10px;
        font-size: 1em;
    }

    .recipe-week {
        padding: 15px;
        margin-bottom: 20px;
    }

    .recipe-week h2 {
        font-size: 1.5em;
    }

    .recipe-week .recipe-image-container {
        height: 150px;
    }

    .recipe-week .recipe-tile h3 {
        font-size: 1.2em;
        height: 2.8em;
    }

    .category-section {
        margin-bottom: 10px;
    }

    .category-section h2 {
        font-size: 1.3em;
        padding: 8px 15px;
        border-radius: 6px;
        background-image: url(../assets/bamboo-line.png);
        scroll-margin-top: var(--header-height);
    }

    .category-section h2 a {
        padding: 3px 0;
    }

    .recipe-grid, .recipe-grid.all-recipes {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .recipe-tile .recipe-image-container {
        height: 110px;
    }

    .recipe-tile h3 {
        font-size: 0.95em;
        height: 4.5em;
        margin: 5px;
        color: #A6192E;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    main.recipe-page-main #recipe-title {
        font-size: 1.8em;
        scroll-margin-top: var(--header-height);
    }

    .recipe-main-image-container {
        height: 200px;
    }

    .recipe-section {
        padding: 15px;
        margin-bottom: 0;
    }

    .recipe-section h2 {
        font-size: 1.4em;
    }

    .recipe-section ul li {
        font-size: 1em;
    }

    .portion-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .portion-controls input[type="number"], .portion-controls button {
        width: 100%;
        min-width: unset;
    }

    footer {
        padding: 15px;
    }

    #shopping-list {
        margin-top: 2rem;
    }
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}





/* === MOOIE BEREIDING ZONDER BULLETS === */
.bereiding-inhoud h3,
.bereiding-inhoud h4 {
  margin: 2em 0 1em 0;
  font-weight: bold;
}

.bereiding-inhoud h3 {
  font-size: 1.9em;
  color: #A6192E;
}

.bereiding-inhoud h4 {
  font-size: 1.5em;
  margin-top: 1.8em;
}

.bereiding-inhoud h4 span {
  color: #A6192E;
}

/* Optioneel: een mooi rood bolletje vóór subkopjes */
/*.bereiding-inhoud h4 span::before {*/
/*  content: "• ";*/
/*  font-weight: bold;*/
/*}*/

.bereiding-inhoud p {
  margin: 0.9em 0;
  line-height: 1.7;
  padding-left: 0;
}

/* Zorgt voor nette witruimte na het oorsprongsverhaal*/ 
.bereiding-inhoud p + h3,
.bereiding-inhoud p + h4 {
  margin-top: 2em;
}






input, textarea, select {
  background-color: #ffffff;   /* altijd wit */
  background-image: none;      /* geen foto of patroon */
  color: #000000;              /* zwarte tekst voor contrast */
  -webkit-appearance: none;    /* schakelt standaard browserstijl uit (Safari/Chrome) */
  -moz-appearance: none;       /* voor Firefox */
  appearance: none;
  }
}


/* === MOOIERE KNOPPEN VOOR DAGPLANNING === */
.button-group {
    display: flex;
    gap: 8px;                    /* ruimte tussen de twee knoppen */
    margin-top: 6px;
}

.button-group button,
.view-recipe,
.remove-button {
    width: 120px !important;      /* precies 80px */
    height: 30px !important;     /* precies 20px */
    padding: 0 !important;
    line-height: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* Bekijk Recept – jouw rood */
.view-recipe {
    background-color: #A6192E !important;
}
.view-recipe:hover {
    background-color: #8b1426 !important;
}

/* Verwijder – iets donkerder */
.remove-button {
    background-color: #A6192E !important;
}
.remove-button:hover {
    background-color: #8b1426 !important;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;     /* ← dit centreert de knoppen horizontaal */
    margin-top: 8px;
    margin-bottom: 8px;
}

/* MAAKT "voor de kip:" AUTOMATISCH MOOI VET, ROOD EN MET RUIMTE */
#ingredients-list strong,
.ingredienten strong,
ul strong {
    color: #A6192E !important;        /* jouw mooie rode kleur */
    font-size: 1.2em !important;
    font-weight: bold !important;
    display: block !important;
    margin: 20px 0 10px 0 !important;
}

#ingredients-list strong {
    color: #A6192E;
    font-weight: bold;
    font-size: 1.2em;
    display: block;
    margin: 20px 0 8px 0;
}

.ingredient-spacer {
    margin: 8px 0;
    height: 1px;
}

/* FIX: Zorg dat de planner-vinkjes altijd zichtbaar zijn – ook na "wis planning" */
.recipe-checkbox {
    position: relative !important;
    width: 18px !important;
    height: 18px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    margin-right: 8px !important;
}

/* Extra zekerheid voor als er ergens een globale regel overheen gaat */
input.recipe-checkbox[type="checkbox"] {
    display: inline-block !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
}

@media (min-width: 480px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
}



/* vanaf 1024px breedte (desktop) */
@media (min-width: 768px) {
    .recipe-grid, .recipe-grid.all-recipes {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    

@media (min-width: 1024px) {
    .recipe-grid, .recipe-grid.all-recipes {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

}

/* Mobiel: kleine telefoons */
@media (max-width: 479px) {
  .recipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Grote telefoons / kleine tablets (480–767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* compact maar overzichtelijk */
    gap: 10px;
  }
}


    
/* === MOOIE BEREIDING ZONDER BULLETS === */
.bereiding-inhoud h3,
.bereiding-inhoud h4 {
  margin: 2em 0 1em 0;
  font-weight: bold;
}

.bereiding-inhoud h3 {
  font-size: 1.9em;
  color: #A6192E;
}

.bereiding-inhoud h4 {
  font-size: 1.5em;
  margin-top: 1.8em;
}

.bereiding-inhoud h4 span {
  color: #A6192E;
}

/* Optioneel: een mooi rood bolletje vóór subkopjes */
/*.bereiding-inhoud h4 span::before {*/
/*  content: "• ";*/
/*  font-weight: bold;*/
/*}*/

.bereiding-inhoud p {
  margin: 0.9em 0;
  line-height: 1.7;
  padding-left: 0;
}

/* Zorgt voor nette witruimte na het oorsprongsverhaal*/ 
.bereiding-inhoud p + h3,
.bereiding-inhoud p + h4 {
  margin-top: 2em;
}

.auto-added { color: #d32f2f !important; font-weight: bold; }


}

.ed-button {
    background-color: #A6192E;
    color: #F4E4BC;
    border: none;
    padding: 5px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin: 5px auto; /* centreert horizontaal */
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ed-button:hover {
    background-color: #8F1527; /* iets donkerder rood */
    transform: translateY(-2px);
}

.ed-button:active {
    transform: translateY(0);
}

