:root {
    --powder: #f4ebe5;
    --rose: #ecd4d0;
    --grey: #616161;
    --light-bg: #f8f9fa;
    --font: 'Playfair Display';
}

html {
    background: var(--light-bg);
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

body {
    margin: 0;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(150deg, var(--rose) 30%, var(--light-bg) 30%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }

main {
    position: absolute;
    background: linear-gradient(60deg, var(--powder) 22%, transparent 22%);
    background-attachment: fixed;
    min-height: 100dvh;
    min-width: 100%;
    z-index: 1000;
}

.container {
    margin-top: 130px;
    max-width: 1320px;
    width: 100%;
    margin-inline: auto;
}

.flex-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 0.5rem;
}




.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}



.card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0 0.5rem;
    margin-bottom: 2rem;
}

    .card h1 {
        margin-bottom: 2.5rem;
        font-size: 2rem;
        color: var(--grey);
    }

    .card article {
        font-size: 1.1rem;
    }

/*td img {
    margin: 0 5%;
    max-width: 90%;
}*/

td p {
    margin: 0 5%;
    max-width: 90%;
}

.card-nav {
    display: flex;
    border-bottom: 1px solid var(--powder);
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
}

.cardnav-link {
    text-decoration: none;
    color: var(--grey);
    border-radius: 0.25rem 0.25rem 0 0;
    border-top: 1px solid var(--powder);
    border-left: 1px solid var(--powder);
    border-right: 1px solid var(--powder);
    padding: 0.5rem 2rem;
    cursor: pointer;
}

    .cardnav-link:hover {
        background-color: var(--light-bg);
    }

    .cardnav-link.active {
        background-color: var(--powder);
    }

        .cardnav-link.active.home {
            background-color: transparent;
        }

blockquote {
    font-style: italic;
    color: var(--grey);
    font-size: 2rem;
    font-weight: 700;
    border-left: 4px solid var(--rose);
    padding-left: 1rem;
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 40px;
    margin-inline-end: 40px;
    unicode-bidi: isolate;
}

@media (max-width: 768px) {
    .page-content table,
    .page-content tbody,
    .page-content tr,
    .page-content td {
        display: block;
        width: 100%;
    }

    .page-content td {
        padding: 0;
        border: 0;
    }
}

.form {
    width:100%;
}

.form-group {
    margin-bottom: 1rem;
}

.form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--grey);
}

.form input[type="text"],
.form input[type="number"],
.form input[type="password"],
.form input[type="file"],
.form input:not([type]),
.form select{
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--grey);
    border-radius: 6px;  
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

    .form input:focus,
    .form select:focus {
        outline: none;      
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

    .form-check label {
        margin: 0;
        cursor: pointer;
    }

.field-validation-error {
    display: block;
    margin-top: 0.35rem;
    color: #dc2626;
    font-size: 0.85rem;
}

.input-validation-error {
    border-color: #dc2626 !important;
}

.validation-summary-errors {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Table */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

    .table thead th {
        text-align: left;
        letter-spacing: 0.05em;
        color: var(--grey);
        padding: 12px 16px;
        border-bottom: 2px solid var(--grey);
    }

    .table tbody td {
        padding: 14px 16px;
        border-bottom: 1px solid var(--grey);
    }

    .table tbody tr:nth-child(even) {
        background: var(--light-bg);
    }

    .table tbody tr:hover {
        background: var(--powder);
    }


img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #0F6CBD;
    color: #ffffff;
    border: 1px solid #0F6CBD;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-primary:hover {
        background-color: #115EA3;
        border-color: #115EA3;
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-danger {
    background-color: #C50F1F;
    color: #ffffff;
    border: 1px solid #C50F1F;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-danger:hover {
        background-color: #A4262C;
        border-color: #A4262C;
    }

    .btn-danger:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(150deg, var(--rose) 30%, var(--light-bg) 30% );
    background-position: 0 calc(-1 * var(--menu-top));
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 1001;
}

    nav > .container {
        margin-top: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        list-style: none;
        display: flex;
        gap: 1rem;
        margin: 0;
        margin-left: auto;
        padding: 0;
    }

        nav ul a {
            text-decoration: none;
            color: var(--grey);
            font-size: 1.2rem;
        }

.navbar-brand {
    font-family: var(--font), serif;
    font-size: 3.75rem;
    color: var(--grey);
    text-decoration: none;
    white-space: nowrap;
}

/* Container omkring menu + burger, så dropdown kan placeres relativt hertil */
nav > .container > div:last-child {
    position: relative;
}

/* Burger-knap: skjult på desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

    .menu-toggle span {
        display: block;
        width: 28px;
        height: 2px;
        background: var(--grey);
        transition: transform .3s ease, opacity .3s ease;
    }

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .flex-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 992px) {

    nav ul a {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .menu {
        --menu-top: 100px;
        display: none;
        position: fixed;
        top: var(--menu-top);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1.5rem;
        background: linear-gradient(150deg, var(--rose) 30%, var(--light-bg) 30% );
        background-position: 0 calc(-1 * var(--menu-top));
        background-size: 100% 100vh;
        background-repeat: no-repeat;
        padding: 1rem 4rem 2rem 4rem;
        box-shadow: 0 24px 24px -10px rgba(0, 0, 0, .15);
    }

        .menu.open {
            display: flex;
            animation: menu-drop .3s ease;
        }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}



@media (max-width: 600px) {
    .navbar-brand {
        font-size: 2.5rem;
    }

    /*.card{
        margin: 0 1rem;
    }*/
}

@keyframes menu-drop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
