/* Version: 2.0.0

Theme Name: VEDAMA 2.0
*/
:root {
    --tierheim-bg: #DFF0F7;
    --tierheim-bg-dark: #c2e4f0;
    --tierheim-white: #ffffff;
    --tierheim-text: #2c3e50;
    --tierheim-donate: #8B51A0;
    --tierheim-donate-hover: #7a4490;
    --tierheim-topbar: #2558A8;
    --tierheim-topbar-hover: #1a3f7a;
    --tierheim-footer: #0D3B4F;
    --tierheim-footer-text: #a8d4e6;
    --tierheim-footer-head: #DFF0F7;
}

/* =============================================
   SCHRIFTARTEN
   ============================================= */
/* Überschriften — Lilita One */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lilita One', cursive !important;
}

/* Menü & DONAR Button — Chewy */
.navbar .nav-link,
.navbar .navbar-brand {
    font-family: 'Chewy', cursive !important;
}

/* =============================================
   DROPDOWN MENÜ — wie Fallback
   ============================================= */
.dropdown-menu {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(13,59,79,0.12) !important;
    padding: 8px 0 !important;
    margin-top: 0 !important;
    background-color: white !important;
}

.dropdown-item {
    font-family: 'Chewy', cursive !important;
    font-size: clamp(18px, 1.6vw, 22px) !important;
    color: var(--tierheim-footer) !important;
    padding: 6px 20px !important;
    background-color: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--tierheim-bg) !important;
    color: var(--tierheim-topbar) !important;
}

/* DONAR Button — Lilita One */
.navbar .btn-primary,
.navbar a.btn-primary {
    font-family: 'Lilita One', cursive !important;
}

/* Fließtext — Nunito */
body,
p,
li,
span,
small,
input,
button {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 400 !important;
}

/* Footer Überschriften — Nunito statt Lilita One */
footer h2,
footer h5 {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
}

/* =============================================
   GLOBALER HINTERGRUND
   ============================================= */
body,
body.bg-light,
.bg-light {
    background-color: var(--tierheim-bg) !important;
    color: var(--tierheim-text);
    font-size: clamp(14px, 1.5vw, 16px);
}

/* =============================================
   HEADER — komplett weiß mit Schatten
   ============================================= */
