/* Opdateret Farvepalet (Mere elegant):
   Hovedfarve (Honning/Guld):    #DAA520 (Goldenrod - dybere, varm guld)
   Sekundær (Skovgrøn):          #286B52 (Mørk, dæmpet skovgrøn)
   Accent (Dybere Orange/Rust):  #B87333 (Bronze - rig, jordnær orange)
   Tekst:                        #343A40 (Mørk koksgrå - blødere end sort)
   Baggrund:                     #FBF9F6 (Meget lys creme/off-white)
   Let grå (border/placeholder): #EAEAEA
*/

:root {
    --primary-color: #DAA520; /* Dybere guld/honning */
    --secondary-color: #286B52; /* Dæmpet skovgrøn */
    --accent-color: #B87333; /* Rust/Bronze */
    --text-color: #343A40; /* Mørk koksgrå */
    --background-color: #FBF9F6; /* Meget lys creme */
    --light-grey: #EAEAEA; /* Til border/placeholder */
    --input-background: #E9E9E9;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --error-color: #D32F2F; /* Klar rød farve til fejlmeddelelser */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- GENEREL KNAP-STYLING (NY) --- */
.btn {
    display: inline-block; /* Sørger for at knappen kan centreres og have padding */
    background-color: var(--secondary-color);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #3a856a;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* --- Header Sektion --- */
header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3a856a 100%);
    color: white;
    padding: 5em 0;
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

header h1 {
    font-family: 'Merriweather', serif;
    margin: 0;
    font-size: 4.2em;
    letter-spacing: 1.5px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.5em;
    margin-top: 15px;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1000px;
    margin: 3em auto;
    padding: 0 30px;
}

section {
    background-color: white;
    padding: 3.5em;
    margin-bottom: 3em;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

section:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

section h2 {
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
    font-size: 2.5em;
    margin-bottom: 0.8em;
    position: relative;
    padding-bottom: 0.5em;
    text-align: center;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

section p {
    margin-bottom: 1.3em;
    font-size: 1.1em;
}

.image-placeholder {
    background-color: var(--light-grey);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2em;
    border-radius: var(--border-radius);
    margin-top: 2em;
    margin-bottom: 2.5em;
    border: 1px dashed #ccc;
    overflow: hidden;
}
.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    transition: transform 0.5s ease;
}

.image-placeholder:hover img {
    transform: scale(1.03);
}

ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

ul li {
    background-color: var(--background-color);
    padding: 25px;
    border-left: 7px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease;
}

ul li:hover {
    border-left-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

ul li strong {
    color: var(--accent-color);
    font-size: 1.4em;
    display: block;
    margin-bottom: 0.6em;
}

ul li p {
    font-size: 1em;
}

.local-beekeeper {
    background: linear-gradient(135deg, var(--primary-color) 0%, #EAA23A 100%);
    color: white;
    text-align: center;
    padding: 4em;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3em;
    position: relative;
    overflow: hidden;
}

.local-beekeeper h2 {
    color: white;
    font-family: 'Merriweather', serif;
    font-size: 2.8em;
    margin-bottom: 0.6em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.local-beekeeper h2::after {
    content: none;
}

.local-beekeeper p {
    font-size: 1.3em;
    margin-bottom: 1.8em;
    opacity: 0.95;
}

.local-beekeeper .btn {
    display: inline-block;
    background-color: white;
    color: var(--accent-color);
    padding: 18px 35px;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.local-beekeeper .btn:hover {
    background-color: #fdfdfd;
    color: #A06028;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

footer {
    background-color: #2F3640;
    color: white;
    text-align: center;
    padding: 2.5em 0;
    font-size: 0.95em;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #3a856a;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 3.2em;
    }
    header p {
        font-size: 1.2em;
    }
    section {
        padding: 2.5em;
    }
    section h2 {
        font-size: 2em;
    }
    .local-beekeeper {
        padding: 2em;
    }
    .local-beekeeper p {
        font-size: 1.05em;
    }
    .local-beekeeper h2 {
        font-size: 2.2em;
    }
    .local-beekeeper .btn {
        padding: 14px 28px;
        font-size: 1.05em;
    }
    #scrollToTopBtn {
        padding: 12px 16px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 3em 0;
    }
    header h1 {
        font-size: 2.5em;
    }
    header p {
        font-size: 1em;
    }
    section {
        padding: 1.8em;
        margin-bottom: 2em;
    }
    section h2 {
        font-size: 1.8em;
    }
    ul {
        grid-template-columns: 1fr;
    }
    .local-beekeeper {
        padding: 1.5em;
        margin: 1.5em auto;
    }
}

.current-month-info {
    background-color: var(--secondary-color);
    color: white;
    padding: 2.5em;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2.5em;
}

.current-month-info h3 {
    font-family: 'Merriweather', serif;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 0.8em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.current-month-info p {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 0;
}

#fullCalendarContent ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2em;
}

#fullCalendarContent ul li {
    background-color: var(--background-color);
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-left-color 0.3s ease;
}

#fullCalendarContent ul li:hover {
    transform: translateY(-3px);
    border-left-color: var(--accent-color);
}

#fullCalendarContent ul li strong {
    color: var(--secondary-color);
    font-size: 1.2em;
    display: block;
    margin-bottom: 0.5em;
}

#fullCalendarContent ul li p {
    font-size: 0.95em;
    margin-bottom: 0;
}

.current-month-frontpage-info {
    background-color: white;
    padding: 2.5em;
    margin: 3em auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--light-grey);
}

