:root {
    --bg-color: #fffdf7;
    --text-color: #4f3d35;
    --light-text: #9d8108;
    --accent: #ecb914;
    --accent-dark: #9d8108;
    --accent-soft: #f6d579;
    --taupe: #cbb8a0;
}

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

body {
    font-family: "NeuzeitSLT-Book", "Neuzeit Grotesk", "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-wrapper {
    max-width: 2340px;
    margin: 0 auto;
    padding: 40px;
}

/* HEADER & NAVIGATION */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 80px;
    padding-top: 20px;
}

.nav-menu {
    justify-self: center;
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
}

.logo h1 {
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--light-text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-color);
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px; /* Aligns visually with the Om os link */
    background-color: var(--bg-color);
    min-width: 140px;
    padding: 15px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

.dropdown-content a {
    display: block;
    padding: 8px 15px;
    text-transform: none; /* Mere læsbart som undermenu */
    letter-spacing: 0.5px;
}

/* SECTIONS */
.section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.section.active {
    display: block;
}

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

/* GALLERY GRID (Used on Forside) */
.gallery-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 160px;
    width: 100%;
}

.art-item {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.art-item:hover {
    transform: translateY(-5px);
}

.art-img-box {
    width: 100%;
    height: 85vh;
    max-height: 1170px;
    margin-bottom: 24px;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
}

.art-meta {
    text-align: center;
}

.art-meta h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.art-meta p {
    font-size: 14px;
    color: var(--light-text);
}

/* EXHIBITION GRID (Used on Galleri) */
.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 60px;
    width: 100%;
}

.exhibition-item {
    cursor: pointer;
    opacity: 0;
    transform: translateX(80px);
    animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.exhibition-item:nth-child(1) { animation-delay: 0.1s; }
.exhibition-item:nth-child(2) { animation-delay: 0.2s; }
.exhibition-item:nth-child(3) { animation-delay: 0.3s; }
.exhibition-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.exhibition-img-box {
    width: 100%;
    aspect-ratio: 4/3; /* Lige store billeder uanset original format */
    background-size: cover; /* Sørg for de udfylder rammen */
    background-position: center;
    margin-bottom: 16px;
    transition: transform 0.5s ease;
}

.exhibition-img-wrap {
    width: 100%;
    overflow: hidden;
}

.exhibition-item:hover .exhibition-img-box {
    transform: scale(1.03);
}

.exhibition-meta {
    text-align: left;
}

.exhibition-meta h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
}

.exhibition-meta p {
    font-size: 14px;
    color: var(--light-text);
}

/* TEXT CONTAINER (Om os / Tilmeld) */
.text-container {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

.text-container h2 {
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -1px;
}

.price-page {
    max-width: 900px;
}

/* PRICE TABLE (Priser) */
.price-table-card {
    border: 1px solid #e8dcc9;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-color);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.price-table thead th {
    text-align: left;
    background: var(--accent-soft);
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 24px;
}

.price-table tbody td {
    padding: 18px 24px;
    border-top: 1px solid #f0e4cf;
    color: var(--text-color);
}

.price-table tbody tr:first-child td {
    border-top: none;
}

.price-table tbody td:last-child {
    color: var(--light-text);
}

/* MAP CARD (Kontakt) */
.map-card {
    border: 1px solid #e8dcc9;
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: #fdf6e6;
}

.map-card iframe {
    display: block;
    filter: grayscale(15%) contrast(1.02);
}

.map-card-link {
    display: block;
    padding: 14px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-top: 1px solid #e8dcc9;
    transition: background 0.2s;
}

.map-card-link:hover {
    background: #f3e9d4;
}

.map-placeholder {
    padding: 40px 24px;
    text-align: center;
}

.map-placeholder p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 16px;
}

.map-consent-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-color);
    border: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-consent-btn:hover {
    background: var(--accent-dark);
}

/* COOKIE CONSENT BANNER */
.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: var(--bg-color);
    border-top: 1px solid #e8dcc9;
    box-shadow: 0 -6px 24px rgba(79,61,53,0.12);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.cookie-banner-text {
    font-size: 14px;
    color: var(--text-color);
    max-width: 640px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--text-color);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 22px;
    border: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--text-color);
}

.cookie-btn-accept:hover {
    background: var(--accent-dark);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--taupe);
}

.cookie-btn-reject:hover {
    background: #f3e9d4;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* FORMS */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-row input {
    flex: 1;
}

.minimal-form input[type="text"],
.minimal-form input[type="email"],
.minimal-form input[type="tel"] {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid var(--taupe);
    background: transparent;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-color);
    outline: none;
    transition: border-bottom-color 0.3s;
}

.minimal-form input:focus {
    border-bottom-color: var(--text-color);
}

/* CUSTOM CHECKBOXES */
.form-products h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--light-text);
    margin-bottom: 15px;
}

.check-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid var(--taupe);
    border-radius: 50%;
}

.check-container:hover input ~ .checkmark {
    border-color: var(--text-color);
}