header {
    background-color: var(--tierheim-white) !important;
    box-shadow: 0 6px 24px rgba(0, 180, 210, 0.22) !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

header hr {
    display: none !important;
}

header .py-2.small,
header .py-2.small.text-center,
header .py-2.small.text-md-start {
    background-color: var(--tierheim-white) !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-size: clamp(11px, 1.2vw, 13px);
}

header .navbar {
    background-color: var(--tierheim-white) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

header .navbar-brand {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* =============================================
   LOGO — responsiv
   ============================================= */
.navbar-brand img {
    height: clamp(50px, 8vw, 100px) !important;
    width: auto !important;
}

footer .footer-logo {
    height: clamp(50px, 6vw, 80px) !important;
    width: auto !important;
}

/* =============================================
   TOPBAR — Links & Social Icons dunkelblau
   ============================================= */
.py-2.small a,
.py-2.small .link-secondary {
    color: var(--tierheim-topbar) !important;
    transition: color 0.2s;
}

.py-2.small a:hover,
.py-2.small .link-secondary:hover {
    color: var(--tierheim-topbar-hover) !important;
}

.py-2.small span.link-secondary {
    color: var(--tierheim-topbar) !important;
    opacity: 0.4;
}

/* =============================================
   NAVBAR LINKS
   ============================================= */
.navbar .nav-link {
    color: var(--tierheim-footer) !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    font-size: clamp(22px, 2.1vw, 28px) !important;
}

.navbar .nav-link:hover {
    color: var(--tierheim-topbar) !important;
}

.navbar-brand {
    color: var(--tierheim-footer) !important;
}

/* =============================================
   ÜBERGANGS-STREIFEN
   ============================================= */
.header-stripe {
    height: clamp(6px, 1vw, 12px);
    background: linear-gradient(
        to bottom,
        var(--tierheim-white) 0%,
        var(--tierheim-bg) 100%
    );
    display: block;
    width: 100%;
}

/* =============================================
   INHALTSBEREICH — Türkis
   ============================================= */
main,
.site-main,
#content,
section,
.section {
    background-color: var(--tierheim-bg) !important;
    padding: 0;
}

main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =============================================
   CARDS — bleiben weiß
   ============================================= */
.card {
    background-color: var(--tierheim-white);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 150, 180, 0.08);
    padding: clamp(12px, 2vw, 24px);
}

/* =============================================
   DONATE BUTTON
   ============================================= */
.btn-primary,
.navbar .btn-primary,
.navbar a.btn-primary {
    background-color: var(--tierheim-donate) !important;
    border-color: var(--tierheim-donate) !important;
    color: var(--tierheim-white) !important;
    padding: clamp(6px, 0.8vw, 10px) clamp(14px, 1.8vw, 24px);
    border-radius: 50px;
    font-size: clamp(12px, 1.2vw, 15px) !important;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(139, 81, 160, 0.25) !important;
}

.btn-primary:hover,
.navbar .btn-primary:hover,
.navbar a.btn-primary:hover {
    background-color: var(--tierheim-donate-hover) !important;
    border-color: var(--tierheim-donate-hover) !important;
    color: var(--tierheim-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 81, 160, 0.35) !important;
}

/* =============================================
   Kunde Karte — Bild Hund, Katze und Kind
   ============================================= */
//: '#e74c3c';
$color_perros: '#e74c3c';
$color_gatos: '#e74c3c';

/* =============================================
   Kunde Karte — Días en Vedama
   ============================================= */

.vedama-karte:hover .vedama-badge {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.vedama-karte:hover .vedama-hover-img {
    transform: scale(1.06);
}
.vedama-karte:hover {
    box-shadow: 0 16px 48px rgba(13,59,79,0.18);
}

/* =============================================
   FOOTER — dunkles Türkis-Blau, kompakter
   ============================================= */
footer,
footer.pt-5,
.site-footer {
    background-color: var(--tierheim-footer) !important;
    color: var(--tierheim-footer-text) !important;
    padding-top: clamp(10px, 3vw, 20px) !important;
}

footer .lh-1.mb-3,
footer .lh-1.mb-1 {
    margin-bottom: 6px !important;
}

footer .small.mt-3,
footer .small.mt-1 {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

footer .mb-3.mt-3 {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

footer .py-3 {
    padding-top: clamp(6px, 1vw, 12px) !important;
    padding-bottom: clamp(6px, 1vw, 12px) !important;
}

footer .mb-3 {
    margin-bottom: clamp(4px, 0.8vw, 10px) !important;
}

footer .mt-3 {
    margin-top: clamp(4px, 0.8vw, 10px) !important;
}

footer .mb-4 {
    margin-bottom: clamp(6px, 1vw, 14px) !important;
}

footer .mt-2 {
    margin-top: clamp(4px, 0.8vw, 8px) !important;
}

footer a {
    color: var(--tierheim-footer-text) !important;
    transition: color 0.2s;
    font-size: clamp(12px, 1.2vw, 14px);
}

footer a:hover {
    color: var(--tierheim-footer-head) !important;
}

footer h2,
footer h5 {
    color: var(--tierheim-footer-head) !important;
    font-size: clamp(14px, 1.5vw, 18px) !important;
}

footer p,
footer span,
footer li,
footer small {
    color: var(--tierheim-footer-text) !important;
    font-size: clamp(12px, 1.2vw, 14px);
}

footer hr {
    border-color: rgba(223,240,247,0.15) !important;
}

footer svg {
    color: var(--tierheim-footer-text) !important;
}

footer .rounded-circle {
    background: rgba(223,240,247,0.1) !important;
    color: var(--tierheim-footer-head) !important;
    width: clamp(28px, 3vw, 36px) !important;
    height: clamp(28px, 3vw, 36px) !important;
}

footer .rounded-circle:hover {
    background: rgba(223,240,247,0.25) !important;
}

/* Polylang Sprachflaggen — keine Listenpunkte */
.py-2.small ul,
.py-2.small li {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* =============================================
   SINGLE TIER — 75/25 Layout Fix
   ============================================= */
.vedama-flex-row {
    display: grid !important;
    grid-template-columns: 3fr 1fr !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
}

.vedama-main {
    min-width: 0 !important;
    overflow: hidden !important;
}

.vedama-sidebar {
    min-width: 0 !important;
}

.vedama-main img,
.vedama-main video {
    max-width: 100% !important;
}

@media (max-width: 599px) {
    .vedama-flex-row {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   HUNDEKARTEN — gemeinsame Quelle für Startseite (index.php) und
   Perros disponibles (archive-tier.php). NICHT mehr pro Seite
   duplizieren — hier ändern wirkt automatisch überall.
   Hinweis: p/span/li stehen weiter oben in dieser Datei per
   !important auf Nunito 400. Wo Lilita One oder fett gebraucht
   wird, muss es hier mit !important zurückgeholt werden.
   ============================================================ */

/* Wrapper behält .vedama-karte, damit die Hover-Regeln oben
   (Foto-Zoom, Schatten) weiter greifen. archive-tier.php hängt
   zusätzlich .tier-card an denselben Wrapper für den Filter-Skript.

   Kein height:100% hier: Der Bootstrap-Row streckt seine Kinder von
   selbst auf gleiche Höhe (align-items:stretch). Ein height:100%
   würde sich auf die Row beziehen, die aber keine feste Höhe hat —
   es fällt auf auto zurück und hebelt genau dieses Strecken aus.
   Dann wäre jede Karte wieder unterschiedlich hoch. */
.vedama-karte {
    border-radius: 22px;
    display: flex;
}

.vd-karte {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(13, 59, 79, .06), 0 10px 24px rgba(13, 59, 79, .10);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
}

.vedama-karte:hover .vd-karte {
    transform: translateY(-4px);
}

/* ---------- Foto ---------- */
.vd-foto {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--tierheim-bg);
    overflow: hidden;
    text-decoration: none;
}

.vd-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.vd-foto-platzhalter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

/* Status-Banner: rot = dringend, grün = im Adoptionsprozess, blau = in Pflegefamilie.
   Nur "rot" kommt auf der Startseite vor; grün/blau nur auf archive-tier.php,
   weil die Startseite Hunde in Adoption/Pflegefamilie gar nicht erst listet. */
.vd-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    color: #fff !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.vd-banner svg {
    flex: none;
}

.vd-banner--rojo {
    background: rgba(231, 76, 60, .86);
}

.vd-banner--verde {
    background: rgba(39, 174, 96, .86);
}

.vd-banner--azul {
    background: rgba(37, 88, 168, .86);
}

/* ---------- Wartezeit ---------- */
/* Flächen- und Textfarbe kommen inline aus vedama_tage_im_tierheim():
   ab 2 Jahren rot, 1–2 Jahre bernstein, darunter blaugrau. */
.vd-wartezeit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.35;
}

.vd-wartezeit b {
    font-family: 'Lilita One', cursive !important;
    font-weight: 400 !important;
    font-size: 16px;
}

.vd-wartezeit svg {
    flex: none;
    opacity: .75;
}

/* ---------- Inhalt ---------- */
.vd-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 20px 20px 0;
}

.vd-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-family: 'Lilita One', cursive !important;
    font-weight: 400 !important;
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.25;
}

.vd-name a {
    color: var(--tierheim-footer);
    text-decoration: none;
}

.vd-name a:hover {
    color: var(--tierheim-donate);
}

.vd-sexo {
    font-size: 19px;
    font-weight: 700 !important;
}

.vd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    color: #4a6070;
    font-size: 14px;
}

.vd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vd-pfoten {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
}

/* ---------- Verträglichkeit ---------- */
.vd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vd-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700 !important;
}

/* Icon nimmt die Textfarbe an (Maske statt img) */
.vd-tag i {
    width: 16px;
    height: 16px;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--vd-ico) center/contain no-repeat;
    mask: var(--vd-ico) center/contain no-repeat;
}

