/* lavfotobog – supplerende CSS. Farver/typografi kommer fra theme.json. */

:root {
	--lf-radius: 16px;
	--lf-radius-l: 24px;
	--lf-shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid #141414; outline-offset: 3px; border-radius: 4px; }

.skip-link.screen-reader-text:focus { background: #fff; padding: 12px 16px; z-index: 100000; }

/* Header */
.lf-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #E2DED5; }
.admin-bar .lf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lf-header { top: 0; } }
.lf-logo-mark { width: 34px; height: 34px; flex: 0 0 34px; }
.lf-header .wp-block-site-title a span, .lf-footer .lf-dot { color: #C8391F; }
.lf-footer .lf-dot { color: #FF8A6E; }

@media (max-width: 600px) { .lf-header .lf-cta { display: none; } }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: #141414; padding: calc(0.9rem - 2px) calc(1.6rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #141414; color: #fff; }
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; gap: .5em; }
.lf-btn-dark .wp-block-button__link { background: #141414; }
.lf-btn-dark .wp-block-button__link:hover { background: #333; }
.lf-btn-light .wp-block-button__link { background: #fff; color: #141414; }
.lf-btn-light .wp-block-button__link:hover { background: #F4F1EA; color: #141414; }

/* Pills / eyebrow */
.lf-pill { display: inline-block; background: #FCE8E3; color: #9E2A15; font-weight: 600; font-size: .875rem; padding: .35rem .9rem; border-radius: 999px; }
.lf-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .8125rem; color: #9E2A15; }

/* Group styles */
.is-style-kort { background: #fff; border: 1.5px solid #E2DED5; border-radius: var(--lf-radius); padding: clamp(1.25rem, 3vw, 2rem); }
.is-style-kort-fortalt { background: #F4F1EA; border-radius: var(--lf-radius); padding: clamp(1.25rem, 3vw, 2rem); }
.is-style-kort-fortalt > :first-child { margin-top: 0; }
.is-style-kort-fortalt > :last-child { margin-bottom: 0; }
.is-style-tip { background: #FCE8E3; border-radius: var(--lf-radius); padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem); }
.is-style-tip > :first-child { margin-top: 0; }
.is-style-tip > :last-child { margin-bottom: 0; }

/* List styles */
ul.is-style-tjek { list-style: none; padding-left: 0; }
ul.is-style-tjek li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
ul.is-style-tjek li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #5E8C6A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat; }
ol.is-style-trin { list-style: none; counter-reset: trin; padding-left: 0; }
ol.is-style-trin > li { counter-increment: trin; position: relative; padding-left: 3.25rem; margin-bottom: 1.25rem; min-height: 2.25rem; }
ol.is-style-trin > li::before { content: counter(trin); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #141414; color: #fff; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Tables */
.wp-block-table.is-style-lf-tabel { overflow-x: auto; }
.wp-block-table.is-style-lf-tabel table { border-collapse: collapse; width: 100%; min-width: 520px; }
.wp-block-table.is-style-lf-tabel th, .wp-block-table.is-style-lf-tabel td { border: 0; border-bottom: 1px solid #E2DED5; padding: .7rem .8rem; text-align: left; vertical-align: top; }
.wp-block-table.is-style-lf-tabel thead th { background: #141414; color: #fff; font-weight: 600; border-bottom: 0; }
.wp-block-table.is-style-lf-tabel thead th:first-child { border-top-left-radius: 10px; }
.wp-block-table.is-style-lf-tabel thead th:last-child { border-top-right-radius: 10px; }
.wp-block-table.is-style-lf-tabel tbody tr:nth-child(even) { background: #FAF8F4; }

/* Images */
.is-style-afrundet img, .lf-rounded img, .wp-block-post-featured-image img { border-radius: var(--lf-radius); }

/* Details / FAQ */
.wp-block-details summary { font-weight: 600; font-size: 1.125rem; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -.1em; font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: #333; }
.lf-faq .wp-block-details:last-child { border-bottom: 1.5px solid #E2DED5; }

/* Post cards (query loop) */
.lf-cards .wp-block-post { background: #fff; border: 1.5px solid #E2DED5; border-radius: var(--lf-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.lf-cards .wp-block-post:hover { transform: translateY(-3px); box-shadow: var(--lf-shadow); }
.lf-cards .wp-block-post-featured-image { margin: 0; }
.lf-cards .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.lf-cards .lf-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.lf-cards .wp-block-post-title { font-size: 1.3rem; line-height: 1.25; margin: .4rem 0 .5rem; }
.lf-cards .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.lf-cards .wp-block-post { position: relative; }
.lf-cards .wp-block-post-terms a { position: relative; z-index: 2; }
.lf-cards .wp-block-post-excerpt { color: #4A4A4A; font-size: .9375rem; }
.lf-cards .wp-block-post-excerpt__more-text { display: none; }

/* Single article */
.lf-article .wp-block-post-content > h2 { margin-top: 2.75rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.lf-article .wp-block-post-content > h3 { margin-top: 2rem; }
.lf-article .wp-block-post-content > p, .lf-article .wp-block-post-content li { font-size: 1.0625rem; }
.lf-article .wp-block-post-content a:not(.wp-block-button__link) { text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: #C8391F; }

/* Dark bands */
.lf-band-dark a:not(.wp-block-button__link):not(.lf-cta__btn):not(.lf-guide__btn) { color: #fff; }

/* Hero illustration */
.lf-hero-art img { width: 100%; max-width: 620px; margin-left: auto; display: block; }

/* Footer */
.lf-plain-list { list-style: none; }
.lf-plain-list li { margin-bottom: .45rem; }
.lf-footer a { color: #fff; text-decoration: none; }
.lf-footer a:hover { color: #FF8A6E; text-decoration: underline; }
.lf-footer .wp-block-navigation__container { gap: .5rem 1.5rem; }

/* Search form */
.wp-block-search__input { border: 1.5px solid #E2DED5; border-radius: 999px; padding: .7rem 1.1rem; min-height: 44px; }
.wp-block-search__button { border-radius: 999px; background: #141414; color: #fff; border: 0; padding: .7rem 1.2rem; min-height: 44px; }

/* Pagination */
.wp-block-query-pagination { gap: .5rem; }
.wp-block-query-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; }
.wp-block-query-pagination .page-numbers.current { background: #141414; color: #fff; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.lf-cards .wp-block-post { transition: none; }
}