.check-container input:checked ~ .checkmark {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked ~ .checkmark:after {
    display: block;
}

.check-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* BUTTONS */
.submit-btn {
    margin-top: 20px;
    padding: 15px 30px;
    background: var(--text-color);
    color: #fff;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.8;
}

.form-msg {
    margin-top: 15px;
    font-size: 14px;
}

.form-msg.success { color: #238636; }
.form-msg.error { color: #e3000f; }

@media (max-width: 768px) {
    .site-wrapper { padding: 20px; }
    .header { grid-template-columns: 1fr; justify-items: flex-start; gap: 20px; }
    .nav-menu { justify-self: flex-start; }
    .input-row { flex-direction: column; gap: 0; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Footer Modals */
.footer-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.footer-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.footer-modal-content {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 0px; /* More art gallery aesthetic */
    border: 1px solid #e8dcc9;
    box-shadow: 0 10px 40px rgba(79,61,53,0.15);
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.footer-modal-content h2, .footer-modal-content h3, .footer-modal-content h4 {
    color: var(--text-color);
}

.footer-modal-content p {
    margin-bottom: 1rem;
}

.footer-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--taupe);
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}

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

/* HERO BRANDING */
.hero-brand {
    text-align: center;
    margin-bottom: 40px;
}

.hero-brand h1 {
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero-brand .subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-text);
}

/* SLIDESHOW */
.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: 0 auto 80px auto;
    overflow: hidden;
}

.mySlides {
    display: none;
}

.slide-img-box {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.slide-caption {
    color: var(--text-color);
    font-size: 14px;
    padding: 8px 12px;
    text-align: center;
    background: transparent;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Dots */
.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--text-color);
}

/* Fading animation */
.fade {
    animation-name: fadeAnimation;
    animation-duration: 1.5s;
}

@keyframes fadeAnimation {
    from {opacity: .4}
    to {opacity: 1}
}

/* VI ANBEFALER EVENTS */
.vi-anbefaler-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.vi-anbefaler-container h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

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

.recommendation-card {
    display: block;
    background: #fdf6e3;
    border: 1px solid var(--taupe);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79,61,53,0.12);
    border-color: var(--text-color);
}

.recommendation-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.recommendation-card p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.recommendation-card .card-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-color);
}

.cta-banner {
    text-align: center;
    margin: 60px 0;
}

.cta-btn {
    padding: 20px 40px;
    background: var(--accent);
    color: var(--text-color);
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: var(--accent-dark);
    color: #fffdf7;
}

/* ARTISTS PAGE / BLOCKS */
.artists-container {
    max-width: 900px;
    margin: 0 auto;
}

.artist-block {
    margin-bottom: 80px;
}

.artist-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.artist-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.artist-title h3 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.artist-meta {
    font-size: 14px;
    color: var(--light-text);
}

.artist-bio {
    font-size: 16px;
    line-height: 1.8;
}

.artist-bio p {
    margin-bottom: 20px;
}

.artist-quote {
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: #444;
    border-left: 3px solid #111;
    padding-left: 20px;
    margin: 30px 0;
}

.artwork-spec {
    font-size: 14px;
    color: var(--light-text);
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.artist-separator {
    border: none;
    border-top: 1px solid #f0e4cf;
    margin: 80px 0;
}

/* BOOKS ACCORDION */
.books-details {
    margin-top: 20px;
    background: #fdf6e6;
    border: 1px solid #f0e4cf;
    padding: 15px 20px;
}

.books-details summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
    user-select: none;
}

.books-list {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4px 30px;
    font-size: 15px;
}

.books-list li {
    position: relative;
    padding: 12px 0 12px 22px;
    line-height: 1.5;
}

.books-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 7px;
    height: 7px;
    background: var(--text-color);
    border-radius: 50%;
}

/* INFO ROWS (content pages: heading + text, clean spacing, no dividers) */
.info-rows {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.info-row {
    padding: 0;
}

.info-row h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.info-row p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.info-row p + p {
    margin-top: 12px;
}

/* ACCORDION BYLAWS */
.vedtaegter-details {
    margin-top: 40px;
    border: 1px solid #e8dcc9;
    background: #fdf6e6;
    border-radius: 0;
}

.vedtaegter-details summary {
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    outline: none;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.vedtaegter-details[open] summary {
    border-bottom: 1px solid #e8dcc9;
}

.vedtaegter-content {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
}

.vedtaegter-content p {
    margin-bottom: 20px;
}

/* GALLERY WRAPPER */
.gallery-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-lead {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 40px;
    text-align: left;
}

/* BOARD LAYOUT */
.board-container {
    max-width: 1200px;
    margin: 0 auto;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.board-member {
    background: #ffffff;
    border-bottom: 1px solid #e8dcc9;
    padding-bottom: 30px;
}

.board-member h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #111;
}

.board-member .member-role {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 15px;
    font-weight: 500;
}

.board-member .member-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