.vd-tag--si {
    background: #E4F3EA;
    color: #1F6B42;
}

.vd-tag--no {
    background: #FCE9E2;
    color: #A93B22;
}

.vd-traits {
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid #eef2f4;
    color: #4a6070;
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- Buttons ---------- */
.vd-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px 20px;
}

.vd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: 'Lilita One', cursive !important;
    font-weight: 400 !important;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.vd-btn:focus-visible {
    outline: 3px solid var(--tierheim-footer);
    outline-offset: 2px;
}

.vd-btn--primary {
    background: var(--tierheim-donate);
    border-color: var(--tierheim-donate);
    color: #fff;
}

.vd-btn--primary:hover {
    background: var(--tierheim-donate-hover);
    border-color: var(--tierheim-donate-hover);
    color: #fff;
}

.vd-btn--support {
    background: transparent;
    border-color: #E07A4B;
    color: #E07A4B;
}

.vd-btn--support:hover {
    background: #E07A4B;
    color: #fff;
}

/* Grüner, nicht klickbarer Hinweis statt Buttons — nur wenn ein Hund
   bereits im Adoptionsprozess ist (kommt nur auf archive-tier.php vor). */
.vd-btn--done {
    background: #E4F3EA;
    border-color: #E4F3EA;
    color: #1F6B42;
    cursor: default;
}

