/* ======================================= */
/* ====== GLOBALE VARIABLER (JUL) ======= */
/* ======================================= */
:root {
    --christmas-red: #cc0000;
    --christmas-green: #006400;
    --gold-accent: #DAA520;
    --light-snow: #f7f7f7;
    --dark-snow: #fff;
    --admin-blue: #007bff;
    --admin-gray: #f2f2f2;
}

/* ======================================= */
/* ====== FÆLLES STYLES (Alle sider) ===== */
/* ======================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-snow);
    color: #333;
}

h1 {
    color: var(--christmas-red);
    text-align: center;
    font-size: 2.8em;
    text-shadow: 2px 2px 3px var(--christmas-green);
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
    position: relative;
    z-index: 2;
    padding-left: 60px;
    padding-right: 60px;
}

/* --- Julepynt omkring H1 --- */
h1::before {
    content: '🎅🎄';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    line-height: 1;
}
h1::after {
    content: '🎁❤️';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    line-height: 1;
}

/* Julebånd top/bund */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 20px;
    background: linear-gradient(to right, var(--christmas-red), var(--christmas-green), var(--christmas-red));
    box-shadow: 0 4px 0 var(--christmas-green), 0 6px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}
body::after {
    content: '';
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 20px;
    background: linear-gradient(to right, var(--christmas-red), var(--christmas-green), var(--christmas-red));
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Logo styling */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}
.site-logo {
    max-width: 140px; /* kan justeres */
    height: auto;
    margin: 0 auto;
    display: block;
}


/* Feedback beskeder */
.error {
    color: var(--christmas-red);
    font-weight: bold;
    padding: 12px;
    border: 2px solid var(--christmas-red);
    background-color: #ffe0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.success {
    color: var(--christmas-green);
    font-weight: bold;
    padding: 18px;
    border: 2px solid var(--christmas-green);
    background-color: #e0ffe0;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.token-box {
    text-align: center;
    font-size: 1.4em;
    padding: 15px;
    margin: 15px auto;
    background-color: #f0f0f0;
    border: 2px dashed var(--christmas-red);
    border-radius: 8px;
}
.token-box strong {
    color: var(--christmas-green);
    font-size: 1.1em;
    letter-spacing: 2px;
}

/* Submit knap */
.submit-button {
    background-color: var(--christmas-red);
    color: white;
    padding: 16px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3em;
    width: 100%;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
}
.submit-button:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* ======================================= */
/* ====== DONATION.PHP (Forsiden) ======== */
/* ======================================= */
body#index-body {
    /* Mellemting: en anelse mørkere blå base, snefnug lidt større/tydeligere */
    background-image:
        url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">\
<circle cx="12" cy="8"  r="1.2" fill="white" opacity="0.88"/>\
<circle cx="28" cy="22" r="1.0" fill="white" opacity="0.84"/>\
<circle cx="50" cy="6"  r="1.3" fill="white" opacity="0.9"/>\
<circle cx="72" cy="38" r="1.1" fill="white" opacity="0.85"/>\
<circle cx="88" cy="18" r="1.2" fill="white" opacity="0.88"/>\
<circle cx="40" cy="45" r="1.0" fill="white" opacity="0.82"/>\
<circle cx="15" cy="60" r="1.2" fill="white" opacity="0.85"/>\
<circle cx="60" cy="70" r="1.1" fill="white" opacity="0.85"/>\
<circle cx="80" cy="85" r="1.3" fill="white" opacity="0.9"/>\
<circle cx="25" cy="90" r="1.0" fill="white" opacity="0.84"/>\
</svg>'),
        linear-gradient(to bottom, #b9cde9, #edf2f8);
    background-attachment: fixed, fixed;
    background-repeat: repeat, no-repeat;
    background-size: auto 110px, cover;
    animation: snow 30s linear infinite;
    overflow-x: hidden;
}
@keyframes snow {
    from { background-position: 0 0, center center; }
    to   { background-position: 0 200%, center center; }
}

.container {
    max-width: 900px;
    margin: 50px auto;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 4px solid var(--gold-accent);
    outline: 4px solid var(--christmas-green);
    outline-offset: -8px;
    position: relative;
    z-index: 1;
}

/* Intro tekstboks */
.intro-text {
    font-size: 1.25em;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 30px;
    color: #1a1a1a;
    background-color: #fffaf0;
    padding: 15px;
    border-radius: 6px;
    border-left: 5px solid var(--gold-accent);
}

/* Slogan under H1 – samme typografi som H1, uden emoji */
.subtitle {
    color: var(--christmas-red);
    text-align: center;
    font-size: 2.8em;
    text-shadow: 2px 2px 3px var(--christmas-green);
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
    position: relative;
    z-index: 2;
    padding-left: 60px;
    padding-right: 60px;
}

