body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
html, body {
    max-width: 100vw;
    overflow-x: hidden; /* Dette stopper det vandrette scroll definitivt */
    margin: 0;
    padding: 0;
}
.hero {
    background-image: url('/static/images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
}


.container {
    padding: 2rem;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.pet-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
    padding: .75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
}

.footer {
    background: #f4f4f4;
    text-align: center;
    padding: 1rem;
}

.hero-tagline {
    font-size: 1.0rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 600px;
    color: #ffffff;        /* hvid tekst */
    text-align: center;    /* centrering */
    margin: 1rem auto;     /* centreret horisontalt og lidt luft ovenfor/under */
}


/* ─── Relaterede annoncer ─── */
.related-ads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* fleksibelt grid som pets-grid */
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* ─── Kort / annoncer ─── */
.related-ads .ad-card {
    background: #f5f6f9;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.related-ads .ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ─── Billede ─── */
.related-ads .ad-card img {
    width: 100%;
    height: 200px; /* ens højde */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ─── Titel ─── */
.related-ads .ad-card h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #505050;
    text-transform: capitalize;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.related-ads .ad-card h3 a {
    text-decoration: none;
    color: inherit;
}

.related-ads .ad-card h3 a:hover {
    color: #0d58a8;
}

/* ─── Pris ─── */
.related-ads .ad-card .price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0d58a8;
    margin: 0;
}

/* ─── Responsiv tilpasning ─── */
@media (max-width: 1024px) {
    .related-ads {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .related-ads {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Om os sektion
   ========================= */
.about-section {
    padding: 4rem 1rem; /* Lidt mindre padding på siderne til mobil */
    background: rgba(245, 246, 249, 0.85);
    backdrop-filter: blur(5px);
    width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Sikrer at animationer ikke stikker ud */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* så det går til 1 kolonne på små skærme */
    max-width: 1400px; /* beholder indholdsbredde, så det ikke bliver for bredt */
    margin: 0 auto; /* centrer indholdet */
}

.about-text {
    flex: 1 1 400px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #505050;
}

.about-image {
    flex: 1 1 400px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-out;
}

.about-image img:hover {
    transform: scale(1.03) rotate(var(--rotate, 0deg));
}


@keyframes randomRotate {
    0%   { transform: rotate(0deg) scale(1.03); }
    20%  { transform: rotate(-2deg) scale(1.03); }
    40%  { transform: rotate(3deg) scale(1.03); }
    60%  { transform: rotate(-1deg) scale(1.03); }
    80%  { transform: rotate(2deg) scale(1.03); }
    100% { transform: rotate(-3deg) scale(1.03); }
}




/* Responsivt: 1 kolonne på mindre skærme */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    .about-image img {
        max-width: 100%;
    }
}