/* ---------- Button "Alle Hunde" (Startseite) ---------- */
.vd-alle {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.vd-btn-alle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 32px;
    border: 2px solid rgba(13, 59, 79, .12);
    border-radius: 999px;
    background: transparent;
    color: var(--tierheim-footer);
    font-family: 'Lilita One', cursive !important;
    font-weight: 400 !important;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vd-btn-alle:hover {
    background: #fff;
    border-color: var(--tierheim-footer);
    color: var(--tierheim-footer);
    box-shadow: 0 2px 4px rgba(13, 59, 79, .06), 0 10px 24px rgba(13, 59, 79, .10);
}

.vd-btn-alle:focus-visible {
    outline: 3px solid var(--tierheim-footer);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .vd-karte,
    .vd-foto img,
    .vd-btn,
    .vd-btn-alle {
        transition: none;
    }

    .vedama-karte:hover .vd-karte {
        transform: none;
    }
}

/* =============================================
   MOBILE-OPTIMIERUNGEN — nur unterhalb 992px.
   Desktop bleibt unangetastet.
   ============================================= */
@media (max-width: 991.98px) {

    /* Sprachumschalter — größere Tap-Fläche um die Flaggen,
       optische Flaggengröße bleibt gleich (Padding sitzt außen). */
    .pll-flag-link {
        display: inline-flex;
        align-items: center;
        padding: 15px 8px;
    }

    /* Burger-Menü — Einträge über volle Breite, mittig, ≥44px hoch */
    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar .nav-link {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        width: 100%;
        text-align: center;
    }

    /* Dropdown-Untermenüs im Burger-Menü ebenfalls ≥44px hoch */
    .dropdown-item {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* Navbar bleibt beim Scrollen sichtbar: der ganze Header wird sticky,
       aber mit negativem top in Höhe der Topbar — die Topbar scrollt weg,
       die Navbar bleibt kleben. (Sticky direkt auf der Navbar geht nicht,
       weil der Header direkt nach ihr endet und es keinen Klebe-Bereich
       gäbe.) Die exakte Topbar-Höhe setzt das Script im Header als
       --vd-topbar-h; der Fallback deckt den typischen Fall ab. */
    header {
        position: sticky;
        top: calc(-1 * var(--vd-topbar-h, 96px));
        z-index: 1030;
    }

    /* Topbar-Schrift — feste 13px statt clamp, damit sie zwischen
       992px und 1084px nicht minimal schwankt (siehe clamp oben). */
    header .py-2.small,
    header .py-2.small.text-center,
    header .py-2.small.text-md-start {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {

    /* Footer-Links — größere Tap-Fläche, Social-Icons (nicht in <li>)
       bleiben davon unberührt. */
    footer li a {
        display: block;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    footer a {
        font-size: 14px;
    }
}

/*  */