:root {
    --bg-color: #fdf2f7;          
    --text-color: #5c3a4d;        
    --accent-color: #e69ece;      
    --accent-hover: #d182b6;      
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --header-height: 110px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* Underoverskrift under en sektionstitel */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-top: -30px;
    margin-bottom: 40px;
    color: var(--accent-hover);
}

.divider {
    border: 0;
    height: 1px;
    background-color: var(--accent-color);
    margin: 60px auto;
    width: 50%;
}

/* --- Sticky Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: var(--header-height);
    box-shadow: 0 2px 15px rgba(230, 158, 206, 0.2); 
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 90px; 
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 20px;
}

.tab-link {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 15px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.tab-link:hover {
    color: var(--accent-color);
}

.tab-link.active {
    border-bottom: 2px solid var(--accent-color);
    font-weight: 700;
    color: var(--accent-color);
}

/* --- Fane Indhold --- */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Billeder og Placeholders --- */
.placeholder {
    width: 100%;
    object-fit: cover;
    background-color: #fce8f1; 
    border-radius: 6px;
}

.clickable-img {
    cursor: pointer;
}

/* --- Forside Hero --- */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(92, 58, 77, 0.3); 
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 60px;
    border-radius: 6px;
    color: var(--text-color);
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(230, 158, 206, 0.3); 
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* Fremhævet linje i hero ("100% fri for gluten og laktose") */
.hero-highlight {
    margin-top: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-hover);
}

/* Leverings- og afhentningstekst under hero-billedet */
.hero-info {
    background: var(--white);
    text-align: center;
    padding: 22px 20px;
    box-shadow: 0 4px 15px rgba(230, 158, 206, 0.15);
}

.hero-info p {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-hover);
    margin: 4px 0;
}

/* --- Grid System --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- Cards --- */
.card {
    position: relative;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(230, 158, 206, 0.15); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(230, 158, 206, 0.3);
}

.card img {
    height: 250px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Skjuler tomme Stripe-knapper for at undgå fejl i visningen indtil koden er sat ind */
stripe-buy-button {
    display: block;
    margin-top: 15px;
}

/* --- Om Mig --- */
.om-os-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.om-os-tekst p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Hilsen ("Velkommen") øverst i Om mig */
.om-hilsen {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.om-os-billede img {
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(230, 158, 206, 0.25);
}

/* --- Praktisk info --- */
.praktisk-container {
    max-width: 1000px;
}

.praktisk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.praktisk-kort {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(230, 158, 206, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.praktisk-kort:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(230, 158, 206, 0.3);
}

.praktisk-kort h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--accent-hover);
}

.praktisk-kort p {
    font-size: 1.05rem;
}

.praktisk-kort a {
    color: var(--accent-hover);
    font-weight: 700;
}

/* --- Produktinfo: køl/frys-badge, fakta og allergener --- */
.opbevaring-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(92, 58, 77, 0.2);
}

.produkt-fakta {
    margin: 15px 0;
    text-align: left;
}

.fakta-linje {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #f2dae8;
    font-size: 0.95rem;
}

.fakta-label {
    font-weight: 700;
    color: var(--accent-hover);
    white-space: nowrap;
}

/* Allergener markeres STORT og tydeligt */
.allergen-titel {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 6px;
    color: var(--text-color);
}

.allergener {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    color: #b3261e;
}

/* Markering af felter der mangler rigtig tekst fra Jannie */
.udfyld {
    color: #b3261e;
    font-style: italic;
    font-size: 0.85rem;
}

/* --- Kontakt Formular --- */
.contact-container {
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(230, 158, 206, 0.15);
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--accent-hover);
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #f2dae8; 
    border-radius: 4px;
    background-color: #fdf2f7;
    color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(230, 158, 206, 0.5);
}

.submit-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
}

/* --- Modal (Popup til ingredienser) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(92, 58, 77, 0.6); /* Mørk blomme overlay */
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.close-btn {
    position: absolute;
    top: 15px; 
    right: 25px;
    color: var(--accent-hover);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.modal-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* --- Responsivitet --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .om-os-container {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 25px;
    }
}