/* Infoboks */
.mission-box {
    background-color: #f7fff7;
    padding: 18px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--christmas-green);
    border-radius: 8px;
    font-size: 1.05em;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mission-box p { margin: 0; }

/* Formular sektioner */
.form-section {
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    background-color: #fcfcfc;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.05);
}
.form-section h2 {
    margin-top: 0;
    color: var(--christmas-green);
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 12px;
    font-size: 1.8em;
    font-weight: bold;
}

label { display: block; margin-bottom: 8px; font-weight: bold; color: #444; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #bbb;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1.1em;
}

/* Standard number-input (bred) – bruges bl.a. på admin */
input[type="number"] {
    width: 80px;
    margin-bottom: 0;
    display: inline-block;
    border: 2px solid var(--christmas-green);
    background-color: #e6ffe6;
}

/* Vareliste grid og smalle number inputs i varebokse */
.vare-liste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.vare-input-group {
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0fff0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.vare-input-group label {
    margin: 0;
    font-weight: normal;
    color: #333;
    flex-grow: 1;
}
.vare-input-group input[type="number"] {
    width: 60px;
    text-align: center;
    margin: 0;
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* Knapper – vælg Privat/Firma */
.form-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.form-type-selector button {
    padding: 15px 30px;
    cursor: pointer;
    border: 2px solid var(--christmas-red);
    background-color: var(--light-snow);
    color: var(--christmas-red);
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    flex-grow: 1;
    transition: all 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.form-type-selector button:hover {
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
.form-type-selector button.active {
    background-color: var(--christmas-red);
    color: white;
    border-color: var(--christmas-green);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Eksplicit farver til de to toggle knapper (med hvid tekst) */
.toggle-button-privat {
    background-color: var(--christmas-red) !important;
    color: white !important;
    border-color: var(--christmas-green);
}
.toggle-button-firma {
    background-color: var(--christmas-green) !important;
    color: white !important;
    border-color: var(--christmas-red);
}
.toggle-button-privat.active,
.toggle-button-firma.active {
    color: white !important;
}

/* Dropdowns */
#privat-boks select,
#firma-boks select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1.1em;
    background-color: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
#privat-boks select:focus,
#firma-boks select:focus {
    outline: none;
    border-color: var(--christmas-green);
    box-shadow: 0 0 5px rgba(0, 100, 0, 0.2);
}

/* Sponsor/logo sektion */
.firma-sponsor-boks {
    margin-top: 50px;
    border-top: 4px dashed var(--gold-accent);
    padding-top: 30px;
    text-align: center;
}
.firma-sponsor-boks h2 {
    color: var(--christmas-red);
    text-shadow: 1px 1px 1px #eee;
}
.firma-logo-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin-top: 25px;
}
.firma-logo-container img {
    max-width: 160px; height: auto; border: 2px solid var(--christmas-green); padding: 8px;
    border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.firma-logo-container img:hover { transform: scale(1.05); }

/* ======================================= */
/* ====== ADMIN SIDER (rute/oversigt) ==== */
/* ======================================= */
body#admin-body, body#oversigt-body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    line-height: 1.6;
    background-color: #e0e8f0;
    border: 1px solid #bbb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
body#admin-body h1, body#oversigt-body h1 {
    color: #333;
    text-shadow: none;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 2.2em;
    padding-left: 0;
    padding-right: 0;
}
body#admin-body h1::before,
body#admin-body h1::after,
body#oversigt-body h1::before,
body#oversigt-body h1::after {
    content: none; /* ingen julepynt i admin */
}
table { width: 100%; border-collapse: collapse; margin-top: 25px; }
th, td { border: 1px solid #ccc; padding: 12px; text-align: left; }
th { background-color: var(--admin-gray); font-weight: bold; color: #555; }

/* small number inputs i admin */
#admin-body input[type="number"],
#oversigt-body input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    text-align: center;
    background-color: #f8f8f8;
}

#admin-body .submit-button {
    background-color: var(--admin-blue);
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 25px;
    width: auto;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
#admin-body .submit-button:hover { background-color: #0056b3; }
#admin-body .success { border: 2px solid var(--christmas-green); background-color: #e0ffe0; }
#admin-body .error { border: 2px solid var(--christmas-red); background-color: #ffe0e0; }

.postcode-section {
    border: 2px solid #007bff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    background-color: #e6f7ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.postcode-section h2 {
    color: #0056b3;
    border-bottom: 1px solid #aaddff;
    padding-bottom: 8px;
    margin-top: 0;
    font-size: 1.6em;
}
.time-group {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 4px solid #007bff;
    background-color: #f7fbff;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
}
.time-group h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}
.donor-list { list-style: none; padding-left: 0; margin-top: 15px; }
.donor-list li {
    border: 1px dashed #aaddff;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.donor-list strong { color: #007bff; }
.vare-oversigt { margin-top: 8px; padding-top: 8px; border-top: 1px dotted #e0e0e0; }
.vare-oversigt ul { list-style-type: disc; margin: 5px 0 0 25px; padding: 0; font-size: 0.95em; color: #555; }
.vare-oversigt li { border: none; padding: 0; margin: 0; background: none; }
.total-summary {
    font-weight: bold;
    padding: 12px 0;
    border-top: 3px solid #007bff;
    margin-top: 20px;
    font-size: 1.1em;
    color: #0056b3;
}
p.firma-note { color: #00796b; font-style: italic; margin-bottom: 20px; }

/* ======================================= */
/* ====== AFMELD.PHP ===================== */
/* ======================================= */
body#afmeld-body {
    background-color: var(--light-snow);
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="white" opacity="0.6"/><circle cx="50" cy="5" r="1.2" fill="white" opacity="0.7"/><circle cx="90" cy="20" r="1.1" fill="white" opacity="0.6"/></svg>'),
        linear-gradient(to bottom, #f0f8ff, #fcfcfc);
    background-attachment: fixed, fixed;
    background-repeat: repeat, no-repeat;
    background-size: auto 80px, cover;
    animation: snow 40s linear infinite;
}
#afmeld-body .container {
    max-width: 650px;
    margin: 80px auto;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    border: 3px solid var(--christmas-red);
    background-color: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 12px;
}
#afmeld-body h1 { font-size: 2.2em; text-shadow: 1px 1px 2px #ccc; }
#afmeld-body h1::before, #afmeld-body h1::after { content: none; }
#afmeld-body input[type="text"] {
    font-size: 1.2em;
    padding: 12px;
    border: 2px solid var(--gold-accent);
    background-color: #fffacd;
}
#afmeld-body code {
    background-color: #ffebee;
    color: var(--christmas-red);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}
#afmeld-body .submit-button { width: 100%; background-color: var(--christmas-red); }

/* --- OM_MIG.HTML --- */
.info-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}
.info-box h2 {
    color: var(--christmas-red, #cc0000);
    margin-top: 0;
    border-bottom: 2px solid var(--christmas-green, #006400);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.info-kontakt h2 { color: #007bff; }
.contact-email { font-size: 1.5em; font-weight: bold; text-align: center; }
.warning-box {
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.warning-box h2 { color: #cc0000; border-bottom: none; }
.back-link { text-align: center; margin-top: 40px; }

/* ======================================= */
/* === TILFØJELSER TIL DONATION.PHP ===== */
/* ======================================= */

/* Knaprække (Privat / Firma) */
.button-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}
.button-row .btn {
    background-color: var(--christmas-red);
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.button-row .btn:hover {
    background-color: #a80000;
    transform: translateY(-2px);
}

/* Vareliste */
.vareliste div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 4px;
}
.vareliste label { flex: 1; color: #333; font-weight: normal; }
.vareliste input[type="number"] {
    width: 70px;
    text-align: center;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}

/* Dropdowns (Afhentningstid m.m.) */
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #bbb;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1.1em;
    background-color: #fff;
    color: #333;
    appearance: none;
}
select:focus {
    border-color: var(--christmas-red);
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.4);
    outline: none;
}

/* Checkbox for firma */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 20px 0;
    font-size: 1.1em;
}

/* Send-knap */
.btn,
button[type="submit"],
input[type="submit"] {
    background-color: var(--christmas-red);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #a80000;
    transform: translateY(-2px);
}
/* ===== Forside – præsentabel, rolig struktur (tilføjelser) ===== */

.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}
@media (min-width: 860px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 18px 18px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.card h2 {
    margin: 0 0 10px 0;
    color: var(--christmas-green);
    font-size: 1.35em;
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 8px;
}

/* Tjekliste (korte bullets) */
.checklist {
    list-style: none;
    margin: 0; padding: 0;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}
.checklist .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--christmas-green);
    margin-top: 6px;
    flex: 0 0 auto;
}

/* Timeline for datoer */
.timeline {
    list-style: none;
    margin: 0; padding: 0;
}
.timeline li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e5e5;
}
.timeline li:last-child { border-bottom: none; }
.badge {
    display: inline-block;
    background: var(--christmas-red);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: .9em;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.t-text { color: #222; }

/* CTA under kortene */
.cta-area {
    text-align: center;
    margin-top: 10px;
}
.cta-subhint {
    margin-top: 8px;
    color: #666;
    font-size: .95em;
}
/* Extra spacing between de 3 bokse og knappen */
.card-grid { 
  margin-bottom: 40px;   /* før: 20px */
}

@media (min-width: 860px) {
  .card-grid { 
    margin-bottom: 48px; 
  }
}

.cta-area {
  margin-top: 8px;       /* lille ekstra luft over knappen */
}
/* Mere afstand mellem submit-knap og teksten under */
.cta-area .cta-subhint {
  margin-top: 18px; /* øg til 20–24px hvis du vil have endnu mere */
}

/* (valgfrit) sørg for at knappen ikke klemmer teksten */
.cta-area .submit-button {
  display: inline-block;
  margin-bottom: 0; /* kan sættes til 6–10px, hvis du vil flytte afstand her i stedet */
}
/* Fix: hold knappen i normal størrelse og giv luft til teksten */
.cta-area {
  text-align: center;        /* centrer knappen */
}

.cta-area .submit-button {
  display: inline-block;     /* undgå at fylde hele bredden */
  width: auto;               /* ingen stræk */
  max-width: 100%;
  padding: 12px 18px;        /* normal knapstørrelse */
  box-sizing: border-box;
  white-space: nowrap;       /* undgå linjeskift der gør den høj */
  flex: 0 0 auto;            /* hvis en forælder er flex */
}

.cta-area .cta-subhint {
  margin-top: 22px;          /* ekstra afstand under knappen */
}

@media (min-width: 860px) {
  .cta-area .cta-subhint { margin-top: 26px; }
}
/* ===== Mobile polish ===== */
@media (max-width: 720px) {
  /* 1) Én kolonne i stedet for 3 – med lidt luft */
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 32px;
  }

  /* 2) Kasserne lidt strammere på mobil */
  .card {
    padding: 14px 14px 12px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
  }

  /* 3) Timeline: smallere badge + bedre linjehøjde */
  .timeline li {
    grid-template-columns: 56px 1fr; /* badge + tekst */
    gap: 8px 10px;
    padding: 8px 0;
  }
  .badge {
    padding: 6px 8px;
    font-size: .85rem;
    min-width: 48px;
    text-align: center;
  }
  .t-text {
    font-size: .95rem;
    line-height: 1.35;
  }

  /* 4) Mission-boks og CTA får lidt luft */
  .mission-box { margin-bottom: 16px; }
  .cta-area    { margin-top: 16px; }

  /* 5) CTA-knap: pæn, centreret – ikke for bred */
  .cta-area .submit-button {
    display: block;          /* så margin:auto virker */
    width: 100%;             /* må gerne fylde bredden på mobil */
    max-width: 360px;        /* men ikke mere end ~360px */
    margin: 0 auto;
    padding: 12px 16px;
    box-sizing: border-box;
    white-space: nowrap;     /* undgå tosset høj knap */
  }
  .cta-area .cta-subhint {
    margin-top: 14px;
    font-size: .9rem;
    line-height: 1.4;
  }
}
/* Stak de 3 bokse under hinanden på mobil */
/*@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr !important;  
    gap: 14px !important;                   
    margin-bottom: 32px;                    
  }*/

  /* (valgfrit) lidt strammere padding i kortene på mobil */
  /*.card {
    padding: 14px 14px 12px;
  }*/
}
/* Mobil: læg de 3 bokse under hinanden */
@media (max-width: 768px) {
  .cards-stack {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 32px;
  }
  .cards-stack > * {
    width: 100% !important;
    float: none !important;   /* hvis noget tidligere brugte float */
    margin: 0 !important;     /* fjern side-margener der klemmer */
  }
}
/* === Mobil-fix: undgå at tekst rager ud i Chrome/Brave === */
@media (max-width: 768px) {
  /* Tving de 3 bokse i én kolonne (hvis din media query før ikke slog igennem) */
  .card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 32px;
  }

  /* Timeline: vigtig! tillad at tekstkolonnen må krympe/bryde */
  .timeline li {
    display: grid;
    grid-template-columns: 56px 1fr;  /* badge + tekst */
    gap: 8px 10px;
  }
  .timeline .t-text {
    min-width: 0;               /* kritisk for Chrome/Brave */
    overflow-wrap: anywhere;    /* må bryde hvor som helst */
    word-break: break-word;     /* ekstra belt & braces */
    line-height: 1.35;
    font-size: .95rem;
  }
  .badge {
    min-width: 44px;
    padding: 5px 8px;
    font-size: .85rem;
    text-align: center;
  }

  /* Generelt: lad indhold ikke “presse” kortene */
  .card, .card * {
    min-width: 0;               /* sikre, at grid/flex-børn må krympe */
  }
}