.current-month-frontpage-info h2 {
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 0.8em;
    position: relative;
    padding-bottom: 0.5em;
    display: inline-block;
}

/* RETTET: Sørger for at stregen er kort og centreret som de andre */
.current-month-frontpage-info h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px; /* Samme faste bredde som de andre overskrifter */
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.current-month-frontpage-info p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 1.5em;
}

.current-month-frontpage-info .small-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.current-month-frontpage-info .small-btn:hover {
    background-color: #C28B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .current-month-frontpage-info {
        padding: 1.8em;
        margin: 2em auto;
    }
    .current-month-frontpage-info h2 {
        font-size: 1.8em;
    }
    .current-month-frontpage-info p {
        font-size: 1em;
    }
    .current-month-frontpage-info .small-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

#order-form {
    background-color: white;
    padding: 3em;
    border: 1px solid var(--light-grey);
}

#order-form > p {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em;
    color: #555;
}

#order-form h2 {
    text-align: center;
}

#order-form h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#order-form h3 {
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    font-size: 1.6em;
    margin-top: 2em;
    margin-bottom: 1.5em;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 0.6em;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group::after {
    content: none;
}

#honey-order-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1em;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.product-item label {
    font-weight: 600;
    font-size: 1.05em;
    color: var(--text-color);
    margin-bottom: 0.25em;
}

#honey-order-form input,
#honey-order-form textarea {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    background-color: var(--input-background);
    box-sizing: border-box;
    border-bottom: 2px solid #A9A9A9;
    transition: border-color 0.3s ease;
}

#honey-order-form textarea {
    resize: vertical;
    min-height: 120px;
}

#honey-order-form input:focus,
#honey-order-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

#honey-order-form .form-group.is-invalid label {
    color: var(--error-color);
    font-weight: 600;
}

#honey-order-form .form-group.is-invalid input,
#honey-order-form .form-group.is-invalid textarea {
    border-bottom-color: var(--error-color);
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5em;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 1rem 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--light-grey);
}

.product-price {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0;
    display: block;
}

.product-item select {
    width: 80px;
    text-align: center;
    padding: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    margin-left: 1rem;
}

.total-price-container {
    text-align: right;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 1.5em;
    margin-bottom: 2em;
    padding-top: 1.5em;
    border-top: 2px solid var(--light-grey);
}

.form-submit {
    margin-top: 1em;
    align-items: flex-start;
}

.form-submit .btn {
    width: auto;
}

.form-feedback-message {
    margin-top: 15px;
    font-size: 1em;
    font-weight: bold;
}

@media (max-width: 768px) {
    .form-row-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .product-item select {
        width: 100%;
        margin-left: 0;
    }
}

.back-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background-color: #3a856a;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

#recipe-generator {
    text-align: center;
}

#recipe-generator h2 {
    text-align: center;
}

#recipe-generator h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#recipe-generator p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

.recipe-input-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2.5em;
    flex-wrap: wrap;
}

.recipe-input-group input {
    flex-grow: 1;
    min-width: 250px;
    max-width: 450px;
    padding: 14px 20px;
    border: 1px solid var(--light-grey);
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.recipe-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.recipe-input-group .btn {
    background-color: var(--primary-color);
    flex-shrink: 0;
}

.recipe-input-group .btn:hover:not(:disabled) {
    background-color: #C28B00;
}

.recipe-input-group .btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#recipe-result {
    margin-top: 2em;
    padding: 2.5em;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    text-align: left;
    min-height: 100px;
    border: 1px solid var(--light-grey);
    transition: all 0.5s ease;
    display: none;
}

.recipe-title {
    font-family: 'Merriweather', serif;
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-top: 0;
}
.recipe-description {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5em;
}

.recipe-ingredients, .recipe-instructions {
    padding-left: 20px;
    margin-bottom: 1.5em;
}
.recipe-ingredients li, .recipe-instructions li {
    margin-bottom: 0.8em;
}
.recipe-error {
    color: var(--error-color);
    font-weight: bold;
    text-align: center;
    padding: 1em;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2em auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .back-button {
        padding: 8px 16px;
        font-size: 0.85em;
    }
}
@media (max-width: 600px) {
    .recipe-input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- Styling til Info-ikoner i bestillingsformular --- */
.product-details {
    position: relative;
}

.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin-left: 8px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.info-icon:hover {
    transform: scale(1.1);
}

.tooltip-content {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 0;
    width: 280px;
    padding: 15px;
    background-color: #343A40;
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 10;
    font-size: 0.9em;
    font-style: normal;
    font-weight: normal;
}

.tooltip-content p {
    margin: 0;
    line-height: 1.5;
}

.product-details.active .tooltip-content {
    display: block;
}

@media (hover: hover) {
    .product-details:hover .tooltip-content {
        display: block;
    }
}