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

:root {
    --paper: rgba(255, 250, 240, 0.9);
    --paper-strong: rgba(255, 252, 245, 0.97);
    --ink: #17110d;
    --muted: #433327;
    --accent: #b63b12;
    --accent-soft: #d38b42;
    --olive: #7f8a44;
    --shadow: rgba(49, 28, 10, 0.22);
    --line: rgba(66, 42, 21, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background: url(images/bg-1200.jpg) 50% 0 repeat fixed;
    background-size: cover;
    margin: 0 auto;
    max-width: 1920px;
}

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

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

a:hover {
    text-decoration: underline;
}

.wrapper {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    margin-top: 0;
    margin-bottom: 8px;
}

main {
    display: grid;
    grid-template-columns: 2fr 8fr 2fr;
    gap: 0;
}

.video-section {
    margin-bottom: 10px;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 18px 36px var(--shadow);
}

.share-lina {
    position: absolute;
    left: -136px;
    top: 12px;
    width: 114px;
    height: 156px;
    background: url(images/img_del4.png) center center / 100% no-repeat;
    filter: drop-shadow(0 10px 18px rgba(36, 20, 10, 0.28));
    transition: transform 0.2s ease;
}

.share-lina:hover {
    transform: translateY(-2px);
}

.hidden-sm,
.hidden-xs {
    display: block;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.main-content {
    display: grid;
    gap: 1rem;
    padding-bottom: 2.5rem;
}

.content-box {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 16px 32px var(--shadow);
    padding: 2rem;
}

.hero-panel {
    background: linear-gradient(180deg, rgba(255, 249, 236, 0.97), rgba(235, 219, 191, 0.93));
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: #8d2f11;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.text-teaser {
    font-size: 1.22rem;
    font-weight: 300;
}

.action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border-radius: 0;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, background 0.18s ease;
    cursor: pointer;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff8ef;
}

.button-primary:hover {
    background: #922e0e;
}

.button-secondary {
    background: rgba(255, 250, 242, 0.9);
    color: var(--ink);
    border: 1px solid var(--line);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.fact-card {
    background: var(--paper-strong);
    border: 1px solid rgba(127, 138, 68, 0.2);
    padding: 1rem;
}

.media-frame {
    background: #e8dccb;
    border: 1px solid rgba(79, 56, 36, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    overflow: hidden;
    margin-bottom: 1rem;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-frame-tall {
    min-height: 100%;
}

.image-break {
    margin: 0.2rem 0 0.6rem;
}

.image-break-frame {
    border: 0;
    box-shadow: 0 18px 36px rgba(49, 28, 10, 0.18);
}

.image-break-frame img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.fact-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.fact-list li {
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.54);
    border-left: 4px solid var(--olive);
    font-weight: 600;
}

.story-media img,
.fact-card img {
    width: 100%;
    object-fit: cover;
}

.petra-frame {
    max-width: 720px;
    margin: 0 0 1.25rem;
}

.proof-line {
    padding: 0.9rem 1rem;
    background: rgba(127, 138, 68, 0.1);
    border-left: 4px solid var(--olive);
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.72);
    border-top: 4px solid var(--accent-soft);
    padding: 1rem;
}

.hen-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 28%);
    gap: 1rem;
    overflow-x: auto;
    padding: 0.35rem 0 0.65rem;
    margin: 1.3rem 0 0.4rem;
    scroll-snap-type: x proximity;
}

.gallery-card {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(49, 28, 10, 0.12);
    overflow: hidden;
    position: relative;
    padding: 0;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
}

.gallery-card-inner {
    display: block;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    display: block;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--ink);
    position: relative;
}

.gallery-caption::after {
    content: "Vis historien";
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

.gallery-card.is-active {
    border-color: var(--accent);
    box-shadow: 0 14px 28px rgba(182, 59, 18, 0.18);
}

.gallery-card.is-active .gallery-caption::after {
    content: "Vises nedenfor";
}

.gallery-story-panel {
    margin-top: 1rem;
}

.gallery-story-body {
    background: rgba(255, 251, 243, 0.94);
    border: 1px solid var(--line);
    padding: 1rem;
}

.gallery-story-body h3 {
    margin-bottom: 0.65rem;
}

.gallery-story-body p:last-child {
    margin-bottom: 0;
}

.accordion {
    margin-top: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.accordion summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.2rem;
    font-weight: 700;
    color: var(--ink);
    position: relative;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #8d2f11;
}

.accordion[open] summary::after {
    content: "-";
}

.accordion-body {
    padding: 0 1.2rem 1.2rem;
}

.support-panel {
    display: grid;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(243, 230, 207, 0.95), rgba(255, 249, 239, 0.93));
}

.support-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: start;
    justify-content: center;
}

.support-icon {
    margin: 0;
    flex: 0 1 170px;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    text-align: center;
}

.support-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.support-icon figcaption {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.35;
}

.donation-form {
    display: grid;
    gap: 1.1rem;
    margin-top: 0.25rem;
}

.donation-form h3 {
    text-align: left;
    margin: 0.25rem 0 -0.25rem;
}

.donation-frequency {
    border: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0;
    max-width: 620px;
    margin: 0;
}

.donation-frequency legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.frequency-option {
    min-height: 62px;
    border: 2px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.frequency-option:hover,
.frequency-option:focus-within {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.frequency-option.is-active {
    border-color: var(--accent);
    box-shadow: 0 10px 22px rgba(49, 28, 10, 0.12);
    background: var(--accent);
    color: #fffaf2;
}

.frequency-option.is-active small {
    color: rgba(255, 250, 242, 0.82);
}

.frequency-option strong,
.frequency-option small {
    display: block;
}

.frequency-option strong {
    font-size: 1rem;
    line-height: 1.2;
}

.frequency-option small {
    color: var(--muted);
    font-weight: 700;
    margin-top: 0.15rem;
}

.frequency-option,
.donation-consent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-weight: 700;
}

.frequency-option input,
.donation-consent input {
    margin-top: 0.35rem;
    accent-color: var(--accent);
}

.frequency-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.amount-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    max-width: 620px;
    margin: 0;
}

.amount-option {
    min-height: 62px;
    appearance: none;
    border: 2px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    padding: 0.55rem 0.7rem;
    font: inherit;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.amount-option:hover,
.amount-option:focus {
    border-color: var(--accent);
    outline: 0;
    transform: translateY(-1px);
}

.amount-option.is-active {
    border-color: var(--accent);
    box-shadow: 0 10px 22px rgba(49, 28, 10, 0.12);
    background: var(--accent);
    color: #fffaf2;
}

.amount-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.custom-amount {
    min-height: 62px;
    grid-column: 1 / -1;
    display: grid;
    gap: 0.3rem;
    align-content: center;
    border: 2px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.85rem 0.65rem;
    font-weight: 700;
    color: var(--ink);
}

.custom-amount-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
}

.custom-amount-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 0.45rem 0.55rem;
    font: inherit;
}

.custom-amount-field input:focus {
    outline: 3px solid rgba(182, 59, 18, 0.22);
    border-color: var(--accent);
}

.custom-amount-field span {
    color: var(--muted);
    font-weight: 700;
}

.donation-grid label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--ink);
}

.donation-grid label:has(input[type="email"]) {
    grid-column: 1 / -1;
    max-width: calc((100% - 0.8rem) / 2);
}

.donation-grid input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    padding: 0.7rem 0.8rem;
    font: inherit;
    text-align: left;
}

.donation-grid input:focus {
    outline: 3px solid rgba(182, 59, 18, 0.22);
    border-color: var(--accent);
}

.donation-consent {
    font-weight: 600;
    line-height: 1.45;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
}

.donation-consent input {
    width: 22px;
    height: 22px;
    margin-top: 0;
    flex: 0 0 auto;
}

.form-note {
    font-size: 0.92rem;
    color: var(--muted);
    margin: -0.25rem 0 0;
}

.field-message {
    display: none;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.field-message.is-visible {
    display: block;
}

.field-error {
    border-color: var(--accent) !important;
    outline: 3px solid rgba(182, 59, 18, 0.16);
}

.legal-panel h2 {
    margin-top: 1.8rem;
}

.legal-list {
    margin: 0 0 1.2rem 1.4rem;
}

.legal-list li {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    padding-left: 0.2rem;
}

footer {
    background: rgba(38, 28, 20, 0.92);
    color: #fff4ea;
    padding: 3rem 1.5rem 1rem;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #e9d6a7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-logo {
    width: min(180px, 100%);
    height: auto;
}

.footer-section p,
.footer-section a {
    color: #fff4ea;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-social img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

@media (max-width: 980px) {
    main {
        grid-template-columns: 1fr;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .section-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .media-frame-tall {
        min-height: 0;
    }

    .hen-gallery {
        grid-auto-columns: minmax(220px, 72%);
    }

    .share-lina {
        left: 8px;
        top: 8px;
        width: 82px;
        height: 114px;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 0.7rem;
    }

    header {
        margin-top: 8px;
        margin-bottom: 14px;
    }

    .content-box {
        padding: 1.25rem;
    }

    .text-teaser,
    p {
        font-size: 1rem;
    }

    .action-row,
    .support-points {
        flex-direction: column;
    }

    .button {
        width: 100%;
        min-height: 44px;
    }

    .hen-gallery {
        grid-auto-columns: 84%;
    }

    .support-panel {
        padding: 1rem;
        gap: 0.7rem;
    }

    .support-panel p {
        margin-bottom: 0.75rem;
    }

    .support-points {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem 0.5rem;
        align-items: start;
    }

    .support-icon {
        justify-items: center;
        text-align: center;
        grid-template-columns: 1fr;
        row-gap: 0.3rem;
        min-width: 0;
    }

    .support-icon img {
        width: 44px;
        height: 44px;
    }

    .support-icon figcaption {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .donation-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .donation-grid label:has(input[type="email"]) {
        max-width: none;
    }

    .amount-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .amount-option {
        min-height: 52px;
        padding: 0.65rem 0.35rem;
    }

    .amount-value {
        font-size: 1rem;
    }

    .donation-frequency {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .frequency-option {
        min-height: 52px;
    }

    .custom-amount {
        min-height: 52px;
    }

    .hidden-sm,
    .hidden-xs,
    .share-lina {
        display: none;
    }
}
